@nebula.js/sn-pie-chart 1.27.1 → 1.27.2
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/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-pie-chart.js +7 -7
- package/dist/sn-pie-chart.systemjs.js +8 -8
- package/package.json +1 -1
- package/sn-pie-chart-ext/dist/sn-pie-chart.js +7 -7
- package/sn-pie-chart-ext/sn-pie-chart.qext +1 -1
package/dist/sn-pie-chart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pie-chart v1.27.
|
|
2
|
+
* @nebula.js/sn-pie-chart v1.27.2
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -39,14 +39,14 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/function aN(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sN=new Set,lN={};function cN(e,t){uN(e,t),uN(e+"Capture",t)}function uN(e,t){for(lN[e]=t,e=0;e<t.length;e++)sN.add(t[e])}var dN=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),fN=Object.prototype.hasOwnProperty,hN=/^[: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]*$/,pN={},mN={};function gN(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var yN={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){yN[e]=new gN(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];yN[t]=new gN(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){yN[e]=new gN(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){yN[e]=new gN(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){yN[e]=new gN(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){yN[e]=new gN(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){yN[e]=new gN(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){yN[e]=new gN(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){yN[e]=new gN(e,5,!1,e.toLowerCase(),null,!1,!1)}));var vN=/[\-:]([a-z])/g;function bN(e){return e[1].toUpperCase()}function xN(e,t,n,r){var i=yN.hasOwnProperty(t)?yN[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!fN.call(mN,e)||!fN.call(pN,e)&&(hN.test(e)?mN[e]=!0:(pN[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(vN,bN);yN[t]=new gN(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(vN,bN);yN[t]=new gN(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(vN,bN);yN[t]=new gN(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){yN[e]=new gN(e,1,!1,e.toLowerCase(),null,!1,!1)})),yN.xlinkHref=new gN("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){yN[e]=new gN(e,1,!1,e.toLowerCase(),null,!0,!0)}));var wN=iN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,kN=Symbol.for("react.element"),SN=Symbol.for("react.portal"),CN=Symbol.for("react.fragment"),MN=Symbol.for("react.strict_mode"),EN=Symbol.for("react.profiler"),_N=Symbol.for("react.provider"),DN=Symbol.for("react.context"),qN=Symbol.for("react.forward_ref"),TN=Symbol.for("react.suspense"),RN=Symbol.for("react.suspense_list"),ON=Symbol.for("react.memo"),NN=Symbol.for("react.lazy"),AN=Symbol.for("react.offscreen"),PN=Symbol.iterator;function IN(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=PN&&e[PN]||e["@@iterator"])?e:null}var LN,zN=Object.assign;function FN(e){if(void 0===LN)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);LN=t&&t[1]||""}return"\n"+LN+e}var jN=!1;function $N(e,t){if(!e||jN)return"";jN=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{jN=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?FN(e):""}function HN(e){switch(e.tag){case 5:return FN(e.type);case 16:return FN("Lazy");case 13:return FN("Suspense");case 19:return FN("SuspenseList");case 0:case 2:case 15:return e=$N(e.type,!1);case 11:return e=$N(e.type.render,!1);case 1:return e=$N(e.type,!0);default:return""}}function VN(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case CN:return"Fragment";case SN:return"Portal";case EN:return"Profiler";case MN:return"StrictMode";case TN:return"Suspense";case RN:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case DN:return(e.displayName||"Context")+".Consumer";case _N:return(e._context.displayName||"Context")+".Provider";case qN:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ON:return null!==(t=e.displayName||null)?t:VN(e.type)||"Memo";case NN:t=e._payload,e=e._init;try{return VN(e(t))}catch(e){}}return null}function BN(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return VN(t);case 8:return t===MN?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function WN(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function UN(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function YN(e){e._valueTracker||(e._valueTracker=function(e){var t=UN(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function KN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=UN(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function GN(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function XN(e,t){var n=t.checked;return zN({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ZN(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=WN(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function QN(e,t){null!=(t=t.checked)&&xN(e,"checked",t,!1)}function JN(e,t){QN(e,t);var n=WN(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?tA(e,t.type,n):t.hasOwnProperty("defaultValue")&&tA(e,t.type,WN(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function eA(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function tA(e,t,n){"number"===t&&GN(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nA=Array.isArray;function rA(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+WN(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function iA(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(aN(91));return zN({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oA(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(aN(92));if(nA(n)){if(1<n.length)throw Error(aN(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:WN(n)}}function aA(e,t){var n=WN(t.value),r=WN(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function sA(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function lA(e){switch(e){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"}}function cA(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?lA(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var uA,dA=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((uA=uA||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=uA.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function fA(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var hA={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pA=["Webkit","ms","Moz","O"];function mA(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||hA.hasOwnProperty(e)&&hA[e]?(""+t).trim():t+"px"}function gA(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=mA(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(hA).forEach((function(e){pA.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hA[t]=hA[e]}))}));var yA=zN({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vA(e,t){if(t){if(yA[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(aN(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(aN(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(aN(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(aN(62))}}function bA(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xA=null;function wA(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var kA=null,SA=null,CA=null;function MA(e){if(e=vz(e)){if("function"!=typeof kA)throw Error(aN(280));var t=e.stateNode;t&&(t=xz(t),kA(e.stateNode,e.type,t))}}function EA(e){SA?CA?CA.push(e):CA=[e]:SA=e}function _A(){if(SA){var e=SA,t=CA;if(CA=SA=null,MA(e),t)for(e=0;e<t.length;e++)MA(t[e])}}function DA(e,t){return e(t)}function qA(){}var TA=!1;function RA(e,t,n){if(TA)return e(t,n);TA=!0;try{return DA(e,t,n)}finally{TA=!1,(null!==SA||null!==CA)&&(qA(),_A())}}function OA(e,t){var n=e.stateNode;if(null===n)return null;var r=xz(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(aN(231,t,typeof n));return n}var NA=!1;if(dN)try{var AA={};Object.defineProperty(AA,"passive",{get:function(){NA=!0}}),window.addEventListener("test",AA,AA),window.removeEventListener("test",AA,AA)}catch(jQ){NA=!1}function PA(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var IA=!1,LA=null,zA=!1,FA=null,jA={onError:function(e){IA=!0,LA=e}};function $A(e,t,n,r,i,o,a,s,l){IA=!1,LA=null,PA.apply(jA,arguments)}function HA(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function VA(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function BA(e){if(HA(e)!==e)throw Error(aN(188))}function WA(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=HA(e)))throw Error(aN(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return BA(i),e;if(o===r)return BA(i),t;o=o.sibling}throw Error(aN(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(aN(189))}}if(n.alternate!==r)throw Error(aN(190))}if(3!==n.tag)throw Error(aN(188));return n.stateNode.current===n?e:t}(e),null!==e?UA(e):null}function UA(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=UA(e);if(null!==t)return t;e=e.sibling}return null}var YA=oN.unstable_scheduleCallback,KA=oN.unstable_cancelCallback,GA=oN.unstable_shouldYield,XA=oN.unstable_requestPaint,ZA=oN.unstable_now,QA=oN.unstable_getCurrentPriorityLevel,JA=oN.unstable_ImmediatePriority,eP=oN.unstable_UserBlockingPriority,tP=oN.unstable_NormalPriority,nP=oN.unstable_LowPriority,rP=oN.unstable_IdlePriority,iP=null,oP=null;var aP=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(sP(e)/lP|0)|0},sP=Math.log,lP=Math.LN2;var cP=64,uP=4194304;function dP(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fP(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dP(s):0!==(o&=a)&&(r=dP(o))}else 0!==(a=n&~i)?r=dP(a):0!==o&&(r=dP(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-aP(t)),r|=e[n],t&=~i;return r}function hP(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pP(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mP(){var e=cP;return 0==(4194240&(cP<<=1))&&(cP=64),e}function gP(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yP(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-aP(t)]=n}function vP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-aP(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bP=0;function xP(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wP,kP,SP,CP,MP,EP=!1,_P=[],DP=null,qP=null,TP=null,RP=new Map,OP=new Map,NP=[],AP="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(" ");function PP(e,t){switch(e){case"focusin":case"focusout":DP=null;break;case"dragenter":case"dragleave":qP=null;break;case"mouseover":case"mouseout":TP=null;break;case"pointerover":case"pointerout":RP.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":OP.delete(t.pointerId)}}function IP(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=vz(t))&&kP(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function LP(e){var t=yz(e.target);if(null!==t){var n=HA(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=VA(n)))return e.blockedOn=t,void MP(e.priority,(function(){SP(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zP(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=GP(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=vz(n))&&kP(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xA=r,n.target.dispatchEvent(r),xA=null,t.shift()}return!0}function FP(e,t,n){zP(e)&&n.delete(t)}function jP(){EP=!1,null!==DP&&zP(DP)&&(DP=null),null!==qP&&zP(qP)&&(qP=null),null!==TP&&zP(TP)&&(TP=null),RP.forEach(FP),OP.forEach(FP)}function $P(e,t){e.blockedOn===t&&(e.blockedOn=null,EP||(EP=!0,oN.unstable_scheduleCallback(oN.unstable_NormalPriority,jP)))}function HP(e){function t(t){return $P(t,e)}if(0<_P.length){$P(_P[0],e);for(var n=1;n<_P.length;n++){var r=_P[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==DP&&$P(DP,e),null!==qP&&$P(qP,e),null!==TP&&$P(TP,e),RP.forEach(t),OP.forEach(t),n=0;n<NP.length;n++)(r=NP[n]).blockedOn===e&&(r.blockedOn=null);for(;0<NP.length&&null===(n=NP[0]).blockedOn;)LP(n),null===n.blockedOn&&NP.shift()}var VP=wN.ReactCurrentBatchConfig,BP=!0;function WP(e,t,n,r){var i=bP,o=VP.transition;VP.transition=null;try{bP=1,YP(e,t,n,r)}finally{bP=i,VP.transition=o}}function UP(e,t,n,r){var i=bP,o=VP.transition;VP.transition=null;try{bP=4,YP(e,t,n,r)}finally{bP=i,VP.transition=o}}function YP(e,t,n,r){if(BP){var i=GP(e,t,n,r);if(null===i)VL(e,t,r,KP,n),PP(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return DP=IP(DP,e,t,n,r,i),!0;case"dragenter":return qP=IP(qP,e,t,n,r,i),!0;case"mouseover":return TP=IP(TP,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return RP.set(o,IP(RP.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,OP.set(o,IP(OP.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(PP(e,r),4&t&&-1<AP.indexOf(e)){for(;null!==i;){var o=vz(i);if(null!==o&&wP(o),null===(o=GP(e,t,n,r))&&VL(e,t,r,KP,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else VL(e,t,r,null,n)}}var KP=null;function GP(e,t,n,r){if(KP=null,null!==(e=yz(e=wA(r))))if(null===(t=HA(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=VA(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return KP=e,null}function XP(e){switch(e){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;case"message":switch(QA()){case JA:return 1;case eP:return 4;case tP:case nP:return 16;case rP:return 536870912;default:return 16}default:return 16}}var ZP=null,QP=null,JP=null;function eI(){if(JP)return JP;var e,t,n=QP,r=n.length,i="value"in ZP?ZP.value:ZP.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return JP=i.slice(e,1<t?1-t:void 0)}function tI(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nI(){return!0}function rI(){return!1}function iI(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nI:rI,this.isPropagationStopped=rI,this}return zN(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nI)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nI)},persist:function(){},isPersistent:nI}),t}var oI,aI,sI,lI={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cI=iI(lI),uI=zN({},lI,{view:0,detail:0}),dI=iI(uI),fI=zN({},uI,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:CI,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sI&&(sI&&"mousemove"===e.type?(oI=e.screenX-sI.screenX,aI=e.screenY-sI.screenY):aI=oI=0,sI=e),oI)},movementY:function(e){return"movementY"in e?e.movementY:aI}}),hI=iI(fI),pI=iI(zN({},fI,{dataTransfer:0})),mI=iI(zN({},uI,{relatedTarget:0})),gI=iI(zN({},lI,{animationName:0,elapsedTime:0,pseudoElement:0})),yI=zN({},lI,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vI=iI(yI),bI=iI(zN({},lI,{data:0})),xI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kI[e])&&!!t[e]}function CI(){return SI}var MI=zN({},uI,{key:function(e){if(e.key){var t=xI[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tI(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:CI,charCode:function(e){return"keypress"===e.type?tI(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tI(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),EI=iI(MI),_I=iI(zN({},fI,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),DI=iI(zN({},uI,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:CI})),qI=iI(zN({},lI,{propertyName:0,elapsedTime:0,pseudoElement:0})),TI=zN({},fI,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),RI=iI(TI),OI=[9,13,27,32],NI=dN&&"CompositionEvent"in window,AI=null;dN&&"documentMode"in document&&(AI=document.documentMode);var PI=dN&&"TextEvent"in window&&!AI,II=dN&&(!NI||AI&&8<AI&&11>=AI),LI=String.fromCharCode(32),zI=!1;function FI(e,t){switch(e){case"keyup":return-1!==OI.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jI(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $I=!1;var HI={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 VI(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!HI[e.type]:"textarea"===t}function BI(e,t,n,r){EA(r),0<(t=WL(t,"onChange")).length&&(n=new cI("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var WI=null,UI=null;function YI(e){LL(e,0)}function KI(e){if(KN(bz(e)))return e}function GI(e,t){if("change"===e)return t}var XI=!1;if(dN){var ZI;if(dN){var QI="oninput"in document;if(!QI){var JI=document.createElement("div");JI.setAttribute("oninput","return;"),QI="function"==typeof JI.oninput}ZI=QI}else ZI=!1;XI=ZI&&(!document.documentMode||9<document.documentMode)}function eL(){WI&&(WI.detachEvent("onpropertychange",tL),UI=WI=null)}function tL(e){if("value"===e.propertyName&&KI(UI)){var t=[];BI(t,UI,e,wA(e)),RA(YI,t)}}function nL(e,t,n){"focusin"===e?(eL(),UI=n,(WI=t).attachEvent("onpropertychange",tL)):"focusout"===e&&eL()}function rL(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return KI(UI)}function iL(e,t){if("click"===e)return KI(t)}function oL(e,t){if("input"===e||"change"===e)return KI(t)}var aL="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sL(e,t){if(aL(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!fN.call(t,i)||!aL(e[i],t[i]))return!1}return!0}function lL(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cL(e,t){var n,r=lL(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lL(r)}}function uL(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?uL(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dL(){for(var e=window,t=GN();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=GN((e=t.contentWindow).document)}return t}function fL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hL(e){var t=dL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&uL(n.ownerDocument.documentElement,n)){if(null!==r&&fL(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cL(n,o);var a=cL(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pL=dN&&"documentMode"in document&&11>=document.documentMode,mL=null,gL=null,yL=null,vL=!1;function bL(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vL||null==mL||mL!==GN(r)||("selectionStart"in(r=mL)&&fL(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yL&&sL(yL,r)||(yL=r,0<(r=WL(gL,"onSelect")).length&&(t=new cI("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mL)))}function xL(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wL={animationend:xL("Animation","AnimationEnd"),animationiteration:xL("Animation","AnimationIteration"),animationstart:xL("Animation","AnimationStart"),transitionend:xL("Transition","TransitionEnd")},kL={},SL={};function CL(e){if(kL[e])return kL[e];if(!wL[e])return e;var t,n=wL[e];for(t in n)if(n.hasOwnProperty(t)&&t in SL)return kL[e]=n[t];return e}dN&&(SL=document.createElement("div").style,"AnimationEvent"in window||(delete wL.animationend.animation,delete wL.animationiteration.animation,delete wL.animationstart.animation),"TransitionEvent"in window||delete wL.transitionend.transition);var ML=CL("animationend"),EL=CL("animationiteration"),_L=CL("animationstart"),DL=CL("transitionend"),qL=new Map,TL="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(" ");function RL(e,t){qL.set(e,t),cN(t,[e])}for(var OL=0;OL<TL.length;OL++){var NL=TL[OL];RL(NL.toLowerCase(),"on"+(NL[0].toUpperCase()+NL.slice(1)))}RL(ML,"onAnimationEnd"),RL(EL,"onAnimationIteration"),RL(_L,"onAnimationStart"),RL("dblclick","onDoubleClick"),RL("focusin","onFocus"),RL("focusout","onBlur"),RL(DL,"onTransitionEnd"),uN("onMouseEnter",["mouseout","mouseover"]),uN("onMouseLeave",["mouseout","mouseover"]),uN("onPointerEnter",["pointerout","pointerover"]),uN("onPointerLeave",["pointerout","pointerover"]),cN("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),cN("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),cN("onBeforeInput",["compositionend","keypress","textInput","paste"]),cN("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),cN("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),cN("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var AL="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(" "),PL=new Set("cancel close invalid load scroll toggle".split(" ").concat(AL));function IL(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if($A.apply(this,arguments),IA){if(!IA)throw Error(aN(198));var c=LA;IA=!1,LA=null,zA||(zA=!0,FA=c)}}(r,t,void 0,e),e.currentTarget=null}function LL(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;IL(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;IL(i,s,c),o=l}}}if(zA)throw e=FA,zA=!1,FA=null,e}function zL(e,t){var n=t[pz];void 0===n&&(n=t[pz]=new Set);var r=e+"__bubble";n.has(r)||(HL(t,e,2,!1),n.add(r))}function FL(e,t,n){var r=0;t&&(r|=4),HL(n,e,r,t)}var jL="_reactListening"+Math.random().toString(36).slice(2);function $L(e){if(!e[jL]){e[jL]=!0,sN.forEach((function(t){"selectionchange"!==t&&(PL.has(t)||FL(t,!1,e),FL(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jL]||(t[jL]=!0,FL("selectionchange",!1,t))}}function HL(e,t,n,r){switch(XP(t)){case 1:var i=WP;break;case 4:i=UP;break;default:i=YP}n=i.bind(null,t,n,e),i=void 0,!NA||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function VL(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yz(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}RA((function(){var r=o,i=wA(n),a=[];e:{var s=qL.get(e);if(void 0!==s){var l=cI,c=e;switch(e){case"keypress":if(0===tI(n))break e;case"keydown":case"keyup":l=EI;break;case"focusin":c="focus",l=mI;break;case"focusout":c="blur",l=mI;break;case"beforeblur":case"afterblur":l=mI;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=DI;break;case ML:case EL:case _L:l=gI;break;case DL:l=qI;break;case"scroll":l=dI;break;case"wheel":l=RI;break;case"copy":case"cut":case"paste":l=vI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=_I}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=OA(p,f))&&u.push(BL(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xA||!(c=n.relatedTarget||n.fromElement)||!yz(c)&&!c[hz])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yz(c):null)&&(c!==(d=HA(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hI,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=_I,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:bz(l),h=null==c?s:bz(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,yz(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=UL(h))p++;for(h=0,m=f;m;m=UL(m))h++;for(;0<p-h;)u=UL(u),p--;for(;0<h-p;)f=UL(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=UL(u),f=UL(f)}u=null}else u=null;null!==l&&YL(a,s,l,u,!1),null!==c&&null!==d&&YL(a,d,c,u,!0)}if("select"===(l=(s=r?bz(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=GI;else if(VI(s))if(XI)g=oL;else{g=rL;var y=nL}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=iL);switch(g&&(g=g(e,r))?BI(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&tA(s,"number",s.value)),y=r?bz(r):window,e){case"focusin":(VI(y)||"true"===y.contentEditable)&&(mL=y,gL=r,yL=null);break;case"focusout":yL=gL=mL=null;break;case"mousedown":vL=!0;break;case"contextmenu":case"mouseup":case"dragend":vL=!1,bL(a,n,i);break;case"selectionchange":if(pL)break;case"keydown":case"keyup":bL(a,n,i)}var v;if(NI)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $I?FI(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(II&&"ko"!==n.locale&&($I||"onCompositionStart"!==b?"onCompositionEnd"===b&&$I&&(v=eI()):(QP="value"in(ZP=i)?ZP.value:ZP.textContent,$I=!0)),0<(y=WL(r,b)).length&&(b=new bI(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=jI(n))&&(b.data=v))),(v=PI?function(e,t){switch(e){case"compositionend":return jI(t);case"keypress":return 32!==t.which?null:(zI=!0,LI);case"textInput":return(e=t.data)===LI&&zI?null:e;default:return null}}(e,n):function(e,t){if($I)return"compositionend"===e||!NI&&FI(e,t)?(e=eI(),JP=QP=ZP=null,$I=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return II&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=WL(r,"onBeforeInput")).length&&(i=new bI("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}LL(a,t)}))}function BL(e,t,n){return{instance:e,listener:t,currentTarget:n}}function WL(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=OA(e,n))&&r.unshift(BL(e,o,i)),null!=(o=OA(e,t))&&r.push(BL(e,o,i))),e=e.return}return r}function UL(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function YL(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=OA(n,o))&&a.unshift(BL(n,l,s)):i||null!=(l=OA(n,o))&&a.push(BL(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var KL=/\r\n?/g,GL=/\u0000|\uFFFD/g;function XL(e){return("string"==typeof e?e:""+e).replace(KL,"\n").replace(GL,"")}function ZL(e,t,n){if(t=XL(t),XL(e)!==t&&n)throw Error(aN(425))}function QL(){}var JL=null,ez=null;function tz(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var nz="function"==typeof setTimeout?setTimeout:void 0,rz="function"==typeof clearTimeout?clearTimeout:void 0,iz="function"==typeof Promise?Promise:void 0,oz="function"==typeof queueMicrotask?queueMicrotask:void 0!==iz?function(e){return iz.resolve(null).then(e).catch(az)}:nz;function az(e){setTimeout((function(){throw e}))}function sz(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void HP(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);HP(t)}function lz(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function cz(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var uz=Math.random().toString(36).slice(2),dz="__reactFiber$"+uz,fz="__reactProps$"+uz,hz="__reactContainer$"+uz,pz="__reactEvents$"+uz,mz="__reactListeners$"+uz,gz="__reactHandles$"+uz;function yz(e){var t=e[dz];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hz]||n[dz]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=cz(e);null!==e;){if(n=e[dz])return n;e=cz(e)}return t}n=(e=n).parentNode}return null}function vz(e){return!(e=e[dz]||e[hz])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bz(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(aN(33))}function xz(e){return e[fz]||null}var wz=[],kz=-1;function Sz(e){return{current:e}}function Cz(e){0>kz||(e.current=wz[kz],wz[kz]=null,kz--)}function Mz(e,t){kz++,wz[kz]=e.current,e.current=t}var Ez={},_z=Sz(Ez),Dz=Sz(!1),qz=Ez;function Tz(e,t){var n=e.type.contextTypes;if(!n)return Ez;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Rz(e){return null!=(e=e.childContextTypes)}function Oz(){Cz(Dz),Cz(_z)}function Nz(e,t,n){if(_z.current!==Ez)throw Error(aN(168));Mz(_z,t),Mz(Dz,n)}function Az(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(aN(108,BN(e)||"Unknown",i));return zN({},n,r)}function Pz(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ez,qz=_z.current,Mz(_z,e),Mz(Dz,Dz.current),!0}function Iz(e,t,n){var r=e.stateNode;if(!r)throw Error(aN(169));n?(e=Az(e,t,qz),r.__reactInternalMemoizedMergedChildContext=e,Cz(Dz),Cz(_z),Mz(_z,e)):Cz(Dz),Mz(Dz,n)}var Lz=null,zz=!1,Fz=!1;function jz(e){null===Lz?Lz=[e]:Lz.push(e)}function $z(){if(!Fz&&null!==Lz){Fz=!0;var e=0,t=bP;try{var n=Lz;for(bP=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Lz=null,zz=!1}catch(t){throw null!==Lz&&(Lz=Lz.slice(e+1)),YA(JA,$z),t}finally{bP=t,Fz=!1}}return null}var Hz=[],Vz=0,Bz=null,Wz=0,Uz=[],Yz=0,Kz=null,Gz=1,Xz="";function Zz(e,t){Hz[Vz++]=Wz,Hz[Vz++]=Bz,Bz=e,Wz=t}function Qz(e,t,n){Uz[Yz++]=Gz,Uz[Yz++]=Xz,Uz[Yz++]=Kz,Kz=e;var r=Gz;e=Xz;var i=32-aP(r)-1;r&=~(1<<i),n+=1;var o=32-aP(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Gz=1<<32-aP(t)+i|n<<i|r,Xz=o+e}else Gz=1<<o|n<<i|r,Xz=e}function Jz(e){null!==e.return&&(Zz(e,1),Qz(e,1,0))}function eF(e){for(;e===Bz;)Bz=Hz[--Vz],Hz[Vz]=null,Wz=Hz[--Vz],Hz[Vz]=null;for(;e===Kz;)Kz=Uz[--Yz],Uz[Yz]=null,Xz=Uz[--Yz],Uz[Yz]=null,Gz=Uz[--Yz],Uz[Yz]=null}var tF=null,nF=null,rF=!1,iF=null;function oF(e,t){var n=TV(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function aF(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,tF=e,nF=lz(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,tF=e,nF=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Kz?{id:Gz,overflow:Xz}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=TV(18,null,null,0)).stateNode=t,n.return=e,e.child=n,tF=e,nF=null,!0);default:return!1}}function sF(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function lF(e){if(rF){var t=nF;if(t){var n=t;if(!aF(e,t)){if(sF(e))throw Error(aN(418));t=lz(n.nextSibling);var r=tF;t&&aF(e,t)?oF(r,n):(e.flags=-4097&e.flags|2,rF=!1,tF=e)}}else{if(sF(e))throw Error(aN(418));e.flags=-4097&e.flags|2,rF=!1,tF=e}}}function cF(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;tF=e}function uF(e){if(e!==tF)return!1;if(!rF)return cF(e),rF=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!tz(e.type,e.memoizedProps)),t&&(t=nF)){if(sF(e))throw dF(),Error(aN(418));for(;t;)oF(e,t),t=lz(t.nextSibling)}if(cF(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(aN(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){nF=lz(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}nF=null}}else nF=tF?lz(e.stateNode.nextSibling):null;return!0}function dF(){for(var e=nF;e;)e=lz(e.nextSibling)}function fF(){nF=tF=null,rF=!1}function hF(e){null===iF?iF=[e]:iF.push(e)}var pF=wN.ReactCurrentBatchConfig;function mF(e,t){if(e&&e.defaultProps){for(var n in t=zN({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var gF=Sz(null),yF=null,vF=null,bF=null;function xF(){bF=vF=yF=null}function wF(e){var t=gF.current;Cz(gF),e._currentValue=t}function kF(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function SF(e,t){yF=e,bF=vF=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(v$=!0),e.firstContext=null)}function CF(e){var t=e._currentValue;if(bF!==e)if(e={context:e,memoizedValue:t,next:null},null===vF){if(null===yF)throw Error(aN(308));vF=e,yF.dependencies={lanes:0,firstContext:e}}else vF=vF.next=e;return t}var MF=null;function EF(e){null===MF?MF=[e]:MF.push(e)}function _F(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,EF(t)):(n.next=i.next,i.next=n),t.interleaved=n,DF(e,r)}function DF(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var qF=!1;function TF(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function RF(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function OF(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function NF(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&_H)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,DF(e,n)}return null===(i=r.interleaved)?(t.next=t,EF(r)):(t.next=i.next,i.next=t),r.interleaved=t,DF(e,n)}function AF(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vP(e,n)}}function PF(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function IF(e,t,n,r){var i=e.updateQueue;qF=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=zN({},d,f);break e;case 2:qF=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);PH|=a,e.lanes=a,e.memoizedState=d}}function LF(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(aN(191,i));i.call(r)}}}var zF=(new iN.Component).refs;function FF(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:zN({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var jF={isMounted:function(e){return!!(e=e._reactInternals)&&HA(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=JH(),i=eV(e),o=OF(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=NF(e,o,i))&&(tV(t,e,i,r),AF(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=JH(),i=eV(e),o=OF(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=NF(e,o,i))&&(tV(t,e,i,r),AF(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=JH(),r=eV(e),i=OF(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=NF(e,i,r))&&(tV(t,e,r,n),AF(t,e,r))}};function $F(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!sL(n,r)||!sL(i,o))}function HF(e,t,n){var r=!1,i=Ez,o=t.contextType;return"object"==typeof o&&null!==o?o=CF(o):(i=Rz(t)?qz:_z.current,o=(r=null!=(r=t.contextTypes))?Tz(e,i):Ez),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=jF,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function VF(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&jF.enqueueReplaceState(t,t.state,null)}function BF(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=zF,TF(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=CF(o):(o=Rz(t)?qz:_z.current,i.context=Tz(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(FF(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&jF.enqueueReplaceState(i,i.state,null),IF(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function WF(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(aN(309));var r=n.stateNode}if(!r)throw Error(aN(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===zF&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(aN(284));if(!n._owner)throw Error(aN(290,e))}return e}function UF(e,t){throw e=Object.prototype.toString.call(t),Error(aN(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function YF(e){return(0,e._init)(e._payload)}function KF(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=OV(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=IV(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===CN?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===NN&&YF(o)===t.type)?((r=i(t,n.props)).ref=WF(e,t,n),r.return=e,r):((r=NV(n.type,n.key,n.props,null,e.mode,r)).ref=WF(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=LV(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=AV(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=IV(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case kN:return(n=NV(t.type,t.key,t.props,null,e.mode,n)).ref=WF(e,null,t),n.return=e,n;case SN:return(t=LV(t,e.mode,n)).return=e,t;case NN:return d(e,(0,t._init)(t._payload),n)}if(nA(t)||IN(t))return(t=AV(t,e.mode,n,null)).return=e,t;UF(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case kN:return n.key===i?l(e,t,n,r):null;case SN:return n.key===i?c(e,t,n,r):null;case NN:return f(e,t,(i=n._init)(n._payload),r)}if(nA(n)||IN(n))return null!==i?null:u(e,t,n,r,null);UF(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case kN:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case SN:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case NN:return h(e,t,n,(0,r._init)(r._payload),i)}if(nA(r)||IN(r))return u(t,e=e.get(n)||null,r,i,null);UF(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),rF&&Zz(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return rF&&Zz(i,m),c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),rF&&Zz(i,m),c}function m(i,a,s,l){var c=IN(s);if("function"!=typeof c)throw Error(aN(150));if(null==(s=c.call(s)))throw Error(aN(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),rF&&Zz(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return rF&&Zz(i,m),c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),rF&&Zz(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===CN&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case kN:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===CN){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===NN&&YF(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=WF(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===CN?((o=AV(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=NV(s.type,s.key,s.props,null,r.mode,l)).ref=WF(r,o,s),l.return=r,r=l)}return a(r);case SN:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=LV(s,r.mode,l)).return=r,r=o}return a(r);case NN:return e(r,o,(u=s._init)(s._payload),l)}if(nA(s))return p(r,o,s,l);if(IN(s))return m(r,o,s,l);UF(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=IV(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var GF=KF(!0),XF=KF(!1),ZF={},QF=Sz(ZF),JF=Sz(ZF),ej=Sz(ZF);function tj(e){if(e===ZF)throw Error(aN(174));return e}function nj(e,t){switch(Mz(ej,t),Mz(JF,e),Mz(QF,ZF),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cA(null,"");break;default:t=cA(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Cz(QF),Mz(QF,t)}function rj(){Cz(QF),Cz(JF),Cz(ej)}function ij(e){tj(ej.current);var t=tj(QF.current),n=cA(t,e.type);t!==n&&(Mz(JF,e),Mz(QF,n))}function oj(e){JF.current===e&&(Cz(QF),Cz(JF))}var aj=Sz(0);function sj(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lj=[];function cj(){for(var e=0;e<lj.length;e++)lj[e]._workInProgressVersionPrimary=null;lj.length=0}var uj=wN.ReactCurrentDispatcher,dj=wN.ReactCurrentBatchConfig,fj=0,hj=null,pj=null,mj=null,gj=!1,yj=!1,vj=0,bj=0;function xj(){throw Error(aN(321))}function wj(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!aL(e[n],t[n]))return!1;return!0}function kj(e,t,n,r,i,o){if(fj=o,hj=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,uj.current=null===e||null===e.memoizedState?o$:a$,e=n(r,i),yj){o=0;do{if(yj=!1,vj=0,25<=o)throw Error(aN(301));o+=1,mj=pj=null,t.updateQueue=null,uj.current=s$,e=n(r,i)}while(yj)}if(uj.current=i$,t=null!==pj&&null!==pj.next,fj=0,mj=pj=hj=null,gj=!1,t)throw Error(aN(300));return e}function Sj(){var e=0!==vj;return vj=0,e}function Cj(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mj?hj.memoizedState=mj=e:mj=mj.next=e,mj}function Mj(){if(null===pj){var e=hj.alternate;e=null!==e?e.memoizedState:null}else e=pj.next;var t=null===mj?hj.memoizedState:mj.next;if(null!==t)mj=t,pj=e;else{if(null===e)throw Error(aN(310));e={memoizedState:(pj=e).memoizedState,baseState:pj.baseState,baseQueue:pj.baseQueue,queue:pj.queue,next:null},null===mj?hj.memoizedState=mj=e:mj=mj.next=e}return mj}function Ej(e,t){return"function"==typeof t?t(e):t}function _j(e){var t=Mj(),n=t.queue;if(null===n)throw Error(aN(311));n.lastRenderedReducer=e;var r=pj,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((fj&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,hj.lanes|=u,PH|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,aL(r,t.memoizedState)||(v$=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,hj.lanes|=o,PH|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Dj(e){var t=Mj(),n=t.queue;if(null===n)throw Error(aN(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);aL(o,t.memoizedState)||(v$=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function qj(){}function Tj(e,t){var n=hj,r=Mj(),i=t(),o=!aL(r.memoizedState,i);if(o&&(r.memoizedState=i,v$=!0),r=r.queue,Hj(Nj.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==mj&&1&mj.memoizedState.tag){if(n.flags|=2048,Lj(9,Oj.bind(null,n,r,i,t),void 0,null),null===DH)throw Error(aN(349));0!=(30&fj)||Rj(n,t,i)}return i}function Rj(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hj.updateQueue)?(t={lastEffect:null,stores:null},hj.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oj(e,t,n,r){t.value=n,t.getSnapshot=r,Aj(t)&&Pj(e)}function Nj(e,t,n){return n((function(){Aj(t)&&Pj(e)}))}function Aj(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!aL(e,n)}catch(e){return!0}}function Pj(e){var t=DF(e,1);null!==t&&tV(t,e,1,-1)}function Ij(e){var t=Cj();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ej,lastRenderedState:e},t.queue=e,e=e.dispatch=e$.bind(null,hj,e),[t.memoizedState,e]}function Lj(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hj.updateQueue)?(t={lastEffect:null,stores:null},hj.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zj(){return Mj().memoizedState}function Fj(e,t,n,r){var i=Cj();hj.flags|=e,i.memoizedState=Lj(1|t,n,void 0,void 0===r?null:r)}function jj(e,t,n,r){var i=Mj();r=void 0===r?null:r;var o=void 0;if(null!==pj){var a=pj.memoizedState;if(o=a.destroy,null!==r&&wj(r,a.deps))return void(i.memoizedState=Lj(t,n,o,r))}hj.flags|=e,i.memoizedState=Lj(1|t,n,o,r)}function $j(e,t){return Fj(8390656,8,e,t)}function Hj(e,t){return jj(2048,8,e,t)}function Vj(e,t){return jj(4,2,e,t)}function Bj(e,t){return jj(4,4,e,t)}function Wj(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Uj(e,t,n){return n=null!=n?n.concat([e]):null,jj(4,4,Wj.bind(null,t,e),n)}function Yj(){}function Kj(e,t){var n=Mj();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wj(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gj(e,t){var n=Mj();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wj(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xj(e,t,n){return 0==(21&fj)?(e.baseState&&(e.baseState=!1,v$=!0),e.memoizedState=n):(aL(n,t)||(n=mP(),hj.lanes|=n,PH|=n,e.baseState=!0),t)}function Zj(e,t){var n=bP;bP=0!==n&&4>n?n:4,e(!0);var r=dj.transition;dj.transition={};try{e(!1),t()}finally{bP=n,dj.transition=r}}function Qj(){return Mj().memoizedState}function Jj(e,t,n){var r=eV(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},t$(e))n$(t,n);else if(null!==(n=_F(e,t,n,r))){tV(n,e,r,JH()),r$(n,t,r)}}function e$(e,t,n){var r=eV(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(t$(e))n$(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,aL(s,a)){var l=t.interleaved;return null===l?(i.next=i,EF(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=_F(e,t,i,r))&&(tV(n,e,r,i=JH()),r$(n,t,r))}}function t$(e){var t=e.alternate;return e===hj||null!==t&&t===hj}function n$(e,t){yj=gj=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function r$(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vP(e,n)}}var i$={readContext:CF,useCallback:xj,useContext:xj,useEffect:xj,useImperativeHandle:xj,useInsertionEffect:xj,useLayoutEffect:xj,useMemo:xj,useReducer:xj,useRef:xj,useState:xj,useDebugValue:xj,useDeferredValue:xj,useTransition:xj,useMutableSource:xj,useSyncExternalStore:xj,useId:xj,unstable_isNewReconciler:!1},o$={readContext:CF,useCallback:function(e,t){return Cj().memoizedState=[e,void 0===t?null:t],e},useContext:CF,useEffect:$j,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fj(4194308,4,Wj.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fj(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fj(4,2,e,t)},useMemo:function(e,t){var n=Cj();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cj();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Jj.bind(null,hj,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Cj().memoizedState=e},useState:Ij,useDebugValue:Yj,useDeferredValue:function(e){return Cj().memoizedState=e},useTransition:function(){var e=Ij(!1),t=e[0];return e=Zj.bind(null,e[1]),Cj().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hj,i=Cj();if(rF){if(void 0===n)throw Error(aN(407));n=n()}else{if(n=t(),null===DH)throw Error(aN(349));0!=(30&fj)||Rj(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,$j(Nj.bind(null,r,o,e),[e]),r.flags|=2048,Lj(9,Oj.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Cj(),t=DH.identifierPrefix;if(rF){var n=Xz;t=":"+t+"R"+(n=(Gz&~(1<<32-aP(Gz)-1)).toString(32)+n),0<(n=vj++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=bj++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},a$={readContext:CF,useCallback:Kj,useContext:CF,useEffect:Hj,useImperativeHandle:Uj,useInsertionEffect:Vj,useLayoutEffect:Bj,useMemo:Gj,useReducer:_j,useRef:zj,useState:function(){return _j(Ej)},useDebugValue:Yj,useDeferredValue:function(e){return Xj(Mj(),pj.memoizedState,e)},useTransition:function(){return[_j(Ej)[0],Mj().memoizedState]},useMutableSource:qj,useSyncExternalStore:Tj,useId:Qj,unstable_isNewReconciler:!1},s$={readContext:CF,useCallback:Kj,useContext:CF,useEffect:Hj,useImperativeHandle:Uj,useInsertionEffect:Vj,useLayoutEffect:Bj,useMemo:Gj,useReducer:Dj,useRef:zj,useState:function(){return Dj(Ej)},useDebugValue:Yj,useDeferredValue:function(e){var t=Mj();return null===pj?t.memoizedState=e:Xj(t,pj.memoizedState,e)},useTransition:function(){return[Dj(Ej)[0],Mj().memoizedState]},useMutableSource:qj,useSyncExternalStore:Tj,useId:Qj,unstable_isNewReconciler:!1};function l$(e,t){try{var n="",r=t;do{n+=HN(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function c$(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function u$(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var d$="function"==typeof WeakMap?WeakMap:Map;function f$(e,t,n){(n=OF(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){VH||(VH=!0,BH=r),u$(0,t)},n}function h$(e,t,n){(n=OF(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){u$(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){u$(0,t),"function"!=typeof r&&(null===WH?WH=new Set([this]):WH.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function p$(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new d$;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=CV.bind(null,e,t,n),t.then(e,e))}function m$(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function g$(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=OF(-1,1)).tag=2,NF(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var y$=wN.ReactCurrentOwner,v$=!1;function b$(e,t,n,r){t.child=null===e?XF(t,null,n,r):GF(t,e.child,n,r)}function x$(e,t,n,r,i){n=n.render;var o=t.ref;return SF(t,i),r=kj(e,t,n,r,o,i),n=Sj(),null===e||v$?(rF&&n&&Jz(t),t.flags|=1,b$(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,V$(e,t,i))}function w$(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||RV(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=NV(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,k$(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:sL)(a,r)&&e.ref===t.ref)return V$(e,t,i)}return t.flags|=1,(e=OV(o,r)).ref=t.ref,e.return=t,t.child=e}function k$(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(sL(o,r)&&e.ref===t.ref){if(v$=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,V$(e,t,i);0!=(131072&e.flags)&&(v$=!0)}}return M$(e,t,n,r,i)}function S$(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mz(OH,RH),RH|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mz(OH,RH),RH|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Mz(OH,RH),RH|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Mz(OH,RH),RH|=r;return b$(e,t,i,n),t.child}function C$(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function M$(e,t,n,r,i){var o=Rz(n)?qz:_z.current;return o=Tz(t,o),SF(t,i),n=kj(e,t,n,r,o,i),r=Sj(),null===e||v$?(rF&&r&&Jz(t),t.flags|=1,b$(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,V$(e,t,i))}function E$(e,t,n,r,i){if(Rz(n)){var o=!0;Pz(t)}else o=!1;if(SF(t,i),null===t.stateNode)H$(e,t),HF(t,n,r),BF(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=CF(c):c=Tz(t,c=Rz(n)?qz:_z.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&VF(t,a,r,c),qF=!1;var f=t.memoizedState;a.state=f,IF(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Dz.current||qF?("function"==typeof u&&(FF(t,n,u,r),l=t.memoizedState),(s=qF||$F(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,RF(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:mF(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=CF(l):l=Tz(t,l=Rz(n)?qz:_z.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&VF(t,a,r,l),qF=!1,f=t.memoizedState,a.state=f,IF(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Dz.current||qF?("function"==typeof h&&(FF(t,n,h,r),p=t.memoizedState),(c=qF||$F(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return _$(e,t,n,r,o,i)}function _$(e,t,n,r,i,o){C$(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Iz(t,n,!1),V$(e,t,o);r=t.stateNode,y$.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=GF(t,e.child,null,o),t.child=GF(t,null,s,o)):b$(e,t,s,o),t.memoizedState=r.state,i&&Iz(t,n,!0),t.child}function D$(e){var t=e.stateNode;t.pendingContext?Nz(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Nz(0,t.context,!1),nj(e,t.containerInfo)}function q$(e,t,n,r,i){return fF(),hF(i),t.flags|=256,b$(e,t,n,r),t.child}var T$,R$,O$,N$,A$={dehydrated:null,treeContext:null,retryLane:0};function P$(e){return{baseLanes:e,cachePool:null,transitions:null}}function I$(e,t,n){var r,i=t.pendingProps,o=aj.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Mz(aj,1&o),null===e)return lF(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=PV(s,i,0,null),e=AV(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=P$(n),t.memoizedState=A$,e):L$(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,z$(e,t,a,r=c$(Error(aN(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=PV({mode:"visible",children:r.children},i,0,null),(o=AV(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&GF(t,e.child,null,a),t.child.memoizedState=P$(a),t.memoizedState=A$,o);if(0==(1&t.mode))return z$(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,z$(e,t,a,r=c$(o=Error(aN(419)),r,void 0))}if(s=0!=(a&e.childLanes),v$||s){if(null!==(r=DH)){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|a))?0:i)&&i!==o.retryLane&&(o.retryLane=i,DF(e,i),tV(r,e,i,-1))}return pV(),z$(e,t,a,r=c$(Error(aN(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=EV.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,nF=lz(i.nextSibling),tF=t,rF=!0,iF=null,null!==e&&(Uz[Yz++]=Gz,Uz[Yz++]=Xz,Uz[Yz++]=Kz,Gz=e.id,Xz=e.overflow,Kz=t),t=L$(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=OV(o,l)).subtreeFlags=14680064&o.subtreeFlags,null!==r?a=OV(r,a):(a=AV(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?P$(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=A$,i}return e=(a=e.child).sibling,i=OV(a,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function L$(e,t){return(t=PV({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function z$(e,t,n,r){return null!==r&&hF(r),GF(t,e.child,null,n),(e=L$(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function F$(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),kF(e.return,t,n)}function j$(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(b$(e,t,r.children,n),0!=(2&(r=aj.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&F$(e,n,t);else if(19===e.tag)F$(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Mz(aj,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===sj(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),j$(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===sj(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}j$(t,!0,n,null,o);break;case"together":j$(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function H$(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function V$(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),PH|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(aN(153));if(null!==t.child){for(n=OV(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=OV(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function B$(e,t){if(!rF)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function W$(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function U$(e,t,n){var r=t.pendingProps;switch(eF(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return W$(t),null;case 1:case 17:return Rz(t.type)&&Oz(),W$(t),null;case 3:return r=t.stateNode,rj(),Cz(Dz),Cz(_z),cj(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(uF(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==iF&&(oV(iF),iF=null))),R$(e,t),W$(t),null;case 5:oj(t);var i=tj(ej.current);if(n=t.type,null!==e&&null!=t.stateNode)O$(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(aN(166));return W$(t),null}if(e=tj(QF.current),uF(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[dz]=t,r[fz]=o,e=0!=(1&t.mode),n){case"dialog":zL("cancel",r),zL("close",r);break;case"iframe":case"object":case"embed":zL("load",r);break;case"video":case"audio":for(i=0;i<AL.length;i++)zL(AL[i],r);break;case"source":zL("error",r);break;case"img":case"image":case"link":zL("error",r),zL("load",r);break;case"details":zL("toggle",r);break;case"input":ZN(r,o),zL("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},zL("invalid",r);break;case"textarea":oA(r,o),zL("invalid",r)}for(var a in vA(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&ZL(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&ZL(r.textContent,s,e),i=["children",""+s]):lN.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&zL("scroll",r)}switch(n){case"input":YN(r),eA(r,o,!0);break;case"textarea":YN(r),sA(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=QL)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=lA(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[dz]=t,e[fz]=r,T$(e,t,!1,!1),t.stateNode=e;e:{switch(a=bA(n,r),n){case"dialog":zL("cancel",e),zL("close",e),i=r;break;case"iframe":case"object":case"embed":zL("load",e),i=r;break;case"video":case"audio":for(i=0;i<AL.length;i++)zL(AL[i],e);i=r;break;case"source":zL("error",e),i=r;break;case"img":case"image":case"link":zL("error",e),zL("load",e),i=r;break;case"details":zL("toggle",e),i=r;break;case"input":ZN(e,r),i=XN(e,r),zL("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=zN({},r,{value:void 0}),zL("invalid",e);break;case"textarea":oA(e,r),i=iA(e,r),zL("invalid",e)}for(o in vA(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?gA(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&dA(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&fA(e,l):"number"==typeof l&&fA(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(lN.hasOwnProperty(o)?null!=l&&"onScroll"===o&&zL("scroll",e):null!=l&&xN(e,o,l,a))}switch(n){case"input":YN(e),eA(e,r,!1);break;case"textarea":YN(e),sA(e);break;case"option":null!=r.value&&e.setAttribute("value",""+WN(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?rA(e,!!r.multiple,o,!1):null!=r.defaultValue&&rA(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=QL)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return W$(t),null;case 6:if(e&&null!=t.stateNode)N$(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(aN(166));if(n=tj(ej.current),tj(QF.current),uF(t)){if(r=t.stateNode,n=t.memoizedProps,r[dz]=t,(o=r.nodeValue!==n)&&null!==(e=tF))switch(e.tag){case 3:ZL(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ZL(r.nodeValue,n,0!=(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[dz]=t,t.stateNode=r}return W$(t),null;case 13:if(Cz(aj),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(rF&&null!==nF&&0!=(1&t.mode)&&0==(128&t.flags))dF(),fF(),t.flags|=98560,o=!1;else if(o=uF(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(aN(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(aN(317));o[dz]=t}else fF(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;W$(t),o=!1}else null!==iF&&(oV(iF),iF=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&aj.current)?0===NH&&(NH=3):pV())),null!==t.updateQueue&&(t.flags|=4),W$(t),null);case 4:return rj(),R$(e,t),null===e&&$L(t.stateNode.containerInfo),W$(t),null;case 10:return wF(t.type._context),W$(t),null;case 19:if(Cz(aj),null===(o=t.memoizedState))return W$(t),null;if(r=0!=(128&t.flags),null===(a=o.rendering))if(r)B$(o,!1);else{if(0!==NH||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=sj(e))){for(t.flags|=128,B$(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Mz(aj,1&aj.current|2),t.child}e=e.sibling}null!==o.tail&&ZA()>$H&&(t.flags|=128,r=!0,B$(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=sj(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),B$(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!rF)return W$(t),null}else 2*ZA()-o.renderingStartTime>$H&&1073741824!==n&&(t.flags|=128,r=!0,B$(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ZA(),t.sibling=null,n=aj.current,Mz(aj,r?1&n|2:1&n),t):(W$(t),null);case 22:case 23:return uV(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&RH)&&(W$(t),6&t.subtreeFlags&&(t.flags|=8192)):W$(t),null;case 24:case 25:return null}throw Error(aN(156,t.tag))}function Y$(e,t){switch(eF(t),t.tag){case 1:return Rz(t.type)&&Oz(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return rj(),Cz(Dz),Cz(_z),cj(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oj(t),null;case 13:if(Cz(aj),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(aN(340));fF()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Cz(aj),null;case 4:return rj(),null;case 10:return wF(t.type._context),null;case 22:case 23:return uV(),null;default:return null}}T$=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},R$=function(){},O$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,tj(QF.current);var o,a=null;switch(n){case"input":i=XN(e,i),r=XN(e,r),a=[];break;case"select":i=zN({},i,{value:void 0}),r=zN({},r,{value:void 0}),a=[];break;case"textarea":i=iA(e,i),r=iA(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=QL)}for(c in vA(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(lN.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(lN.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&zL("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},N$=function(e,t,n,r){n!==r&&(t.flags|=4)};var K$=!1,G$=!1,X$="function"==typeof WeakSet?WeakSet:Set,Z$=null;function Q$(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){SV(e,t,n)}else n.current=null}function J$(e,t,n){try{n()}catch(n){SV(e,t,n)}}var eH=!1;function tH(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&J$(t,n,o)}i=i.next}while(i!==r)}}function nH(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rH(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function iH(e){var t=e.alternate;null!==t&&(e.alternate=null,iH(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[dz],delete t[fz],delete t[pz],delete t[mz],delete t[gz])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function oH(e){return 5===e.tag||3===e.tag||4===e.tag}function aH(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||oH(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sH(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=QL));else if(4!==r&&null!==(e=e.child))for(sH(e,t,n),e=e.sibling;null!==e;)sH(e,t,n),e=e.sibling}function lH(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(lH(e,t,n),e=e.sibling;null!==e;)lH(e,t,n),e=e.sibling}var cH=null,uH=!1;function dH(e,t,n){for(n=n.child;null!==n;)fH(e,t,n),n=n.sibling}function fH(e,t,n){if(oP&&"function"==typeof oP.onCommitFiberUnmount)try{oP.onCommitFiberUnmount(iP,n)}catch(e){}switch(n.tag){case 5:G$||Q$(n,t);case 6:var r=cH,i=uH;cH=null,dH(e,t,n),uH=i,null!==(cH=r)&&(uH?(e=cH,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cH.removeChild(n.stateNode));break;case 18:null!==cH&&(uH?(e=cH,n=n.stateNode,8===e.nodeType?sz(e.parentNode,n):1===e.nodeType&&sz(e,n),HP(e)):sz(cH,n.stateNode));break;case 4:r=cH,i=uH,cH=n.stateNode.containerInfo,uH=!0,dH(e,t,n),cH=r,uH=i;break;case 0:case 11:case 14:case 15:if(!G$&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&J$(n,t,a),i=i.next}while(i!==r)}dH(e,t,n);break;case 1:if(!G$&&(Q$(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){SV(n,t,e)}dH(e,t,n);break;case 21:dH(e,t,n);break;case 22:1&n.mode?(G$=(r=G$)||null!==n.memoizedState,dH(e,t,n),G$=r):dH(e,t,n);break;default:dH(e,t,n)}}function hH(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new X$),t.forEach((function(t){var r=_V.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function pH(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:cH=s.stateNode,uH=!1;break e;case 3:case 4:cH=s.stateNode.containerInfo,uH=!0;break e}s=s.return}if(null===cH)throw Error(aN(160));fH(o,a,i),cH=null,uH=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){SV(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mH(t,e),t=t.sibling}function mH(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pH(t,e),gH(e),4&r){try{tH(3,e,e.return),nH(3,e)}catch(t){SV(e,e.return,t)}try{tH(5,e,e.return)}catch(t){SV(e,e.return,t)}}break;case 1:pH(t,e),gH(e),512&r&&null!==n&&Q$(n,n.return);break;case 5:if(pH(t,e),gH(e),512&r&&null!==n&&Q$(n,n.return),32&e.flags){var i=e.stateNode;try{fA(i,"")}catch(t){SV(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&QN(i,o),bA(s,a);var c=bA(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?gA(i,d):"dangerouslySetInnerHTML"===u?dA(i,d):"children"===u?fA(i,d):xN(i,u,d,c)}switch(s){case"input":JN(i,o);break;case"textarea":aA(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?rA(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?rA(i,!!o.multiple,o.defaultValue,!0):rA(i,!!o.multiple,o.multiple?[]:"",!1))}i[fz]=o}catch(t){SV(e,e.return,t)}}break;case 6:if(pH(t,e),gH(e),4&r){if(null===e.stateNode)throw Error(aN(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){SV(e,e.return,t)}}break;case 3:if(pH(t,e),gH(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{HP(t.containerInfo)}catch(t){SV(e,e.return,t)}break;case 4:default:pH(t,e),gH(e);break;case 13:pH(t,e),gH(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(jH=ZA())),4&r&&hH(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(G$=(c=G$)||u,pH(t,e),G$=c):pH(t,e),gH(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(Z$=e,u=e.child;null!==u;){for(d=Z$=u;null!==Z$;){switch(h=(f=Z$).child,f.tag){case 0:case 11:case 14:case 15:tH(4,f,f.return);break;case 1:Q$(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){SV(r,n,e)}}break;case 5:Q$(f,f.return);break;case 22:if(null!==f.memoizedState){xH(d);continue}}null!==h?(h.return=f,Z$=h):xH(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=mA("display",a))}catch(t){SV(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){SV(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:pH(t,e),gH(e),4&r&&hH(e);case 21:}}function gH(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(oH(n)){var r=n;break e}n=n.return}throw Error(aN(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fA(i,""),r.flags&=-33),lH(e,aH(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;sH(e,aH(e),o);break;default:throw Error(aN(161))}}catch(t){SV(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yH(e,t,n){Z$=e,vH(e)}function vH(e,t,n){for(var r=0!=(1&e.mode);null!==Z$;){var i=Z$,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||K$;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||G$;s=K$;var c=G$;if(K$=a,(G$=l)&&!c)for(Z$=i;null!==Z$;)l=(a=Z$).child,22===a.tag&&null!==a.memoizedState?wH(i):null!==l?(l.return=a,Z$=l):wH(i);for(;null!==o;)Z$=o,vH(o),o=o.sibling;Z$=i,K$=s,G$=c}bH(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Z$=o):bH(e)}}function bH(e){for(;null!==Z$;){var t=Z$;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:G$||nH(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!G$)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mF(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&LF(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}LF(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&HP(d)}}}break;default:throw Error(aN(163))}G$||512&t.flags&&rH(t)}catch(e){SV(t,t.return,e)}}if(t===e){Z$=null;break}if(null!==(n=t.sibling)){n.return=t.return,Z$=n;break}Z$=t.return}}function xH(e){for(;null!==Z$;){var t=Z$;if(t===e){Z$=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Z$=n;break}Z$=t.return}}function wH(e){for(;null!==Z$;){var t=Z$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nH(4,t)}catch(e){SV(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){SV(t,i,e)}}var o=t.return;try{rH(t)}catch(e){SV(t,o,e)}break;case 5:var a=t.return;try{rH(t)}catch(e){SV(t,a,e)}}}catch(e){SV(t,t.return,e)}if(t===e){Z$=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Z$=s;break}Z$=t.return}}var kH,SH=Math.ceil,CH=wN.ReactCurrentDispatcher,MH=wN.ReactCurrentOwner,EH=wN.ReactCurrentBatchConfig,_H=0,DH=null,qH=null,TH=0,RH=0,OH=Sz(0),NH=0,AH=null,PH=0,IH=0,LH=0,zH=null,FH=null,jH=0,$H=1/0,HH=null,VH=!1,BH=null,WH=null,UH=!1,YH=null,KH=0,GH=0,XH=null,ZH=-1,QH=0;function JH(){return 0!=(6&_H)?ZA():-1!==ZH?ZH:ZH=ZA()}function eV(e){return 0==(1&e.mode)?1:0!=(2&_H)&&0!==TH?TH&-TH:null!==pF.transition?(0===QH&&(QH=mP()),QH):0!==(e=bP)?e:e=void 0===(e=window.event)?16:XP(e.type)}function tV(e,t,n,r){if(50<GH)throw GH=0,XH=null,Error(aN(185));yP(e,n,r),0!=(2&_H)&&e===DH||(e===DH&&(0==(2&_H)&&(IH|=n),4===NH&&aV(e,TH)),nV(e,r),1===n&&0===_H&&0==(1&t.mode)&&($H=ZA()+500,zz&&$z()))}function nV(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-aP(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=hP(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=fP(e,e===DH?TH:0);if(0===r)null!==n&&KA(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&KA(n),1===t)0===e.tag?function(e){zz=!0,jz(e)}(sV.bind(null,e)):jz(sV.bind(null,e)),oz((function(){0==(6&_H)&&$z()})),n=null;else{switch(xP(r)){case 1:n=JA;break;case 4:n=eP;break;case 16:default:n=tP;break;case 536870912:n=rP}n=DV(n,rV.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rV(e,t){if(ZH=-1,QH=0,0!=(6&_H))throw Error(aN(327));var n=e.callbackNode;if(wV()&&e.callbackNode!==n)return null;var r=fP(e,e===DH?TH:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=mV(e,r);else{t=r;var i=_H;_H|=2;var o=hV();for(DH===e&&TH===t||(HH=null,$H=ZA()+500,dV(e,t));;)try{yV();break}catch(t){fV(e,t)}xF(),CH.current=o,_H=i,null!==qH?t=0:(DH=null,TH=0,t=NH)}if(0!==t){if(2===t&&(0!==(i=pP(e))&&(r=i,t=iV(e,i))),1===t)throw n=AH,dV(e,0),aV(e,r),nV(e,ZA()),n;if(6===t)aV(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!aL(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=mV(e,r))&&(0!==(o=pP(e))&&(r=o,t=iV(e,o))),1===t))throw n=AH,dV(e,0),aV(e,r),nV(e,ZA()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(aN(345));case 2:case 5:xV(e,FH,HH);break;case 3:if(aV(e,r),(130023424&r)===r&&10<(t=jH+500-ZA())){if(0!==fP(e,0))break;if(((i=e.suspendedLanes)&r)!==r){JH(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=nz(xV.bind(null,e,FH,HH),t);break}xV(e,FH,HH);break;case 4:if(aV(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-aP(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=ZA()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*SH(r/1960))-r)){e.timeoutHandle=nz(xV.bind(null,e,FH,HH),r);break}xV(e,FH,HH);break;default:throw Error(aN(329))}}}return nV(e,ZA()),e.callbackNode===n?rV.bind(null,e):null}function iV(e,t){var n=zH;return e.current.memoizedState.isDehydrated&&(dV(e,t).flags|=256),2!==(e=mV(e,t))&&(t=FH,FH=n,null!==t&&oV(t)),e}function oV(e){null===FH?FH=e:FH.push.apply(FH,e)}function aV(e,t){for(t&=~LH,t&=~IH,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-aP(t),r=1<<n;e[n]=-1,t&=~r}}function sV(e){if(0!=(6&_H))throw Error(aN(327));wV();var t=fP(e,0);if(0==(1&t))return nV(e,ZA()),null;var n=mV(e,t);if(0!==e.tag&&2===n){var r=pP(e);0!==r&&(t=r,n=iV(e,r))}if(1===n)throw n=AH,dV(e,0),aV(e,t),nV(e,ZA()),n;if(6===n)throw Error(aN(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xV(e,FH,HH),nV(e,ZA()),null}function lV(e,t){var n=_H;_H|=1;try{return e(t)}finally{0===(_H=n)&&($H=ZA()+500,zz&&$z())}}function cV(e){null!==YH&&0===YH.tag&&0==(6&_H)&&wV();var t=_H;_H|=1;var n=EH.transition,r=bP;try{if(EH.transition=null,bP=1,e)return e()}finally{bP=r,EH.transition=n,0==(6&(_H=t))&&$z()}}function uV(){RH=OH.current,Cz(OH)}function dV(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rz(n)),null!==qH)for(n=qH.return;null!==n;){var r=n;switch(eF(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oz();break;case 3:rj(),Cz(Dz),Cz(_z),cj();break;case 5:oj(r);break;case 4:rj();break;case 13:case 19:Cz(aj);break;case 10:wF(r.type._context);break;case 22:case 23:uV()}n=n.return}if(DH=e,qH=e=OV(e.current,null),TH=RH=t,NH=0,AH=null,LH=IH=PH=0,FH=zH=null,null!==MF){for(t=0;t<MF.length;t++)if(null!==(r=(n=MF[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}MF=null}return e}function fV(e,t){for(;;){var n=qH;try{if(xF(),uj.current=i$,gj){for(var r=hj.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}gj=!1}if(fj=0,mj=pj=hj=null,yj=!1,vj=0,MH.current=null,null===n||null===n.return){NH=1,AH=t,qH=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=TH,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=m$(a);if(null!==h){h.flags&=-257,g$(h,a,s,0,t),1&h.mode&&p$(o,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(0==(1&t)){p$(o,c,t),pV();break e}l=Error(aN(426))}else if(rF&&1&s.mode){var g=m$(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),g$(g,a,s,0,t),hF(l$(l,s));break e}}o=l=l$(l,s),4!==NH&&(NH=2),null===zH?zH=[o]:zH.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,PF(o,f$(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(0==(128&o.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===WH||!WH.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,PF(o,h$(o,s,t));break e}}o=o.return}while(null!==o)}bV(n)}catch(e){t=e,qH===n&&null!==n&&(qH=n=n.return);continue}break}}function hV(){var e=CH.current;return CH.current=i$,null===e?i$:e}function pV(){0!==NH&&3!==NH&&2!==NH||(NH=4),null===DH||0==(268435455&PH)&&0==(268435455&IH)||aV(DH,TH)}function mV(e,t){var n=_H;_H|=2;var r=hV();for(DH===e&&TH===t||(HH=null,dV(e,t));;)try{gV();break}catch(t){fV(e,t)}if(xF(),_H=n,CH.current=r,null!==qH)throw Error(aN(261));return DH=null,TH=0,NH}function gV(){for(;null!==qH;)vV(qH)}function yV(){for(;null!==qH&&!GA();)vV(qH)}function vV(e){var t=kH(e.alternate,e,RH);e.memoizedProps=e.pendingProps,null===t?bV(e):qH=t,MH.current=null}function bV(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=U$(n,t,RH)))return void(qH=n)}else{if(null!==(n=Y$(n,t)))return n.flags&=32767,void(qH=n);if(null===e)return NH=6,void(qH=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(qH=t);qH=t=e}while(null!==t);0===NH&&(NH=5)}function xV(e,t,n){var r=bP,i=EH.transition;try{EH.transition=null,bP=1,function(e,t,n,r){do{wV()}while(null!==YH);if(0!=(6&_H))throw Error(aN(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(aN(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-aP(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===DH&&(qH=DH=null,TH=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||UH||(UH=!0,DV(tP,(function(){return wV(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=EH.transition,EH.transition=null;var a=bP;bP=1;var s=_H;_H|=4,MH.current=null,function(e,t){if(JL=BP,fL(e=dL())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ez={focusedElem:e,selectionRange:n},BP=!1,Z$=t;null!==Z$;)if(e=(t=Z$).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Z$=e;else for(;null!==Z$;){t=Z$;try{var p=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:mF(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(aN(163))}}catch(e){SV(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Z$=e;break}Z$=t.return}p=eH,eH=!1}(e,n),mH(n,e),hL(ez),BP=!!JL,ez=JL=null,e.current=n,yH(n),XA(),_H=s,bP=a,EH.transition=o}else e.current=n;if(UH&&(UH=!1,YH=e,KH=i),o=e.pendingLanes,0===o&&(WH=null),function(e){if(oP&&"function"==typeof oP.onCommitFiberRoot)try{oP.onCommitFiberRoot(iP,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),nV(e,ZA()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(VH)throw VH=!1,e=BH,BH=null,e;0!=(1&KH)&&0!==e.tag&&wV(),o=e.pendingLanes,0!=(1&o)?e===XH?GH++:(GH=0,XH=e):GH=0,$z()}(e,t,n,r)}finally{EH.transition=i,bP=r}return null}function wV(){if(null!==YH){var e=xP(KH),t=EH.transition,n=bP;try{if(EH.transition=null,bP=16>e?16:e,null===YH)var r=!1;else{if(e=YH,YH=null,KH=0,0!=(6&_H))throw Error(aN(331));var i=_H;for(_H|=4,Z$=e.current;null!==Z$;){var o=Z$,a=o.child;if(0!=(16&Z$.flags)){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Z$=c;null!==Z$;){var u=Z$;switch(u.tag){case 0:case 11:case 15:tH(8,u,o)}var d=u.child;if(null!==d)d.return=u,Z$=d;else for(;null!==Z$;){var f=(u=Z$).sibling,h=u.return;if(iH(u),u===c){Z$=null;break}if(null!==f){f.return=h,Z$=f;break}Z$=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Z$=o}}if(0!=(2064&o.subtreeFlags)&&null!==a)a.return=o,Z$=a;else e:for(;null!==Z$;){if(0!=(2048&(o=Z$).flags))switch(o.tag){case 0:case 11:case 15:tH(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Z$=y;break e}Z$=o.return}}var v=e.current;for(Z$=v;null!==Z$;){var b=(a=Z$).child;if(0!=(2064&a.subtreeFlags)&&null!==b)b.return=a,Z$=b;else e:for(a=v;null!==Z$;){if(0!=(2048&(s=Z$).flags))try{switch(s.tag){case 0:case 11:case 15:nH(9,s)}}catch(e){SV(s,s.return,e)}if(s===a){Z$=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Z$=x;break e}Z$=s.return}}if(_H=i,$z(),oP&&"function"==typeof oP.onPostCommitFiberRoot)try{oP.onPostCommitFiberRoot(iP,e)}catch(e){}r=!0}return r}finally{bP=n,EH.transition=t}}return!1}function kV(e,t,n){e=NF(e,t=f$(0,t=l$(n,t),1),1),t=JH(),null!==e&&(yP(e,1,t),nV(e,t))}function SV(e,t,n){if(3===e.tag)kV(e,e,n);else for(;null!==t;){if(3===t.tag){kV(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===WH||!WH.has(r))){t=NF(t,e=h$(t,e=l$(n,e),1),1),e=JH(),null!==t&&(yP(t,1,e),nV(t,e));break}}t=t.return}}function CV(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=JH(),e.pingedLanes|=e.suspendedLanes&n,DH===e&&(TH&n)===n&&(4===NH||3===NH&&(130023424&TH)===TH&&500>ZA()-jH?dV(e,0):LH|=n),nV(e,t)}function MV(e,t){0===t&&(0==(1&e.mode)?t=1:(t=uP,0==(130023424&(uP<<=1))&&(uP=4194304)));var n=JH();null!==(e=DF(e,t))&&(yP(e,t,n),nV(e,n))}function EV(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),MV(e,n)}function _V(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(aN(314))}null!==r&&r.delete(t),MV(e,n)}function DV(e,t){return YA(e,t)}function qV(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function TV(e,t,n,r){return new qV(e,t,n,r)}function RV(e){return!(!(e=e.prototype)||!e.isReactComponent)}function OV(e,t){var n=e.alternate;return null===n?((n=TV(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function NV(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)RV(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case CN:return AV(n.children,i,o,t);case MN:a=8,i|=8;break;case EN:return(e=TV(12,n,t,2|i)).elementType=EN,e.lanes=o,e;case TN:return(e=TV(13,n,t,i)).elementType=TN,e.lanes=o,e;case RN:return(e=TV(19,n,t,i)).elementType=RN,e.lanes=o,e;case AN:return PV(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _N:a=10;break e;case DN:a=9;break e;case qN:a=11;break e;case ON:a=14;break e;case NN:a=16,r=null;break e}throw Error(aN(130,null==e?e:typeof e,""))}return(t=TV(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function AV(e,t,n,r){return(e=TV(7,e,r,t)).lanes=n,e}function PV(e,t,n,r){return(e=TV(22,e,r,t)).elementType=AN,e.lanes=n,e.stateNode={isHidden:!1},e}function IV(e,t,n){return(e=TV(6,e,null,t)).lanes=n,e}function LV(e,t,n){return(t=TV(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zV(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gP(0),this.expirationTimes=gP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gP(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function FV(e,t,n,r,i,o,a,s,l){return e=new zV(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=TV(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},TF(o),e}function jV(e){if(!e)return Ez;e:{if(HA(e=e._reactInternals)!==e||1!==e.tag)throw Error(aN(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Rz(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(aN(171))}if(1===e.tag){var n=e.type;if(Rz(n))return Az(e,n,t)}return t}function $V(e,t,n,r,i,o,a,s,l){return(e=FV(n,r,!0,e,0,o,0,s,l)).context=jV(null),n=e.current,(o=OF(r=JH(),i=eV(n))).callback=null!=t?t:null,NF(n,o,i),e.current.lanes=i,yP(e,i,r),nV(e,r),e}function HV(e,t,n,r){var i=t.current,o=JH(),a=eV(i);return n=jV(n),null===t.context?t.context=n:t.pendingContext=n,(t=OF(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=NF(i,t,a))&&(tV(e,i,a,o),AF(e,i,a)),a}function VV(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function BV(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function WV(e,t){BV(e,t),(e=e.alternate)&&BV(e,t)}kH=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Dz.current)v$=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return v$=!1,function(e,t,n){switch(t.tag){case 3:D$(t),fF();break;case 5:ij(t);break;case 1:Rz(t.type)&&Pz(t);break;case 4:nj(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Mz(gF,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Mz(aj,1&aj.current),t.flags|=128,null):0!=(n&t.child.childLanes)?I$(e,t,n):(Mz(aj,1&aj.current),null!==(e=V$(e,t,n))?e.sibling:null);Mz(aj,1&aj.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return $$(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mz(aj,aj.current),r)break;return null;case 22:case 23:return t.lanes=0,S$(e,t,n)}return V$(e,t,n)}(e,t,n);v$=0!=(131072&e.flags)}else v$=!1,rF&&0!=(1048576&t.flags)&&Qz(t,Wz,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;H$(e,t),e=t.pendingProps;var i=Tz(t,_z.current);SF(t,n),i=kj(null,t,r,e,i,n);var o=Sj();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rz(r)?(o=!0,Pz(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,TF(t),i.updater=jF,t.stateNode=i,i._reactInternals=t,BF(t,r,e,n),t=_$(null,t,r,!0,o,n)):(t.tag=0,rF&&o&&Jz(t),b$(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(H$(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return RV(e)?1:0;if(null!=e){if((e=e.$$typeof)===qN)return 11;if(e===ON)return 14}return 2}(r),e=mF(r,e),i){case 0:t=M$(null,t,r,e,n);break e;case 1:t=E$(null,t,r,e,n);break e;case 11:t=x$(null,t,r,e,n);break e;case 14:t=w$(null,t,r,mF(r.type,e),n);break e}throw Error(aN(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,M$(e,t,r,i=t.elementType===r?i:mF(r,i),n);case 1:return r=t.type,i=t.pendingProps,E$(e,t,r,i=t.elementType===r?i:mF(r,i),n);case 3:e:{if(D$(t),null===e)throw Error(aN(387));r=t.pendingProps,i=(o=t.memoizedState).element,RF(e,t),IF(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=q$(e,t,r,n,i=l$(Error(aN(423)),t));break e}if(r!==i){t=q$(e,t,r,n,i=l$(Error(aN(424)),t));break e}for(nF=lz(t.stateNode.containerInfo.firstChild),tF=t,rF=!0,iF=null,n=XF(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fF(),r===i){t=V$(e,t,n);break e}b$(e,t,r,n)}t=t.child}return t;case 5:return ij(t),null===e&&lF(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,tz(r,i)?a=null:null!==o&&tz(r,o)&&(t.flags|=32),C$(e,t),b$(e,t,a,n),t.child;case 6:return null===e&&lF(t),null;case 13:return I$(e,t,n);case 4:return nj(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=GF(t,null,r,n):b$(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,x$(e,t,r,i=t.elementType===r?i:mF(r,i),n);case 7:return b$(e,t,t.pendingProps,n),t.child;case 8:case 12:return b$(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Mz(gF,r._currentValue),r._currentValue=a,null!==o)if(aL(o.value,a)){if(o.children===i.children&&!Dz.current){t=V$(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=OF(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),kF(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(aN(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),kF(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}b$(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,SF(t,n),r=r(i=CF(i)),t.flags|=1,b$(e,t,r,n),t.child;case 14:return i=mF(r=t.type,t.pendingProps),w$(e,t,r,i=mF(r.type,i),n);case 15:return k$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mF(r,i),H$(e,t),t.tag=1,Rz(r)?(e=!0,Pz(t)):e=!1,SF(t,n),HF(t,r,i),BF(t,r,i,n),_$(null,t,r,!0,e,n);case 19:return $$(e,t,n);case 22:return S$(e,t,n)}throw Error(aN(156,t.tag))};var UV="function"==typeof reportError?reportError:function(e){console.error(e)};function YV(e){this._internalRoot=e}function KV(e){this._internalRoot=e}function GV(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function XV(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ZV(){}function QV(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=VV(a);s.call(e)}}HV(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=VV(a);o.call(e)}}var a=$V(t,r,e,0,null,!1,0,"",ZV);return e._reactRootContainer=a,e[hz]=a.current,$L(8===e.nodeType?e.parentNode:e),cV(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=VV(l);s.call(e)}}var l=FV(e,0,!1,null,0,!1,0,"",ZV);return e._reactRootContainer=l,e[hz]=l.current,$L(8===e.nodeType?e.parentNode:e),cV((function(){HV(t,l,n,r)})),l}(n,t,e,i,r);return VV(a)}KV.prototype.render=YV.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(aN(409));HV(e,t,null,null)},KV.prototype.unmount=YV.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cV((function(){HV(null,e,null,null)})),t[hz]=null}},KV.prototype.unstable_scheduleHydration=function(e){if(e){var t=CP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<NP.length&&0!==t&&t<NP[n].priority;n++);NP.splice(n,0,e),0===n&&LP(e)}},wP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dP(t.pendingLanes);0!==n&&(vP(t,1|n),nV(t,ZA()),0==(6&_H)&&($H=ZA()+500,$z()))}break;case 13:cV((function(){var t=DF(e,1);if(null!==t){var n=JH();tV(t,e,1,n)}})),WV(e,1)}},kP=function(e){if(13===e.tag){var t=DF(e,134217728);if(null!==t)tV(t,e,134217728,JH());WV(e,134217728)}},SP=function(e){if(13===e.tag){var t=eV(e),n=DF(e,t);if(null!==n)tV(n,e,t,JH());WV(e,t)}},CP=function(){return bP},MP=function(e,t){var n=bP;try{return bP=e,t()}finally{bP=n}},kA=function(e,t,n){switch(t){case"input":if(JN(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xz(r);if(!i)throw Error(aN(90));KN(r),JN(r,i)}}}break;case"textarea":aA(e,n);break;case"select":null!=(t=n.value)&&rA(e,!!n.multiple,t,!1)}},DA=lV,qA=cV;var JV={usingClientEntryPoint:!1,Events:[vz,bz,xz,EA,_A,lV]},eB={findFiberByHostInstance:yz,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},tB={bundleType:eB.bundleType,version:eB.version,rendererPackageName:eB.rendererPackageName,rendererConfig:eB.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wN.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=WA(e))?null:e.stateNode},findFiberByHostInstance:eB.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nB=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nB.isDisabled&&nB.supportsFiber)try{iP=nB.inject(tB),oP=nB}catch(jQ){}}eN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JV,eN.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!GV(t))throw Error(aN(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:SN,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},eN.createRoot=function(e,t){if(!GV(e))throw Error(aN(299));var n=!1,r="",i=UV;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=FV(e,1,!1,null,0,n,0,r,i),e[hz]=t.current,$L(8===e.nodeType?e.parentNode:e),new YV(t)},eN.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(aN(188));throw e=Object.keys(e).join(","),Error(aN(268,e))}return e=null===(e=WA(t))?null:e.stateNode},eN.flushSync=function(e){return cV(e)},eN.hydrate=function(e,t,n){if(!XV(t))throw Error(aN(200));return QV(null,e,t,!0,n)},eN.hydrateRoot=function(e,t,n){if(!GV(e))throw Error(aN(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=UV;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=$V(t,null,e,1,null!=n?n:null,i,0,o,a),e[hz]=t.current,$L(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new KV(t)},eN.render=function(e,t,n){if(!XV(t))throw Error(aN(200));return QV(null,e,t,!1,n)},eN.unmountComponentAtNode=function(e){if(!XV(e))throw Error(aN(40));return!!e._reactRootContainer&&(cV((function(){QV(null,null,e,!1,(function(){e._reactRootContainer=null,e[hz]=null}))})),!0)},eN.unstable_batchedUpdates=lV,eN.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!XV(n))throw Error(aN(200));if(null==e||void 0===e._reactInternals)throw Error(aN(38));return QV(e,t,n,!1,r)},eN.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),JO.exports=eN;var rB=JO.exports,iB=r(rB),oB=!0,aB=!1,sB=null,lB={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function cB(e){e.metaKey||e.altKey||e.ctrlKey||(oB=!0)}function uB(){oB=!1}function dB(){"hidden"===this.visibilityState&&aB&&(oB=!0)}function fB(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return oB||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!lB[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function hB(){aB=!0,window.clearTimeout(sB),sB=window.setTimeout((function(){aB=!1}),100)}function pB(){var e=E_.useCallback((function(e){var t,n=rB.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",cB,!0),t.addEventListener("mousedown",uB,!0),t.addEventListener("pointerdown",uB,!0),t.addEventListener("touchstart",uB,!0),t.addEventListener("visibilitychange",dB,!0))}),[]);return{isFocusVisible:fB,onBlurVisible:hB,ref:e}}var mB=!1,gB=__.createContext(null),yB="unmounted",vB="exited",bB="entering",xB="entered",wB="exiting",kB=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=vB,r.appearStatus=bB):i=xB:i=t.unmountOnExit||t.mountOnEnter?yB:vB,r.state={status:i},r.nextCallback=null,r}nq(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yB?{status:vB}: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!==bB&&n!==xB&&(t=bB):n!==bB&&n!==xB||(t=wB)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.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===bB){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:iB.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vB&&this.setState({status:yB})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[iB.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||mB?this.safeSetState({status:xB},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:bB},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:xB},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:iB.findDOMNode(this);t&&!mB?(this.props.onExit(r),this.safeSetState({status:wB},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:vB},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:vB},(function(){e.props.onExited(r)}))},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(r){n&&(n=!1,t.nextCallback=null,e(r))},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:iB.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===yB)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 r=xD(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return __.createElement(gB.Provider,{value:null},"function"==typeof n?n(e,r):__.cloneElement(__.Children.only(n),r))},t}(__.Component);function SB(){}kB.contextType=gB,kB.propTypes={},kB.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:SB,onEntering:SB,onEntered:SB,onExit:SB,onExiting:SB,onExited:SB},kB.UNMOUNTED=yB,kB.EXITED=vB,kB.ENTERING=bB,kB.ENTERED=xB,kB.EXITING=wB;var CB=kB;function MB(e,t){var n=Object.create(null);return e&&E_.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&E_.isValidElement(e)?t(e):e}(e)})),n}function EB(e,t,n){return null!=n[t]?n[t]:e.props[t]}function _B(e,t,n){var r=MB(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(E_.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=E_.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&E_.isValidElement(c)&&(i[o]=E_.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:EB(a,"exit",e),enter:EB(a,"enter",e)})):i[o]=E_.cloneElement(a,{in:!1}):i[o]=E_.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:EB(a,"exit",e),enter:EB(a,"enter",e)})}})),i}var DB=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},qB=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(rq(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}nq(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,MB(n.children,(function(e){return E_.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:EB(e,"appear",n),enter:EB(e,"enter",n),exit:EB(e,"exit",n)})}))):_B(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=MB(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=lD({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=xD(e,["component","childFactory"]),i=this.state.contextValue,o=DB(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?__.createElement(gB.Provider,{value:i},o):__.createElement(gB.Provider,{value:i},__.createElement(t,r,o))},t}(__.Component);qB.propTypes={},qB.defaultProps={component:"div",childFactory:function(e){return e}};var TB=qB;function RB(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var OB=E_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=wD(e,["classes","className","component","square","elevation","variant"]);return E_.createElement(o,lD({className:UO(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),NB=HO((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),lD({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(OB),AB="undefined"==typeof window?E_.useEffect:E_.useLayoutEffect;function PB(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=E_.useState(!1),f=d[0],h=d[1],p=UO(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=UO(t.child,f&&t.childLeaving,r&&t.childPulsate),y=ZO(c);return AB((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),E_.createElement("span",{className:p,style:m},E_.createElement("span",{className:g}))}var IB=E_.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=wD(e,["center","classes","className"]),s=E_.useState([]),l=s[0],c=s[1],u=E_.useRef(0),d=E_.useRef(null);E_.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=E_.useRef(!1),h=E_.useRef(null),p=E_.useRef(null),m=E_.useRef(null);E_.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=E_.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(zD(e),[E_.createElement(PB,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=E_.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,k=x.clientY;u=Math.round(w-b.left),d=Math.round(k-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var S=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(S,2)+Math.pow(C,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=E_.useCallback((function(){y({},{pulsate:!0})}),[y]),b=E_.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return E_.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),E_.createElement("span",lD({className:UO(i.root,o),ref:m},a),E_.createElement(TB,{component:null,exit:!0},l))})),LB=HO((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(E_.memo(IB)),zB=E_.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,k=e.onFocus,S=e.onFocusVisible,C=e.onKeyDown,M=e.onKeyUp,E=e.onMouseDown,_=e.onMouseLeave,D=e.onMouseUp,q=e.onTouchEnd,T=e.onTouchMove,R=e.onTouchStart,O=e.onDragLeave,N=e.tabIndex,A=void 0===N?0:N,P=e.TouchRippleProps,I=e.type,L=void 0===I?"button":I,z=wD(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=E_.useRef(null);var j=E_.useRef(null),$=E_.useState(!1),H=$[0],V=$[1];f&&H&&V(!1);var B=pB(),W=B.isFocusVisible,U=B.onBlurVisible,Y=B.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return ZO((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}E_.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),E_.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",E),X=K("stop",O),Z=K("stop",D),Q=K("stop",(function(e){H&&e.preventDefault(),_&&_(e)})),J=K("start",R),ee=K("stop",q),te=K("stop",T),ne=K("stop",(function(e){H&&(U(e),V(!1)),x&&x(e)}),!1),re=ZO((function(e){F.current||(F.current=e.currentTarget),W(e)&&(V(!0),S&&S(e)),k&&k(e)})),ie=function(){var e=rB.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=E_.useRef(!1),ae=ZO((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=ZO((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),M&&M(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=L,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=QO(r,t),de=QO(Y,F),fe=QO(ue,de),he=E_.useState(!1),pe=he[0],me=he[1];E_.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return E_.createElement(le,lD({className:UO(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Q,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:J,ref:fe,tabIndex:f?-1:A},ce,z),a,ge?E_.createElement(LB,lD({ref:j,center:o},P)):null)})),FB=HO({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(zB),jB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},$B=E_.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?jB:b,w=wD(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=l||(g?"p":x[v]||jB[v])||"span";return E_.createElement(k,lD({className:UO(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(VO(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(VO(r))],"initial"!==u&&i["display".concat(VO(u))]),ref:t},w))})),HB=HO((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})($B),VB=E_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,k=e.type,S=void 0===k?"button":k,C=e.variant,M=void 0===C?"text":C,E=wD(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),_=w&&E_.createElement("span",{className:UO(r.startIcon,r["iconSize".concat(VO(x))])},w),D=m&&E_.createElement("span",{className:UO(r.endIcon,r["iconSize".concat(VO(x))])},m);return E_.createElement(FB,lD({className:UO(r.root,r[M],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(M).concat(VO(a))],"medium"!==x&&[r["".concat(M,"Size").concat(VO(x))],r["size".concat(VO(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:UO(r.focusVisible,g),ref:t,type:S},E),E_.createElement("span",{className:r.label},_,n,D))})),BB=HO((function(e){return{root:lD({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:bD(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:bD(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:bD(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(bD(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:bD(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(bD(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:bD(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(VB);var WB="undefined"!=typeof window?E_.useLayoutEffect:E_.useEffect,UB=E_.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=E_.useState(null),l=s[0],c=s[1],u=QO(E_.isValidElement(n)?n.ref:null,t);return WB((function(){o||c(function(e){return e="function"==typeof e?e():e,rB.findDOMNode(e)}(r)||document.body)}),[r,o]),WB((function(){if(l&&!o)return GO(t,l),function(){GO(t,null)}}),[t,l,o]),WB((function(){a&&(l||o)&&a()}),[a,l,o]),o?E_.isValidElement(n)?E_.cloneElement(n,{ref:u}):n:l?rB.createPortal(n,l):l})),YB=UB;function KB(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function GB(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function XB(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(zD(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&KB(e,r)}))}function ZB(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function QB(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=YO(e);return t.body===e?KO(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(GB(o)+a,"px"),n=YO(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(GB(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var JB=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return eq(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&KB(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);XB(t,e.mountNode,e.modalRef,r,!0);var i=ZB(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=ZB(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=QB(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=ZB(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&KB(e.modalRef,!0),XB(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&KB(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function eW(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=E_.useRef(),f=E_.useRef(null),h=E_.useRef(null),p=E_.useRef(),m=E_.useRef(null),g=E_.useCallback((function(e){m.current=rB.findDOMNode(e)}),[]),y=QO(t.ref,g),v=E_.useRef();return E_.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),E_.useEffect((function(){if(u){var e=YO(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),E_.createElement(E_.Fragment,null,E_.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),E_.cloneElement(t,{ref:y}),E_.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var tW={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},nW=E_.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=wD(e,["invisible","open"]);return i?E_.createElement("div",lD({"aria-hidden":!0,ref:t},o,{style:lD({},tW.root,r?tW.invisible:{},o.style)})):null}));var rW=new JB,iW=E_.forwardRef((function(e,t){var n=HR(),r=XD({name:"MuiModal",props:lD({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?nW:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,k=void 0!==w&&w,S=r.disableScrollLock,C=void 0!==S&&S,M=r.hideBackdrop,E=void 0!==M&&M,_=r.keepMounted,D=void 0!==_&&_,q=r.manager,T=void 0===q?rW:q,R=r.onBackdropClick,O=r.onClose,N=r.onEscapeKeyDown,A=r.onRendered,P=r.open,I=wD(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=E_.useState(!0),z=L[0],F=L[1],j=E_.useRef({}),$=E_.useRef(null),H=E_.useRef(null),V=QO(H,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return YO($.current)},U=function(){return j.current.modalRef=H.current,j.current.mountNode=$.current,j.current},Y=function(){T.mount(U(),{disableScrollLock:C}),H.current.scrollTop=0},K=ZO((function(){var e=function(e){return e="function"==typeof e?e():e,rB.findDOMNode(e)}(u)||W().body;T.add(U(),e),H.current&&Y()})),G=E_.useCallback((function(){return T.isTopModal(U())}),[T]),X=ZO((function(e){$.current=e,e&&(A&&A(),P&&G()?Y():KB(H.current,!0))})),Z=E_.useCallback((function(){T.remove(U())}),[T]);if(E_.useEffect((function(){return function(){Z()}}),[Z]),E_.useEffect((function(){P?K():B&&c||Z()}),[P,Z,B,c,K]),!D&&!P&&(!B||z))return null;var Q=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:WD}),J={};return void 0===s.props.tabIndex&&(J.tabIndex=s.props.tabIndex||"-1"),B&&(J.onEnter=BO((function(){F(!1)}),s.props.onEnter),J.onExited=BO((function(){F(!0),c&&Z()}),s.props.onExited)),E_.createElement(YB,{ref:X,container:u,disablePortal:x},E_.createElement("div",lD({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(N&&N(e),v||(e.stopPropagation(),O&&O(e,"escapeKeyDown")))},role:"presentation"},I,{style:lD({},Q.root,!P&&z?Q.hidden:{},I.style)}),E?null:E_.createElement(o,lD({open:P,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!p&&O&&O(e,"backdropClick"))}},a)),E_.createElement(eW,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:k,getDoc:W,isEnabled:G,open:P},E_.cloneElement(s,J))))})),oW=iW,aW=E_.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=wD(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return E_.createElement(s,lD({className:UO(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),sW=HO((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:bD(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(aW);function lW(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var cW={entering:{opacity:1,transform:lW(1)},entered:{opacity:1,transform:"none"}},uW=E_.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?CB:m,y=wD(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=E_.useRef(),b=E_.useRef(),x=HR()||jO,w=x.unstable_strictMode&&!i,k=E_.useRef(null),S=QO(n.ref,t),C=QO(w?k:void 0,S),M=function(e){return function(t,n){if(e){var r=FD(w?[k.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},E=M(l),_=M((function(e,t){!function(e){e.scrollTop}(e);var n,r=RB({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),D=M(s),q=M(d),T=M((function(e){var t,n=RB({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=lW(.75),c&&c(e)})),R=M(u);return E_.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),E_.createElement(g,lD({appear:!0,in:o,nodeRef:w?k:void 0,onEnter:_,onEntered:D,onEntering:E,onExit:T,onExited:R,onExiting:q,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return E_.cloneElement(n,lD({style:lD({opacity:0,transform:lW(.75),visibility:"exited"!==e||o?void 0:"hidden"},cW[e],f,n.props.style),ref:C},t))}))}));uW.muiSupportAuto=!0;var dW=uW,fW=E_.createContext({}),hW=E_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=wD(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=E_.useMemo((function(){return{dense:l}}),[l]);return E_.createElement(fW.Provider,{value:h},E_.createElement(a,lD({className:UO(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),pW=HO({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(hW),mW="undefined"==typeof window?E_.useEffect:E_.useLayoutEffect,gW=E_.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=wD(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,k=void 0!==w&&w,S=e.divider,C=void 0!==S&&S,M=e.focusVisibleClassName,E=e.selected,_=void 0!==E&&E,D=wD(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),q=E_.useContext(fW),T={dense:v||q.dense||!1,alignItems:r},R=E_.useRef(null);mW((function(){o&&R.current&&R.current.focus()}),[o]);var O,N,A=E_.Children.toArray(l),P=A.length&&(O=A[A.length-1],N=["ListItemSecondaryAction"],E_.isValidElement(O)&&-1!==N.indexOf(O.type.muiName)),I=E_.useCallback((function(e){R.current=rB.findDOMNode(e)}),[]),L=QO(I,t),z=lD({className:UO(c.root,u,T.dense&&c.dense,!k&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,P&&c.secondaryAction,_&&c.selected),disabled:x},D),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=UO(c.focusVisible,M),F=FB),P?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),E_.createElement(fW.Provider,{value:T},E_.createElement(h,lD({className:UO(c.container,m),ref:L},g),E_.createElement(F,z,A),A.pop()))):E_.createElement(fW.Provider,{value:T},E_.createElement(F,lD({ref:L},z),A))})),yW=HO((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(gW),vW=E_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=wD(e,["classes","className"]),o=E_.useContext(fW);return E_.createElement("div",lD({className:UO(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),bW=HO((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(vW),xW=E_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=wD(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=E_.useContext(fW).dense,m=null!=c?c:n;null==m||m.type===HB||a||(m=E_.createElement(HB,lD({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===HB||a||(g=E_.createElement(HB,lD({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),E_.createElement("div",lD({className:UO(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),wW=HO({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(xW);function kW(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function SW(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function CW(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function MW(e){return"function"==typeof e?e():e}var EW=E_.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,k=e.onExited,S=e.onExiting,C=e.open,M=e.PaperProps,E=void 0===M?{}:M,_=e.transformOrigin,D=void 0===_?{vertical:"top",horizontal:"left"}:_,q=e.TransitionComponent,T=void 0===q?dW:q,R=e.transitionDuration,O=void 0===R?"auto":R,N=e.TransitionProps,A=void 0===N?{}:N,P=wD(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),I=E_.useRef(),L=E_.useCallback((function(e){if("anchorPosition"===l)return a;var t=MW(r),n=(t&&1===t.nodeType?t:YO(I.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+kW(n,i),left:n.left+SW(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=E_.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=E_.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:kW(e,D.vertical)+t,horizontal:SW(e,D.horizontal)}}),[D.horizontal,D.vertical]),j=E_.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:CW(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=KO(MW(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:CW(i)}}),[r,l,L,z,F,y]),$=E_.useCallback((function(){var e=I.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=E_.useCallback((function(e){I.current=rB.findDOMNode(e)}),[]);E_.useEffect((function(){C&&$()})),E_.useImperativeHandle(n,(function(){return C?{updatePosition:function(){$()}}:null}),[C,$]),E_.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,$]);var V=O;"auto"!==O||T.muiSupportAuto||(V=void 0);var B=f||(r?YO(MW(r)).body:void 0);return E_.createElement(oW,lD({container:B,open:C,ref:t,BackdropProps:{invisible:!0},className:UO(u.root,d)},P),E_.createElement(T,lD({appear:!0,in:C,onEnter:v,onEntered:b,onExit:w,onExited:k,onExiting:S,timeout:V},A,{onEntering:BO((function(e,t){x&&x(e,t),$()}),A.onEntering)}),E_.createElement(NB,lD({elevation:p,ref:H},E,{className:UO(u.paper,E.className)}),c)))})),_W=HO({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(EW);function DW(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function qW({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:DW(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return __.createElement("i",{style:i},__.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},__.createElement("path",{d:e})))}const TW=$O(yW)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),RW={menuItem:"alternative-menu-item"},OW=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>ZR((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return __.createElement(yW,G_({className:`${i.root} ${n}`},r))},NW=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${RW.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function AW({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a,isCyclicFFEnabled:s}){const l=Jg.detectTextDirection(e);return!s?__.createElement(TW,{role:"menuitem",button:!0,onClick:n,className:RW.menuItem,onKeyDown:NW,autoFocus:t},__.createElement(bW,{style:{minWidth:32}},__.createElement(qW,{d:t?N_.d:""})),__.createElement(wW,{primaryTypographyProps:{dir:l}},e)):__.createElement(OW,{nested:r,role:"menuitem",button:!0,onClick:n,className:RW.menuItem,onKeyDown:NW,dir:a,autoFocus:t},__.createElement(wW,{primary:e,primaryTypographyProps:{dir:l,...o&&{style:{fontWeight:600}}}}),__.createElement(bW,{style:{minWidth:16}},__.createElement(qW,{d:t?N_.d:""})),i&&__.createElement(bW,{style:{minWidth:16}},__.createElement(qW,{d:i.d})))}AW.propTypes={title:J_.string.isRequired,selected:J_.bool,onClick:J_.func.isRequired,nested:J_.bool,icon:J_.shape({d:J_.string.isRequired}),bold:J_.bool,dir:J_.string.isRequired,isCyclicFFEnabled:J_.bool.isRequired},AW.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},OW.propTypes={nested:J_.bool,className:J_.string},OW.defaultProps={nested:!1,className:RW.menuItem};const PW={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function IW({alignTo:e,currentId:t,dir:n,dock:r,list:i,onClose:o,show:a,instruction:s,isCyclicFFEnabled:l}){const c=l,u=i.map(((e,r)=>{var a;return __.createElement(__.Fragment,{key:e.id},__.createElement(AW,{icon:e.icon,title:e.title,bold:e.groupItem,selected:e.selected,onClick:()=>{e.onSelect&&e.onSelect(t),o(e.id)},dir:n,isCyclicFFEnabled:l}),(null===(a=e.children)||void 0===a?void 0:a.length)>0&&__.createElement(pW,{dense:!0,dir:n,component:"div",disablePadding:!0},e.children.map((t=>__.createElement(AW,{key:t.id,nested:!0,title:t.title,selected:t.selected,onClick:()=>{t.onSelect(),o(e.id)},dir:n,isCyclicFFEnabled:l})))),r<i.length-1&&c&&__.createElement(sW,{key:`divider-${e.id}`}))}));return __.createElement(_W,G_({anchorEl:e,open:a,onClose:o},PW[r],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),__.createElement(pW,{dense:!0,disablePadding:!0,dir:n,"aria-label":s,component:"nav"},u))}IW.propTypes={alignTo:J_.any,currentId:J_.string.isRequired,dir:J_.string.isRequired,dock:J_.string.isRequired,list:J_.array,onClose:J_.func.isRequired,show:J_.bool.isRequired,instruction:J_.string.isRequired,isCyclicFFEnabled:J_.bool.isRequired},IW.defaultProps={list:[],alignTo:null};const LW="title-button",zW="active-title-button",FW=$O((({children:e,...t})=>__.createElement(BB,G_({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),jW=$O(BB)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class $W extends __.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=__.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${LW}`);t&&t.classList.add(zW)}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${LW}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${zW}`);e&&(e.classList.remove(zW),setTimeout((()=>{e.focus()}),50))}}render(){const{titleData:e,popover:t,translator:n,disabled:r,isDimension:i,padding:o,minWidth:a,hasAlternative:s,supportConditional:l,showGroupDimOptions:c}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},d=e.breadcrumbs.length,f=r||Boolean(!e.drillUp)||this.state.inSelection,h=e.breadcrumbs.map(((t,n)=>__.createElement(FW,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:e.drillUp(d-n),title:t},__.createElement("span",{style:u},t),__.createElement(qW,G_({},P_,{size:"small",style:{margin:"0 8px"}}))))),p=l||c?this.state.hasPopoverOptions:s,m=t&&!this.state.open?this.openPopover:this.closePopover,g=!t||r||this.state.inSelection,y={display:"flex",alignItems:"center",width:"100%",color:g&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&g&&"none",...o?{padding:o}:{paddingTop:0,paddingBottom:0},...a&&{minWidth:a}};this.state.open&&(y.background="rgba(0,0,0,0.08)");const v=()=>{this.setState({disableCyclicButton:!0})},b=Jg.detectTextDirection(e.text),x=__.createElement(FW,{"aria-label":n.get(`Accessibility.${t&&p?"Alternative":"Normal"}.Instructions`,[e.text]),style:y,onClick:g?void 0:m,title:e.text,tabIndex:g?-1:0,onFocus:g?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:g?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${LW} ${e.id}`,"data-id":e.id},e.locked&&__.createElement(qW,G_({},O_,{size:"small",title:n.get("Tooltip.selections.locked")})),__.createElement("span",{style:u,dir:b},e.text),t&&p&&__.createElement(qW,G_({},A_,{size:"small",style:{margin:"0 8px"}})));return __.createElement(__.Fragment,null,e.icon&&e.icon.onClick&&__.createElement(jW,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:r?void 0:()=>e.icon.onClick({onError:v})},__.createElement(qW,G_({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip)}))),e.icon&&!e.icon.onClick&&__.createElement(qW,G_({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip),style:{margin:"0 4px 0 0"}})),h,__.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:p?"auto":"none",height:"100%"}},x),t&&p&&__.createElement(IW,{dock:t.dock,dir:t.dir,currentId:e.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:n.get("Accessibility.Popover.Instructions"),isCyclicFFEnabled:this.props.isCyclicFFEnabled}))}}function HW(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function VW(e){function t(e){return!e.isDimension&&Kg.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1,isEnabled:g},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(y,this.rect),x=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,w=x&&x[a?"qDimensions":"qMeasures"]||[],k=r||i[a?"qDimensionInfo":"qMeasureInfo"],S=a?W_:Y_,C=a?U_:K_,M=Boolean(l&&l.colorSupport&&l.modifiers),E=M&&((_=this.settings.settings).isDimension&&Kg.getValue(_,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var _;const D=g("PS_21223_CYCLIC_GROUPS"),q=k.map(((t,r)=>{const i="number"==typeof t.explicitColumn?t.explicitColumn:r,o=C(t,i,l,e),g=r===k.length-1,v=D&&Boolean(e)&&a&&"N"!==t.qGrouping,b=M||v?S({column:i,activeInfo:t,altList:w,app:e,dir:d?"rtl":"ltr",dock:HW(y),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:M,isCyclicFFEnabled:D}):void 0;return __.createElement(__.Fragment,{key:t.cId},__.createElement($W,{showGroupDimOptions:v,popover:b,titleData:o,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:E,supportConditional:m,isCyclicFFEnabled:D}),!g&&__.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return __.createElement("div",{style:b,dir:v},q)}}}$W.propTypes={disabled:J_.bool.isRequired,padding:J_.string,minWidth:J_.string,titleData:J_.shape({breadcrumbs:J_.arrayOf(J_.string).isRequired,icon:J_.shape({path:J_.shape({d:J_.string.isRequired}),tooltip:J_.string.isRequired,onClick:J_.func}),index:J_.number.isRequired,locked:J_.bool.isRequired,text:J_.string.isRequired,popoverText:J_.string.isRequired,drillUp:J_.func,id:J_.string.isRequired}).isRequired,popover:J_.shape({dir:J_.string.isRequired,dock:J_.string.isRequired,getPopoverOptions:J_.func.isRequired}),translator:J_.shape({get:J_.func.isRequired}).isRequired,selections:J_.shape({isActive:J_.func,addListener:J_.func,removeListener:J_.func}),style:J_.shape({fontSize:J_.string,color:J_.string,fontFamily:J_.string}).isRequired,isDimension:J_.bool.isRequired,hasAlternative:J_.bool.isRequired,supportConditional:J_.bool.isRequired,isCyclicFFEnabled:J_.bool.isRequired,showGroupDimOptions:J_.bool.isRequired},$W.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const BW=UD({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const WW=GD({productionPrefix:"q9a32",disableGlobal:!0,seed:""});function UW(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",iB.render(function(e,t){return __.createElement(YR,{generateClassName:t},__.createElement(zO,{theme:BW},e))}(e,WW),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&iB.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(iB.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}var YW={black:"#000",white:"#fff"};var KW={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var GW={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var XW={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var ZW={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var QW={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var JW={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var eU={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function tU(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var nU=Object.freeze({__proto__:null,default:tU}),rU="$$material";function iU(){return iU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iU.apply(this,arguments)}function oU(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function aU(){return aU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aU.apply(this,arguments)}function sU(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var lU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cU=sU((function(e){return lU.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var uU=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),dU="-ms-",fU="-moz-",hU="-webkit-",pU="comm",mU="rule",gU="decl",yU="@keyframes",vU=Math.abs,bU=String.fromCharCode,xU=Object.assign;function wU(e){return e.trim()}function kU(e,t,n){return e.replace(t,n)}function SU(e,t){return e.indexOf(t)}function CU(e,t){return 0|e.charCodeAt(t)}function MU(e,t,n){return e.slice(t,n)}function EU(e){return e.length}function _U(e){return e.length}function DU(e,t){return t.push(e),e}var qU=1,TU=1,RU=0,OU=0,NU=0,AU="";function PU(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:qU,column:TU,length:a,return:""}}function IU(e,t){return xU(PU("",null,null,"",null,null,0),e,{length:-e.length},t)}function LU(){return NU=OU>0?CU(AU,--OU):0,TU--,10===NU&&(TU=1,qU--),NU}function zU(){return NU=OU<RU?CU(AU,OU++):0,TU++,10===NU&&(TU=1,qU++),NU}function FU(){return CU(AU,OU)}function jU(){return OU}function $U(e,t){return MU(AU,e,t)}function HU(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function VU(e){return qU=TU=1,RU=EU(AU=e),OU=0,[]}function BU(e){return AU="",e}function WU(e){return wU($U(OU-1,KU(91===e?e+2:40===e?e+1:e)))}function UU(e){for(;(NU=FU())&&NU<33;)zU();return HU(e)>2||HU(NU)>3?"":" "}function YU(e,t){for(;--t&&zU()&&!(NU<48||NU>102||NU>57&&NU<65||NU>70&&NU<97););return $U(e,jU()+(t<6&&32==FU()&&32==zU()))}function KU(e){for(;zU();)switch(NU){case e:return OU;case 34:case 39:34!==e&&39!==e&&KU(NU);break;case 40:41===e&&KU(e);break;case 92:zU()}return OU}function GU(e,t){for(;zU()&&e+NU!==57&&(e+NU!==84||47!==FU()););return"/*"+$U(t,OU-1)+"*"+bU(47===e?e:zU())}function XU(e){for(;!HU(FU());)zU();return $U(e,OU)}function ZU(e){return BU(QU("",null,null,null,[""],e=VU(e),0,[0],e))}function QU(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,k=r,S=b;g;)switch(p=v,v=zU()){case 40:if(108!=p&&58==CU(S,d-1)){-1!=SU(S+=kU(WU(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=WU(v);break;case 9:case 10:case 13:case 32:S+=UU(p);break;case 92:S+=YU(jU()-1,7);continue;case 47:switch(FU()){case 42:case 47:DU(eY(GU(zU(),jU()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=EU(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(S=kU(S,/\f/g,"")),h>0&&EU(S)-d&&DU(h>32?tY(S+";",r,n,d-1):tY(kU(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(DU(k=JU(S,t,n,c,u,i,s,b,x=[],w=[],d),o),123===v)if(0===u)QU(S,t,k,k,x,o,d,s,w);else switch(99===f&&110===CU(S,3)?100:f){case 100:case 108:case 109:case 115:QU(e,k,k,r&&DU(JU(e,k,k,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:QU(S,k,k,k,[""],w,0,s,w)}}c=u=h=0,m=y=1,b=S="",d=a;break;case 58:d=1+EU(S),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==LU())continue;switch(S+=bU(v),v*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(EU(S)-1)*y,y=1;break;case 64:45===FU()&&(S+=WU(zU())),f=FU(),u=d=EU(b=S+=XU(jU())),v++;break;case 45:45===p&&2==EU(S)&&(m=0)}}return o}function JU(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=_U(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=MU(e,d+1,d=vU(m=a[p])),b=e;y<h;++y)(b=wU(m>0?f[y]+" "+v:kU(v,/&\f/g,f[y])))&&(l[g++]=b);return PU(e,t,n,0===i?mU:s,l,c,u)}function eY(e,t,n){return PU(e,t,n,pU,bU(NU),MU(e,2,-2),0)}function tY(e,t,n,r){return PU(e,t,n,gU,MU(e,0,r),MU(e,r+1,-1),r)}function nY(e,t){for(var n="",r=_U(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function rY(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case gU:return e.return=e.return||e.value;case pU:return"";case yU:return e.return=e.value+"{"+nY(e.children,r)+"}";case mU:e.value=e.props.join(",")}return EU(n=nY(e.children,r))?e.return=e.value+"{"+n+"}":""}function iY(e){var t=_U(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var oY=function(e,t,n){for(var r=0,i=0;r=i,i=FU(),38===r&&12===i&&(t[n]=1),!HU(i);)zU();return $U(e,OU)},aY=function(e,t){return BU(function(e,t){var n=-1,r=44;do{switch(HU(r)){case 0:38===r&&12===FU()&&(t[n]=1),e[n]+=oY(OU-1,t,n);break;case 2:e[n]+=WU(r);break;case 4:if(44===r){e[++n]=58===FU()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=bU(r)}}while(r=zU());return e}(VU(e),t))},sY=new WeakMap,lY=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||sY.get(n))&&!r){sY.set(e,!0);for(var i=[],o=aY(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},cY=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function uY(e,t){switch(function(e,t){return 45^CU(e,0)?(((t<<2^CU(e,0))<<2^CU(e,1))<<2^CU(e,2))<<2^CU(e,3):0}(e,t)){case 5103:return hU+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return hU+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return hU+e+fU+e+dU+e+e;case 6828:case 4268:return hU+e+dU+e+e;case 6165:return hU+e+dU+"flex-"+e+e;case 5187:return hU+e+kU(e,/(\w+).+(:[^]+)/,hU+"box-$1$2"+dU+"flex-$1$2")+e;case 5443:return hU+e+dU+"flex-item-"+kU(e,/flex-|-self/,"")+e;case 4675:return hU+e+dU+"flex-line-pack"+kU(e,/align-content|flex-|-self/,"")+e;case 5548:return hU+e+dU+kU(e,"shrink","negative")+e;case 5292:return hU+e+dU+kU(e,"basis","preferred-size")+e;case 6060:return hU+"box-"+kU(e,"-grow","")+hU+e+dU+kU(e,"grow","positive")+e;case 4554:return hU+kU(e,/([^-])(transform)/g,"$1"+hU+"$2")+e;case 6187:return kU(kU(kU(e,/(zoom-|grab)/,hU+"$1"),/(image-set)/,hU+"$1"),e,"")+e;case 5495:case 3959:return kU(e,/(image-set\([^]*)/,hU+"$1$`$1");case 4968:return kU(kU(e,/(.+:)(flex-)?(.*)/,hU+"box-pack:$3"+dU+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+hU+e+e;case 4095:case 3583:case 4068:case 2532:return kU(e,/(.+)-inline(.+)/,hU+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(EU(e)-1-t>6)switch(CU(e,t+1)){case 109:if(45!==CU(e,t+4))break;case 102:return kU(e,/(.+:)(.+)-([^]+)/,"$1"+hU+"$2-$3$1"+fU+(108==CU(e,t+3)?"$3":"$2-$3"))+e;case 115:return~SU(e,"stretch")?uY(kU(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==CU(e,t+1))break;case 6444:switch(CU(e,EU(e)-3-(~SU(e,"!important")&&10))){case 107:return kU(e,":",":"+hU)+e;case 101:return kU(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hU+(45===CU(e,14)?"inline-":"")+"box$3$1"+hU+"$2$3$1"+dU+"$2box$3")+e}break;case 5936:switch(CU(e,t+11)){case 114:return hU+e+dU+kU(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hU+e+dU+kU(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hU+e+dU+kU(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hU+e+dU+e+e}return e}var dY="undefined"!=typeof document,fY=dY?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return sU((function(){var e={};return function(t){return e[t]}}))})),hY=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case gU:e.return=uY(e.value,e.length);break;case yU:return nY([IU(e,{value:kU(e.value,"@","@"+hU)})],r);case mU:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return nY([IU(e,{props:[kU(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return nY([IU(e,{props:[kU(t,/:(plac\w+)/,":"+hU+"input-$1")]}),IU(e,{props:[kU(t,/:(plac\w+)/,":-moz-$1")]}),IU(e,{props:[kU(t,/:(plac\w+)/,dU+"input-$1")]})],r)}return""}))}}],pY=function(e){var t=e.key;if(dY&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||hY,a={},s=[];dY&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,c=[lY,cY];if(dY){var u,d=[rY,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=iY(c.concat(o,d));i=function(e,t,n,r){u=n,function(e){nY(ZU(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var h=[rY],p=iY(c.concat(o,h)),m=fY(o)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return nY(ZU(e),p)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new uU({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},mY="undefined"!=typeof document;var gY=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===mY&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},yY=function(e,t,n){gY(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);mY||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!mY&&0!==i.length)return i}};var vY={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bY=/[A-Z]|^ms/g,xY=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wY=function(e){return 45===e.charCodeAt(1)},kY=function(e){return null!=e&&"boolean"!=typeof e},SY=sU((function(e){return wY(e)?e:e.replace(bY,"-$&").toLowerCase()})),CY=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(xY,(function(e,t,n){return EY={name:t,styles:n,next:EY},t}))}return 1===vY[e]||wY(e)||"number"!=typeof t||0===t?t:t+"px"};function MY(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return EY={name:n.name,styles:n.styles,next:EY},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)EY={name:r.name,styles:r.styles,next:EY},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=MY(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":kY(a)&&(r+=SY(o)+":"+CY(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=MY(e,t,a);switch(o){case"animation":case"animationName":r+=SY(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)kY(a[l])&&(r+=SY(o)+":"+CY(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=EY,o=n(e);return EY=i,MY(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var EY,_Y=/label:\s*([^\s;\n{]+)\s*(;|$)/g,DY=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";EY=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=MY(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=MY(n,t,e[a]),r&&(i+=o[a]);_Y.lastIndex=0;for(var s,l="";null!==(s=_Y.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:EY}},qY="undefined"!=typeof document,TY=function(e){return e()},RY=!!D_.useInsertionEffect&&D_.useInsertionEffect,OY=qY&&RY||TY,NY=RY||E_.useLayoutEffect,AY="undefined"!=typeof document,PY=E_.createContext("undefined"!=typeof HTMLElement?pY({key:"css"}):null),IY=PY.Provider,LY=function(e){return E_.forwardRef((function(t,n){var r=E_.useContext(PY);return e(t,r,n)}))};AY||(LY=function(e){return function(t){var n=E_.useContext(PY);return null===n?(n=pY({key:"css"}),E_.createElement(PY.Provider,{value:n},e(t,n))):e(t,n)}});var zY=E_.createContext({}),FY=LY((function(e,t){var n=e.styles,r=DY([n],void 0,E_.useContext(zY));if(!AY){for(var i,o=r.name,a=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,a+=s.styles,s=s.next;var l=!0===t.compat,c=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:E_.createElement("style",((i={})["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:c},i.nonce=t.sheet.nonce,i))}var u=E_.useRef();return NY((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),u.current=[n,i],function(){n.flush()}}),[t]),NY((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&yY(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function jY(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return DY(t)}var $Y=function(){var e=jY.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},HY=cU,VY=function(e){return"theme"!==e},BY=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?HY:VY},WY=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},UY="undefined"!=typeof document,YY=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;gY(t,n,r);var i=OY((function(){return yY(t,n,r)}));if(!UY&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return E_.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},KY=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=WY(t,n,o),l=s||BY(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],u[0][h])}var p=LY((function(e,t,n){var r,o,u,f,h=c&&e.as||a,p="",m=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=E_.useContext(zY)}"string"==typeof e.className?(r=t.registered,o=m,u=e.className,f="",u.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):f+=e+" "})),p=f):null!=e.className&&(p=e.className+" ");var v=DY(d.concat(m),t.registered,g);p+=t.key+"-"+v.name,void 0!==i&&(p+=" "+i);var b=c&&void 0===s?BY(h):l,x={};for(var w in e)c&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=p,x.ref=n,E_.createElement(E_.Fragment,null,E_.createElement(YY,{cache:t,serialized:v,isStringTag:"string"==typeof h}),E_.createElement(h,x))}));return p.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(t,r){return e(t,aU({},n,r,{shouldForwardProp:WY(p,r,!0)})).apply(void 0,d)},p}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){KY[e]=KY(e)}));var GY={exports:{}},XY={},ZY=E_,QY=Symbol.for("react.element"),JY=Symbol.for("react.fragment"),eK=Object.prototype.hasOwnProperty,tK=ZY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nK={key:!0,ref:!0,__self:!0,__source:!0};function rK(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)eK.call(t,r)&&!nK.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:QY,type:e,key:o,ref:a,props:i,_owner:tK.current}}XY.Fragment=JY,XY.jsx=rK,XY.jsxs=rK,GY.exports=XY;var iK=GY.exports;let oK;"object"==typeof document&&(oK=pY({key:"css",prepend:!0}));var aK=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return iK.jsx(FY,{styles:r})}
|
|
42
|
+
*/function aN(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sN=new Set,lN={};function cN(e,t){uN(e,t),uN(e+"Capture",t)}function uN(e,t){for(lN[e]=t,e=0;e<t.length;e++)sN.add(t[e])}var dN=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),fN=Object.prototype.hasOwnProperty,hN=/^[: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]*$/,pN={},mN={};function gN(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var yN={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){yN[e]=new gN(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];yN[t]=new gN(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){yN[e]=new gN(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){yN[e]=new gN(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){yN[e]=new gN(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){yN[e]=new gN(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){yN[e]=new gN(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){yN[e]=new gN(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){yN[e]=new gN(e,5,!1,e.toLowerCase(),null,!1,!1)}));var vN=/[\-:]([a-z])/g;function bN(e){return e[1].toUpperCase()}function xN(e,t,n,r){var i=yN.hasOwnProperty(t)?yN[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!fN.call(mN,e)||!fN.call(pN,e)&&(hN.test(e)?mN[e]=!0:(pN[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(vN,bN);yN[t]=new gN(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(vN,bN);yN[t]=new gN(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(vN,bN);yN[t]=new gN(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){yN[e]=new gN(e,1,!1,e.toLowerCase(),null,!1,!1)})),yN.xlinkHref=new gN("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){yN[e]=new gN(e,1,!1,e.toLowerCase(),null,!0,!0)}));var wN=iN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,kN=Symbol.for("react.element"),SN=Symbol.for("react.portal"),CN=Symbol.for("react.fragment"),MN=Symbol.for("react.strict_mode"),EN=Symbol.for("react.profiler"),_N=Symbol.for("react.provider"),DN=Symbol.for("react.context"),qN=Symbol.for("react.forward_ref"),TN=Symbol.for("react.suspense"),RN=Symbol.for("react.suspense_list"),ON=Symbol.for("react.memo"),NN=Symbol.for("react.lazy"),AN=Symbol.for("react.offscreen"),PN=Symbol.iterator;function IN(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=PN&&e[PN]||e["@@iterator"])?e:null}var LN,zN=Object.assign;function FN(e){if(void 0===LN)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);LN=t&&t[1]||""}return"\n"+LN+e}var jN=!1;function $N(e,t){if(!e||jN)return"";jN=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{jN=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?FN(e):""}function HN(e){switch(e.tag){case 5:return FN(e.type);case 16:return FN("Lazy");case 13:return FN("Suspense");case 19:return FN("SuspenseList");case 0:case 2:case 15:return e=$N(e.type,!1);case 11:return e=$N(e.type.render,!1);case 1:return e=$N(e.type,!0);default:return""}}function VN(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case CN:return"Fragment";case SN:return"Portal";case EN:return"Profiler";case MN:return"StrictMode";case TN:return"Suspense";case RN:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case DN:return(e.displayName||"Context")+".Consumer";case _N:return(e._context.displayName||"Context")+".Provider";case qN:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ON:return null!==(t=e.displayName||null)?t:VN(e.type)||"Memo";case NN:t=e._payload,e=e._init;try{return VN(e(t))}catch(e){}}return null}function BN(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return VN(t);case 8:return t===MN?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function WN(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function UN(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function YN(e){e._valueTracker||(e._valueTracker=function(e){var t=UN(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function KN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=UN(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function GN(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function XN(e,t){var n=t.checked;return zN({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ZN(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=WN(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function QN(e,t){null!=(t=t.checked)&&xN(e,"checked",t,!1)}function JN(e,t){QN(e,t);var n=WN(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?tA(e,t.type,n):t.hasOwnProperty("defaultValue")&&tA(e,t.type,WN(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function eA(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function tA(e,t,n){"number"===t&&GN(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nA=Array.isArray;function rA(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+WN(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function iA(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(aN(91));return zN({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oA(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(aN(92));if(nA(n)){if(1<n.length)throw Error(aN(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:WN(n)}}function aA(e,t){var n=WN(t.value),r=WN(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function sA(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function lA(e){switch(e){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"}}function cA(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?lA(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var uA,dA=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((uA=uA||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=uA.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function fA(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var hA={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pA=["Webkit","ms","Moz","O"];function mA(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||hA.hasOwnProperty(e)&&hA[e]?(""+t).trim():t+"px"}function gA(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=mA(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(hA).forEach((function(e){pA.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hA[t]=hA[e]}))}));var yA=zN({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vA(e,t){if(t){if(yA[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(aN(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(aN(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(aN(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(aN(62))}}function bA(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xA=null;function wA(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var kA=null,SA=null,CA=null;function MA(e){if(e=vz(e)){if("function"!=typeof kA)throw Error(aN(280));var t=e.stateNode;t&&(t=xz(t),kA(e.stateNode,e.type,t))}}function EA(e){SA?CA?CA.push(e):CA=[e]:SA=e}function _A(){if(SA){var e=SA,t=CA;if(CA=SA=null,MA(e),t)for(e=0;e<t.length;e++)MA(t[e])}}function DA(e,t){return e(t)}function qA(){}var TA=!1;function RA(e,t,n){if(TA)return e(t,n);TA=!0;try{return DA(e,t,n)}finally{TA=!1,(null!==SA||null!==CA)&&(qA(),_A())}}function OA(e,t){var n=e.stateNode;if(null===n)return null;var r=xz(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(aN(231,t,typeof n));return n}var NA=!1;if(dN)try{var AA={};Object.defineProperty(AA,"passive",{get:function(){NA=!0}}),window.addEventListener("test",AA,AA),window.removeEventListener("test",AA,AA)}catch(FQ){NA=!1}function PA(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var IA=!1,LA=null,zA=!1,FA=null,jA={onError:function(e){IA=!0,LA=e}};function $A(e,t,n,r,i,o,a,s,l){IA=!1,LA=null,PA.apply(jA,arguments)}function HA(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function VA(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function BA(e){if(HA(e)!==e)throw Error(aN(188))}function WA(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=HA(e)))throw Error(aN(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return BA(i),e;if(o===r)return BA(i),t;o=o.sibling}throw Error(aN(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(aN(189))}}if(n.alternate!==r)throw Error(aN(190))}if(3!==n.tag)throw Error(aN(188));return n.stateNode.current===n?e:t}(e),null!==e?UA(e):null}function UA(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=UA(e);if(null!==t)return t;e=e.sibling}return null}var YA=oN.unstable_scheduleCallback,KA=oN.unstable_cancelCallback,GA=oN.unstable_shouldYield,XA=oN.unstable_requestPaint,ZA=oN.unstable_now,QA=oN.unstable_getCurrentPriorityLevel,JA=oN.unstable_ImmediatePriority,eP=oN.unstable_UserBlockingPriority,tP=oN.unstable_NormalPriority,nP=oN.unstable_LowPriority,rP=oN.unstable_IdlePriority,iP=null,oP=null;var aP=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(sP(e)/lP|0)|0},sP=Math.log,lP=Math.LN2;var cP=64,uP=4194304;function dP(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fP(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dP(s):0!==(o&=a)&&(r=dP(o))}else 0!==(a=n&~i)?r=dP(a):0!==o&&(r=dP(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-aP(t)),r|=e[n],t&=~i;return r}function hP(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pP(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mP(){var e=cP;return 0==(4194240&(cP<<=1))&&(cP=64),e}function gP(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yP(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-aP(t)]=n}function vP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-aP(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bP=0;function xP(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wP,kP,SP,CP,MP,EP=!1,_P=[],DP=null,qP=null,TP=null,RP=new Map,OP=new Map,NP=[],AP="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(" ");function PP(e,t){switch(e){case"focusin":case"focusout":DP=null;break;case"dragenter":case"dragleave":qP=null;break;case"mouseover":case"mouseout":TP=null;break;case"pointerover":case"pointerout":RP.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":OP.delete(t.pointerId)}}function IP(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=vz(t))&&kP(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function LP(e){var t=yz(e.target);if(null!==t){var n=HA(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=VA(n)))return e.blockedOn=t,void MP(e.priority,(function(){SP(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zP(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=GP(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=vz(n))&&kP(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xA=r,n.target.dispatchEvent(r),xA=null,t.shift()}return!0}function FP(e,t,n){zP(e)&&n.delete(t)}function jP(){EP=!1,null!==DP&&zP(DP)&&(DP=null),null!==qP&&zP(qP)&&(qP=null),null!==TP&&zP(TP)&&(TP=null),RP.forEach(FP),OP.forEach(FP)}function $P(e,t){e.blockedOn===t&&(e.blockedOn=null,EP||(EP=!0,oN.unstable_scheduleCallback(oN.unstable_NormalPriority,jP)))}function HP(e){function t(t){return $P(t,e)}if(0<_P.length){$P(_P[0],e);for(var n=1;n<_P.length;n++){var r=_P[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==DP&&$P(DP,e),null!==qP&&$P(qP,e),null!==TP&&$P(TP,e),RP.forEach(t),OP.forEach(t),n=0;n<NP.length;n++)(r=NP[n]).blockedOn===e&&(r.blockedOn=null);for(;0<NP.length&&null===(n=NP[0]).blockedOn;)LP(n),null===n.blockedOn&&NP.shift()}var VP=wN.ReactCurrentBatchConfig,BP=!0;function WP(e,t,n,r){var i=bP,o=VP.transition;VP.transition=null;try{bP=1,YP(e,t,n,r)}finally{bP=i,VP.transition=o}}function UP(e,t,n,r){var i=bP,o=VP.transition;VP.transition=null;try{bP=4,YP(e,t,n,r)}finally{bP=i,VP.transition=o}}function YP(e,t,n,r){if(BP){var i=GP(e,t,n,r);if(null===i)VL(e,t,r,KP,n),PP(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return DP=IP(DP,e,t,n,r,i),!0;case"dragenter":return qP=IP(qP,e,t,n,r,i),!0;case"mouseover":return TP=IP(TP,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return RP.set(o,IP(RP.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,OP.set(o,IP(OP.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(PP(e,r),4&t&&-1<AP.indexOf(e)){for(;null!==i;){var o=vz(i);if(null!==o&&wP(o),null===(o=GP(e,t,n,r))&&VL(e,t,r,KP,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else VL(e,t,r,null,n)}}var KP=null;function GP(e,t,n,r){if(KP=null,null!==(e=yz(e=wA(r))))if(null===(t=HA(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=VA(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return KP=e,null}function XP(e){switch(e){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;case"message":switch(QA()){case JA:return 1;case eP:return 4;case tP:case nP:return 16;case rP:return 536870912;default:return 16}default:return 16}}var ZP=null,QP=null,JP=null;function eI(){if(JP)return JP;var e,t,n=QP,r=n.length,i="value"in ZP?ZP.value:ZP.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return JP=i.slice(e,1<t?1-t:void 0)}function tI(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nI(){return!0}function rI(){return!1}function iI(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nI:rI,this.isPropagationStopped=rI,this}return zN(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nI)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nI)},persist:function(){},isPersistent:nI}),t}var oI,aI,sI,lI={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cI=iI(lI),uI=zN({},lI,{view:0,detail:0}),dI=iI(uI),fI=zN({},uI,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:CI,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sI&&(sI&&"mousemove"===e.type?(oI=e.screenX-sI.screenX,aI=e.screenY-sI.screenY):aI=oI=0,sI=e),oI)},movementY:function(e){return"movementY"in e?e.movementY:aI}}),hI=iI(fI),pI=iI(zN({},fI,{dataTransfer:0})),mI=iI(zN({},uI,{relatedTarget:0})),gI=iI(zN({},lI,{animationName:0,elapsedTime:0,pseudoElement:0})),yI=zN({},lI,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vI=iI(yI),bI=iI(zN({},lI,{data:0})),xI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kI[e])&&!!t[e]}function CI(){return SI}var MI=zN({},uI,{key:function(e){if(e.key){var t=xI[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tI(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:CI,charCode:function(e){return"keypress"===e.type?tI(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tI(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),EI=iI(MI),_I=iI(zN({},fI,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),DI=iI(zN({},uI,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:CI})),qI=iI(zN({},lI,{propertyName:0,elapsedTime:0,pseudoElement:0})),TI=zN({},fI,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),RI=iI(TI),OI=[9,13,27,32],NI=dN&&"CompositionEvent"in window,AI=null;dN&&"documentMode"in document&&(AI=document.documentMode);var PI=dN&&"TextEvent"in window&&!AI,II=dN&&(!NI||AI&&8<AI&&11>=AI),LI=String.fromCharCode(32),zI=!1;function FI(e,t){switch(e){case"keyup":return-1!==OI.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jI(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $I=!1;var HI={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 VI(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!HI[e.type]:"textarea"===t}function BI(e,t,n,r){EA(r),0<(t=WL(t,"onChange")).length&&(n=new cI("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var WI=null,UI=null;function YI(e){LL(e,0)}function KI(e){if(KN(bz(e)))return e}function GI(e,t){if("change"===e)return t}var XI=!1;if(dN){var ZI;if(dN){var QI="oninput"in document;if(!QI){var JI=document.createElement("div");JI.setAttribute("oninput","return;"),QI="function"==typeof JI.oninput}ZI=QI}else ZI=!1;XI=ZI&&(!document.documentMode||9<document.documentMode)}function eL(){WI&&(WI.detachEvent("onpropertychange",tL),UI=WI=null)}function tL(e){if("value"===e.propertyName&&KI(UI)){var t=[];BI(t,UI,e,wA(e)),RA(YI,t)}}function nL(e,t,n){"focusin"===e?(eL(),UI=n,(WI=t).attachEvent("onpropertychange",tL)):"focusout"===e&&eL()}function rL(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return KI(UI)}function iL(e,t){if("click"===e)return KI(t)}function oL(e,t){if("input"===e||"change"===e)return KI(t)}var aL="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sL(e,t){if(aL(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!fN.call(t,i)||!aL(e[i],t[i]))return!1}return!0}function lL(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cL(e,t){var n,r=lL(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lL(r)}}function uL(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?uL(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dL(){for(var e=window,t=GN();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=GN((e=t.contentWindow).document)}return t}function fL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hL(e){var t=dL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&uL(n.ownerDocument.documentElement,n)){if(null!==r&&fL(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cL(n,o);var a=cL(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pL=dN&&"documentMode"in document&&11>=document.documentMode,mL=null,gL=null,yL=null,vL=!1;function bL(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vL||null==mL||mL!==GN(r)||("selectionStart"in(r=mL)&&fL(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yL&&sL(yL,r)||(yL=r,0<(r=WL(gL,"onSelect")).length&&(t=new cI("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mL)))}function xL(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wL={animationend:xL("Animation","AnimationEnd"),animationiteration:xL("Animation","AnimationIteration"),animationstart:xL("Animation","AnimationStart"),transitionend:xL("Transition","TransitionEnd")},kL={},SL={};function CL(e){if(kL[e])return kL[e];if(!wL[e])return e;var t,n=wL[e];for(t in n)if(n.hasOwnProperty(t)&&t in SL)return kL[e]=n[t];return e}dN&&(SL=document.createElement("div").style,"AnimationEvent"in window||(delete wL.animationend.animation,delete wL.animationiteration.animation,delete wL.animationstart.animation),"TransitionEvent"in window||delete wL.transitionend.transition);var ML=CL("animationend"),EL=CL("animationiteration"),_L=CL("animationstart"),DL=CL("transitionend"),qL=new Map,TL="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(" ");function RL(e,t){qL.set(e,t),cN(t,[e])}for(var OL=0;OL<TL.length;OL++){var NL=TL[OL];RL(NL.toLowerCase(),"on"+(NL[0].toUpperCase()+NL.slice(1)))}RL(ML,"onAnimationEnd"),RL(EL,"onAnimationIteration"),RL(_L,"onAnimationStart"),RL("dblclick","onDoubleClick"),RL("focusin","onFocus"),RL("focusout","onBlur"),RL(DL,"onTransitionEnd"),uN("onMouseEnter",["mouseout","mouseover"]),uN("onMouseLeave",["mouseout","mouseover"]),uN("onPointerEnter",["pointerout","pointerover"]),uN("onPointerLeave",["pointerout","pointerover"]),cN("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),cN("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),cN("onBeforeInput",["compositionend","keypress","textInput","paste"]),cN("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),cN("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),cN("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var AL="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(" "),PL=new Set("cancel close invalid load scroll toggle".split(" ").concat(AL));function IL(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if($A.apply(this,arguments),IA){if(!IA)throw Error(aN(198));var c=LA;IA=!1,LA=null,zA||(zA=!0,FA=c)}}(r,t,void 0,e),e.currentTarget=null}function LL(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;IL(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;IL(i,s,c),o=l}}}if(zA)throw e=FA,zA=!1,FA=null,e}function zL(e,t){var n=t[pz];void 0===n&&(n=t[pz]=new Set);var r=e+"__bubble";n.has(r)||(HL(t,e,2,!1),n.add(r))}function FL(e,t,n){var r=0;t&&(r|=4),HL(n,e,r,t)}var jL="_reactListening"+Math.random().toString(36).slice(2);function $L(e){if(!e[jL]){e[jL]=!0,sN.forEach((function(t){"selectionchange"!==t&&(PL.has(t)||FL(t,!1,e),FL(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jL]||(t[jL]=!0,FL("selectionchange",!1,t))}}function HL(e,t,n,r){switch(XP(t)){case 1:var i=WP;break;case 4:i=UP;break;default:i=YP}n=i.bind(null,t,n,e),i=void 0,!NA||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function VL(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yz(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}RA((function(){var r=o,i=wA(n),a=[];e:{var s=qL.get(e);if(void 0!==s){var l=cI,c=e;switch(e){case"keypress":if(0===tI(n))break e;case"keydown":case"keyup":l=EI;break;case"focusin":c="focus",l=mI;break;case"focusout":c="blur",l=mI;break;case"beforeblur":case"afterblur":l=mI;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=DI;break;case ML:case EL:case _L:l=gI;break;case DL:l=qI;break;case"scroll":l=dI;break;case"wheel":l=RI;break;case"copy":case"cut":case"paste":l=vI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=_I}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=OA(p,f))&&u.push(BL(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xA||!(c=n.relatedTarget||n.fromElement)||!yz(c)&&!c[hz])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yz(c):null)&&(c!==(d=HA(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hI,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=_I,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:bz(l),h=null==c?s:bz(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,yz(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=UL(h))p++;for(h=0,m=f;m;m=UL(m))h++;for(;0<p-h;)u=UL(u),p--;for(;0<h-p;)f=UL(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=UL(u),f=UL(f)}u=null}else u=null;null!==l&&YL(a,s,l,u,!1),null!==c&&null!==d&&YL(a,d,c,u,!0)}if("select"===(l=(s=r?bz(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=GI;else if(VI(s))if(XI)g=oL;else{g=rL;var y=nL}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=iL);switch(g&&(g=g(e,r))?BI(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&tA(s,"number",s.value)),y=r?bz(r):window,e){case"focusin":(VI(y)||"true"===y.contentEditable)&&(mL=y,gL=r,yL=null);break;case"focusout":yL=gL=mL=null;break;case"mousedown":vL=!0;break;case"contextmenu":case"mouseup":case"dragend":vL=!1,bL(a,n,i);break;case"selectionchange":if(pL)break;case"keydown":case"keyup":bL(a,n,i)}var v;if(NI)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $I?FI(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(II&&"ko"!==n.locale&&($I||"onCompositionStart"!==b?"onCompositionEnd"===b&&$I&&(v=eI()):(QP="value"in(ZP=i)?ZP.value:ZP.textContent,$I=!0)),0<(y=WL(r,b)).length&&(b=new bI(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=jI(n))&&(b.data=v))),(v=PI?function(e,t){switch(e){case"compositionend":return jI(t);case"keypress":return 32!==t.which?null:(zI=!0,LI);case"textInput":return(e=t.data)===LI&&zI?null:e;default:return null}}(e,n):function(e,t){if($I)return"compositionend"===e||!NI&&FI(e,t)?(e=eI(),JP=QP=ZP=null,$I=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return II&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=WL(r,"onBeforeInput")).length&&(i=new bI("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}LL(a,t)}))}function BL(e,t,n){return{instance:e,listener:t,currentTarget:n}}function WL(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=OA(e,n))&&r.unshift(BL(e,o,i)),null!=(o=OA(e,t))&&r.push(BL(e,o,i))),e=e.return}return r}function UL(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function YL(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=OA(n,o))&&a.unshift(BL(n,l,s)):i||null!=(l=OA(n,o))&&a.push(BL(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var KL=/\r\n?/g,GL=/\u0000|\uFFFD/g;function XL(e){return("string"==typeof e?e:""+e).replace(KL,"\n").replace(GL,"")}function ZL(e,t,n){if(t=XL(t),XL(e)!==t&&n)throw Error(aN(425))}function QL(){}var JL=null,ez=null;function tz(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var nz="function"==typeof setTimeout?setTimeout:void 0,rz="function"==typeof clearTimeout?clearTimeout:void 0,iz="function"==typeof Promise?Promise:void 0,oz="function"==typeof queueMicrotask?queueMicrotask:void 0!==iz?function(e){return iz.resolve(null).then(e).catch(az)}:nz;function az(e){setTimeout((function(){throw e}))}function sz(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void HP(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);HP(t)}function lz(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function cz(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var uz=Math.random().toString(36).slice(2),dz="__reactFiber$"+uz,fz="__reactProps$"+uz,hz="__reactContainer$"+uz,pz="__reactEvents$"+uz,mz="__reactListeners$"+uz,gz="__reactHandles$"+uz;function yz(e){var t=e[dz];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hz]||n[dz]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=cz(e);null!==e;){if(n=e[dz])return n;e=cz(e)}return t}n=(e=n).parentNode}return null}function vz(e){return!(e=e[dz]||e[hz])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bz(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(aN(33))}function xz(e){return e[fz]||null}var wz=[],kz=-1;function Sz(e){return{current:e}}function Cz(e){0>kz||(e.current=wz[kz],wz[kz]=null,kz--)}function Mz(e,t){kz++,wz[kz]=e.current,e.current=t}var Ez={},_z=Sz(Ez),Dz=Sz(!1),qz=Ez;function Tz(e,t){var n=e.type.contextTypes;if(!n)return Ez;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Rz(e){return null!=(e=e.childContextTypes)}function Oz(){Cz(Dz),Cz(_z)}function Nz(e,t,n){if(_z.current!==Ez)throw Error(aN(168));Mz(_z,t),Mz(Dz,n)}function Az(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(aN(108,BN(e)||"Unknown",i));return zN({},n,r)}function Pz(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ez,qz=_z.current,Mz(_z,e),Mz(Dz,Dz.current),!0}function Iz(e,t,n){var r=e.stateNode;if(!r)throw Error(aN(169));n?(e=Az(e,t,qz),r.__reactInternalMemoizedMergedChildContext=e,Cz(Dz),Cz(_z),Mz(_z,e)):Cz(Dz),Mz(Dz,n)}var Lz=null,zz=!1,Fz=!1;function jz(e){null===Lz?Lz=[e]:Lz.push(e)}function $z(){if(!Fz&&null!==Lz){Fz=!0;var e=0,t=bP;try{var n=Lz;for(bP=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Lz=null,zz=!1}catch(t){throw null!==Lz&&(Lz=Lz.slice(e+1)),YA(JA,$z),t}finally{bP=t,Fz=!1}}return null}var Hz=[],Vz=0,Bz=null,Wz=0,Uz=[],Yz=0,Kz=null,Gz=1,Xz="";function Zz(e,t){Hz[Vz++]=Wz,Hz[Vz++]=Bz,Bz=e,Wz=t}function Qz(e,t,n){Uz[Yz++]=Gz,Uz[Yz++]=Xz,Uz[Yz++]=Kz,Kz=e;var r=Gz;e=Xz;var i=32-aP(r)-1;r&=~(1<<i),n+=1;var o=32-aP(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Gz=1<<32-aP(t)+i|n<<i|r,Xz=o+e}else Gz=1<<o|n<<i|r,Xz=e}function Jz(e){null!==e.return&&(Zz(e,1),Qz(e,1,0))}function eF(e){for(;e===Bz;)Bz=Hz[--Vz],Hz[Vz]=null,Wz=Hz[--Vz],Hz[Vz]=null;for(;e===Kz;)Kz=Uz[--Yz],Uz[Yz]=null,Xz=Uz[--Yz],Uz[Yz]=null,Gz=Uz[--Yz],Uz[Yz]=null}var tF=null,nF=null,rF=!1,iF=null;function oF(e,t){var n=TV(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function aF(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,tF=e,nF=lz(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,tF=e,nF=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Kz?{id:Gz,overflow:Xz}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=TV(18,null,null,0)).stateNode=t,n.return=e,e.child=n,tF=e,nF=null,!0);default:return!1}}function sF(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function lF(e){if(rF){var t=nF;if(t){var n=t;if(!aF(e,t)){if(sF(e))throw Error(aN(418));t=lz(n.nextSibling);var r=tF;t&&aF(e,t)?oF(r,n):(e.flags=-4097&e.flags|2,rF=!1,tF=e)}}else{if(sF(e))throw Error(aN(418));e.flags=-4097&e.flags|2,rF=!1,tF=e}}}function cF(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;tF=e}function uF(e){if(e!==tF)return!1;if(!rF)return cF(e),rF=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!tz(e.type,e.memoizedProps)),t&&(t=nF)){if(sF(e))throw dF(),Error(aN(418));for(;t;)oF(e,t),t=lz(t.nextSibling)}if(cF(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(aN(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){nF=lz(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}nF=null}}else nF=tF?lz(e.stateNode.nextSibling):null;return!0}function dF(){for(var e=nF;e;)e=lz(e.nextSibling)}function fF(){nF=tF=null,rF=!1}function hF(e){null===iF?iF=[e]:iF.push(e)}var pF=wN.ReactCurrentBatchConfig;function mF(e,t){if(e&&e.defaultProps){for(var n in t=zN({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var gF=Sz(null),yF=null,vF=null,bF=null;function xF(){bF=vF=yF=null}function wF(e){var t=gF.current;Cz(gF),e._currentValue=t}function kF(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function SF(e,t){yF=e,bF=vF=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(v$=!0),e.firstContext=null)}function CF(e){var t=e._currentValue;if(bF!==e)if(e={context:e,memoizedValue:t,next:null},null===vF){if(null===yF)throw Error(aN(308));vF=e,yF.dependencies={lanes:0,firstContext:e}}else vF=vF.next=e;return t}var MF=null;function EF(e){null===MF?MF=[e]:MF.push(e)}function _F(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,EF(t)):(n.next=i.next,i.next=n),t.interleaved=n,DF(e,r)}function DF(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var qF=!1;function TF(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function RF(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function OF(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function NF(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&_H)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,DF(e,n)}return null===(i=r.interleaved)?(t.next=t,EF(r)):(t.next=i.next,i.next=t),r.interleaved=t,DF(e,n)}function AF(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vP(e,n)}}function PF(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function IF(e,t,n,r){var i=e.updateQueue;qF=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=zN({},d,f);break e;case 2:qF=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);PH|=a,e.lanes=a,e.memoizedState=d}}function LF(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(aN(191,i));i.call(r)}}}var zF=(new iN.Component).refs;function FF(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:zN({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var jF={isMounted:function(e){return!!(e=e._reactInternals)&&HA(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=JH(),i=eV(e),o=OF(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=NF(e,o,i))&&(tV(t,e,i,r),AF(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=JH(),i=eV(e),o=OF(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=NF(e,o,i))&&(tV(t,e,i,r),AF(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=JH(),r=eV(e),i=OF(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=NF(e,i,r))&&(tV(t,e,r,n),AF(t,e,r))}};function $F(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!sL(n,r)||!sL(i,o))}function HF(e,t,n){var r=!1,i=Ez,o=t.contextType;return"object"==typeof o&&null!==o?o=CF(o):(i=Rz(t)?qz:_z.current,o=(r=null!=(r=t.contextTypes))?Tz(e,i):Ez),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=jF,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function VF(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&jF.enqueueReplaceState(t,t.state,null)}function BF(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=zF,TF(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=CF(o):(o=Rz(t)?qz:_z.current,i.context=Tz(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(FF(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&jF.enqueueReplaceState(i,i.state,null),IF(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function WF(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(aN(309));var r=n.stateNode}if(!r)throw Error(aN(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===zF&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(aN(284));if(!n._owner)throw Error(aN(290,e))}return e}function UF(e,t){throw e=Object.prototype.toString.call(t),Error(aN(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function YF(e){return(0,e._init)(e._payload)}function KF(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=OV(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=IV(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===CN?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===NN&&YF(o)===t.type)?((r=i(t,n.props)).ref=WF(e,t,n),r.return=e,r):((r=NV(n.type,n.key,n.props,null,e.mode,r)).ref=WF(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=LV(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=AV(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=IV(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case kN:return(n=NV(t.type,t.key,t.props,null,e.mode,n)).ref=WF(e,null,t),n.return=e,n;case SN:return(t=LV(t,e.mode,n)).return=e,t;case NN:return d(e,(0,t._init)(t._payload),n)}if(nA(t)||IN(t))return(t=AV(t,e.mode,n,null)).return=e,t;UF(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case kN:return n.key===i?l(e,t,n,r):null;case SN:return n.key===i?c(e,t,n,r):null;case NN:return f(e,t,(i=n._init)(n._payload),r)}if(nA(n)||IN(n))return null!==i?null:u(e,t,n,r,null);UF(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case kN:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case SN:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case NN:return h(e,t,n,(0,r._init)(r._payload),i)}if(nA(r)||IN(r))return u(t,e=e.get(n)||null,r,i,null);UF(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),rF&&Zz(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return rF&&Zz(i,m),c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),rF&&Zz(i,m),c}function m(i,a,s,l){var c=IN(s);if("function"!=typeof c)throw Error(aN(150));if(null==(s=c.call(s)))throw Error(aN(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),rF&&Zz(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return rF&&Zz(i,m),c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),rF&&Zz(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===CN&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case kN:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===CN){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===NN&&YF(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=WF(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===CN?((o=AV(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=NV(s.type,s.key,s.props,null,r.mode,l)).ref=WF(r,o,s),l.return=r,r=l)}return a(r);case SN:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=LV(s,r.mode,l)).return=r,r=o}return a(r);case NN:return e(r,o,(u=s._init)(s._payload),l)}if(nA(s))return p(r,o,s,l);if(IN(s))return m(r,o,s,l);UF(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=IV(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var GF=KF(!0),XF=KF(!1),ZF={},QF=Sz(ZF),JF=Sz(ZF),ej=Sz(ZF);function tj(e){if(e===ZF)throw Error(aN(174));return e}function nj(e,t){switch(Mz(ej,t),Mz(JF,e),Mz(QF,ZF),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cA(null,"");break;default:t=cA(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Cz(QF),Mz(QF,t)}function rj(){Cz(QF),Cz(JF),Cz(ej)}function ij(e){tj(ej.current);var t=tj(QF.current),n=cA(t,e.type);t!==n&&(Mz(JF,e),Mz(QF,n))}function oj(e){JF.current===e&&(Cz(QF),Cz(JF))}var aj=Sz(0);function sj(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lj=[];function cj(){for(var e=0;e<lj.length;e++)lj[e]._workInProgressVersionPrimary=null;lj.length=0}var uj=wN.ReactCurrentDispatcher,dj=wN.ReactCurrentBatchConfig,fj=0,hj=null,pj=null,mj=null,gj=!1,yj=!1,vj=0,bj=0;function xj(){throw Error(aN(321))}function wj(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!aL(e[n],t[n]))return!1;return!0}function kj(e,t,n,r,i,o){if(fj=o,hj=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,uj.current=null===e||null===e.memoizedState?o$:a$,e=n(r,i),yj){o=0;do{if(yj=!1,vj=0,25<=o)throw Error(aN(301));o+=1,mj=pj=null,t.updateQueue=null,uj.current=s$,e=n(r,i)}while(yj)}if(uj.current=i$,t=null!==pj&&null!==pj.next,fj=0,mj=pj=hj=null,gj=!1,t)throw Error(aN(300));return e}function Sj(){var e=0!==vj;return vj=0,e}function Cj(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mj?hj.memoizedState=mj=e:mj=mj.next=e,mj}function Mj(){if(null===pj){var e=hj.alternate;e=null!==e?e.memoizedState:null}else e=pj.next;var t=null===mj?hj.memoizedState:mj.next;if(null!==t)mj=t,pj=e;else{if(null===e)throw Error(aN(310));e={memoizedState:(pj=e).memoizedState,baseState:pj.baseState,baseQueue:pj.baseQueue,queue:pj.queue,next:null},null===mj?hj.memoizedState=mj=e:mj=mj.next=e}return mj}function Ej(e,t){return"function"==typeof t?t(e):t}function _j(e){var t=Mj(),n=t.queue;if(null===n)throw Error(aN(311));n.lastRenderedReducer=e;var r=pj,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((fj&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,hj.lanes|=u,PH|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,aL(r,t.memoizedState)||(v$=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,hj.lanes|=o,PH|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Dj(e){var t=Mj(),n=t.queue;if(null===n)throw Error(aN(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);aL(o,t.memoizedState)||(v$=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function qj(){}function Tj(e,t){var n=hj,r=Mj(),i=t(),o=!aL(r.memoizedState,i);if(o&&(r.memoizedState=i,v$=!0),r=r.queue,Hj(Nj.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==mj&&1&mj.memoizedState.tag){if(n.flags|=2048,Lj(9,Oj.bind(null,n,r,i,t),void 0,null),null===DH)throw Error(aN(349));0!=(30&fj)||Rj(n,t,i)}return i}function Rj(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hj.updateQueue)?(t={lastEffect:null,stores:null},hj.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oj(e,t,n,r){t.value=n,t.getSnapshot=r,Aj(t)&&Pj(e)}function Nj(e,t,n){return n((function(){Aj(t)&&Pj(e)}))}function Aj(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!aL(e,n)}catch(e){return!0}}function Pj(e){var t=DF(e,1);null!==t&&tV(t,e,1,-1)}function Ij(e){var t=Cj();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ej,lastRenderedState:e},t.queue=e,e=e.dispatch=e$.bind(null,hj,e),[t.memoizedState,e]}function Lj(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hj.updateQueue)?(t={lastEffect:null,stores:null},hj.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zj(){return Mj().memoizedState}function Fj(e,t,n,r){var i=Cj();hj.flags|=e,i.memoizedState=Lj(1|t,n,void 0,void 0===r?null:r)}function jj(e,t,n,r){var i=Mj();r=void 0===r?null:r;var o=void 0;if(null!==pj){var a=pj.memoizedState;if(o=a.destroy,null!==r&&wj(r,a.deps))return void(i.memoizedState=Lj(t,n,o,r))}hj.flags|=e,i.memoizedState=Lj(1|t,n,o,r)}function $j(e,t){return Fj(8390656,8,e,t)}function Hj(e,t){return jj(2048,8,e,t)}function Vj(e,t){return jj(4,2,e,t)}function Bj(e,t){return jj(4,4,e,t)}function Wj(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Uj(e,t,n){return n=null!=n?n.concat([e]):null,jj(4,4,Wj.bind(null,t,e),n)}function Yj(){}function Kj(e,t){var n=Mj();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wj(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gj(e,t){var n=Mj();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wj(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xj(e,t,n){return 0==(21&fj)?(e.baseState&&(e.baseState=!1,v$=!0),e.memoizedState=n):(aL(n,t)||(n=mP(),hj.lanes|=n,PH|=n,e.baseState=!0),t)}function Zj(e,t){var n=bP;bP=0!==n&&4>n?n:4,e(!0);var r=dj.transition;dj.transition={};try{e(!1),t()}finally{bP=n,dj.transition=r}}function Qj(){return Mj().memoizedState}function Jj(e,t,n){var r=eV(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},t$(e))n$(t,n);else if(null!==(n=_F(e,t,n,r))){tV(n,e,r,JH()),r$(n,t,r)}}function e$(e,t,n){var r=eV(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(t$(e))n$(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,aL(s,a)){var l=t.interleaved;return null===l?(i.next=i,EF(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=_F(e,t,i,r))&&(tV(n,e,r,i=JH()),r$(n,t,r))}}function t$(e){var t=e.alternate;return e===hj||null!==t&&t===hj}function n$(e,t){yj=gj=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function r$(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vP(e,n)}}var i$={readContext:CF,useCallback:xj,useContext:xj,useEffect:xj,useImperativeHandle:xj,useInsertionEffect:xj,useLayoutEffect:xj,useMemo:xj,useReducer:xj,useRef:xj,useState:xj,useDebugValue:xj,useDeferredValue:xj,useTransition:xj,useMutableSource:xj,useSyncExternalStore:xj,useId:xj,unstable_isNewReconciler:!1},o$={readContext:CF,useCallback:function(e,t){return Cj().memoizedState=[e,void 0===t?null:t],e},useContext:CF,useEffect:$j,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fj(4194308,4,Wj.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fj(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fj(4,2,e,t)},useMemo:function(e,t){var n=Cj();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cj();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Jj.bind(null,hj,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Cj().memoizedState=e},useState:Ij,useDebugValue:Yj,useDeferredValue:function(e){return Cj().memoizedState=e},useTransition:function(){var e=Ij(!1),t=e[0];return e=Zj.bind(null,e[1]),Cj().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hj,i=Cj();if(rF){if(void 0===n)throw Error(aN(407));n=n()}else{if(n=t(),null===DH)throw Error(aN(349));0!=(30&fj)||Rj(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,$j(Nj.bind(null,r,o,e),[e]),r.flags|=2048,Lj(9,Oj.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Cj(),t=DH.identifierPrefix;if(rF){var n=Xz;t=":"+t+"R"+(n=(Gz&~(1<<32-aP(Gz)-1)).toString(32)+n),0<(n=vj++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=bj++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},a$={readContext:CF,useCallback:Kj,useContext:CF,useEffect:Hj,useImperativeHandle:Uj,useInsertionEffect:Vj,useLayoutEffect:Bj,useMemo:Gj,useReducer:_j,useRef:zj,useState:function(){return _j(Ej)},useDebugValue:Yj,useDeferredValue:function(e){return Xj(Mj(),pj.memoizedState,e)},useTransition:function(){return[_j(Ej)[0],Mj().memoizedState]},useMutableSource:qj,useSyncExternalStore:Tj,useId:Qj,unstable_isNewReconciler:!1},s$={readContext:CF,useCallback:Kj,useContext:CF,useEffect:Hj,useImperativeHandle:Uj,useInsertionEffect:Vj,useLayoutEffect:Bj,useMemo:Gj,useReducer:Dj,useRef:zj,useState:function(){return Dj(Ej)},useDebugValue:Yj,useDeferredValue:function(e){var t=Mj();return null===pj?t.memoizedState=e:Xj(t,pj.memoizedState,e)},useTransition:function(){return[Dj(Ej)[0],Mj().memoizedState]},useMutableSource:qj,useSyncExternalStore:Tj,useId:Qj,unstable_isNewReconciler:!1};function l$(e,t){try{var n="",r=t;do{n+=HN(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function c$(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function u$(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var d$="function"==typeof WeakMap?WeakMap:Map;function f$(e,t,n){(n=OF(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){VH||(VH=!0,BH=r),u$(0,t)},n}function h$(e,t,n){(n=OF(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){u$(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){u$(0,t),"function"!=typeof r&&(null===WH?WH=new Set([this]):WH.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function p$(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new d$;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=CV.bind(null,e,t,n),t.then(e,e))}function m$(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function g$(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=OF(-1,1)).tag=2,NF(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var y$=wN.ReactCurrentOwner,v$=!1;function b$(e,t,n,r){t.child=null===e?XF(t,null,n,r):GF(t,e.child,n,r)}function x$(e,t,n,r,i){n=n.render;var o=t.ref;return SF(t,i),r=kj(e,t,n,r,o,i),n=Sj(),null===e||v$?(rF&&n&&Jz(t),t.flags|=1,b$(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,V$(e,t,i))}function w$(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||RV(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=NV(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,k$(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:sL)(a,r)&&e.ref===t.ref)return V$(e,t,i)}return t.flags|=1,(e=OV(o,r)).ref=t.ref,e.return=t,t.child=e}function k$(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(sL(o,r)&&e.ref===t.ref){if(v$=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,V$(e,t,i);0!=(131072&e.flags)&&(v$=!0)}}return M$(e,t,n,r,i)}function S$(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mz(OH,RH),RH|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mz(OH,RH),RH|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Mz(OH,RH),RH|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Mz(OH,RH),RH|=r;return b$(e,t,i,n),t.child}function C$(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function M$(e,t,n,r,i){var o=Rz(n)?qz:_z.current;return o=Tz(t,o),SF(t,i),n=kj(e,t,n,r,o,i),r=Sj(),null===e||v$?(rF&&r&&Jz(t),t.flags|=1,b$(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,V$(e,t,i))}function E$(e,t,n,r,i){if(Rz(n)){var o=!0;Pz(t)}else o=!1;if(SF(t,i),null===t.stateNode)H$(e,t),HF(t,n,r),BF(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=CF(c):c=Tz(t,c=Rz(n)?qz:_z.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&VF(t,a,r,c),qF=!1;var f=t.memoizedState;a.state=f,IF(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Dz.current||qF?("function"==typeof u&&(FF(t,n,u,r),l=t.memoizedState),(s=qF||$F(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,RF(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:mF(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=CF(l):l=Tz(t,l=Rz(n)?qz:_z.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&VF(t,a,r,l),qF=!1,f=t.memoizedState,a.state=f,IF(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Dz.current||qF?("function"==typeof h&&(FF(t,n,h,r),p=t.memoizedState),(c=qF||$F(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return _$(e,t,n,r,o,i)}function _$(e,t,n,r,i,o){C$(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Iz(t,n,!1),V$(e,t,o);r=t.stateNode,y$.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=GF(t,e.child,null,o),t.child=GF(t,null,s,o)):b$(e,t,s,o),t.memoizedState=r.state,i&&Iz(t,n,!0),t.child}function D$(e){var t=e.stateNode;t.pendingContext?Nz(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Nz(0,t.context,!1),nj(e,t.containerInfo)}function q$(e,t,n,r,i){return fF(),hF(i),t.flags|=256,b$(e,t,n,r),t.child}var T$,R$,O$,N$,A$={dehydrated:null,treeContext:null,retryLane:0};function P$(e){return{baseLanes:e,cachePool:null,transitions:null}}function I$(e,t,n){var r,i=t.pendingProps,o=aj.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Mz(aj,1&o),null===e)return lF(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=PV(s,i,0,null),e=AV(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=P$(n),t.memoizedState=A$,e):L$(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,z$(e,t,a,r=c$(Error(aN(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=PV({mode:"visible",children:r.children},i,0,null),(o=AV(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&GF(t,e.child,null,a),t.child.memoizedState=P$(a),t.memoizedState=A$,o);if(0==(1&t.mode))return z$(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,z$(e,t,a,r=c$(o=Error(aN(419)),r,void 0))}if(s=0!=(a&e.childLanes),v$||s){if(null!==(r=DH)){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|a))?0:i)&&i!==o.retryLane&&(o.retryLane=i,DF(e,i),tV(r,e,i,-1))}return pV(),z$(e,t,a,r=c$(Error(aN(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=EV.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,nF=lz(i.nextSibling),tF=t,rF=!0,iF=null,null!==e&&(Uz[Yz++]=Gz,Uz[Yz++]=Xz,Uz[Yz++]=Kz,Gz=e.id,Xz=e.overflow,Kz=t),t=L$(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=OV(o,l)).subtreeFlags=14680064&o.subtreeFlags,null!==r?a=OV(r,a):(a=AV(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?P$(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=A$,i}return e=(a=e.child).sibling,i=OV(a,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function L$(e,t){return(t=PV({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function z$(e,t,n,r){return null!==r&&hF(r),GF(t,e.child,null,n),(e=L$(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function F$(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),kF(e.return,t,n)}function j$(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(b$(e,t,r.children,n),0!=(2&(r=aj.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&F$(e,n,t);else if(19===e.tag)F$(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Mz(aj,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===sj(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),j$(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===sj(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}j$(t,!0,n,null,o);break;case"together":j$(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function H$(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function V$(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),PH|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(aN(153));if(null!==t.child){for(n=OV(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=OV(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function B$(e,t){if(!rF)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function W$(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function U$(e,t,n){var r=t.pendingProps;switch(eF(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return W$(t),null;case 1:case 17:return Rz(t.type)&&Oz(),W$(t),null;case 3:return r=t.stateNode,rj(),Cz(Dz),Cz(_z),cj(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(uF(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==iF&&(oV(iF),iF=null))),R$(e,t),W$(t),null;case 5:oj(t);var i=tj(ej.current);if(n=t.type,null!==e&&null!=t.stateNode)O$(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(aN(166));return W$(t),null}if(e=tj(QF.current),uF(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[dz]=t,r[fz]=o,e=0!=(1&t.mode),n){case"dialog":zL("cancel",r),zL("close",r);break;case"iframe":case"object":case"embed":zL("load",r);break;case"video":case"audio":for(i=0;i<AL.length;i++)zL(AL[i],r);break;case"source":zL("error",r);break;case"img":case"image":case"link":zL("error",r),zL("load",r);break;case"details":zL("toggle",r);break;case"input":ZN(r,o),zL("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},zL("invalid",r);break;case"textarea":oA(r,o),zL("invalid",r)}for(var a in vA(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&ZL(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&ZL(r.textContent,s,e),i=["children",""+s]):lN.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&zL("scroll",r)}switch(n){case"input":YN(r),eA(r,o,!0);break;case"textarea":YN(r),sA(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=QL)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=lA(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[dz]=t,e[fz]=r,T$(e,t,!1,!1),t.stateNode=e;e:{switch(a=bA(n,r),n){case"dialog":zL("cancel",e),zL("close",e),i=r;break;case"iframe":case"object":case"embed":zL("load",e),i=r;break;case"video":case"audio":for(i=0;i<AL.length;i++)zL(AL[i],e);i=r;break;case"source":zL("error",e),i=r;break;case"img":case"image":case"link":zL("error",e),zL("load",e),i=r;break;case"details":zL("toggle",e),i=r;break;case"input":ZN(e,r),i=XN(e,r),zL("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=zN({},r,{value:void 0}),zL("invalid",e);break;case"textarea":oA(e,r),i=iA(e,r),zL("invalid",e)}for(o in vA(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?gA(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&dA(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&fA(e,l):"number"==typeof l&&fA(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(lN.hasOwnProperty(o)?null!=l&&"onScroll"===o&&zL("scroll",e):null!=l&&xN(e,o,l,a))}switch(n){case"input":YN(e),eA(e,r,!1);break;case"textarea":YN(e),sA(e);break;case"option":null!=r.value&&e.setAttribute("value",""+WN(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?rA(e,!!r.multiple,o,!1):null!=r.defaultValue&&rA(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=QL)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return W$(t),null;case 6:if(e&&null!=t.stateNode)N$(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(aN(166));if(n=tj(ej.current),tj(QF.current),uF(t)){if(r=t.stateNode,n=t.memoizedProps,r[dz]=t,(o=r.nodeValue!==n)&&null!==(e=tF))switch(e.tag){case 3:ZL(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ZL(r.nodeValue,n,0!=(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[dz]=t,t.stateNode=r}return W$(t),null;case 13:if(Cz(aj),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(rF&&null!==nF&&0!=(1&t.mode)&&0==(128&t.flags))dF(),fF(),t.flags|=98560,o=!1;else if(o=uF(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(aN(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(aN(317));o[dz]=t}else fF(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;W$(t),o=!1}else null!==iF&&(oV(iF),iF=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&aj.current)?0===NH&&(NH=3):pV())),null!==t.updateQueue&&(t.flags|=4),W$(t),null);case 4:return rj(),R$(e,t),null===e&&$L(t.stateNode.containerInfo),W$(t),null;case 10:return wF(t.type._context),W$(t),null;case 19:if(Cz(aj),null===(o=t.memoizedState))return W$(t),null;if(r=0!=(128&t.flags),null===(a=o.rendering))if(r)B$(o,!1);else{if(0!==NH||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=sj(e))){for(t.flags|=128,B$(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Mz(aj,1&aj.current|2),t.child}e=e.sibling}null!==o.tail&&ZA()>$H&&(t.flags|=128,r=!0,B$(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=sj(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),B$(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!rF)return W$(t),null}else 2*ZA()-o.renderingStartTime>$H&&1073741824!==n&&(t.flags|=128,r=!0,B$(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ZA(),t.sibling=null,n=aj.current,Mz(aj,r?1&n|2:1&n),t):(W$(t),null);case 22:case 23:return uV(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&RH)&&(W$(t),6&t.subtreeFlags&&(t.flags|=8192)):W$(t),null;case 24:case 25:return null}throw Error(aN(156,t.tag))}function Y$(e,t){switch(eF(t),t.tag){case 1:return Rz(t.type)&&Oz(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return rj(),Cz(Dz),Cz(_z),cj(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oj(t),null;case 13:if(Cz(aj),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(aN(340));fF()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Cz(aj),null;case 4:return rj(),null;case 10:return wF(t.type._context),null;case 22:case 23:return uV(),null;default:return null}}T$=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},R$=function(){},O$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,tj(QF.current);var o,a=null;switch(n){case"input":i=XN(e,i),r=XN(e,r),a=[];break;case"select":i=zN({},i,{value:void 0}),r=zN({},r,{value:void 0}),a=[];break;case"textarea":i=iA(e,i),r=iA(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=QL)}for(c in vA(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(lN.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(lN.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&zL("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},N$=function(e,t,n,r){n!==r&&(t.flags|=4)};var K$=!1,G$=!1,X$="function"==typeof WeakSet?WeakSet:Set,Z$=null;function Q$(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){SV(e,t,n)}else n.current=null}function J$(e,t,n){try{n()}catch(n){SV(e,t,n)}}var eH=!1;function tH(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&J$(t,n,o)}i=i.next}while(i!==r)}}function nH(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rH(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function iH(e){var t=e.alternate;null!==t&&(e.alternate=null,iH(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[dz],delete t[fz],delete t[pz],delete t[mz],delete t[gz])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function oH(e){return 5===e.tag||3===e.tag||4===e.tag}function aH(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||oH(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sH(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=QL));else if(4!==r&&null!==(e=e.child))for(sH(e,t,n),e=e.sibling;null!==e;)sH(e,t,n),e=e.sibling}function lH(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(lH(e,t,n),e=e.sibling;null!==e;)lH(e,t,n),e=e.sibling}var cH=null,uH=!1;function dH(e,t,n){for(n=n.child;null!==n;)fH(e,t,n),n=n.sibling}function fH(e,t,n){if(oP&&"function"==typeof oP.onCommitFiberUnmount)try{oP.onCommitFiberUnmount(iP,n)}catch(e){}switch(n.tag){case 5:G$||Q$(n,t);case 6:var r=cH,i=uH;cH=null,dH(e,t,n),uH=i,null!==(cH=r)&&(uH?(e=cH,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cH.removeChild(n.stateNode));break;case 18:null!==cH&&(uH?(e=cH,n=n.stateNode,8===e.nodeType?sz(e.parentNode,n):1===e.nodeType&&sz(e,n),HP(e)):sz(cH,n.stateNode));break;case 4:r=cH,i=uH,cH=n.stateNode.containerInfo,uH=!0,dH(e,t,n),cH=r,uH=i;break;case 0:case 11:case 14:case 15:if(!G$&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&J$(n,t,a),i=i.next}while(i!==r)}dH(e,t,n);break;case 1:if(!G$&&(Q$(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){SV(n,t,e)}dH(e,t,n);break;case 21:dH(e,t,n);break;case 22:1&n.mode?(G$=(r=G$)||null!==n.memoizedState,dH(e,t,n),G$=r):dH(e,t,n);break;default:dH(e,t,n)}}function hH(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new X$),t.forEach((function(t){var r=_V.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function pH(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:cH=s.stateNode,uH=!1;break e;case 3:case 4:cH=s.stateNode.containerInfo,uH=!0;break e}s=s.return}if(null===cH)throw Error(aN(160));fH(o,a,i),cH=null,uH=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){SV(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mH(t,e),t=t.sibling}function mH(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pH(t,e),gH(e),4&r){try{tH(3,e,e.return),nH(3,e)}catch(t){SV(e,e.return,t)}try{tH(5,e,e.return)}catch(t){SV(e,e.return,t)}}break;case 1:pH(t,e),gH(e),512&r&&null!==n&&Q$(n,n.return);break;case 5:if(pH(t,e),gH(e),512&r&&null!==n&&Q$(n,n.return),32&e.flags){var i=e.stateNode;try{fA(i,"")}catch(t){SV(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&QN(i,o),bA(s,a);var c=bA(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?gA(i,d):"dangerouslySetInnerHTML"===u?dA(i,d):"children"===u?fA(i,d):xN(i,u,d,c)}switch(s){case"input":JN(i,o);break;case"textarea":aA(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?rA(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?rA(i,!!o.multiple,o.defaultValue,!0):rA(i,!!o.multiple,o.multiple?[]:"",!1))}i[fz]=o}catch(t){SV(e,e.return,t)}}break;case 6:if(pH(t,e),gH(e),4&r){if(null===e.stateNode)throw Error(aN(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){SV(e,e.return,t)}}break;case 3:if(pH(t,e),gH(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{HP(t.containerInfo)}catch(t){SV(e,e.return,t)}break;case 4:default:pH(t,e),gH(e);break;case 13:pH(t,e),gH(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(jH=ZA())),4&r&&hH(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(G$=(c=G$)||u,pH(t,e),G$=c):pH(t,e),gH(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(Z$=e,u=e.child;null!==u;){for(d=Z$=u;null!==Z$;){switch(h=(f=Z$).child,f.tag){case 0:case 11:case 14:case 15:tH(4,f,f.return);break;case 1:Q$(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){SV(r,n,e)}}break;case 5:Q$(f,f.return);break;case 22:if(null!==f.memoizedState){xH(d);continue}}null!==h?(h.return=f,Z$=h):xH(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=mA("display",a))}catch(t){SV(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){SV(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:pH(t,e),gH(e),4&r&&hH(e);case 21:}}function gH(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(oH(n)){var r=n;break e}n=n.return}throw Error(aN(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fA(i,""),r.flags&=-33),lH(e,aH(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;sH(e,aH(e),o);break;default:throw Error(aN(161))}}catch(t){SV(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yH(e,t,n){Z$=e,vH(e)}function vH(e,t,n){for(var r=0!=(1&e.mode);null!==Z$;){var i=Z$,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||K$;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||G$;s=K$;var c=G$;if(K$=a,(G$=l)&&!c)for(Z$=i;null!==Z$;)l=(a=Z$).child,22===a.tag&&null!==a.memoizedState?wH(i):null!==l?(l.return=a,Z$=l):wH(i);for(;null!==o;)Z$=o,vH(o),o=o.sibling;Z$=i,K$=s,G$=c}bH(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Z$=o):bH(e)}}function bH(e){for(;null!==Z$;){var t=Z$;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:G$||nH(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!G$)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mF(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&LF(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}LF(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&HP(d)}}}break;default:throw Error(aN(163))}G$||512&t.flags&&rH(t)}catch(e){SV(t,t.return,e)}}if(t===e){Z$=null;break}if(null!==(n=t.sibling)){n.return=t.return,Z$=n;break}Z$=t.return}}function xH(e){for(;null!==Z$;){var t=Z$;if(t===e){Z$=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Z$=n;break}Z$=t.return}}function wH(e){for(;null!==Z$;){var t=Z$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nH(4,t)}catch(e){SV(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){SV(t,i,e)}}var o=t.return;try{rH(t)}catch(e){SV(t,o,e)}break;case 5:var a=t.return;try{rH(t)}catch(e){SV(t,a,e)}}}catch(e){SV(t,t.return,e)}if(t===e){Z$=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Z$=s;break}Z$=t.return}}var kH,SH=Math.ceil,CH=wN.ReactCurrentDispatcher,MH=wN.ReactCurrentOwner,EH=wN.ReactCurrentBatchConfig,_H=0,DH=null,qH=null,TH=0,RH=0,OH=Sz(0),NH=0,AH=null,PH=0,IH=0,LH=0,zH=null,FH=null,jH=0,$H=1/0,HH=null,VH=!1,BH=null,WH=null,UH=!1,YH=null,KH=0,GH=0,XH=null,ZH=-1,QH=0;function JH(){return 0!=(6&_H)?ZA():-1!==ZH?ZH:ZH=ZA()}function eV(e){return 0==(1&e.mode)?1:0!=(2&_H)&&0!==TH?TH&-TH:null!==pF.transition?(0===QH&&(QH=mP()),QH):0!==(e=bP)?e:e=void 0===(e=window.event)?16:XP(e.type)}function tV(e,t,n,r){if(50<GH)throw GH=0,XH=null,Error(aN(185));yP(e,n,r),0!=(2&_H)&&e===DH||(e===DH&&(0==(2&_H)&&(IH|=n),4===NH&&aV(e,TH)),nV(e,r),1===n&&0===_H&&0==(1&t.mode)&&($H=ZA()+500,zz&&$z()))}function nV(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-aP(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=hP(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=fP(e,e===DH?TH:0);if(0===r)null!==n&&KA(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&KA(n),1===t)0===e.tag?function(e){zz=!0,jz(e)}(sV.bind(null,e)):jz(sV.bind(null,e)),oz((function(){0==(6&_H)&&$z()})),n=null;else{switch(xP(r)){case 1:n=JA;break;case 4:n=eP;break;case 16:default:n=tP;break;case 536870912:n=rP}n=DV(n,rV.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rV(e,t){if(ZH=-1,QH=0,0!=(6&_H))throw Error(aN(327));var n=e.callbackNode;if(wV()&&e.callbackNode!==n)return null;var r=fP(e,e===DH?TH:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=mV(e,r);else{t=r;var i=_H;_H|=2;var o=hV();for(DH===e&&TH===t||(HH=null,$H=ZA()+500,dV(e,t));;)try{yV();break}catch(t){fV(e,t)}xF(),CH.current=o,_H=i,null!==qH?t=0:(DH=null,TH=0,t=NH)}if(0!==t){if(2===t&&(0!==(i=pP(e))&&(r=i,t=iV(e,i))),1===t)throw n=AH,dV(e,0),aV(e,r),nV(e,ZA()),n;if(6===t)aV(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!aL(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=mV(e,r))&&(0!==(o=pP(e))&&(r=o,t=iV(e,o))),1===t))throw n=AH,dV(e,0),aV(e,r),nV(e,ZA()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(aN(345));case 2:case 5:xV(e,FH,HH);break;case 3:if(aV(e,r),(130023424&r)===r&&10<(t=jH+500-ZA())){if(0!==fP(e,0))break;if(((i=e.suspendedLanes)&r)!==r){JH(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=nz(xV.bind(null,e,FH,HH),t);break}xV(e,FH,HH);break;case 4:if(aV(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-aP(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=ZA()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*SH(r/1960))-r)){e.timeoutHandle=nz(xV.bind(null,e,FH,HH),r);break}xV(e,FH,HH);break;default:throw Error(aN(329))}}}return nV(e,ZA()),e.callbackNode===n?rV.bind(null,e):null}function iV(e,t){var n=zH;return e.current.memoizedState.isDehydrated&&(dV(e,t).flags|=256),2!==(e=mV(e,t))&&(t=FH,FH=n,null!==t&&oV(t)),e}function oV(e){null===FH?FH=e:FH.push.apply(FH,e)}function aV(e,t){for(t&=~LH,t&=~IH,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-aP(t),r=1<<n;e[n]=-1,t&=~r}}function sV(e){if(0!=(6&_H))throw Error(aN(327));wV();var t=fP(e,0);if(0==(1&t))return nV(e,ZA()),null;var n=mV(e,t);if(0!==e.tag&&2===n){var r=pP(e);0!==r&&(t=r,n=iV(e,r))}if(1===n)throw n=AH,dV(e,0),aV(e,t),nV(e,ZA()),n;if(6===n)throw Error(aN(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xV(e,FH,HH),nV(e,ZA()),null}function lV(e,t){var n=_H;_H|=1;try{return e(t)}finally{0===(_H=n)&&($H=ZA()+500,zz&&$z())}}function cV(e){null!==YH&&0===YH.tag&&0==(6&_H)&&wV();var t=_H;_H|=1;var n=EH.transition,r=bP;try{if(EH.transition=null,bP=1,e)return e()}finally{bP=r,EH.transition=n,0==(6&(_H=t))&&$z()}}function uV(){RH=OH.current,Cz(OH)}function dV(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rz(n)),null!==qH)for(n=qH.return;null!==n;){var r=n;switch(eF(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oz();break;case 3:rj(),Cz(Dz),Cz(_z),cj();break;case 5:oj(r);break;case 4:rj();break;case 13:case 19:Cz(aj);break;case 10:wF(r.type._context);break;case 22:case 23:uV()}n=n.return}if(DH=e,qH=e=OV(e.current,null),TH=RH=t,NH=0,AH=null,LH=IH=PH=0,FH=zH=null,null!==MF){for(t=0;t<MF.length;t++)if(null!==(r=(n=MF[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}MF=null}return e}function fV(e,t){for(;;){var n=qH;try{if(xF(),uj.current=i$,gj){for(var r=hj.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}gj=!1}if(fj=0,mj=pj=hj=null,yj=!1,vj=0,MH.current=null,null===n||null===n.return){NH=1,AH=t,qH=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=TH,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=m$(a);if(null!==h){h.flags&=-257,g$(h,a,s,0,t),1&h.mode&&p$(o,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(0==(1&t)){p$(o,c,t),pV();break e}l=Error(aN(426))}else if(rF&&1&s.mode){var g=m$(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),g$(g,a,s,0,t),hF(l$(l,s));break e}}o=l=l$(l,s),4!==NH&&(NH=2),null===zH?zH=[o]:zH.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,PF(o,f$(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(0==(128&o.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===WH||!WH.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,PF(o,h$(o,s,t));break e}}o=o.return}while(null!==o)}bV(n)}catch(e){t=e,qH===n&&null!==n&&(qH=n=n.return);continue}break}}function hV(){var e=CH.current;return CH.current=i$,null===e?i$:e}function pV(){0!==NH&&3!==NH&&2!==NH||(NH=4),null===DH||0==(268435455&PH)&&0==(268435455&IH)||aV(DH,TH)}function mV(e,t){var n=_H;_H|=2;var r=hV();for(DH===e&&TH===t||(HH=null,dV(e,t));;)try{gV();break}catch(t){fV(e,t)}if(xF(),_H=n,CH.current=r,null!==qH)throw Error(aN(261));return DH=null,TH=0,NH}function gV(){for(;null!==qH;)vV(qH)}function yV(){for(;null!==qH&&!GA();)vV(qH)}function vV(e){var t=kH(e.alternate,e,RH);e.memoizedProps=e.pendingProps,null===t?bV(e):qH=t,MH.current=null}function bV(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=U$(n,t,RH)))return void(qH=n)}else{if(null!==(n=Y$(n,t)))return n.flags&=32767,void(qH=n);if(null===e)return NH=6,void(qH=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(qH=t);qH=t=e}while(null!==t);0===NH&&(NH=5)}function xV(e,t,n){var r=bP,i=EH.transition;try{EH.transition=null,bP=1,function(e,t,n,r){do{wV()}while(null!==YH);if(0!=(6&_H))throw Error(aN(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(aN(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-aP(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===DH&&(qH=DH=null,TH=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||UH||(UH=!0,DV(tP,(function(){return wV(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=EH.transition,EH.transition=null;var a=bP;bP=1;var s=_H;_H|=4,MH.current=null,function(e,t){if(JL=BP,fL(e=dL())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ez={focusedElem:e,selectionRange:n},BP=!1,Z$=t;null!==Z$;)if(e=(t=Z$).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Z$=e;else for(;null!==Z$;){t=Z$;try{var p=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:mF(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(aN(163))}}catch(e){SV(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Z$=e;break}Z$=t.return}p=eH,eH=!1}(e,n),mH(n,e),hL(ez),BP=!!JL,ez=JL=null,e.current=n,yH(n),XA(),_H=s,bP=a,EH.transition=o}else e.current=n;if(UH&&(UH=!1,YH=e,KH=i),o=e.pendingLanes,0===o&&(WH=null),function(e){if(oP&&"function"==typeof oP.onCommitFiberRoot)try{oP.onCommitFiberRoot(iP,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),nV(e,ZA()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(VH)throw VH=!1,e=BH,BH=null,e;0!=(1&KH)&&0!==e.tag&&wV(),o=e.pendingLanes,0!=(1&o)?e===XH?GH++:(GH=0,XH=e):GH=0,$z()}(e,t,n,r)}finally{EH.transition=i,bP=r}return null}function wV(){if(null!==YH){var e=xP(KH),t=EH.transition,n=bP;try{if(EH.transition=null,bP=16>e?16:e,null===YH)var r=!1;else{if(e=YH,YH=null,KH=0,0!=(6&_H))throw Error(aN(331));var i=_H;for(_H|=4,Z$=e.current;null!==Z$;){var o=Z$,a=o.child;if(0!=(16&Z$.flags)){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Z$=c;null!==Z$;){var u=Z$;switch(u.tag){case 0:case 11:case 15:tH(8,u,o)}var d=u.child;if(null!==d)d.return=u,Z$=d;else for(;null!==Z$;){var f=(u=Z$).sibling,h=u.return;if(iH(u),u===c){Z$=null;break}if(null!==f){f.return=h,Z$=f;break}Z$=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Z$=o}}if(0!=(2064&o.subtreeFlags)&&null!==a)a.return=o,Z$=a;else e:for(;null!==Z$;){if(0!=(2048&(o=Z$).flags))switch(o.tag){case 0:case 11:case 15:tH(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Z$=y;break e}Z$=o.return}}var v=e.current;for(Z$=v;null!==Z$;){var b=(a=Z$).child;if(0!=(2064&a.subtreeFlags)&&null!==b)b.return=a,Z$=b;else e:for(a=v;null!==Z$;){if(0!=(2048&(s=Z$).flags))try{switch(s.tag){case 0:case 11:case 15:nH(9,s)}}catch(e){SV(s,s.return,e)}if(s===a){Z$=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Z$=x;break e}Z$=s.return}}if(_H=i,$z(),oP&&"function"==typeof oP.onPostCommitFiberRoot)try{oP.onPostCommitFiberRoot(iP,e)}catch(e){}r=!0}return r}finally{bP=n,EH.transition=t}}return!1}function kV(e,t,n){e=NF(e,t=f$(0,t=l$(n,t),1),1),t=JH(),null!==e&&(yP(e,1,t),nV(e,t))}function SV(e,t,n){if(3===e.tag)kV(e,e,n);else for(;null!==t;){if(3===t.tag){kV(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===WH||!WH.has(r))){t=NF(t,e=h$(t,e=l$(n,e),1),1),e=JH(),null!==t&&(yP(t,1,e),nV(t,e));break}}t=t.return}}function CV(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=JH(),e.pingedLanes|=e.suspendedLanes&n,DH===e&&(TH&n)===n&&(4===NH||3===NH&&(130023424&TH)===TH&&500>ZA()-jH?dV(e,0):LH|=n),nV(e,t)}function MV(e,t){0===t&&(0==(1&e.mode)?t=1:(t=uP,0==(130023424&(uP<<=1))&&(uP=4194304)));var n=JH();null!==(e=DF(e,t))&&(yP(e,t,n),nV(e,n))}function EV(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),MV(e,n)}function _V(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(aN(314))}null!==r&&r.delete(t),MV(e,n)}function DV(e,t){return YA(e,t)}function qV(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function TV(e,t,n,r){return new qV(e,t,n,r)}function RV(e){return!(!(e=e.prototype)||!e.isReactComponent)}function OV(e,t){var n=e.alternate;return null===n?((n=TV(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function NV(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)RV(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case CN:return AV(n.children,i,o,t);case MN:a=8,i|=8;break;case EN:return(e=TV(12,n,t,2|i)).elementType=EN,e.lanes=o,e;case TN:return(e=TV(13,n,t,i)).elementType=TN,e.lanes=o,e;case RN:return(e=TV(19,n,t,i)).elementType=RN,e.lanes=o,e;case AN:return PV(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _N:a=10;break e;case DN:a=9;break e;case qN:a=11;break e;case ON:a=14;break e;case NN:a=16,r=null;break e}throw Error(aN(130,null==e?e:typeof e,""))}return(t=TV(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function AV(e,t,n,r){return(e=TV(7,e,r,t)).lanes=n,e}function PV(e,t,n,r){return(e=TV(22,e,r,t)).elementType=AN,e.lanes=n,e.stateNode={isHidden:!1},e}function IV(e,t,n){return(e=TV(6,e,null,t)).lanes=n,e}function LV(e,t,n){return(t=TV(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zV(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gP(0),this.expirationTimes=gP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gP(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function FV(e,t,n,r,i,o,a,s,l){return e=new zV(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=TV(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},TF(o),e}function jV(e){if(!e)return Ez;e:{if(HA(e=e._reactInternals)!==e||1!==e.tag)throw Error(aN(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Rz(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(aN(171))}if(1===e.tag){var n=e.type;if(Rz(n))return Az(e,n,t)}return t}function $V(e,t,n,r,i,o,a,s,l){return(e=FV(n,r,!0,e,0,o,0,s,l)).context=jV(null),n=e.current,(o=OF(r=JH(),i=eV(n))).callback=null!=t?t:null,NF(n,o,i),e.current.lanes=i,yP(e,i,r),nV(e,r),e}function HV(e,t,n,r){var i=t.current,o=JH(),a=eV(i);return n=jV(n),null===t.context?t.context=n:t.pendingContext=n,(t=OF(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=NF(i,t,a))&&(tV(e,i,a,o),AF(e,i,a)),a}function VV(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function BV(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function WV(e,t){BV(e,t),(e=e.alternate)&&BV(e,t)}kH=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Dz.current)v$=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return v$=!1,function(e,t,n){switch(t.tag){case 3:D$(t),fF();break;case 5:ij(t);break;case 1:Rz(t.type)&&Pz(t);break;case 4:nj(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Mz(gF,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Mz(aj,1&aj.current),t.flags|=128,null):0!=(n&t.child.childLanes)?I$(e,t,n):(Mz(aj,1&aj.current),null!==(e=V$(e,t,n))?e.sibling:null);Mz(aj,1&aj.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return $$(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mz(aj,aj.current),r)break;return null;case 22:case 23:return t.lanes=0,S$(e,t,n)}return V$(e,t,n)}(e,t,n);v$=0!=(131072&e.flags)}else v$=!1,rF&&0!=(1048576&t.flags)&&Qz(t,Wz,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;H$(e,t),e=t.pendingProps;var i=Tz(t,_z.current);SF(t,n),i=kj(null,t,r,e,i,n);var o=Sj();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rz(r)?(o=!0,Pz(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,TF(t),i.updater=jF,t.stateNode=i,i._reactInternals=t,BF(t,r,e,n),t=_$(null,t,r,!0,o,n)):(t.tag=0,rF&&o&&Jz(t),b$(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(H$(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return RV(e)?1:0;if(null!=e){if((e=e.$$typeof)===qN)return 11;if(e===ON)return 14}return 2}(r),e=mF(r,e),i){case 0:t=M$(null,t,r,e,n);break e;case 1:t=E$(null,t,r,e,n);break e;case 11:t=x$(null,t,r,e,n);break e;case 14:t=w$(null,t,r,mF(r.type,e),n);break e}throw Error(aN(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,M$(e,t,r,i=t.elementType===r?i:mF(r,i),n);case 1:return r=t.type,i=t.pendingProps,E$(e,t,r,i=t.elementType===r?i:mF(r,i),n);case 3:e:{if(D$(t),null===e)throw Error(aN(387));r=t.pendingProps,i=(o=t.memoizedState).element,RF(e,t),IF(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=q$(e,t,r,n,i=l$(Error(aN(423)),t));break e}if(r!==i){t=q$(e,t,r,n,i=l$(Error(aN(424)),t));break e}for(nF=lz(t.stateNode.containerInfo.firstChild),tF=t,rF=!0,iF=null,n=XF(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fF(),r===i){t=V$(e,t,n);break e}b$(e,t,r,n)}t=t.child}return t;case 5:return ij(t),null===e&&lF(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,tz(r,i)?a=null:null!==o&&tz(r,o)&&(t.flags|=32),C$(e,t),b$(e,t,a,n),t.child;case 6:return null===e&&lF(t),null;case 13:return I$(e,t,n);case 4:return nj(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=GF(t,null,r,n):b$(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,x$(e,t,r,i=t.elementType===r?i:mF(r,i),n);case 7:return b$(e,t,t.pendingProps,n),t.child;case 8:case 12:return b$(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Mz(gF,r._currentValue),r._currentValue=a,null!==o)if(aL(o.value,a)){if(o.children===i.children&&!Dz.current){t=V$(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=OF(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),kF(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(aN(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),kF(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}b$(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,SF(t,n),r=r(i=CF(i)),t.flags|=1,b$(e,t,r,n),t.child;case 14:return i=mF(r=t.type,t.pendingProps),w$(e,t,r,i=mF(r.type,i),n);case 15:return k$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mF(r,i),H$(e,t),t.tag=1,Rz(r)?(e=!0,Pz(t)):e=!1,SF(t,n),HF(t,r,i),BF(t,r,i,n),_$(null,t,r,!0,e,n);case 19:return $$(e,t,n);case 22:return S$(e,t,n)}throw Error(aN(156,t.tag))};var UV="function"==typeof reportError?reportError:function(e){console.error(e)};function YV(e){this._internalRoot=e}function KV(e){this._internalRoot=e}function GV(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function XV(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ZV(){}function QV(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=VV(a);s.call(e)}}HV(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=VV(a);o.call(e)}}var a=$V(t,r,e,0,null,!1,0,"",ZV);return e._reactRootContainer=a,e[hz]=a.current,$L(8===e.nodeType?e.parentNode:e),cV(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=VV(l);s.call(e)}}var l=FV(e,0,!1,null,0,!1,0,"",ZV);return e._reactRootContainer=l,e[hz]=l.current,$L(8===e.nodeType?e.parentNode:e),cV((function(){HV(t,l,n,r)})),l}(n,t,e,i,r);return VV(a)}KV.prototype.render=YV.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(aN(409));HV(e,t,null,null)},KV.prototype.unmount=YV.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cV((function(){HV(null,e,null,null)})),t[hz]=null}},KV.prototype.unstable_scheduleHydration=function(e){if(e){var t=CP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<NP.length&&0!==t&&t<NP[n].priority;n++);NP.splice(n,0,e),0===n&&LP(e)}},wP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dP(t.pendingLanes);0!==n&&(vP(t,1|n),nV(t,ZA()),0==(6&_H)&&($H=ZA()+500,$z()))}break;case 13:cV((function(){var t=DF(e,1);if(null!==t){var n=JH();tV(t,e,1,n)}})),WV(e,1)}},kP=function(e){if(13===e.tag){var t=DF(e,134217728);if(null!==t)tV(t,e,134217728,JH());WV(e,134217728)}},SP=function(e){if(13===e.tag){var t=eV(e),n=DF(e,t);if(null!==n)tV(n,e,t,JH());WV(e,t)}},CP=function(){return bP},MP=function(e,t){var n=bP;try{return bP=e,t()}finally{bP=n}},kA=function(e,t,n){switch(t){case"input":if(JN(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xz(r);if(!i)throw Error(aN(90));KN(r),JN(r,i)}}}break;case"textarea":aA(e,n);break;case"select":null!=(t=n.value)&&rA(e,!!n.multiple,t,!1)}},DA=lV,qA=cV;var JV={usingClientEntryPoint:!1,Events:[vz,bz,xz,EA,_A,lV]},eB={findFiberByHostInstance:yz,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},tB={bundleType:eB.bundleType,version:eB.version,rendererPackageName:eB.rendererPackageName,rendererConfig:eB.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wN.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=WA(e))?null:e.stateNode},findFiberByHostInstance:eB.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nB=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nB.isDisabled&&nB.supportsFiber)try{iP=nB.inject(tB),oP=nB}catch(FQ){}}eN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JV,eN.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!GV(t))throw Error(aN(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:SN,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},eN.createRoot=function(e,t){if(!GV(e))throw Error(aN(299));var n=!1,r="",i=UV;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=FV(e,1,!1,null,0,n,0,r,i),e[hz]=t.current,$L(8===e.nodeType?e.parentNode:e),new YV(t)},eN.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(aN(188));throw e=Object.keys(e).join(","),Error(aN(268,e))}return e=null===(e=WA(t))?null:e.stateNode},eN.flushSync=function(e){return cV(e)},eN.hydrate=function(e,t,n){if(!XV(t))throw Error(aN(200));return QV(null,e,t,!0,n)},eN.hydrateRoot=function(e,t,n){if(!GV(e))throw Error(aN(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=UV;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=$V(t,null,e,1,null!=n?n:null,i,0,o,a),e[hz]=t.current,$L(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new KV(t)},eN.render=function(e,t,n){if(!XV(t))throw Error(aN(200));return QV(null,e,t,!1,n)},eN.unmountComponentAtNode=function(e){if(!XV(e))throw Error(aN(40));return!!e._reactRootContainer&&(cV((function(){QV(null,null,e,!1,(function(){e._reactRootContainer=null,e[hz]=null}))})),!0)},eN.unstable_batchedUpdates=lV,eN.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!XV(n))throw Error(aN(200));if(null==e||void 0===e._reactInternals)throw Error(aN(38));return QV(e,t,n,!1,r)},eN.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),JO.exports=eN;var rB=JO.exports,iB=r(rB),oB=!0,aB=!1,sB=null,lB={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function cB(e){e.metaKey||e.altKey||e.ctrlKey||(oB=!0)}function uB(){oB=!1}function dB(){"hidden"===this.visibilityState&&aB&&(oB=!0)}function fB(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return oB||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!lB[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function hB(){aB=!0,window.clearTimeout(sB),sB=window.setTimeout((function(){aB=!1}),100)}function pB(){var e=E_.useCallback((function(e){var t,n=rB.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",cB,!0),t.addEventListener("mousedown",uB,!0),t.addEventListener("pointerdown",uB,!0),t.addEventListener("touchstart",uB,!0),t.addEventListener("visibilitychange",dB,!0))}),[]);return{isFocusVisible:fB,onBlurVisible:hB,ref:e}}var mB=!1,gB=__.createContext(null),yB="unmounted",vB="exited",bB="entering",xB="entered",wB="exiting",kB=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=vB,r.appearStatus=bB):i=xB:i=t.unmountOnExit||t.mountOnEnter?yB:vB,r.state={status:i},r.nextCallback=null,r}nq(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yB?{status:vB}: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!==bB&&n!==xB&&(t=bB):n!==bB&&n!==xB||(t=wB)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.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===bB){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:iB.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vB&&this.setState({status:yB})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[iB.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||mB?this.safeSetState({status:xB},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:bB},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:xB},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:iB.findDOMNode(this);t&&!mB?(this.props.onExit(r),this.safeSetState({status:wB},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:vB},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:vB},(function(){e.props.onExited(r)}))},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(r){n&&(n=!1,t.nextCallback=null,e(r))},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:iB.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===yB)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 r=xD(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return __.createElement(gB.Provider,{value:null},"function"==typeof n?n(e,r):__.cloneElement(__.Children.only(n),r))},t}(__.Component);function SB(){}kB.contextType=gB,kB.propTypes={},kB.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:SB,onEntering:SB,onEntered:SB,onExit:SB,onExiting:SB,onExited:SB},kB.UNMOUNTED=yB,kB.EXITED=vB,kB.ENTERING=bB,kB.ENTERED=xB,kB.EXITING=wB;var CB=kB;function MB(e,t){var n=Object.create(null);return e&&E_.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&E_.isValidElement(e)?t(e):e}(e)})),n}function EB(e,t,n){return null!=n[t]?n[t]:e.props[t]}function _B(e,t,n){var r=MB(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(E_.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=E_.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&E_.isValidElement(c)&&(i[o]=E_.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:EB(a,"exit",e),enter:EB(a,"enter",e)})):i[o]=E_.cloneElement(a,{in:!1}):i[o]=E_.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:EB(a,"exit",e),enter:EB(a,"enter",e)})}})),i}var DB=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},qB=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(rq(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}nq(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,MB(n.children,(function(e){return E_.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:EB(e,"appear",n),enter:EB(e,"enter",n),exit:EB(e,"exit",n)})}))):_B(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=MB(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=lD({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=xD(e,["component","childFactory"]),i=this.state.contextValue,o=DB(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?__.createElement(gB.Provider,{value:i},o):__.createElement(gB.Provider,{value:i},__.createElement(t,r,o))},t}(__.Component);qB.propTypes={},qB.defaultProps={component:"div",childFactory:function(e){return e}};var TB=qB;function RB(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var OB=E_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=wD(e,["classes","className","component","square","elevation","variant"]);return E_.createElement(o,lD({className:UO(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),NB=HO((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),lD({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(OB),AB="undefined"==typeof window?E_.useEffect:E_.useLayoutEffect;function PB(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=E_.useState(!1),f=d[0],h=d[1],p=UO(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=UO(t.child,f&&t.childLeaving,r&&t.childPulsate),y=ZO(c);return AB((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),E_.createElement("span",{className:p,style:m},E_.createElement("span",{className:g}))}var IB=E_.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=wD(e,["center","classes","className"]),s=E_.useState([]),l=s[0],c=s[1],u=E_.useRef(0),d=E_.useRef(null);E_.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=E_.useRef(!1),h=E_.useRef(null),p=E_.useRef(null),m=E_.useRef(null);E_.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=E_.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(zD(e),[E_.createElement(PB,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=E_.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,k=x.clientY;u=Math.round(w-b.left),d=Math.round(k-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var S=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(S,2)+Math.pow(C,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=E_.useCallback((function(){y({},{pulsate:!0})}),[y]),b=E_.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return E_.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),E_.createElement("span",lD({className:UO(i.root,o),ref:m},a),E_.createElement(TB,{component:null,exit:!0},l))})),LB=HO((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(E_.memo(IB)),zB=E_.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,k=e.onFocus,S=e.onFocusVisible,C=e.onKeyDown,M=e.onKeyUp,E=e.onMouseDown,_=e.onMouseLeave,D=e.onMouseUp,q=e.onTouchEnd,T=e.onTouchMove,R=e.onTouchStart,O=e.onDragLeave,N=e.tabIndex,A=void 0===N?0:N,P=e.TouchRippleProps,I=e.type,L=void 0===I?"button":I,z=wD(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=E_.useRef(null);var j=E_.useRef(null),$=E_.useState(!1),H=$[0],V=$[1];f&&H&&V(!1);var B=pB(),W=B.isFocusVisible,U=B.onBlurVisible,Y=B.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return ZO((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}E_.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),E_.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",E),X=K("stop",O),Z=K("stop",D),Q=K("stop",(function(e){H&&e.preventDefault(),_&&_(e)})),J=K("start",R),ee=K("stop",q),te=K("stop",T),ne=K("stop",(function(e){H&&(U(e),V(!1)),x&&x(e)}),!1),re=ZO((function(e){F.current||(F.current=e.currentTarget),W(e)&&(V(!0),S&&S(e)),k&&k(e)})),ie=function(){var e=rB.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=E_.useRef(!1),ae=ZO((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=ZO((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),M&&M(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=L,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=QO(r,t),de=QO(Y,F),fe=QO(ue,de),he=E_.useState(!1),pe=he[0],me=he[1];E_.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return E_.createElement(le,lD({className:UO(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Q,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:J,ref:fe,tabIndex:f?-1:A},ce,z),a,ge?E_.createElement(LB,lD({ref:j,center:o},P)):null)})),FB=HO({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(zB),jB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},$B=E_.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?jB:b,w=wD(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=l||(g?"p":x[v]||jB[v])||"span";return E_.createElement(k,lD({className:UO(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(VO(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(VO(r))],"initial"!==u&&i["display".concat(VO(u))]),ref:t},w))})),HB=HO((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})($B),VB=E_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,k=e.type,S=void 0===k?"button":k,C=e.variant,M=void 0===C?"text":C,E=wD(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),_=w&&E_.createElement("span",{className:UO(r.startIcon,r["iconSize".concat(VO(x))])},w),D=m&&E_.createElement("span",{className:UO(r.endIcon,r["iconSize".concat(VO(x))])},m);return E_.createElement(FB,lD({className:UO(r.root,r[M],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(M).concat(VO(a))],"medium"!==x&&[r["".concat(M,"Size").concat(VO(x))],r["size".concat(VO(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:UO(r.focusVisible,g),ref:t,type:S},E),E_.createElement("span",{className:r.label},_,n,D))})),BB=HO((function(e){return{root:lD({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:bD(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:bD(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:bD(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(bD(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:bD(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(bD(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:bD(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(VB);var WB="undefined"!=typeof window?E_.useLayoutEffect:E_.useEffect,UB=E_.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=E_.useState(null),l=s[0],c=s[1],u=QO(E_.isValidElement(n)?n.ref:null,t);return WB((function(){o||c(function(e){return e="function"==typeof e?e():e,rB.findDOMNode(e)}(r)||document.body)}),[r,o]),WB((function(){if(l&&!o)return GO(t,l),function(){GO(t,null)}}),[t,l,o]),WB((function(){a&&(l||o)&&a()}),[a,l,o]),o?E_.isValidElement(n)?E_.cloneElement(n,{ref:u}):n:l?rB.createPortal(n,l):l})),YB=UB;function KB(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function GB(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function XB(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(zD(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&KB(e,r)}))}function ZB(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function QB(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=YO(e);return t.body===e?KO(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(GB(o)+a,"px"),n=YO(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(GB(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var JB=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return eq(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&KB(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);XB(t,e.mountNode,e.modalRef,r,!0);var i=ZB(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=ZB(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=QB(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=ZB(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&KB(e.modalRef,!0),XB(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&KB(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function eW(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=E_.useRef(),f=E_.useRef(null),h=E_.useRef(null),p=E_.useRef(),m=E_.useRef(null),g=E_.useCallback((function(e){m.current=rB.findDOMNode(e)}),[]),y=QO(t.ref,g),v=E_.useRef();return E_.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),E_.useEffect((function(){if(u){var e=YO(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),E_.createElement(E_.Fragment,null,E_.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),E_.cloneElement(t,{ref:y}),E_.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var tW={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},nW=E_.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=wD(e,["invisible","open"]);return i?E_.createElement("div",lD({"aria-hidden":!0,ref:t},o,{style:lD({},tW.root,r?tW.invisible:{},o.style)})):null}));var rW=new JB,iW=E_.forwardRef((function(e,t){var n=HR(),r=XD({name:"MuiModal",props:lD({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?nW:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,k=void 0!==w&&w,S=r.disableScrollLock,C=void 0!==S&&S,M=r.hideBackdrop,E=void 0!==M&&M,_=r.keepMounted,D=void 0!==_&&_,q=r.manager,T=void 0===q?rW:q,R=r.onBackdropClick,O=r.onClose,N=r.onEscapeKeyDown,A=r.onRendered,P=r.open,I=wD(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=E_.useState(!0),z=L[0],F=L[1],j=E_.useRef({}),$=E_.useRef(null),H=E_.useRef(null),V=QO(H,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return YO($.current)},U=function(){return j.current.modalRef=H.current,j.current.mountNode=$.current,j.current},Y=function(){T.mount(U(),{disableScrollLock:C}),H.current.scrollTop=0},K=ZO((function(){var e=function(e){return e="function"==typeof e?e():e,rB.findDOMNode(e)}(u)||W().body;T.add(U(),e),H.current&&Y()})),G=E_.useCallback((function(){return T.isTopModal(U())}),[T]),X=ZO((function(e){$.current=e,e&&(A&&A(),P&&G()?Y():KB(H.current,!0))})),Z=E_.useCallback((function(){T.remove(U())}),[T]);if(E_.useEffect((function(){return function(){Z()}}),[Z]),E_.useEffect((function(){P?K():B&&c||Z()}),[P,Z,B,c,K]),!D&&!P&&(!B||z))return null;var Q=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:WD}),J={};return void 0===s.props.tabIndex&&(J.tabIndex=s.props.tabIndex||"-1"),B&&(J.onEnter=BO((function(){F(!1)}),s.props.onEnter),J.onExited=BO((function(){F(!0),c&&Z()}),s.props.onExited)),E_.createElement(YB,{ref:X,container:u,disablePortal:x},E_.createElement("div",lD({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(N&&N(e),v||(e.stopPropagation(),O&&O(e,"escapeKeyDown")))},role:"presentation"},I,{style:lD({},Q.root,!P&&z?Q.hidden:{},I.style)}),E?null:E_.createElement(o,lD({open:P,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!p&&O&&O(e,"backdropClick"))}},a)),E_.createElement(eW,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:k,getDoc:W,isEnabled:G,open:P},E_.cloneElement(s,J))))})),oW=iW,aW=E_.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=wD(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return E_.createElement(s,lD({className:UO(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),sW=HO((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:bD(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(aW);function lW(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var cW={entering:{opacity:1,transform:lW(1)},entered:{opacity:1,transform:"none"}},uW=E_.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?CB:m,y=wD(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=E_.useRef(),b=E_.useRef(),x=HR()||jO,w=x.unstable_strictMode&&!i,k=E_.useRef(null),S=QO(n.ref,t),C=QO(w?k:void 0,S),M=function(e){return function(t,n){if(e){var r=FD(w?[k.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},E=M(l),_=M((function(e,t){!function(e){e.scrollTop}(e);var n,r=RB({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),D=M(s),q=M(d),T=M((function(e){var t,n=RB({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=lW(.75),c&&c(e)})),R=M(u);return E_.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),E_.createElement(g,lD({appear:!0,in:o,nodeRef:w?k:void 0,onEnter:_,onEntered:D,onEntering:E,onExit:T,onExited:R,onExiting:q,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return E_.cloneElement(n,lD({style:lD({opacity:0,transform:lW(.75),visibility:"exited"!==e||o?void 0:"hidden"},cW[e],f,n.props.style),ref:C},t))}))}));uW.muiSupportAuto=!0;var dW=uW,fW=E_.createContext({}),hW=E_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=wD(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=E_.useMemo((function(){return{dense:l}}),[l]);return E_.createElement(fW.Provider,{value:h},E_.createElement(a,lD({className:UO(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),pW=HO({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(hW),mW="undefined"==typeof window?E_.useEffect:E_.useLayoutEffect,gW=E_.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=wD(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,k=void 0!==w&&w,S=e.divider,C=void 0!==S&&S,M=e.focusVisibleClassName,E=e.selected,_=void 0!==E&&E,D=wD(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),q=E_.useContext(fW),T={dense:v||q.dense||!1,alignItems:r},R=E_.useRef(null);mW((function(){o&&R.current&&R.current.focus()}),[o]);var O,N,A=E_.Children.toArray(l),P=A.length&&(O=A[A.length-1],N=["ListItemSecondaryAction"],E_.isValidElement(O)&&-1!==N.indexOf(O.type.muiName)),I=E_.useCallback((function(e){R.current=rB.findDOMNode(e)}),[]),L=QO(I,t),z=lD({className:UO(c.root,u,T.dense&&c.dense,!k&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,P&&c.secondaryAction,_&&c.selected),disabled:x},D),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=UO(c.focusVisible,M),F=FB),P?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),E_.createElement(fW.Provider,{value:T},E_.createElement(h,lD({className:UO(c.container,m),ref:L},g),E_.createElement(F,z,A),A.pop()))):E_.createElement(fW.Provider,{value:T},E_.createElement(F,lD({ref:L},z),A))})),yW=HO((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(gW),vW=E_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=wD(e,["classes","className"]),o=E_.useContext(fW);return E_.createElement("div",lD({className:UO(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),bW=HO((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(vW),xW=E_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=wD(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=E_.useContext(fW).dense,m=null!=c?c:n;null==m||m.type===HB||a||(m=E_.createElement(HB,lD({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===HB||a||(g=E_.createElement(HB,lD({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),E_.createElement("div",lD({className:UO(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),wW=HO({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(xW);function kW(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function SW(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function CW(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function MW(e){return"function"==typeof e?e():e}var EW=E_.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,k=e.onExited,S=e.onExiting,C=e.open,M=e.PaperProps,E=void 0===M?{}:M,_=e.transformOrigin,D=void 0===_?{vertical:"top",horizontal:"left"}:_,q=e.TransitionComponent,T=void 0===q?dW:q,R=e.transitionDuration,O=void 0===R?"auto":R,N=e.TransitionProps,A=void 0===N?{}:N,P=wD(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),I=E_.useRef(),L=E_.useCallback((function(e){if("anchorPosition"===l)return a;var t=MW(r),n=(t&&1===t.nodeType?t:YO(I.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+kW(n,i),left:n.left+SW(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=E_.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=E_.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:kW(e,D.vertical)+t,horizontal:SW(e,D.horizontal)}}),[D.horizontal,D.vertical]),j=E_.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:CW(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=KO(MW(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:CW(i)}}),[r,l,L,z,F,y]),$=E_.useCallback((function(){var e=I.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=E_.useCallback((function(e){I.current=rB.findDOMNode(e)}),[]);E_.useEffect((function(){C&&$()})),E_.useImperativeHandle(n,(function(){return C?{updatePosition:function(){$()}}:null}),[C,$]),E_.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,$]);var V=O;"auto"!==O||T.muiSupportAuto||(V=void 0);var B=f||(r?YO(MW(r)).body:void 0);return E_.createElement(oW,lD({container:B,open:C,ref:t,BackdropProps:{invisible:!0},className:UO(u.root,d)},P),E_.createElement(T,lD({appear:!0,in:C,onEnter:v,onEntered:b,onExit:w,onExited:k,onExiting:S,timeout:V},A,{onEntering:BO((function(e,t){x&&x(e,t),$()}),A.onEntering)}),E_.createElement(NB,lD({elevation:p,ref:H},E,{className:UO(u.paper,E.className)}),c)))})),_W=HO({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(EW);function DW(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function qW({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:DW(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return __.createElement("i",{style:i},__.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},__.createElement("path",{d:e})))}const TW=$O(yW)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),RW={menuItem:"alternative-menu-item"},OW=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>ZR((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return __.createElement(yW,G_({className:`${i.root} ${n}`},r))},NW=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${RW.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function AW({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a,isCyclicFFEnabled:s}){const l=Jg.detectTextDirection(e);return!s?__.createElement(TW,{role:"menuitem",button:!0,onClick:n,className:RW.menuItem,onKeyDown:NW,autoFocus:t},__.createElement(bW,{style:{minWidth:32}},__.createElement(qW,{d:t?N_.d:""})),__.createElement(wW,{primaryTypographyProps:{dir:l}},e)):__.createElement(OW,{nested:r,role:"menuitem",button:!0,onClick:n,className:RW.menuItem,onKeyDown:NW,dir:a,autoFocus:t},__.createElement(wW,{primary:e,primaryTypographyProps:{dir:l,...o&&{style:{fontWeight:600}}}}),__.createElement(bW,{style:{minWidth:16}},__.createElement(qW,{d:t?N_.d:""})),i&&__.createElement(bW,{style:{minWidth:16}},__.createElement(qW,{d:i.d})))}AW.propTypes={title:J_.string.isRequired,selected:J_.bool,onClick:J_.func.isRequired,nested:J_.bool,icon:J_.shape({d:J_.string.isRequired}),bold:J_.bool,dir:J_.string.isRequired,isCyclicFFEnabled:J_.bool.isRequired},AW.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},OW.propTypes={nested:J_.bool,className:J_.string},OW.defaultProps={nested:!1,className:RW.menuItem};const PW={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function IW({alignTo:e,currentId:t,dir:n,dock:r,list:i,onClose:o,show:a,instruction:s,isCyclicFFEnabled:l}){const c=l,u=i.map(((e,r)=>{var a;return __.createElement(__.Fragment,{key:e.id},__.createElement(AW,{icon:e.icon,title:e.title,bold:e.groupItem,selected:e.selected,onClick:()=>{e.onSelect&&e.onSelect(t),o(e.id)},dir:n,isCyclicFFEnabled:l}),(null===(a=e.children)||void 0===a?void 0:a.length)>0&&__.createElement(pW,{dense:!0,dir:n,component:"div",disablePadding:!0},e.children.map((t=>__.createElement(AW,{key:t.id,nested:!0,title:t.title,selected:t.selected,onClick:()=>{t.onSelect(),o(e.id)},dir:n,isCyclicFFEnabled:l})))),r<i.length-1&&c&&__.createElement(sW,{key:`divider-${e.id}`}))}));return __.createElement(_W,G_({anchorEl:e,open:a,onClose:o},PW[r],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),__.createElement(pW,{dense:!0,disablePadding:!0,dir:n,"aria-label":s,component:"nav"},u))}IW.propTypes={alignTo:J_.any,currentId:J_.string.isRequired,dir:J_.string.isRequired,dock:J_.string.isRequired,list:J_.array,onClose:J_.func.isRequired,show:J_.bool.isRequired,instruction:J_.string.isRequired,isCyclicFFEnabled:J_.bool.isRequired},IW.defaultProps={list:[],alignTo:null};const LW="title-button",zW="active-title-button",FW=$O((({children:e,...t})=>__.createElement(BB,G_({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),jW=$O(BB)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class $W extends __.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=__.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${LW}`);t&&t.classList.add(zW)}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${LW}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${zW}`);e&&(e.classList.remove(zW),setTimeout((()=>{e.focus()}),50))}}render(){const{titleData:e,popover:t,translator:n,disabled:r,isDimension:i,padding:o,minWidth:a,hasAlternative:s,supportConditional:l,showGroupDimOptions:c}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},d=e.breadcrumbs.length,f=r||Boolean(!e.drillUp)||this.state.inSelection,h=e.breadcrumbs.map(((t,n)=>__.createElement(FW,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:e.drillUp(d-n),title:t},__.createElement("span",{style:u},t),__.createElement(qW,G_({},P_,{size:"small",style:{margin:"0 8px"}}))))),p=l||c?this.state.hasPopoverOptions:s,m=t&&!this.state.open?this.openPopover:this.closePopover,g=!t||r||this.state.inSelection,y={display:"flex",alignItems:"center",width:"100%",color:g&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&g&&"none",...o?{padding:o}:{paddingTop:0,paddingBottom:0},...a&&{minWidth:a}};this.state.open&&(y.background="rgba(0,0,0,0.08)");const v=()=>{this.setState({disableCyclicButton:!0})},b=Jg.detectTextDirection(e.text),x=__.createElement(FW,{"aria-label":n.get(`Accessibility.${t&&p?"Alternative":"Normal"}.Instructions`,[e.text]),style:y,onClick:g?void 0:m,title:e.text,tabIndex:g?-1:0,onFocus:g?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:g?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${LW} ${e.id}`,"data-id":e.id},e.locked&&__.createElement(qW,G_({},O_,{size:"small",title:n.get("Tooltip.selections.locked")})),__.createElement("span",{style:u,dir:b},e.text),t&&p&&__.createElement(qW,G_({},A_,{size:"small",style:{margin:"0 8px"}})));return __.createElement(__.Fragment,null,e.icon&&e.icon.onClick&&__.createElement(jW,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:r?void 0:()=>e.icon.onClick({onError:v})},__.createElement(qW,G_({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip)}))),e.icon&&!e.icon.onClick&&__.createElement(qW,G_({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip),style:{margin:"0 4px 0 0"}})),h,__.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:p?"auto":"none",height:"100%"}},x),t&&p&&__.createElement(IW,{dock:t.dock,dir:t.dir,currentId:e.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:n.get("Accessibility.Popover.Instructions"),isCyclicFFEnabled:this.props.isCyclicFFEnabled}))}}function HW(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function VW(e){function t(e){return!e.isDimension&&Kg.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1,isEnabled:g},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(y,this.rect),x=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,w=x&&x[a?"qDimensions":"qMeasures"]||[],k=r||i[a?"qDimensionInfo":"qMeasureInfo"],S=a?W_:Y_,C=a?U_:K_,M=Boolean(l&&l.colorSupport&&l.modifiers),E=M&&((_=this.settings.settings).isDimension&&Kg.getValue(_,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var _;const D=g("PS_21223_CYCLIC_GROUPS"),q=k.map(((t,r)=>{const i="number"==typeof t.explicitColumn?t.explicitColumn:r,o=C(t,i,l,e),g=r===k.length-1,v=D&&Boolean(e)&&a&&"N"!==t.qGrouping,b=M||v?S({column:i,activeInfo:t,altList:w,app:e,dir:d?"rtl":"ltr",dock:HW(y),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:M,isCyclicFFEnabled:D}):void 0;return __.createElement(__.Fragment,{key:t.cId},__.createElement($W,{showGroupDimOptions:v,popover:b,titleData:o,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:E,supportConditional:m,isCyclicFFEnabled:D}),!g&&__.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return __.createElement("div",{style:b,dir:v},q)}}}$W.propTypes={disabled:J_.bool.isRequired,padding:J_.string,minWidth:J_.string,titleData:J_.shape({breadcrumbs:J_.arrayOf(J_.string).isRequired,icon:J_.shape({path:J_.shape({d:J_.string.isRequired}),tooltip:J_.string.isRequired,onClick:J_.func}),index:J_.number.isRequired,locked:J_.bool.isRequired,text:J_.string.isRequired,popoverText:J_.string.isRequired,drillUp:J_.func,id:J_.string.isRequired}).isRequired,popover:J_.shape({dir:J_.string.isRequired,dock:J_.string.isRequired,getPopoverOptions:J_.func.isRequired}),translator:J_.shape({get:J_.func.isRequired}).isRequired,selections:J_.shape({isActive:J_.func,addListener:J_.func,removeListener:J_.func}),style:J_.shape({fontSize:J_.string,color:J_.string,fontFamily:J_.string}).isRequired,isDimension:J_.bool.isRequired,hasAlternative:J_.bool.isRequired,supportConditional:J_.bool.isRequired,isCyclicFFEnabled:J_.bool.isRequired,showGroupDimOptions:J_.bool.isRequired},$W.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const BW=UD({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const WW=GD({productionPrefix:"q0e0e",disableGlobal:!0,seed:""});function UW(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",iB.render(function(e,t){return __.createElement(YR,{generateClassName:t},__.createElement(zO,{theme:BW},e))}(e,WW),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&iB.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(iB.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}var YW={black:"#000",white:"#fff"};var KW={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var GW={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var XW={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var ZW={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var QW={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var JW={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var eU={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function tU(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var nU=Object.freeze({__proto__:null,default:tU}),rU="$$material";function iU(){return iU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iU.apply(this,arguments)}function oU(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function aU(){return aU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aU.apply(this,arguments)}function sU(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var lU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cU=sU((function(e){return lU.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var uU=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),dU="-ms-",fU="-moz-",hU="-webkit-",pU="comm",mU="rule",gU="decl",yU="@keyframes",vU=Math.abs,bU=String.fromCharCode,xU=Object.assign;function wU(e){return e.trim()}function kU(e,t,n){return e.replace(t,n)}function SU(e,t){return e.indexOf(t)}function CU(e,t){return 0|e.charCodeAt(t)}function MU(e,t,n){return e.slice(t,n)}function EU(e){return e.length}function _U(e){return e.length}function DU(e,t){return t.push(e),e}var qU=1,TU=1,RU=0,OU=0,NU=0,AU="";function PU(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:qU,column:TU,length:a,return:""}}function IU(e,t){return xU(PU("",null,null,"",null,null,0),e,{length:-e.length},t)}function LU(){return NU=OU>0?CU(AU,--OU):0,TU--,10===NU&&(TU=1,qU--),NU}function zU(){return NU=OU<RU?CU(AU,OU++):0,TU++,10===NU&&(TU=1,qU++),NU}function FU(){return CU(AU,OU)}function jU(){return OU}function $U(e,t){return MU(AU,e,t)}function HU(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function VU(e){return qU=TU=1,RU=EU(AU=e),OU=0,[]}function BU(e){return AU="",e}function WU(e){return wU($U(OU-1,KU(91===e?e+2:40===e?e+1:e)))}function UU(e){for(;(NU=FU())&&NU<33;)zU();return HU(e)>2||HU(NU)>3?"":" "}function YU(e,t){for(;--t&&zU()&&!(NU<48||NU>102||NU>57&&NU<65||NU>70&&NU<97););return $U(e,jU()+(t<6&&32==FU()&&32==zU()))}function KU(e){for(;zU();)switch(NU){case e:return OU;case 34:case 39:34!==e&&39!==e&&KU(NU);break;case 40:41===e&&KU(e);break;case 92:zU()}return OU}function GU(e,t){for(;zU()&&e+NU!==57&&(e+NU!==84||47!==FU()););return"/*"+$U(t,OU-1)+"*"+bU(47===e?e:zU())}function XU(e){for(;!HU(FU());)zU();return $U(e,OU)}function ZU(e){return BU(QU("",null,null,null,[""],e=VU(e),0,[0],e))}function QU(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,k=r,S=b;g;)switch(p=v,v=zU()){case 40:if(108!=p&&58==CU(S,d-1)){-1!=SU(S+=kU(WU(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=WU(v);break;case 9:case 10:case 13:case 32:S+=UU(p);break;case 92:S+=YU(jU()-1,7);continue;case 47:switch(FU()){case 42:case 47:DU(eY(GU(zU(),jU()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=EU(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(S=kU(S,/\f/g,"")),h>0&&EU(S)-d&&DU(h>32?tY(S+";",r,n,d-1):tY(kU(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(DU(k=JU(S,t,n,c,u,i,s,b,x=[],w=[],d),o),123===v)if(0===u)QU(S,t,k,k,x,o,d,s,w);else switch(99===f&&110===CU(S,3)?100:f){case 100:case 108:case 109:case 115:QU(e,k,k,r&&DU(JU(e,k,k,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:QU(S,k,k,k,[""],w,0,s,w)}}c=u=h=0,m=y=1,b=S="",d=a;break;case 58:d=1+EU(S),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==LU())continue;switch(S+=bU(v),v*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(EU(S)-1)*y,y=1;break;case 64:45===FU()&&(S+=WU(zU())),f=FU(),u=d=EU(b=S+=XU(jU())),v++;break;case 45:45===p&&2==EU(S)&&(m=0)}}return o}function JU(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=_U(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=MU(e,d+1,d=vU(m=a[p])),b=e;y<h;++y)(b=wU(m>0?f[y]+" "+v:kU(v,/&\f/g,f[y])))&&(l[g++]=b);return PU(e,t,n,0===i?mU:s,l,c,u)}function eY(e,t,n){return PU(e,t,n,pU,bU(NU),MU(e,2,-2),0)}function tY(e,t,n,r){return PU(e,t,n,gU,MU(e,0,r),MU(e,r+1,-1),r)}function nY(e,t){for(var n="",r=_U(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function rY(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case gU:return e.return=e.return||e.value;case pU:return"";case yU:return e.return=e.value+"{"+nY(e.children,r)+"}";case mU:e.value=e.props.join(",")}return EU(n=nY(e.children,r))?e.return=e.value+"{"+n+"}":""}function iY(e){var t=_U(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var oY=function(e,t,n){for(var r=0,i=0;r=i,i=FU(),38===r&&12===i&&(t[n]=1),!HU(i);)zU();return $U(e,OU)},aY=function(e,t){return BU(function(e,t){var n=-1,r=44;do{switch(HU(r)){case 0:38===r&&12===FU()&&(t[n]=1),e[n]+=oY(OU-1,t,n);break;case 2:e[n]+=WU(r);break;case 4:if(44===r){e[++n]=58===FU()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=bU(r)}}while(r=zU());return e}(VU(e),t))},sY=new WeakMap,lY=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||sY.get(n))&&!r){sY.set(e,!0);for(var i=[],o=aY(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},cY=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function uY(e,t){switch(function(e,t){return 45^CU(e,0)?(((t<<2^CU(e,0))<<2^CU(e,1))<<2^CU(e,2))<<2^CU(e,3):0}(e,t)){case 5103:return hU+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return hU+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return hU+e+fU+e+dU+e+e;case 6828:case 4268:return hU+e+dU+e+e;case 6165:return hU+e+dU+"flex-"+e+e;case 5187:return hU+e+kU(e,/(\w+).+(:[^]+)/,hU+"box-$1$2"+dU+"flex-$1$2")+e;case 5443:return hU+e+dU+"flex-item-"+kU(e,/flex-|-self/,"")+e;case 4675:return hU+e+dU+"flex-line-pack"+kU(e,/align-content|flex-|-self/,"")+e;case 5548:return hU+e+dU+kU(e,"shrink","negative")+e;case 5292:return hU+e+dU+kU(e,"basis","preferred-size")+e;case 6060:return hU+"box-"+kU(e,"-grow","")+hU+e+dU+kU(e,"grow","positive")+e;case 4554:return hU+kU(e,/([^-])(transform)/g,"$1"+hU+"$2")+e;case 6187:return kU(kU(kU(e,/(zoom-|grab)/,hU+"$1"),/(image-set)/,hU+"$1"),e,"")+e;case 5495:case 3959:return kU(e,/(image-set\([^]*)/,hU+"$1$`$1");case 4968:return kU(kU(e,/(.+:)(flex-)?(.*)/,hU+"box-pack:$3"+dU+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+hU+e+e;case 4095:case 3583:case 4068:case 2532:return kU(e,/(.+)-inline(.+)/,hU+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(EU(e)-1-t>6)switch(CU(e,t+1)){case 109:if(45!==CU(e,t+4))break;case 102:return kU(e,/(.+:)(.+)-([^]+)/,"$1"+hU+"$2-$3$1"+fU+(108==CU(e,t+3)?"$3":"$2-$3"))+e;case 115:return~SU(e,"stretch")?uY(kU(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==CU(e,t+1))break;case 6444:switch(CU(e,EU(e)-3-(~SU(e,"!important")&&10))){case 107:return kU(e,":",":"+hU)+e;case 101:return kU(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hU+(45===CU(e,14)?"inline-":"")+"box$3$1"+hU+"$2$3$1"+dU+"$2box$3")+e}break;case 5936:switch(CU(e,t+11)){case 114:return hU+e+dU+kU(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hU+e+dU+kU(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hU+e+dU+kU(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hU+e+dU+e+e}return e}var dY="undefined"!=typeof document,fY=dY?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return sU((function(){var e={};return function(t){return e[t]}}))})),hY=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case gU:e.return=uY(e.value,e.length);break;case yU:return nY([IU(e,{value:kU(e.value,"@","@"+hU)})],r);case mU:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return nY([IU(e,{props:[kU(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return nY([IU(e,{props:[kU(t,/:(plac\w+)/,":"+hU+"input-$1")]}),IU(e,{props:[kU(t,/:(plac\w+)/,":-moz-$1")]}),IU(e,{props:[kU(t,/:(plac\w+)/,dU+"input-$1")]})],r)}return""}))}}],pY=function(e){var t=e.key;if(dY&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||hY,a={},s=[];dY&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,c=[lY,cY];if(dY){var u,d=[rY,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=iY(c.concat(o,d));i=function(e,t,n,r){u=n,function(e){nY(ZU(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var h=[rY],p=iY(c.concat(o,h)),m=fY(o)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return nY(ZU(e),p)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new uU({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},mY="undefined"!=typeof document;var gY=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===mY&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},yY=function(e,t,n){gY(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);mY||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!mY&&0!==i.length)return i}};var vY={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bY=/[A-Z]|^ms/g,xY=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wY=function(e){return 45===e.charCodeAt(1)},kY=function(e){return null!=e&&"boolean"!=typeof e},SY=sU((function(e){return wY(e)?e:e.replace(bY,"-$&").toLowerCase()})),CY=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(xY,(function(e,t,n){return EY={name:t,styles:n,next:EY},t}))}return 1===vY[e]||wY(e)||"number"!=typeof t||0===t?t:t+"px"};function MY(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return EY={name:n.name,styles:n.styles,next:EY},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)EY={name:r.name,styles:r.styles,next:EY},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=MY(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":kY(a)&&(r+=SY(o)+":"+CY(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=MY(e,t,a);switch(o){case"animation":case"animationName":r+=SY(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)kY(a[l])&&(r+=SY(o)+":"+CY(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=EY,o=n(e);return EY=i,MY(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var EY,_Y=/label:\s*([^\s;\n{]+)\s*(;|$)/g,DY=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";EY=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=MY(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=MY(n,t,e[a]),r&&(i+=o[a]);_Y.lastIndex=0;for(var s,l="";null!==(s=_Y.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:EY}},qY="undefined"!=typeof document,TY=function(e){return e()},RY=!!D_.useInsertionEffect&&D_.useInsertionEffect,OY=qY&&RY||TY,NY=RY||E_.useLayoutEffect,AY="undefined"!=typeof document,PY=E_.createContext("undefined"!=typeof HTMLElement?pY({key:"css"}):null),IY=PY.Provider,LY=function(e){return E_.forwardRef((function(t,n){var r=E_.useContext(PY);return e(t,r,n)}))};AY||(LY=function(e){return function(t){var n=E_.useContext(PY);return null===n?(n=pY({key:"css"}),E_.createElement(PY.Provider,{value:n},e(t,n))):e(t,n)}});var zY=E_.createContext({}),FY=LY((function(e,t){var n=e.styles,r=DY([n],void 0,E_.useContext(zY));if(!AY){for(var i,o=r.name,a=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,a+=s.styles,s=s.next;var l=!0===t.compat,c=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:E_.createElement("style",((i={})["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:c},i.nonce=t.sheet.nonce,i))}var u=E_.useRef();return NY((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),u.current=[n,i],function(){n.flush()}}),[t]),NY((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&yY(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function jY(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return DY(t)}var $Y=function(){var e=jY.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},HY=cU,VY=function(e){return"theme"!==e},BY=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?HY:VY},WY=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},UY="undefined"!=typeof document,YY=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;gY(t,n,r);var i=OY((function(){return yY(t,n,r)}));if(!UY&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return E_.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},KY=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=WY(t,n,o),l=s||BY(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],u[0][h])}var p=LY((function(e,t,n){var r,o,u,f,h=c&&e.as||a,p="",m=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=E_.useContext(zY)}"string"==typeof e.className?(r=t.registered,o=m,u=e.className,f="",u.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):f+=e+" "})),p=f):null!=e.className&&(p=e.className+" ");var v=DY(d.concat(m),t.registered,g);p+=t.key+"-"+v.name,void 0!==i&&(p+=" "+i);var b=c&&void 0===s?BY(h):l,x={};for(var w in e)c&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=p,x.ref=n,E_.createElement(E_.Fragment,null,E_.createElement(YY,{cache:t,serialized:v,isStringTag:"string"==typeof h}),E_.createElement(h,x))}));return p.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(t,r){return e(t,aU({},n,r,{shouldForwardProp:WY(p,r,!0)})).apply(void 0,d)},p}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){KY[e]=KY(e)}));var GY={exports:{}},XY={},ZY=E_,QY=Symbol.for("react.element"),JY=Symbol.for("react.fragment"),eK=Object.prototype.hasOwnProperty,tK=ZY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nK={key:!0,ref:!0,__self:!0,__source:!0};function rK(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)eK.call(t,r)&&!nK.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:QY,type:e,key:o,ref:a,props:i,_owner:tK.current}}XY.Fragment=JY,XY.jsx=rK,XY.jsxs=rK,GY.exports=XY;var iK=GY.exports;let oK;"object"==typeof document&&(oK=pY({key:"css",prepend:!0}));var aK=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return iK.jsx(FY,{styles:r})}
|
|
43
43
|
/**
|
|
44
44
|
* @mui/styled-engine v5.15.14
|
|
45
45
|
*
|
|
46
46
|
* @license MIT
|
|
47
47
|
* This source code is licensed under the MIT license found in the
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&oK?iK.jsx(IY,{value:oK,children:n}):n},ThemeContext:zY,css:jY,default:function(e,t){return KY(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:$Y});function sK(){return sK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sK.apply(this,arguments)}function lK(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function cK(){return cK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cK.apply(this,arguments)}function uK(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function dK(e){if(!uK(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=dK(e[n])})),t}function fK(e,t,n={clone:!0}){const r=n.clone?cK({},e):e;return uK(e)&&uK(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(uK(t[i])&&i in e&&uK(e[i])?r[i]=fK(e[i],t[i],n):n.clone?r[i]=uK(t[i])?dK(t[i]):t[i]:r[i]=t[i])})),r}var hK=Object.freeze({__proto__:null,default:fK,isPlainObject:uK});const pK=["values","unit","step"],mK=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>sK({},e,{[t.key]:t.val})),{})};function gK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=lK(e,pK),o=mK(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return sK({keys:a,values:o,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},i)}var yK={borderRadius:4};function vK(e,t){return t?fK(e,t,{clone:!1}):e}const bK={xs:0,sm:600,md:900,lg:1200,xl:1536},xK={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bK[e]}px)`};function wK(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||xK;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||xK;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||bK).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function kK(e){if("string"!=typeof e)throw new Error(tU(7));return e.charAt(0).toUpperCase()+e.slice(1)}var SK=Object.freeze({__proto__:null,default:kK});function CK(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function MK(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:CK(e,n)||r,t&&(i=t(i,r,e)),i}function EK(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=CK(e.theme,r)||{};return wK(e,o,(e=>{let r=MK(a,i,e);return e===r&&"string"==typeof e&&(r=MK(a,i,`${t}${"default"===e?"":kK(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const _K={m:"margin",p:"padding"},DK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qK={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},TK=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!qK[e])return[e];e=qK[e]}const[t,n]=e.split(""),r=_K[t],i=DK[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),RK=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],OK=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function NK(e,t,n,r){var i;const o=null!=(i=CK(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function AK(e){return NK(e,"spacing",8)}function PK(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function IK(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=PK(t,n),e)),{})}(TK(n),r);return wK(e,e[n],i)}function LK(e,t){const n=AK(e.theme);return Object.keys(e).map((r=>IK(e,t,r,n))).reduce(vK,{})}function zK(e){return LK(e,RK)}function FK(e){return LK(e,OK)}function jK(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?vK(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function $K(e){return"number"!=typeof e?e:`${e}px solid`}function HK(e,t){return EK({prop:e,themeKey:"borders",transform:t})}zK.propTypes={},zK.filterProps=RK,FK.propTypes={},FK.filterProps=OK;const VK=HK("border",$K),BK=HK("borderTop",$K),WK=HK("borderRight",$K),UK=HK("borderBottom",$K),YK=HK("borderLeft",$K),KK=HK("borderColor"),GK=HK("borderTopColor"),XK=HK("borderRightColor"),ZK=HK("borderBottomColor"),QK=HK("borderLeftColor"),JK=HK("outline",$K),eG=HK("outlineColor"),tG=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=NK(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:PK(t,e)});return wK(e,e.borderRadius,n)}return null};tG.propTypes={},tG.filterProps=["borderRadius"],jK(VK,BK,WK,UK,YK,KK,GK,XK,ZK,QK,tG,JK,eG);const nG=e=>{if(void 0!==e.gap&&null!==e.gap){const t=NK(e.theme,"spacing",8),n=e=>({gap:PK(t,e)});return wK(e,e.gap,n)}return null};nG.propTypes={},nG.filterProps=["gap"];const rG=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=NK(e.theme,"spacing",8),n=e=>({columnGap:PK(t,e)});return wK(e,e.columnGap,n)}return null};rG.propTypes={},rG.filterProps=["columnGap"];const iG=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=NK(e.theme,"spacing",8),n=e=>({rowGap:PK(t,e)});return wK(e,e.rowGap,n)}return null};iG.propTypes={},iG.filterProps=["rowGap"];function oG(e,t){return"grey"===t?t:e}jK(nG,rG,iG,EK({prop:"gridColumn"}),EK({prop:"gridRow"}),EK({prop:"gridAutoFlow"}),EK({prop:"gridAutoColumns"}),EK({prop:"gridAutoRows"}),EK({prop:"gridTemplateColumns"}),EK({prop:"gridTemplateRows"}),EK({prop:"gridTemplateAreas"}),EK({prop:"gridArea"}));function aG(e){return e<=1&&0!==e?100*e+"%":e}jK(EK({prop:"color",themeKey:"palette",transform:oG}),EK({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:oG}),EK({prop:"backgroundColor",themeKey:"palette",transform:oG}));const sG=EK({prop:"width",transform:aG}),lG=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||bK[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:aG(t)}};return wK(e,e.maxWidth,t)}return null};lG.filterProps=["maxWidth"];const cG=EK({prop:"minWidth",transform:aG}),uG=EK({prop:"height",transform:aG}),dG=EK({prop:"maxHeight",transform:aG}),fG=EK({prop:"minHeight",transform:aG});EK({prop:"size",cssProperty:"width",transform:aG}),EK({prop:"size",cssProperty:"height",transform:aG});jK(sG,lG,cG,uG,dG,fG,EK({prop:"boxSizing"}));const hG={border:{themeKey:"borders",transform:$K},borderTop:{themeKey:"borders",transform:$K},borderRight:{themeKey:"borders",transform:$K},borderBottom:{themeKey:"borders",transform:$K},borderLeft:{themeKey:"borders",transform:$K},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$K},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tG},color:{themeKey:"palette",transform:oG},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:oG},backgroundColor:{themeKey:"palette",transform:oG},p:{style:FK},pt:{style:FK},pr:{style:FK},pb:{style:FK},pl:{style:FK},px:{style:FK},py:{style:FK},padding:{style:FK},paddingTop:{style:FK},paddingRight:{style:FK},paddingBottom:{style:FK},paddingLeft:{style:FK},paddingX:{style:FK},paddingY:{style:FK},paddingInline:{style:FK},paddingInlineStart:{style:FK},paddingInlineEnd:{style:FK},paddingBlock:{style:FK},paddingBlockStart:{style:FK},paddingBlockEnd:{style:FK},m:{style:zK},mt:{style:zK},mr:{style:zK},mb:{style:zK},ml:{style:zK},mx:{style:zK},my:{style:zK},margin:{style:zK},marginTop:{style:zK},marginRight:{style:zK},marginBottom:{style:zK},marginLeft:{style:zK},marginX:{style:zK},marginY:{style:zK},marginInline:{style:zK},marginInlineStart:{style:zK},marginInlineEnd:{style:zK},marginBlock:{style:zK},marginBlockStart:{style:zK},marginBlockEnd:{style:zK},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:nG},rowGap:{style:iG},columnGap:{style:rG},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:aG},maxWidth:{style:lG},minWidth:{transform:aG},height:{transform:aG},maxHeight:{transform:aG},minHeight:{transform:aG},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var pG=hG;function mG(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=CK(n,s)||{};if(c)return c(i);return wK(i,t,(t=>{let n=MK(u,l,t);return t===n&&"string"==typeof t&&(n=MK(u,l,`${e}${"default"===t?"":kK(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=null!=(r=o.unstable_sxConfig)?r:pG;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(o.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],c=o,"function"==typeof s?s(c):s);var s,c;if(null!=i)if("object"==typeof i)if(a[n])l=vK(l,e(n,i,o,a));else{const e=wK({theme:o},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?l=vK(l,e):l[n]=t({sx:i,theme:o})}else l=vK(l,e(n,i,o,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}const gG=mG();gG.filterProps=["sx"];var yG=gG;function vG(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const bG=["breakpoints","palette","spacing","shape"];function xG(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=lK(e,bG),s=gK(n),l=function(e=8){if(e.mui)return e;const t=AK({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=fK({breakpoints:s,direction:"ltr",components:{},palette:sK({mode:"light"},r),spacing:l,shape:sK({},yK,o)},a);return c.applyStyles=vG,c=t.reduce(((e,t)=>fK(e,t)),c),c.unstable_sxConfig=sK({},pG,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return yG({sx:e,theme:this})},c}var wG=Object.freeze({__proto__:null,default:xG,private_createBreakpoints:gK,unstable_applyStyles:vG});function kG(e=null){const t=E_.useContext(zY);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const SG=xG();const CG=["sx"];var MG=Object.freeze({__proto__:null,default:yG,extendSxProp:function(e){const{sx:t}=e,n=lK(e,CG),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:pG;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return uK(n)?sK({},r,n):r}:sK({},r,t),sK({},i,{sx:o})},unstable_createStyleFunctionSx:mG,unstable_defaultSxConfig:pG});const EG=e=>e;var _G=(()=>{let e=EG;return{configure(t){e=t},generate:t=>e(t),reset(){e=EG}}})();function DG(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=DG(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qG(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=DG(e))&&(r&&(r+=" "),r+=t);return r}const TG={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function RG(e,t,n="Mui"){const r=TG[t];return r?`${n}-${r}`:`${_G.generate(e)}-${t}`}function OG(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=RG(e,t,n)})),r}var NG,AG={exports:{}},PG={},IG=Symbol.for("react.element"),LG=Symbol.for("react.portal"),zG=Symbol.for("react.fragment"),FG=Symbol.for("react.strict_mode"),jG=Symbol.for("react.profiler"),$G=Symbol.for("react.provider"),HG=Symbol.for("react.context"),VG=Symbol.for("react.server_context"),BG=Symbol.for("react.forward_ref"),WG=Symbol.for("react.suspense"),UG=Symbol.for("react.suspense_list"),YG=Symbol.for("react.memo"),KG=Symbol.for("react.lazy"),GG=Symbol.for("react.offscreen");function XG(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case IG:switch(e=e.type){case zG:case jG:case FG:case WG:case UG:return e;default:switch(e=e&&e.$$typeof){case VG:case HG:case BG:case KG:case YG:case $G:return e;default:return t}}case LG:return t}}}NG=Symbol.for("react.module.reference"),PG.ContextConsumer=HG,PG.ContextProvider=$G,PG.Element=IG,PG.ForwardRef=BG,PG.Fragment=zG,PG.Lazy=KG,PG.Memo=YG,PG.Portal=LG,PG.Profiler=jG,PG.StrictMode=FG,PG.Suspense=WG,PG.SuspenseList=UG,PG.isAsyncMode=function(){return!1},PG.isConcurrentMode=function(){return!1},PG.isContextConsumer=function(e){return XG(e)===HG},PG.isContextProvider=function(e){return XG(e)===$G},PG.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===IG},PG.isForwardRef=function(e){return XG(e)===BG},PG.isFragment=function(e){return XG(e)===zG},PG.isLazy=function(e){return XG(e)===KG},PG.isMemo=function(e){return XG(e)===YG},PG.isPortal=function(e){return XG(e)===LG},PG.isProfiler=function(e){return XG(e)===jG},PG.isStrictMode=function(e){return XG(e)===FG},PG.isSuspense=function(e){return XG(e)===WG},PG.isSuspenseList=function(e){return XG(e)===UG},PG.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===zG||e===jG||e===FG||e===WG||e===UG||e===GG||"object"==typeof e&&null!==e&&(e.$$typeof===KG||e.$$typeof===YG||e.$$typeof===$G||e.$$typeof===HG||e.$$typeof===BG||e.$$typeof===NG||void 0!==e.getModuleId)},PG.typeOf=XG,AG.exports=PG;var ZG=AG.exports;const QG=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function JG(e){const t=`${e}`.match(QG);return t&&t[1]||""}function eX(e,t=""){return e.displayName||e.name||JG(e)||t}function tX(e,t,n){const r=eX(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var nX=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return eX(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ZG.ForwardRef:return tX(e,e.render,"ForwardRef");case ZG.Memo:return tX(e,e.type,"memo");default:return}}},getFunctionName:JG});function rX(e,t){const n=cK({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=cK({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=cK({},o),Object.keys(i).forEach((e=>{n[r][e]=rX(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function iX({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=SG){return kG(e)}(n);r&&(i=i[r]||i);const o=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?rX(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var oX="undefined"!=typeof window?E_.useLayoutEffect:E_.useEffect;var aX=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function sX(){return sX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sX.apply(this,arguments)}function lX(e){const t=E_.useRef(e);return oX((()=>{t.current=e})),E_.useRef(((...e)=>(0,t.current)(...e))).current}function cX(...e){return E_.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const uX={};const dX=[];class fX{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new fX}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function hX(){const e=function(e,t){const n=E_.useRef(uX);return n.current===uX&&(n.current=e(t)),n}(fX.create).current;return function(e){E_.useEffect(e,dX)}(e.disposeEffect),e}let pX=!0,mX=!1;const gX=new fX,yX={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function vX(e){e.metaKey||e.altKey||e.ctrlKey||(pX=!0)}function bX(){pX=!1}function xX(){"hidden"===this.visibilityState&&mX&&(pX=!0)}function wX(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return pX||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!yX[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function kX(){const e=E_.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",vX,!0),t.addEventListener("mousedown",bX,!0),t.addEventListener("pointerdown",bX,!0),t.addEventListener("touchstart",bX,!0),t.addEventListener("visibilitychange",xX,!0))}),[]),t=E_.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!wX(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(mX=!0,gX.start(100,(()=>{mX=!1})),t.current=!1,!0)},ref:e}}function SX(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var CX=E_.createContext(null);function MX(){return E_.useContext(CX)}var EX="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function _X(e){const{children:t,theme:n}=e,r=MX(),i=E_.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return sX({},e,t)}(r,n);return null!=e&&(e[EX]=null!==r),e}),[n,r]);return iK.jsx(CX.Provider,{value:i,children:t})}const DX=["value"],qX=E_.createContext();function TX(e){let{value:t}=e,n=lK(e,DX);return iK.jsx(qX.Provider,sK({value:null==t||t},n))}const RX={};function OX(e,t,n,r=!1){return E_.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?sK({},t,{[e]:o}):o;return r?()=>a:a}return sK({},t,e?{[e]:n}:n)}),[e,t,n,r])}function NX(e){const{children:t,theme:n,themeId:r}=e,i=kG(RX),o=MX()||RX,a=OX(r,i,n),s=OX(r,o,n,!0),l="rtl"===a.direction;return iK.jsx(_X,{theme:s,children:iK.jsx(zY.Provider,{value:a,children:iK.jsx(TX,{value:l,children:t})})})}var AX={},PX={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(PX);var IX=PX.exports,LX=i(nU),zX=i(aX),FX=IX;Object.defineProperty(AX,"__esModule",{value:!0});var jX=AX.alpha=JX;AX.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=KX(e),a=KX(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return XX({type:"rgb",values:s})},AX.colorChannel=void 0;var $X=AX.darken=eZ;AX.decomposeColor=KX,AX.emphasize=function(e,t=.15){return QX(e)>.5?eZ(e,t):tZ(e,t)};var HX=AX.getContrastRatio=function(e,t){const n=QX(e),r=QX(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};AX.getLuminance=QX,AX.hexToRgb=YX,AX.hslToRgb=ZX;var VX=AX.lighten=tZ;AX.private_safeAlpha=function(e,t,n){try{return JX(e,t)}catch(t){return e}},AX.private_safeColorChannel=void 0,AX.private_safeDarken=function(e,t,n){try{return eZ(e,t)}catch(t){return e}},AX.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},AX.private_safeLighten=function(e,t,n){try{return tZ(e,t)}catch(t){return e}},AX.recomposeColor=XX,AX.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=KX(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var BX=FX(LX),WX=FX(zX);function UX(e,t=0,n=1){return(0,WX.default)(e,t,n)}function YX(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function KX(e){if(e.type)return e;if("#"===e.charAt(0))return KX(YX(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,BX.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,BX.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const GX=e=>{const t=KX(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};AX.colorChannel=GX;function XX(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function ZX(e){e=KX(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),XX({type:s,values:l})}function QX(e){let t="hsl"===(e=KX(e)).type||"hsla"===e.type?KX(ZX(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function JX(e,t){return e=KX(e),t=UX(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,XX(e)}function eZ(e,t){if(e=KX(e),t=UX(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return XX(e)}function tZ(e,t){if(e=KX(e),t=UX(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return XX(e)}AX.private_safeColorChannel=(e,t)=>{try{return GX(e)}catch(t){return e}};const nZ=["mode","contrastThreshold","tonalOffset"],rZ={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:YW.white,default:YW.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},iZ={text:{primary:YW.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:YW.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function oZ(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=VX(e.main,i):"dark"===t&&(e.dark=$X(e.main,o)))}function aZ(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=oU(e,nZ),o=e.primary||function(e="light"){return"dark"===e?{main:XW[200],light:XW[50],dark:XW[400]}:{main:XW[700],light:XW[400],dark:XW[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:GW[200],light:GW[50],dark:GW[400]}:{main:GW[500],light:GW[300],dark:GW[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:KW[500],light:KW[300],dark:KW[700]}:{main:KW[700],light:KW[400],dark:KW[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:ZW[400],light:ZW[300],dark:ZW[700]}:{main:ZW[700],light:ZW[500],dark:ZW[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:QW[400],light:QW[300],dark:QW[700]}:{main:QW[800],light:QW[500],dark:QW[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:JW[400],light:JW[300],dark:JW[700]}:{main:"#ed6c02",light:JW[500],dark:JW[900]}}(t);function d(e){return HX(e,iZ.text.primary)>=n?iZ.text.primary:rZ.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=iU({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(tU(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(tU(12,t?` (${t})`:"",JSON.stringify(e.main)));return oZ(e,"light",i,r),oZ(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:iZ,light:rZ};return fK(iU({common:iU({},YW),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:eU,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const sZ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function lZ(e){return Math.round(1e5*e)/1e5}const cZ={textTransform:"uppercase"},uZ='"Roboto", "Helvetica", "Arial", sans-serif';function dZ(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=uZ,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=oU(n,sZ),h=i/14,p=d||(e=>e/c*h+"rem"),m=(e,t,n,i,o)=>iU({fontFamily:r,fontWeight:e,fontSize:p(t),lineHeight:n},r===uZ?{letterSpacing:`${lZ(i/t)}em`}:{},o,u),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,cZ),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,cZ),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fK(iU({htmlFontSize:c,pxToRem:p,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function fZ(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var hZ=["none",fZ(0,2,1,-1,0,1,1,0,0,1,3,0),fZ(0,3,1,-2,0,2,2,0,0,1,5,0),fZ(0,3,3,-2,0,3,4,0,0,1,8,0),fZ(0,2,4,-1,0,4,5,0,0,1,10,0),fZ(0,3,5,-1,0,5,8,0,0,1,14,0),fZ(0,3,5,-1,0,6,10,0,0,1,18,0),fZ(0,4,5,-2,0,7,10,1,0,2,16,1),fZ(0,5,5,-3,0,8,10,1,0,3,14,2),fZ(0,5,6,-3,0,9,12,1,0,3,16,2),fZ(0,6,6,-3,0,10,14,1,0,4,18,3),fZ(0,6,7,-4,0,11,15,1,0,4,20,3),fZ(0,7,8,-4,0,12,17,2,0,5,22,4),fZ(0,7,8,-4,0,13,19,2,0,5,24,4),fZ(0,7,9,-4,0,14,21,2,0,5,26,4),fZ(0,8,9,-5,0,15,22,2,0,6,28,5),fZ(0,8,10,-5,0,16,24,2,0,6,30,5),fZ(0,8,11,-5,0,17,26,2,0,6,32,5),fZ(0,9,11,-5,0,18,28,2,0,7,34,6),fZ(0,9,12,-6,0,19,29,2,0,7,36,6),fZ(0,10,13,-6,0,20,31,3,0,8,38,7),fZ(0,10,13,-6,0,21,33,3,0,8,40,7),fZ(0,10,14,-6,0,22,35,3,0,8,42,7),fZ(0,11,14,-7,0,23,36,3,0,9,44,8),fZ(0,11,15,-7,0,24,38,3,0,9,46,8)];const pZ=["duration","easing","delay"],mZ={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},gZ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yZ(e){return`${Math.round(e)}ms`}function vZ(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function bZ(e){const t=iU({},mZ,e.easing),n=iU({},gZ,e.duration);return iU({getAutoHeightDuration:vZ,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return oU(r,pZ),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:yZ(i)} ${o} ${"string"==typeof a?a:yZ(a)}`)).join(",")}},e,{easing:t,duration:n})}var xZ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const wZ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function kZ(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=oU(e,wZ);if(e.vars)throw new Error(tU(18));const s=aZ(r),l=xG(e);let c=fK(l,{mixins:(u=l.breakpoints,d=n,iU({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:hZ.slice(),typography:dZ(s,o),transitions:bZ(i),zIndex:iU({},xZ)});var u,d;return c=fK(c,a),c=t.reduce(((e,t)=>fK(e,t)),c),c.unstable_sxConfig=iU({},pG,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return yG({sx:e,theme:this})},c}var SZ=kZ();function CZ({props:e,name:t}){return iX({props:e,name:t,defaultTheme:SZ,themeId:rU})}var MZ,EZ={},_Z={exports:{}};var DZ,qZ={exports:{}};var TZ=i(aK),RZ=i(hK),OZ=i(SK),NZ=i(nX),AZ=i(wG),PZ=i(MG),IZ=IX;Object.defineProperty(EZ,"__esModule",{value:!0});var LZ=EZ.default=function(e={}){const{themeId:t,defaultTheme:n=GZ,rootShouldForwardProp:r=KZ,slotShouldForwardProp:i=KZ}=e,o=e=>(0,VZ.default)((0,zZ.default)({},e,{theme:ZZ((0,zZ.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,jZ.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=QZ(XZ(l))}=a,f=(0,FZ.default)(a,UZ),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,p=u||!1;let m=KZ;"Root"===l||"root"===l?m=r:l?m=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,jZ.default)(e,(0,zZ.default)({shouldForwardProp:m,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,$Z.isPlainObject)(e)?r=>JZ(e,(0,zZ.default)({},r,{theme:ZZ({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=ZZ((0,zZ.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=JZ(n,(0,zZ.default)({},e,{theme:r}))})),d(e,o)})),s&&!h&&l.push((e=>{var r;const i=ZZ((0,zZ.default)({},e,{defaultTheme:n,themeId:t}));return JZ({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,zZ.default)({},e,{theme:i}))})),p||l.push(o);const c=l.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}};EZ.shouldForwardProp=KZ,EZ.systemDefaultTheme=void 0;var zZ=IZ((MZ||(MZ=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(_Z)),_Z.exports)),FZ=IZ((DZ||(DZ=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports}(qZ)),qZ.exports)),jZ=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=YZ(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(TZ),$Z=RZ;IZ(OZ),IZ(NZ);var HZ=IZ(AZ),VZ=IZ(PZ);const BZ=["ownerState"],WZ=["variants"],UZ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function YZ(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(YZ=function(e){return e?n:t})(e)}function KZ(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const GZ=EZ.systemDefaultTheme=(0,HZ.default)(),XZ=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ZZ({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function QZ(e){return e?(t,n)=>n[e]:null}function JZ(e,t){let{ownerState:n}=t,r=(0,FZ.default)(t,BZ);const i="function"==typeof e?e((0,zZ.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>JZ(e,(0,zZ.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,FZ.default)(i,WZ);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,zZ.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,zZ.default)({ownerState:n},r,n)):e.style))})),t}return i}var eQ=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var tQ=LZ({themeId:rU,defaultTheme:SZ,rootShouldForwardProp:eQ});const nQ=["theme"];function rQ(e){let{theme:t}=e,n=oU(e,nQ);const r=t[rU];return iK.jsx(NX,iU({},n,{themeId:r?rU:void 0,theme:r||t}))}function iQ(e){return RG("MuiSvgIcon",e)}OG("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const oQ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],aQ=tQ("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${kK(n.color)}`],t[`fontSize${kK(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[t.color]}})),sQ=E_.forwardRef((function(e,t){const n=CZ({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,f=oU(n,oQ),h=E_.isValidElement(r)&&"svg"===r.type,p=iU({},n,{color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:h}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return SX({root:["root","inherit"!==t&&`color${kK(t)}`,`fontSize${kK(n)}`]},iQ,r)})(p);return iK.jsxs(aQ,iU({as:a,className:qG(g.root,i),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,f,h&&r.props,{ownerState:p,children:[h?r.props.children:r,u?iK.jsx("title",{children:u}):null]}))}));sQ.muiName="SvgIcon";var lQ=sQ;const cQ=e=>{_G.configure(e)};var uQ=OG("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const dQ=["center","classes","className"];let fQ,hQ,pQ,mQ,gQ=e=>e;const yQ=$Y(fQ||(fQ=gQ`
|
|
49
|
+
*/,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&oK?iK.jsx(IY,{value:oK,children:n}):n},ThemeContext:zY,css:jY,default:function(e,t){return KY(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:$Y});function sK(){return sK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sK.apply(this,arguments)}function lK(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function cK(){return cK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cK.apply(this,arguments)}function uK(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function dK(e){if(!uK(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=dK(e[n])})),t}function fK(e,t,n={clone:!0}){const r=n.clone?cK({},e):e;return uK(e)&&uK(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(uK(t[i])&&i in e&&uK(e[i])?r[i]=fK(e[i],t[i],n):n.clone?r[i]=uK(t[i])?dK(t[i]):t[i]:r[i]=t[i])})),r}var hK=Object.freeze({__proto__:null,default:fK,isPlainObject:uK});const pK=["values","unit","step"],mK=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>sK({},e,{[t.key]:t.val})),{})};function gK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=lK(e,pK),o=mK(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return sK({keys:a,values:o,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},i)}var yK={borderRadius:4};function vK(e,t){return t?fK(e,t,{clone:!1}):e}const bK={xs:0,sm:600,md:900,lg:1200,xl:1536},xK={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bK[e]}px)`};function wK(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||xK;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||xK;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||bK).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function kK(e){if("string"!=typeof e)throw new Error(tU(7));return e.charAt(0).toUpperCase()+e.slice(1)}var SK=Object.freeze({__proto__:null,default:kK});function CK(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function MK(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:CK(e,n)||r,t&&(i=t(i,r,e)),i}function EK(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=CK(e.theme,r)||{};return wK(e,o,(e=>{let r=MK(a,i,e);return e===r&&"string"==typeof e&&(r=MK(a,i,`${t}${"default"===e?"":kK(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const _K={m:"margin",p:"padding"},DK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qK={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},TK=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!qK[e])return[e];e=qK[e]}const[t,n]=e.split(""),r=_K[t],i=DK[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),RK=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],OK=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function NK(e,t,n,r){var i;const o=null!=(i=CK(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function AK(e){return NK(e,"spacing",8)}function PK(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function IK(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=PK(t,n),e)),{})}(TK(n),r);return wK(e,e[n],i)}function LK(e,t){const n=AK(e.theme);return Object.keys(e).map((r=>IK(e,t,r,n))).reduce(vK,{})}function zK(e){return LK(e,RK)}function FK(e){return LK(e,OK)}function jK(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?vK(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function $K(e){return"number"!=typeof e?e:`${e}px solid`}function HK(e,t){return EK({prop:e,themeKey:"borders",transform:t})}zK.propTypes={},zK.filterProps=RK,FK.propTypes={},FK.filterProps=OK;const VK=HK("border",$K),BK=HK("borderTop",$K),WK=HK("borderRight",$K),UK=HK("borderBottom",$K),YK=HK("borderLeft",$K),KK=HK("borderColor"),GK=HK("borderTopColor"),XK=HK("borderRightColor"),ZK=HK("borderBottomColor"),QK=HK("borderLeftColor"),JK=HK("outline",$K),eG=HK("outlineColor"),tG=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=NK(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:PK(t,e)});return wK(e,e.borderRadius,n)}return null};tG.propTypes={},tG.filterProps=["borderRadius"],jK(VK,BK,WK,UK,YK,KK,GK,XK,ZK,QK,tG,JK,eG);const nG=e=>{if(void 0!==e.gap&&null!==e.gap){const t=NK(e.theme,"spacing",8),n=e=>({gap:PK(t,e)});return wK(e,e.gap,n)}return null};nG.propTypes={},nG.filterProps=["gap"];const rG=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=NK(e.theme,"spacing",8),n=e=>({columnGap:PK(t,e)});return wK(e,e.columnGap,n)}return null};rG.propTypes={},rG.filterProps=["columnGap"];const iG=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=NK(e.theme,"spacing",8),n=e=>({rowGap:PK(t,e)});return wK(e,e.rowGap,n)}return null};iG.propTypes={},iG.filterProps=["rowGap"];function oG(e,t){return"grey"===t?t:e}jK(nG,rG,iG,EK({prop:"gridColumn"}),EK({prop:"gridRow"}),EK({prop:"gridAutoFlow"}),EK({prop:"gridAutoColumns"}),EK({prop:"gridAutoRows"}),EK({prop:"gridTemplateColumns"}),EK({prop:"gridTemplateRows"}),EK({prop:"gridTemplateAreas"}),EK({prop:"gridArea"}));function aG(e){return e<=1&&0!==e?100*e+"%":e}jK(EK({prop:"color",themeKey:"palette",transform:oG}),EK({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:oG}),EK({prop:"backgroundColor",themeKey:"palette",transform:oG}));const sG=EK({prop:"width",transform:aG}),lG=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||bK[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:aG(t)}};return wK(e,e.maxWidth,t)}return null};lG.filterProps=["maxWidth"];const cG=EK({prop:"minWidth",transform:aG}),uG=EK({prop:"height",transform:aG}),dG=EK({prop:"maxHeight",transform:aG}),fG=EK({prop:"minHeight",transform:aG});EK({prop:"size",cssProperty:"width",transform:aG}),EK({prop:"size",cssProperty:"height",transform:aG});jK(sG,lG,cG,uG,dG,fG,EK({prop:"boxSizing"}));const hG={border:{themeKey:"borders",transform:$K},borderTop:{themeKey:"borders",transform:$K},borderRight:{themeKey:"borders",transform:$K},borderBottom:{themeKey:"borders",transform:$K},borderLeft:{themeKey:"borders",transform:$K},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$K},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tG},color:{themeKey:"palette",transform:oG},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:oG},backgroundColor:{themeKey:"palette",transform:oG},p:{style:FK},pt:{style:FK},pr:{style:FK},pb:{style:FK},pl:{style:FK},px:{style:FK},py:{style:FK},padding:{style:FK},paddingTop:{style:FK},paddingRight:{style:FK},paddingBottom:{style:FK},paddingLeft:{style:FK},paddingX:{style:FK},paddingY:{style:FK},paddingInline:{style:FK},paddingInlineStart:{style:FK},paddingInlineEnd:{style:FK},paddingBlock:{style:FK},paddingBlockStart:{style:FK},paddingBlockEnd:{style:FK},m:{style:zK},mt:{style:zK},mr:{style:zK},mb:{style:zK},ml:{style:zK},mx:{style:zK},my:{style:zK},margin:{style:zK},marginTop:{style:zK},marginRight:{style:zK},marginBottom:{style:zK},marginLeft:{style:zK},marginX:{style:zK},marginY:{style:zK},marginInline:{style:zK},marginInlineStart:{style:zK},marginInlineEnd:{style:zK},marginBlock:{style:zK},marginBlockStart:{style:zK},marginBlockEnd:{style:zK},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:nG},rowGap:{style:iG},columnGap:{style:rG},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:aG},maxWidth:{style:lG},minWidth:{transform:aG},height:{transform:aG},maxHeight:{transform:aG},minHeight:{transform:aG},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var pG=hG;function mG(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=CK(n,s)||{};if(c)return c(i);return wK(i,t,(t=>{let n=MK(u,l,t);return t===n&&"string"==typeof t&&(n=MK(u,l,`${e}${"default"===t?"":kK(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=null!=(r=o.unstable_sxConfig)?r:pG;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(o.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],c=o,"function"==typeof s?s(c):s);var s,c;if(null!=i)if("object"==typeof i)if(a[n])l=vK(l,e(n,i,o,a));else{const e=wK({theme:o},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?l=vK(l,e):l[n]=t({sx:i,theme:o})}else l=vK(l,e(n,i,o,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}const gG=mG();gG.filterProps=["sx"];var yG=gG;function vG(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const bG=["breakpoints","palette","spacing","shape"];function xG(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=lK(e,bG),s=gK(n),l=function(e=8){if(e.mui)return e;const t=AK({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=fK({breakpoints:s,direction:"ltr",components:{},palette:sK({mode:"light"},r),spacing:l,shape:sK({},yK,o)},a);return c.applyStyles=vG,c=t.reduce(((e,t)=>fK(e,t)),c),c.unstable_sxConfig=sK({},pG,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return yG({sx:e,theme:this})},c}var wG=Object.freeze({__proto__:null,default:xG,private_createBreakpoints:gK,unstable_applyStyles:vG});function kG(e=null){const t=E_.useContext(zY);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const SG=xG();const CG=["sx"];var MG=Object.freeze({__proto__:null,default:yG,extendSxProp:function(e){const{sx:t}=e,n=lK(e,CG),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:pG;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return uK(n)?sK({},r,n):r}:sK({},r,t),sK({},i,{sx:o})},unstable_createStyleFunctionSx:mG,unstable_defaultSxConfig:pG});const EG=e=>e;var _G=(()=>{let e=EG;return{configure(t){e=t},generate:t=>e(t),reset(){e=EG}}})();function DG(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=DG(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qG(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=DG(e))&&(r&&(r+=" "),r+=t);return r}const TG={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function RG(e,t,n="Mui"){const r=TG[t];return r?`${n}-${r}`:`${_G.generate(e)}-${t}`}function OG(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=RG(e,t,n)})),r}var NG,AG={exports:{}},PG={},IG=Symbol.for("react.element"),LG=Symbol.for("react.portal"),zG=Symbol.for("react.fragment"),FG=Symbol.for("react.strict_mode"),jG=Symbol.for("react.profiler"),$G=Symbol.for("react.provider"),HG=Symbol.for("react.context"),VG=Symbol.for("react.server_context"),BG=Symbol.for("react.forward_ref"),WG=Symbol.for("react.suspense"),UG=Symbol.for("react.suspense_list"),YG=Symbol.for("react.memo"),KG=Symbol.for("react.lazy"),GG=Symbol.for("react.offscreen");function XG(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case IG:switch(e=e.type){case zG:case jG:case FG:case WG:case UG:return e;default:switch(e=e&&e.$$typeof){case VG:case HG:case BG:case KG:case YG:case $G:return e;default:return t}}case LG:return t}}}NG=Symbol.for("react.module.reference"),PG.ContextConsumer=HG,PG.ContextProvider=$G,PG.Element=IG,PG.ForwardRef=BG,PG.Fragment=zG,PG.Lazy=KG,PG.Memo=YG,PG.Portal=LG,PG.Profiler=jG,PG.StrictMode=FG,PG.Suspense=WG,PG.SuspenseList=UG,PG.isAsyncMode=function(){return!1},PG.isConcurrentMode=function(){return!1},PG.isContextConsumer=function(e){return XG(e)===HG},PG.isContextProvider=function(e){return XG(e)===$G},PG.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===IG},PG.isForwardRef=function(e){return XG(e)===BG},PG.isFragment=function(e){return XG(e)===zG},PG.isLazy=function(e){return XG(e)===KG},PG.isMemo=function(e){return XG(e)===YG},PG.isPortal=function(e){return XG(e)===LG},PG.isProfiler=function(e){return XG(e)===jG},PG.isStrictMode=function(e){return XG(e)===FG},PG.isSuspense=function(e){return XG(e)===WG},PG.isSuspenseList=function(e){return XG(e)===UG},PG.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===zG||e===jG||e===FG||e===WG||e===UG||e===GG||"object"==typeof e&&null!==e&&(e.$$typeof===KG||e.$$typeof===YG||e.$$typeof===$G||e.$$typeof===HG||e.$$typeof===BG||e.$$typeof===NG||void 0!==e.getModuleId)},PG.typeOf=XG,AG.exports=PG;var ZG=AG.exports;const QG=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function JG(e){const t=`${e}`.match(QG);return t&&t[1]||""}function eX(e,t=""){return e.displayName||e.name||JG(e)||t}function tX(e,t,n){const r=eX(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var nX=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return eX(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ZG.ForwardRef:return tX(e,e.render,"ForwardRef");case ZG.Memo:return tX(e,e.type,"memo");default:return}}},getFunctionName:JG});function rX(e,t){const n=cK({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=cK({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=cK({},o),Object.keys(i).forEach((e=>{n[r][e]=rX(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function iX({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=SG){return kG(e)}(n);r&&(i=i[r]||i);const o=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?rX(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var oX="undefined"!=typeof window?E_.useLayoutEffect:E_.useEffect;var aX=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function sX(){return sX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sX.apply(this,arguments)}function lX(e){const t=E_.useRef(e);return oX((()=>{t.current=e})),E_.useRef(((...e)=>(0,t.current)(...e))).current}function cX(...e){return E_.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const uX={};const dX=[];class fX{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new fX}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function hX(){const e=function(e,t){const n=E_.useRef(uX);return n.current===uX&&(n.current=e(t)),n}(fX.create).current;return function(e){E_.useEffect(e,dX)}(e.disposeEffect),e}let pX=!0,mX=!1;const gX=new fX,yX={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function vX(e){e.metaKey||e.altKey||e.ctrlKey||(pX=!0)}function bX(){pX=!1}function xX(){"hidden"===this.visibilityState&&mX&&(pX=!0)}function wX(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return pX||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!yX[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function kX(){const e=E_.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",vX,!0),t.addEventListener("mousedown",bX,!0),t.addEventListener("pointerdown",bX,!0),t.addEventListener("touchstart",bX,!0),t.addEventListener("visibilitychange",xX,!0))}),[]),t=E_.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!wX(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(mX=!0,gX.start(100,(()=>{mX=!1})),t.current=!1,!0)},ref:e}}function SX(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var CX=E_.createContext(null);function MX(){return E_.useContext(CX)}var EX="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function _X(e){const{children:t,theme:n}=e,r=MX(),i=E_.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return sX({},e,t)}(r,n);return null!=e&&(e[EX]=null!==r),e}),[n,r]);return iK.jsx(CX.Provider,{value:i,children:t})}const DX=["value"],qX=E_.createContext();function TX(e){let{value:t}=e,n=lK(e,DX);return iK.jsx(qX.Provider,sK({value:null==t||t},n))}const RX={};function OX(e,t,n,r=!1){return E_.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?sK({},t,{[e]:o}):o;return r?()=>a:a}return sK({},t,e?{[e]:n}:n)}),[e,t,n,r])}function NX(e){const{children:t,theme:n,themeId:r}=e,i=kG(RX),o=MX()||RX,a=OX(r,i,n),s=OX(r,o,n,!0),l="rtl"===a.direction;return iK.jsx(_X,{theme:s,children:iK.jsx(zY.Provider,{value:a,children:iK.jsx(TX,{value:l,children:t})})})}var AX={},PX={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(PX);var IX=PX.exports,LX=i(nU),zX=i(aX),FX=IX;Object.defineProperty(AX,"__esModule",{value:!0});var jX=AX.alpha=JX;AX.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=KX(e),a=KX(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return XX({type:"rgb",values:s})},AX.colorChannel=void 0;var $X=AX.darken=eZ;AX.decomposeColor=KX,AX.emphasize=function(e,t=.15){return QX(e)>.5?eZ(e,t):tZ(e,t)};var HX=AX.getContrastRatio=function(e,t){const n=QX(e),r=QX(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};AX.getLuminance=QX,AX.hexToRgb=YX,AX.hslToRgb=ZX;var VX=AX.lighten=tZ;AX.private_safeAlpha=function(e,t,n){try{return JX(e,t)}catch(t){return e}},AX.private_safeColorChannel=void 0,AX.private_safeDarken=function(e,t,n){try{return eZ(e,t)}catch(t){return e}},AX.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},AX.private_safeLighten=function(e,t,n){try{return tZ(e,t)}catch(t){return e}},AX.recomposeColor=XX,AX.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=KX(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var BX=FX(LX),WX=FX(zX);function UX(e,t=0,n=1){return(0,WX.default)(e,t,n)}function YX(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function KX(e){if(e.type)return e;if("#"===e.charAt(0))return KX(YX(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,BX.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,BX.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const GX=e=>{const t=KX(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};AX.colorChannel=GX;function XX(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function ZX(e){e=KX(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),XX({type:s,values:l})}function QX(e){let t="hsl"===(e=KX(e)).type||"hsla"===e.type?KX(ZX(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function JX(e,t){return e=KX(e),t=UX(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,XX(e)}function eZ(e,t){if(e=KX(e),t=UX(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return XX(e)}function tZ(e,t){if(e=KX(e),t=UX(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return XX(e)}AX.private_safeColorChannel=(e,t)=>{try{return GX(e)}catch(t){return e}};const nZ=["mode","contrastThreshold","tonalOffset"],rZ={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:YW.white,default:YW.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},iZ={text:{primary:YW.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:YW.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function oZ(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=VX(e.main,i):"dark"===t&&(e.dark=$X(e.main,o)))}function aZ(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=oU(e,nZ),o=e.primary||function(e="light"){return"dark"===e?{main:XW[200],light:XW[50],dark:XW[400]}:{main:XW[700],light:XW[400],dark:XW[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:GW[200],light:GW[50],dark:GW[400]}:{main:GW[500],light:GW[300],dark:GW[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:KW[500],light:KW[300],dark:KW[700]}:{main:KW[700],light:KW[400],dark:KW[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:ZW[400],light:ZW[300],dark:ZW[700]}:{main:ZW[700],light:ZW[500],dark:ZW[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:QW[400],light:QW[300],dark:QW[700]}:{main:QW[800],light:QW[500],dark:QW[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:JW[400],light:JW[300],dark:JW[700]}:{main:"#ed6c02",light:JW[500],dark:JW[900]}}(t);function d(e){return HX(e,iZ.text.primary)>=n?iZ.text.primary:rZ.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=iU({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(tU(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(tU(12,t?` (${t})`:"",JSON.stringify(e.main)));return oZ(e,"light",i,r),oZ(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:iZ,light:rZ};return fK(iU({common:iU({},YW),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:eU,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const sZ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function lZ(e){return Math.round(1e5*e)/1e5}const cZ={textTransform:"uppercase"},uZ='"Roboto", "Helvetica", "Arial", sans-serif';function dZ(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=uZ,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=oU(n,sZ),h=i/14,p=d||(e=>e/c*h+"rem"),m=(e,t,n,i,o)=>iU({fontFamily:r,fontWeight:e,fontSize:p(t),lineHeight:n},r===uZ?{letterSpacing:`${lZ(i/t)}em`}:{},o,u),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,cZ),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,cZ),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fK(iU({htmlFontSize:c,pxToRem:p,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function fZ(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var hZ=["none",fZ(0,2,1,-1,0,1,1,0,0,1,3,0),fZ(0,3,1,-2,0,2,2,0,0,1,5,0),fZ(0,3,3,-2,0,3,4,0,0,1,8,0),fZ(0,2,4,-1,0,4,5,0,0,1,10,0),fZ(0,3,5,-1,0,5,8,0,0,1,14,0),fZ(0,3,5,-1,0,6,10,0,0,1,18,0),fZ(0,4,5,-2,0,7,10,1,0,2,16,1),fZ(0,5,5,-3,0,8,10,1,0,3,14,2),fZ(0,5,6,-3,0,9,12,1,0,3,16,2),fZ(0,6,6,-3,0,10,14,1,0,4,18,3),fZ(0,6,7,-4,0,11,15,1,0,4,20,3),fZ(0,7,8,-4,0,12,17,2,0,5,22,4),fZ(0,7,8,-4,0,13,19,2,0,5,24,4),fZ(0,7,9,-4,0,14,21,2,0,5,26,4),fZ(0,8,9,-5,0,15,22,2,0,6,28,5),fZ(0,8,10,-5,0,16,24,2,0,6,30,5),fZ(0,8,11,-5,0,17,26,2,0,6,32,5),fZ(0,9,11,-5,0,18,28,2,0,7,34,6),fZ(0,9,12,-6,0,19,29,2,0,7,36,6),fZ(0,10,13,-6,0,20,31,3,0,8,38,7),fZ(0,10,13,-6,0,21,33,3,0,8,40,7),fZ(0,10,14,-6,0,22,35,3,0,8,42,7),fZ(0,11,14,-7,0,23,36,3,0,9,44,8),fZ(0,11,15,-7,0,24,38,3,0,9,46,8)];const pZ=["duration","easing","delay"],mZ={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},gZ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yZ(e){return`${Math.round(e)}ms`}function vZ(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function bZ(e){const t=iU({},mZ,e.easing),n=iU({},gZ,e.duration);return iU({getAutoHeightDuration:vZ,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return oU(r,pZ),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:yZ(i)} ${o} ${"string"==typeof a?a:yZ(a)}`)).join(",")}},e,{easing:t,duration:n})}var xZ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const wZ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function kZ(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=oU(e,wZ);if(e.vars)throw new Error(tU(18));const s=aZ(r),l=xG(e);let c=fK(l,{mixins:(u=l.breakpoints,d=n,iU({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:hZ.slice(),typography:dZ(s,o),transitions:bZ(i),zIndex:iU({},xZ)});var u,d;return c=fK(c,a),c=t.reduce(((e,t)=>fK(e,t)),c),c.unstable_sxConfig=iU({},pG,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return yG({sx:e,theme:this})},c}var SZ=kZ();function CZ({props:e,name:t}){return iX({props:e,name:t,defaultTheme:SZ,themeId:rU})}var MZ,EZ={},_Z={exports:{}};var DZ,qZ={exports:{}};var TZ=i(aK),RZ=i(hK),OZ=i(SK),NZ=i(nX),AZ=i(wG),PZ=i(MG),IZ=IX;Object.defineProperty(EZ,"__esModule",{value:!0});var LZ=EZ.default=function(e={}){const{themeId:t,defaultTheme:n=GZ,rootShouldForwardProp:r=KZ,slotShouldForwardProp:i=KZ}=e,o=e=>(0,VZ.default)((0,zZ.default)({},e,{theme:ZZ((0,zZ.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,jZ.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=QZ(XZ(l))}=a,f=(0,FZ.default)(a,UZ),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,p=u||!1;let m=KZ;"Root"===l||"root"===l?m=r:l?m=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,jZ.default)(e,(0,zZ.default)({shouldForwardProp:m,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,$Z.isPlainObject)(e)?r=>JZ(e,(0,zZ.default)({},r,{theme:ZZ({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=ZZ((0,zZ.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=JZ(n,(0,zZ.default)({},e,{theme:r}))})),d(e,o)})),s&&!h&&l.push((e=>{var r;const i=ZZ((0,zZ.default)({},e,{defaultTheme:n,themeId:t}));return JZ({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,zZ.default)({},e,{theme:i}))})),p||l.push(o);const c=l.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}};EZ.shouldForwardProp=KZ,EZ.systemDefaultTheme=void 0;var zZ=IZ((MZ||(MZ=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(_Z)),_Z.exports)),FZ=IZ((DZ||(DZ=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports}(qZ)),qZ.exports)),jZ=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=YZ(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(TZ),$Z=RZ;IZ(OZ),IZ(NZ);var HZ=IZ(AZ),VZ=IZ(PZ);const BZ=["ownerState"],WZ=["variants"],UZ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function YZ(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(YZ=function(e){return e?n:t})(e)}function KZ(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const GZ=EZ.systemDefaultTheme=(0,HZ.default)(),XZ=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ZZ({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function QZ(e){return e?(t,n)=>n[e]:null}function JZ(e,t){let{ownerState:n}=t,r=(0,FZ.default)(t,BZ);const i="function"==typeof e?e((0,zZ.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>JZ(e,(0,zZ.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,FZ.default)(i,WZ);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,zZ.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,zZ.default)({ownerState:n},r,n)):e.style))})),t}return i}var eQ=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var tQ=LZ({themeId:rU,defaultTheme:SZ,rootShouldForwardProp:eQ});const nQ=["theme"];function rQ(e){let{theme:t}=e,n=oU(e,nQ);const r=t[rU];return iK.jsx(NX,iU({},n,{themeId:r?rU:void 0,theme:r||t}))}function iQ(e){return RG("MuiSvgIcon",e)}OG("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const oQ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],aQ=tQ("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${kK(n.color)}`],t[`fontSize${kK(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[t.color]}})),sQ=E_.forwardRef((function(e,t){const n=CZ({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,f=oU(n,oQ),h=E_.isValidElement(r)&&"svg"===r.type,p=iU({},n,{color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:h}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return SX({root:["root","inherit"!==t&&`color${kK(t)}`,`fontSize${kK(n)}`]},iQ,r)})(p);return iK.jsxs(aQ,iU({as:a,className:qG(g.root,i),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,f,h&&r.props,{ownerState:p,children:[h?r.props.children:r,u?iK.jsx("title",{children:u}):null]}))}));sQ.muiName="SvgIcon";var lQ=sQ;var cQ=OG("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const uQ=["center","classes","className"];let dQ,fQ,hQ,pQ,mQ=e=>e;const gQ=$Y(dQ||(dQ=mQ`
|
|
50
50
|
0% {
|
|
51
51
|
transform: scale(0);
|
|
52
52
|
opacity: 0.1;
|
|
@@ -56,7 +56,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
56
56
|
transform: scale(1);
|
|
57
57
|
opacity: 0.3;
|
|
58
58
|
}
|
|
59
|
-
`)),
|
|
59
|
+
`)),yQ=$Y(fQ||(fQ=mQ`
|
|
60
60
|
0% {
|
|
61
61
|
opacity: 1;
|
|
62
62
|
}
|
|
@@ -64,7 +64,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
64
64
|
100% {
|
|
65
65
|
opacity: 0;
|
|
66
66
|
}
|
|
67
|
-
`)),
|
|
67
|
+
`)),vQ=$Y(hQ||(hQ=mQ`
|
|
68
68
|
0% {
|
|
69
69
|
transform: scale(1);
|
|
70
70
|
}
|
|
@@ -76,7 +76,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
76
76
|
100% {
|
|
77
77
|
transform: scale(1);
|
|
78
78
|
}
|
|
79
|
-
`)),
|
|
79
|
+
`)),bQ=tQ("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),xQ=tQ((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=E_.useState(!1),f=qG(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},p=qG(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),E_.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),iK.jsx("span",{className:f,style:h,children:iK.jsx("span",{className:p})})}),{name:"MuiTouchRipple",slot:"Ripple"})(pQ||(pQ=mQ`
|
|
80
80
|
opacity: 0;
|
|
81
81
|
position: absolute;
|
|
82
82
|
|
|
@@ -119,4 +119,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
119
119
|
animation-iteration-count: infinite;
|
|
120
120
|
animation-delay: 200ms;
|
|
121
121
|
}
|
|
122
|
-
`),uQ.rippleVisible,yQ,550,(({theme:e})=>e.transitions.easing.easeInOut),uQ.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),uQ.child,uQ.childLeaving,vQ,550,(({theme:e})=>e.transitions.easing.easeInOut),uQ.childPulsate,bQ,(({theme:e})=>e.transitions.easing.easeInOut)),kQ=E_.forwardRef((function(e,t){const n=CZ({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=oU(n,dQ),[s,l]=E_.useState([]),c=E_.useRef(0),u=E_.useRef(null);E_.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=E_.useRef(!1),f=hX(),h=E_.useRef(null),p=E_.useRef(null),m=E_.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,iK.jsx(wQ,{classes:{ripple:qG(i.ripple,uQ.ripple),rippleVisible:qG(i.rippleVisible,uQ.rippleVisible),ripplePulsate:qG(i.ripplePulsate,uQ.ripplePulsate),child:qG(i.child,uQ.child),childLeaving:qG(i.childLeaving,uQ.childLeaving),childPulsate:qG(i.childPulsate,uQ.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=E_.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=E_.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=E_.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return E_.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),iK.jsx(xQ,iU({className:qG(uQ.root,i.root,o),ref:p},a,{children:iK.jsx(TB,{component:null,exit:!0,children:s})}))}));var SQ=kQ;function CQ(e){return RG("MuiButtonBase",e)}var MQ=OG("MuiButtonBase",["root","disabled","focusVisible"]);const EQ=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],_Q=tQ("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${MQ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),DQ=E_.forwardRef((function(e,t){const n=CZ({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:k,onMouseUp:S,onTouchEnd:C,onTouchMove:M,onTouchStart:E,tabIndex:_=0,TouchRippleProps:D,touchRippleRef:q,type:T}=n,R=oU(n,EQ),O=E_.useRef(null),N=E_.useRef(null),A=cX(N,q),{isFocusVisibleRef:P,onFocus:I,onBlur:L,ref:z}=kX(),[F,j]=E_.useState(!1);l&&F&&j(!1),E_.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),O.current.focus()}})),[]);const[$,H]=E_.useState(!1);E_.useEffect((()=>{H(!0)}),[]);const V=$&&!c&&!l;function B(e,t,n=u){return lX((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}E_.useEffect((()=>{F&&d&&!c&&$&&N.current.pulsate()}),[c,d,F,$]);const W=B("start",w),U=B("stop",m),Y=B("stop",g),K=B("stop",S),G=B("stop",(e=>{F&&e.preventDefault(),k&&k(e)})),X=B("start",E),Z=B("stop",C),Q=B("stop",M),J=B("stop",(e=>{L(e),!1===P.current&&j(!1),h&&h(e)}),!1),ee=lX((e=>{O.current||(O.current=e.currentTarget),I(e),!0===P.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=E_.useRef(!1),re=lX((e=>{d&&!ne.current&&F&&N.current&&" "===e.key&&(ne.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=lX((e=>{d&&" "===e.key&&N.current&&F&&!e.defaultPrevented&&(ne.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(R.href||R.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===T?"button":T,ae.disabled=l):(R.href||R.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=cX(t,z,O),le=iU({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:_,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=SX({root:["root",t&&"disabled",n&&"focusVisible"]},CQ,i);return n&&r&&(o.root+=` ${r}`),o})(le);return iK.jsxs(_Q,iU({as:oe,className:qG(ce.root,a),ownerState:le,onBlur:J,onClick:p,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:W,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:X,ref:se,tabIndex:l?-1:_,type:T},ae,R,{children:[o,V?iK.jsx(SQ,iU({ref:A,center:i},D)):null]}))}));var qQ=DQ;function TQ(e){return RG("MuiButton",e)}var RQ=OG("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var OQ=E_.createContext({});var NQ=E_.createContext(void 0);const AQ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],PQ=e=>iU({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),IQ=tQ(qQ,{shouldForwardProp:e=>eQ(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${kK(n.color)}`],t[`size${kK(n.size)}`],t[`${n.variant}Size${kK(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return iU({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":iU({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:jX(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jX(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jX(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":iU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${RQ.focusVisible}`]:iU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${RQ.disabled}`]:iU({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${jX(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${RQ.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${RQ.disabled}`]:{boxShadow:"none"}})),LQ=tQ("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${kK(n.size)}`]]}})((({ownerState:e})=>iU({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},PQ(e)))),zQ=tQ("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${kK(n.size)}`]]}})((({ownerState:e})=>iU({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},PQ(e)))),FQ=E_.forwardRef((function(e,t){const n=E_.useContext(OQ),r=E_.useContext(NQ),i=CZ({props:rX(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=oU(i,AQ),x=iU({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return iU({},a,SX({root:["root",o,`${o}${kK(t)}`,`size${kK(i)}`,`${o}Size${kK(i)}`,`color${kK(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${kK(i)}`],endIcon:["icon","endIcon",`iconSize${kK(i)}`]},TQ,a))})(x),k=g&&iK.jsx(LQ,{className:w.startIcon,ownerState:x,children:g}),S=f&&iK.jsx(zQ,{className:w.endIcon,ownerState:x,children:f}),C=r||"";return iK.jsxs(IQ,iU({ownerState:x,className:qG(n.className,w.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:qG(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[k,o,S]}))}));var jQ=FQ;var $Q=E_.createContext({});function HQ(e){return RG("MuiListItemButton",e)}var VQ=OG("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const BQ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],WQ=tQ(qQ,{shouldForwardProp:e=>eQ(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>iU({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${VQ.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${VQ.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:jX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${VQ.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:jX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jX(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${VQ.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${VQ.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),UQ=E_.forwardRef((function(e,t){const n=CZ({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,h=oU(n,BQ),p=E_.useContext($Q),m=E_.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=E_.useRef(null);oX((()=>{i&&g.current&&g.current.focus()}),[i]);const y=iU({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return iU({},n,SX({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},HQ,n))})(y),b=cX(g,t);return iK.jsx($Q.Provider,{value:m,children:iK.jsx(WQ,iU({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:qG(v.focusVisible,u),ownerState:y,className:qG(v.root,f)},h,{classes:v,children:a}))})}));var YQ=UQ;function KQ(e){return RG("MuiListItemIcon",e)}OG("MuiListItemIcon",["root","alignItemsFlexStart"]);const GQ=["className"],XQ=tQ("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>iU({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),ZQ=E_.forwardRef((function(e,t){const n=CZ({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=oU(n,GQ),o=iU({},n,{alignItems:E_.useContext($Q).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return SX({root:["root","flex-start"===t&&"alignItemsFlexStart"]},KQ,n)})(o);return iK.jsx(XQ,iU({className:qG(a.root,r),ownerState:o,ref:t},i))}));var QQ=ZQ;function JQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JQ(Object(n),!0).forEach((function(t){tJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tJ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nJ=function(e){var t=e.className,n=e.path,r=e.fillRule;return __.createElement(lQ,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},__.createElement("path",{d:n}),r?__.createElement("use",{fillRule:r}):void 0)},rJ={ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}};tQ(jQ,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),tQ((function(e){var t=e.className;return __.createElement(nJ,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:rJ.ICONS.COLOR.SECONDARY}})),tQ((function(e){var t=e.className;return __.createElement(nJ,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:rJ.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:rJ.ICONS.COLOR.DISABLED}}})),tQ(jQ,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}}));var iJ={color:rJ.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:rJ.ICONS.COLOR.DISABLED}};tQ((function(e){var t=e.className;return __.createElement(nJ,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return iJ})),tQ((function(e){var t=e.className;return __.createElement(nJ,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return iJ})),tQ((function(e){var t=e.className;return __.createElement(nJ,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:rJ.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),tQ(YQ)((function(){return{padding:"4px 12px","&:focus":eJ({},rJ.FOCUS)}})),tQ(QQ)((function(){return{marginRight:0,justifyContent:"center"}})),tQ((function(e){var t=e.className;return __.createElement(nJ,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:rJ.ICONS.COLOR.SECONDARY}}));var oJ=Object.prototype.hasOwnProperty,aJ=Object.prototype.toString,sJ=Object.defineProperty,lJ=Object.getOwnPropertyDescriptor,cJ=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===aJ.call(e)},uJ=function(e){if(!e||"[object Object]"!==aJ.call(e))return!1;var t,n=oJ.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&oJ.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||oJ.call(e,t)},dJ=function(e,t){sJ&&"__proto__"===t.name?sJ(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},fJ=function(e,t){if("__proto__"===t){if(!oJ.call(e,t))return;if(lJ)return lJ(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=fJ(s,n),s!==(i=fJ(t,n))&&(u&&i&&(uJ(i)||(o=cJ(i)))?(o?(o=!1,a=r&&cJ(r)?r:[]):a=r&&uJ(r)?r:{},dJ(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&dJ(s,{name:n,newValue:i}));return s}));var hJ,pJ=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return __.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},mJ={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return __.createElement("div",{dir:o,style:a},__.createElement(pJ,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},gJ=iB;hJ=gJ.createRoot,gJ.hydrateRoot;var yJ=Math.round(1e5*Math.random()).toString();cQ((function(e){return"qcm-".concat(yJ,"-").concat(e.replace("Mui",""))}));var vJ=kZ({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function bJ(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function xJ(){var e={rendererBox:bJ(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=bJ(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=hJ(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return __.createElement(__.StrictMode,null,__.createElement(rQ,{theme:vJ},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function wJ(e){return Jy(e).l<70}function kJ(e,t){const n=Jy(e).l/100,r=Jy(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function SJ(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var CJ={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(kJ(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=SJ({r:s,a:e},n),o=SJ({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:wJ(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function MJ(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function EJ(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:MJ(s)}}var _J={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),u=EJ({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function DJ(){const e=Fp();return e.use(Eg),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",qg(e))};e.interaction("hammer",qg(Hammer))}(a)),e.use((function(e){e.renderer("react",UW()),e.component("data-title",VW(e.renderer("svg")()))})),e.renderer("react-qcm",xJ),e.component("disclaimer",mJ),e.component("pie-dividers",CJ),e.component("negative-indicators",_J),e}var qJ={};function TJ(){TJ.init.call(this)}qJ.isObject=function(e){return"object"==typeof e&&null!==e},qJ.isNumber=function(e){return"number"==typeof e},qJ.isUndefined=function(e){return void 0===e},qJ.isFunction=function(e){return"function"==typeof e};var RJ=TJ;TJ.EventEmitter=TJ,TJ.prototype._events=void 0,TJ.prototype._maxListeners=void 0,TJ.defaultMaxListeners=10,TJ.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},TJ.prototype.setMaxListeners=function(e){if(!qJ.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},TJ.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],qJ.isUndefined(n))return!1;if(qJ.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(qJ.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},TJ.prototype.addListener=function(e,t){var n;if(!qJ.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,qJ.isFunction(t.listener)?t.listener:t),this._events[e]?qJ.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,qJ.isObject(this._events[e])&&!this._events[e].warned)&&((n=qJ.isUndefined(this._maxListeners)?TJ.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,qJ.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),qJ.isFunction(console.trace)&&console.trace()));return this},TJ.prototype.on=TJ.prototype.addListener,TJ.prototype.once=function(e,t){if(!qJ.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},TJ.prototype.removeListener=function(e,t){var n,r,i,o;if(!qJ.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||qJ.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(qJ.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},TJ.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],qJ.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},TJ.prototype.listeners=function(e){return this._events&&this._events[e]?qJ.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},TJ.listenerCount=function(e,t){return e._events&&e._events[t]?qJ.isFunction(e._events[t])?1:e._events[t].length:0};var OJ=r(RJ);const NJ=e=>(Object.keys(OJ.prototype).forEach((t=>{e[t]=OJ.prototype[t]})),OJ.init(e),e);function AJ({picasso:t}){var n;const r=e.useOptions(),i=e.useElement(),o=e.useSelections(),[a,s]=e.useState(),l=function(){const e={};return NJ(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),c=e.useLayout(),u=e.useTranslator(),d=!(null===(n=c.qSelectionInfo)||void 0===n||!n.qInSelections),[f,h]=e.useState(!1);return l.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[0])||void 0===o||!o.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:c,isInSelections:d,isLassoActionActive:f,setIsLassoActionActive:h,translator:u}),e.useAction((()=>(a&&(a.interactions.lasso.active=()=>f),{...l.lasso})),[a,f,d,u.language()]),e.useEffect((()=>{i.style.overflow="hidden";const e=t({renderer:{prio:[r.renderer||"canvas"]}}),n=e.chart({element:i,data:[],settings:{}}),a=tE({chart:n,actions:l,selections:o,config:{selectionActions:!1}});a.setLayout(c),a.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const u=function(e){var t=Pw({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({legendScrollOffset:0,rotation:0});u.intercept("rotation",(e=>(u.get("rotation")+e)%(2*Math.PI))),u.onChanged("rotation",(()=>{n.update({partialData:!0})}));const d=BS();return l.on("selections-start",(()=>{n.brush("selection").start()})),s({picasso:e,chart:n,selectionService:a,viewState:u,viewCache:d,interactions:l}),()=>{a.destroy(),n.destroy(),l.removeAllListeners(),delete l.select,u.intercept("rotation",void 0),u.onChanged("rotation",void 0)}}),[]),a}const PJ={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function IJ(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const LJ={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=o[t]*(n>l?1:n/l),u=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function zJ(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await LJ.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function FJ(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return zJ(u,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&IJ(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await LJ.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await LJ.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(IJ(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await LJ.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const jJ={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(FJ(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},$J={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await jJ.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>jJ.checkIfPromisesExist({customTooltipModel:e})};const HJ=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:PJ.CHART.CHART_PARENT_TYPE,qId:PJ.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},VJ=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:PJ.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const BJ={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=PJ.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:PJ.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await BJ.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=PJ.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=PJ.CHART.STATE,a=HJ(t,o),s=await e.createSessionObject(a),l=VJ(t);if(s.id!==PJ.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(PJ.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await BJ.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(BJ.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(PJ.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=PJ.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function WJ(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function UJ(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=PJ.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function YJ(e){const t=UJ();return e.filter((e=>t[e.id]))}const KJ={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=KJ.getAttrExprData(a);o.length||n.length?$J.handlePromises({customTooltipModel:i,nodes:KJ.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&BJ.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>$J.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[PJ.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[PJ.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[PJ.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(YJ(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[PJ.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[PJ.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=WJ(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===YJ(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=WJ(e)||[];[...i,t].forEach((e=>{const t=YJ(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=UJ(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Jg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Jg.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function GJ(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case PJ.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case PJ.CUSTOM.TITLE:case PJ.CUSTOM.DESCRIPTION:case PJ.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const XJ={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>GJ(t,e,r,n)}}};const ZJ={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[PJ.CUSTOM.TITLE]:!0,[PJ.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=KJ.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===PJ.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===PJ.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>ey.getMeasure(e,t))),e,i)}};function QJ({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(ZJ.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function JJ(e){const t=PJ.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function e0(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const t0={migrateProperties(e){var t,n;const r=Fg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=e0(r);return o=function(e,t){return t.concat(e.map((e=>JJ(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=JJ(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(e0(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var n0={attrExpr:t0};const{CUSTOM:r0}=PJ;function i0({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:KJ,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),f="rtl"===c.direction,h=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&$S(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=QJ({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===r0.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===r0.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>KJ.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>KJ.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const i=KJ.getDataNodes(o,r),{attrExps:a}=KJ.getAttrExprData(t);return $J.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>BJ.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>KJ.getFooterRow(a.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>BJ.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>BJ.hide({app:n,customTooltipModel:d}),destroy:()=>BJ.destroyVisualization({customTooltipModel:d})}}}function o0(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function a0({flags:t,picasso:n,instance:r}){const i=e.useModel(),o=e.useApp(),a=e.useTranslator(),s=e.useElement(),[l,c]=e.useState(),u=e.useStaleLayout(),d=e.usePlugins(),f=e.useConstraints(),h=e.useOptions(),p=e.useTheme(),{qLocaleInfo:m}=e.useAppLayout(),g=e.useEmbed();return e.useEffect((()=>{if(!r)return;s.style.overflow="hidden";const e=jS({picasso:r.picasso,model:i,app:o,translator:a,config:{auto:!1,key:"fill"}}),l=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return Fw(Iw().mark((function e(){var r,a,s,l;return Iw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=Fw(Iw().mark((function e(n){var r;return Iw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(Pw({},i));case 4:if("object"===Lw(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(Pw({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,Vw(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=Hw(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=ck(!0,{},n.brush);ck(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===Lw(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=US({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=US({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:r.picasso,plugins:d,pluginArgs:o0(u)}),y=i0({flags:t,layout:u,app:o,model:i,picasso:n,chart:r.chart,translator:a,localeInfo:m,embed:g,options:h}),v=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:lE(a),styles:void 0};return d.styles=uE({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=uE({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:p,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),b=function({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:u}=o.getStyles();return jE({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:i,create:o,util:a})=>{const[c]=n,{title:u,description:d,measures:f}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];u&&h.push(o.text({value:u,style:{bold:!0}})),d&&h.push(o.text({value:d}));const p=s.hideBasic();if(p&&!f.length&&(u||d)||h.push(o.text({value:c.data.label,style:{bold:!0}})),!p){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(c.desc.share)}))}f&&h.push(...f.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}({app:o,chart:r.chart,translator:a,layout:u,constraints:f,options:h,themeService:v,colorService:e,custom:y}),x=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),i=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(o=i("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=i("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:u,themeService:v,flags:t});c({colorService:e,pluginService:l,themeService:v,tooltipService:b,styleService:x})}),[i,o,r,u,a.language(),f,h.direction,p.name()]),l}function s0({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const l0=.8,c0=.55,u0=.3,d0={CORNER_RADIUS:0,INNER_RADIUS:c0,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},f0=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=l0,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:c0;e.donut.showAsDonut&&(o=l0-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:l0,h0=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:c0;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=l0-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},p0=({layout:e},t)=>{var n,r,i,o,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,f=d&&(d.label||d.title||d.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:p}=t.chart,m=Kg.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>p(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:f,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?XJ.getNode(e,{dimensionCount:m}):void 0,radius:h?g(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:h0({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?d0.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:d0.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(i=y.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:d0.STROKE.COLOR,outerRadius:f0({layout:e},t,y),cornerRadius:null!==(o=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==o?o:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function m0({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:c0,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=l0-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function g0(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function y0({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}const v0=()=>({key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}}),b0=()=>({key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}});function x0(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function w0(e){return e.node.data.num.label}function k0(e){return e.node.data.radius.label}function S0(e,t,n){if(e.dataPoint.auto)return n?w0:x0;if("share"===e.dataPoint.labelMode)return x0;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?k0:w0}return null}function C0({data:e}){return e?e.label:""}function M0(e){const t=parseInt(e,10);if(!isNaN(t))return t}const E0=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function _0(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:c0)>u0}function D0({node:e,data:t}){return Fg({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function q0(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:M0(r.fontSize),fontFamily:r.fontFamily,label:C0,linkData:({node:e,data:t})=>Fg({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(S0(e,t,!1)){const r=function(e,t,n){return{label:S0(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&_0(e)?"inside":"into",onBackground:e.donut.showAsDonut&&_0(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=ry(Fg(t,r),n.theme);o.linkData=D0,i.push(o)}return{key:"pie-labels",type:"labels",renderer:BE(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function T0({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=S0(e,t,!0),i=E0(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,c=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",renderer:BE(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:M0(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:C0,linkData:({data:e})=>e},{fontSize:M0(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):q0(e,n,t))}const R0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),i=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function O0(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}function N0(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=O0(e,t),o=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*l0;return(o-r)**2+(a-i)**2<=s**2}const A0=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let i=O0(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),P0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),I0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function L0(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&N0(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const z0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&N0(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),F0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),j0=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[z0(e,{}),A0(e,t,{}),...n]:[R0(e,{}),I0(e,{}),z0(e,{}),P0(e,{}),F0(e,{}),A0(e,t,{}),...n]});function $0(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[j0(t,r,o.gestures),L0(t),o.native]}function H0({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function V0({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,i=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:i.fontFamily,fontSize:i.fontSize,color:i.color}}}function B0({layout:e},t,n){const r=function(e,t){const n={field:"qDimensionInfo/0",props:{num:{field:t.encodings.slice.arc}}};t.encodings.slice.outerRadius&&(n.props.radius={field:t.encodings.slice.outerRadius});let r=t.ds.extract(n);if(0===r.length)return"NoDataExist";const i=Kg.getValue(e,"qHyperCube.qSize.qcy");if(Kg.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<i)return"LimitedData";if(r=t.encodings.slice.outerRadius?r.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):r.filter((e=>"NaN"!==e.num.value)),0===r.length)return"OnlyNanData";const o=r;return r=t.encodings.slice.outerRadius&&!e.donut.showAsDonut?r.filter((e=>e.num.value>0&&e.radius.value>0)):r.filter((e=>e.num.value>0)),0===r.length?"OnlyNegativeOrZeroValues":o.length!==r.length&&"NegativeOrZeroValues"}(e,t),{fontFamily:i}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:i}=t,{rtl:o}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:Hg[e].alignment},settings:{label:i.get(`Object.Disclaimer.${e}`),isRTL:o},style:r}}(r,t,n,{fontFamily:i})}function W0({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return Fg(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&Fg(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),o={scales:i};let a=[];const s=B0({layout:e},r,t);if(s&&"center"===s.layout.dock)return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return i.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[p0({layout:e,settings:o},r),m0({layout:e},r),g0(r),y0({layout:e},r),V0({layout:e},r,t),...c.components,s0({settings:o,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),b0(),v0(),T0({layout:{components:e.components,dataPoint:Fg({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),(!1!==e.showDisclaimer||!r.flags.isEnabled("SHOW_DISCLAIMER"))&&s],a=a.filter((e=>!1!==e)),{interactions:$0(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:H0({settings:o},r),strategy:Ug(0,r)}}function U0({instance:t,services:n,picasso:r,flags:i}){const o=e.useOptions(),a=e.useModel(),s=e.useApp(),l=e.useTranslator(),c=e.useTheme(),u=e.useStaleLayout(),d=e.useSelections(),f=e.useConstraints(),{qLocaleInfo:h}=e.useAppLayout(),[p]=e.usePromise((()=>{if(!n)return Promise.resolve();n0.attrExpr.updateProperties(a,u);return Promise.all([n.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:h,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}})}),a&&!u.snapshotData?a.getEffectiveProperties():Promise.resolve({}),n.pluginService.initialize()])}),[n]);e.useEffect((()=>{null!=t&&t.selectionService&&t.selectionService.setLayout(u)}),[u]),e.useEffect((()=>{if(!t||!p)return;const{chart:e,viewState:m,interactions:g,viewCache:y}=t,{colorService:v,pluginService:b,themeService:x,tooltipService:w,styleService:k}=n,S=o.viewState||{};u.snapshotData||(m.preventSet("legendScrollOffset",S.legendScrollOffset||0),m.preventSet("rotation",S.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,m),w.expando.set("properties",p[1]);const C=r.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}}),M=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}},...v.getData()],E={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(E.slice.outerRadius="qMeasureInfo/1");const _=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(r.data("q")({data:u.qHyperCube,config:{localeInfo:h}}),E),D=d?()=>{const t=e.brush("selection");Eg.selections(t,{},u).forEach((e=>{d.select(e)}))}:()=>{},q=u.snapshotData&&!o.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,T=e=>t.selectionService.getIsSelectionLocked(e),R=()=>W0({layout:u,context:{rtl:"rtl"===o.direction,theme:c,translator:l,constraints:f,model:a},selectionService:t.selectionService},{picasso:r,ds:C,model:a,app:s,chart:e,onSelect:D,isLocked:T,interactions:g,constraints:f,translator:l,viewState:m,dataRowCount:_,encodings:E,colorService:v,pluginService:b,themeService:x,styleService:k,tooltipService:w,debouncer:WS,properties:p[1],logicalSize:q,flags:i,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!VE.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:m,options:o,layout:u,viewCache:y,chart:e})}});t.generateSettings=R;const O=R();e.update({data:M,settings:O}),y.set("chartWidth",e.element.clientWidth),y.set("chartHeight",e.element.clientHeight),y.set("hasZeroLine",O.components.filter((e=>"zeroLine"===e.key)).length>0),VE.cacheProperties({viewCache:y,layout:u}),o.effect&&u.effectProperties?o.effect.update(u,e,{encodings:E}):u.effectPath||e.brush("highlight").end()}),[t,p,o.direction,o.effectProperties,f,c.name(),l.language()])}const Y0="legend-cat";function K0({instance:t,services:n}){const r=e.useElement(),i=e.useStaleLayout();e.onTakeSnapshot((e=>{if(!(i.snapshotData&&i.snapshotData.content&&i.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(e,r),t&&n))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:Gg(t,Y0),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:e,chart:t.chart,colorService:n.colorService,viewState:t.viewState})})),e.useImperativeHandle((()=>({getViewState:()=>({rotation:t.viewState.get("rotation"),legendScrollOffset:Gg(t.chart,"legend-cat")})})),[t])}var G0={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Re});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const k={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return C="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},C(e)}var M=t().bind(null,!0),E={},_=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function q(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function R(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=q(e[n||t])?o:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(_(e)&&_(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}E.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?M({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);O(o,a)||T(t,i)||(q(a)?r.push({op:"add",path:s,value:o}):D(o)&&D(a)?r=r.concat(E.generate(a,o,s)):_(o)&&_(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&q(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(O(t,i))return r;if(!q(t[0])&&q(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(E.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){q(t[i])&&!T(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},E.apply=function(e,t){t.forEach((function(t){var n,r,i=R(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(_(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(_(a)&&_(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return S(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!T(n,e)&&delete n[e]})),M(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=R(e,t.from);_(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(_(i)?i.splice(+o,1):delete i[o])}))},E.clone=function(e){return M({},e)},E.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},E.updateObject=function(e,t){Object.keys(e).length?E.apply(e,E.generate(e,t)):M(e,t)};const N=E,A=function(e,n,r){if(!e)return Promise.resolve();var i=N.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var P="accumulation";function I(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===P)return n[r]}function L(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===P)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getNumStepComp(n,l),f=k.getAboveComp(n,l,u,d),h=k.getRangeComp("RangeSum",f);if(k.needDimension({modifier:n,properties:r,layout:i})){var p=k.getDimComp(c,1),m=k.getDimComp(c,0),g=k.getAggrComp(h,p,m);h=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(L(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(L(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(L(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(L(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=I(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=I(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(L(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(P))return!1;var o=I(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=k.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=k.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=k.getNumStepComp(r,c),p=k.getAboveComp(r,c,f,h);if(r.nullSuppression)t=k.getRangeComp("RangeAvg",p);else{var m=k.getRangeComp("RangeSum",p),g=function(e,t){var n=k.getRowNoComp(e,t);if(!k.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(k.needDimension({modifier:r,properties:i,layout:a})){var v=k.getDimComp(u,1),b=k.getDimComp(u,0),x=k.getAggrComp(y,v,b);y=r.showExcludedValues?k.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=$(t,e);return o&&!o.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?k.generateTSDExpression(n,t,r):t},extractInputExpression:k.extractInputExpression,initModifier:function(e,t){k.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=k.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(W))return!1;var o=U(t,e);return o&&!o.disabled}};return n}};var X="difference";function Z(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var J={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(k.needDimension({modifier:n,properties:r,layout:i})){var h=k.getDimComp(c,1),p=k.getDimComp(c,0),m=k.getAggrComp(f,h,p);f=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(J).forEach((function(t){void 0===e[t]&&(e[t]=J[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=Z(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(k.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(k.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=k.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=ie(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,n){if(e<2){var r=ie(t,0);t.splice(r,1)}return t}(i,o),o=function(e,t,n){if(0===e){var r=ie(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",ke="qDef.qLabelExpression",Se="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Me="qDef.qAggrFunc",Ee="qDef.base.qAggrFunc",_e={initBase:function(e,t){(t||_e.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Se,o(e,we)),n(e,Ce,o(e,ke)))},restoreBase:function(e){_e.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Se)),n(e,ke,o(e,Ce)),o(e,Me)&&o(e,Ee)&&n(e,Me,o(e,Ee)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const De=_e;function qe(e){return qe="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},qe(e)}var Te={accumulation:F,movingAverage:B,difference:ee,normalization:ue,timeSeriesDecomposition:G};const Re={modifiers:Te,apply:Ne,applyModifiers:Ae,cleanUpMeasure:Pe,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:Ie,getActiveModifier:Le,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Qe({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Oe={};function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var c=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===qe(r))return Ae({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Ie({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Je(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===qe(e)&&!e.disabled){if(n++,"object"!==qe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&k.simplifyExpression(t.qDef.base.qDef)!==k.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ae({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===qe(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Je(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Pe(e)})),Ze({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ae(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Je(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ie({measures:n,properties:r}))return n.forEach((function(e){return Pe(e)})),Promise.resolve();var l=a?void 0:Je(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===qe(e)&&!e.disabled){if(s++,"object"!==qe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Te[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Te[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Te[r.type].updateModifier&&Te[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Te[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Ve(n)):Pe(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Ze({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Pe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===qe(e)&&!e.disabled&&!Te[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Ie(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Le(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Te[r.type]&&!r.disabled)return r}}function ze(e){var t=Le(e);return!t||Te[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Le(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===qe(t)&&(t.disabled||!Te[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==qe(e)||e.disabled||!Te[e.type])&&(void 0===i[e.type]&&(i[e.type]=Te[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ze(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):A(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===qe(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Je(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=We(t);o&&n.push(o),i=i||Qe({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Ne({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="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},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var w=n(229),k=n.n(w);function S(e,t){var n=k()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return k()(!0,{},t,e)}function M(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var E=Math.pow(2,53)-1;function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const q=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},T=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},R=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},O=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},N=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},A=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=S(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=S(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},P=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=C(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=C(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},I=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=M(a.max,i.dimensions.length,E),l=M(a.min,i.dimensions.length,0);return{maxDimensions:M(o.max,s,E),minDimensions:M(o.min,l,0),maxMeasures:s,minMeasures:l}},L=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=k()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=k()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return _(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function B(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=I({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,k=b.maxMeasures,S=b.minMeasures,C=l.defaultDimension,M=void 0===C?O():C,E=l.defaultMeasure,_=void 0===E?N():E;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S,newHyperCubeDef:v}),A({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:M}),P({exportFormat:t,maxMeasures:k,minMeasures:S,newHyperCubeDef:v,defaultMeasure:_}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),L({exportFormat:t,newHyperCubeDef:v}),T("qMaxStackedCells",y,v),T("qNoOfLeftDims",y,v),R("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),R("qMode",y,v,"S"),R("qReductionMode",y,v,"N"),R("qSortbyYValue",y,v),R("qIndentMode",y,v),R("qShowTotalsAbove",y,v),q(g,t,r),m.qProperty=g;var D=o.getValue(u||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:D}),f&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&B(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var J={scatterplot:Q,"sn-scatter-plot":Q,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=n?"expression":t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:n||s,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}r||(o.auto=!1,o.mode=a)}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(J[t]||Z).colorModeOptions||Z.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(n,"unsupportedAutoMinMax")||k()(n.measureAxis,t.measureAxis):B(n,"supportedAutoMinMax")||k()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&k()(s,n.properties.measureAxes[t[0].axis])):k()(s,n.properties.measureAxes[0])}},we=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},ke={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Se(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Se(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Me(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Se(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Ee="qHyperCubeDef.qMeasures",_e="conditionalColoring",De="measures",qe="qDef.conditionalColoring";const Te={quarantine:function(e){Ce({properties:e,arrayPath:Ee,quarantineName:_e,arrayName:De,itemPath:qe})},unquarantine:function(e){Me({properties:e,arrayPath:Ee,itemPath:qe,arrayName:De,quarantineName:_e})}};var Re="qHyperCubeDef.qMeasures",Oe="measures",Ne="qHyperCubeDef.qDimensions",Ae="dimensions",Pe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ie="alternativeMeasures",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Re,quarantineName:je,arrayName:Oe,itemPath:Fe}),Ce({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Ae,itemPath:Fe})},unquarantine:function(e){Me({properties:e,arrayPath:Re,quarantineName:je,arrayName:Oe,itemPath:Fe}),Me({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Ae,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ce({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Me({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ie,itemPath:Fe}),Me({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:W,colorChart:ye,axisChart:ke,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:Ce,unquarantineArrayProp:Me,conditionalColoring:Te,conditionalShow:$e}})(),r.default})()}(G0);var X0=r(G0.exports);const Z0={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},Q0={getDimensions:e=>Z0.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>Z0.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>Z0.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>Z0.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=Z0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=Z0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const J0={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>Q0.getNumMeasures(e)>=1},showLegend:e=>{const t=Z0.getValue(e,"color.auto"),n=Z0.getValue(e,"color.expressionIsColor"),r=Z0.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!Z0.getValue(e,"color.auto")&&"byDimension"===Z0.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===Z0.getValue(e,"color.useDimColVal")&&Z0.setValue(e,"color.useDimColVal",!1),!Z0.getValue(e,"color.auto")&&"byDimension"===Z0.getValue(e,"color.mode")&&"libraryItem"===Z0.getValue(e,"color.byDimDef.type"))},e1=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=J0;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!Z0.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=Z0.getValue(e,"color.auto");return Z0.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===Z0.getValue(e,"color.mode")&&!0===Z0.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>Z0.getValue(e,"legend.show")&&i(e)}}};function t1(e){return new e1(e)}const n1={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},r1=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},i1={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"slices",ref:"components",defaultValues:{key:"slices",style:{strokeColor:{index:-1,color:"#FFFFFF"},strokeWidth:"none",cornerRadius:0,innerRadius:.55}},items:{slices:{components:"items",type:"items",uses:"styling.slice",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},cornerRadius:{component:"slider",min:0,max:40,step:.05,defaultValue:0,show:!0},innerRadius:{component:"slider",min:.05,max:.75,step:.01,defaultValue:.55,show:(e,t,n)=>n.layout.donut.showAsDonut}}}}},o1=(e,t,n,r)=>{const i=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=ek({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:r1("axis.title",i,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:r1("label.name",i,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:r1("label.value",i,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:r1("legend.title",i,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:r1("legend.label",i,r)}}}:void 0}}},a1=t1("hard");const s1=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(VS(e,"color.mode","byDimension"),VS(e,"color.byDimDef.activeDimensionIndex",0),VS(e,"color.persistent",!1))},l1=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},c1=e=>{var t;const{flags:n,translator:r}=e||{},i=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,o=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),a={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:s1},colorMode:{options:l1}}}}},s={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||VS(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,i){i.dimensionTitle=!e}}}}}}},l={uses:"settings",items:{simpleStyling:null!=n&&n.isEnabled("PIECHART_SIMPLE_STYLING")?n1:void 0,simpleLabels:s,general:{items:{showDisclaimer:null!=n&&n.isEnabled("SHOW_DISCLAIMER")?{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}:void 0}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:null!=n&&n.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_PIECHART")?o1(o,n,r,i):i1,showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:a1.color.colorMode.options},persistentColors:{show:a1.color.persistentColors.show}}},simpleColors:a,legend:{show:a1.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:a1.legend.showTitle.show},dock:{show:a1.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return l},u1={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},d1={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},f1={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function h1(e){return{type:"items",component:"accordion",items:{data:u1,sorting:d1,addons:f1,settings:c1(e)}}}const p1=t1("explore"),m1=h1();var g1={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:m1.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:m1.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:p1.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&p1.color.useDimColVal.show(e))}}}}}}};const y1="slices";function v1(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function b1(e){return e.data.num.label}function x1(e){return e.data.radius.label}function w1(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?b1:v1;if("share"===e.dataPoint.labelMode)return v1;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?x1:b1;return b1}(n,r)(e,t)}function k1(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class S1{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(i+o)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),f=c.top-r.top+l.y*(s.y-a*Math.cos(u)),h=Math.cos(u)>0?"top":"bottom",p=Math.sin(u)>0?"right":"left";return{title:k1(n),label:w1(n,this.chart.formatter,e,t),orientation:`${h}${p}`,position:{x:d,y:f}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=Fg(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=Fg(e.options,{effect:null}),n?t.getProperties().then((e=>Fg(e,{effectPath:null,effectProperties:null,dataPoint:Fg(!0,{},e.originalModelSettings.dataPoint),legend:Fg(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class C1 extends S1{init(e,t,n,r){return e.options=Fg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(y1).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class M1 extends S1{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(y1).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(y1).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===y1)).map(((n,r)=>{const i=w1(n,this.chart.formatter,e,t);return{text:`${k1(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=Fg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const E1="/effects/highlight-value",_1="/effects/maxmin";var D1={isCompatible:({effectPath:e})=>e===_1||e===E1,create:e=>e.effectPath===_1?new C1(e):e.effectPath===E1?new M1(e):null};function q1(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(o=o.object)||void 0===o?void 0:o.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function T1(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function R1(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function O1({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){R1(e),T1(t),KJ.addCallbackCustomTooltip(t)},move(e,t){R1(e),T1(t),KJ.moveCallbackCustomTooltip(t,e)},remove(e,t){KJ.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){R1(e),T1(r),KJ.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){T1(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const N1=e=>e.qMax<=0,A1=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(N1));function P1(e){return{definition:h1(e),softDefinition:g1,support:{snapshot:A1,export:A1,exportData:!0,sharing:A1,viewData:!0,effects:!0},effects:D1,extendMetrics:q1,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=X0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:O1(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>X0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function I1(e){return{properties:{version:"1.27.1",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:d0.STROKE.COLOR},cornerRadius:d0.CORNER_RADIUS,innerRadius:d0.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[O1(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=X0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:O1(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>X0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}return t=>{const{flags:r}=t;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(n).forEach((t=>{e.add(n[t])}))}}(t.translator);const i=DJ();return{qae:I1(t),ext:P1(t),component(){const t=AJ({picasso:i}),n=a0({flags:r,picasso:i,instance:t});U0({instance:t,services:n,picasso:i,flags:r}),function({instance:t}){const n=e.useStaleLayout(),r=e.useOptions(),i=e.useRect();e.useEffect((()=>{if(!t||!t.generateSettings)return;const{viewCache:e,chart:i,generateSettings:o}=t;i.update({settings:o()}),e.set("chartWidth",i.element.clientWidth),e.set("chartHeight",i.element.clientHeight),r.effect&&r.effect.update(n,i)}),[i.width,i.height])}({instance:t}),K0({instance:t,services:n})}}}}));
|
|
122
|
+
`),cQ.rippleVisible,gQ,550,(({theme:e})=>e.transitions.easing.easeInOut),cQ.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),cQ.child,cQ.childLeaving,yQ,550,(({theme:e})=>e.transitions.easing.easeInOut),cQ.childPulsate,vQ,(({theme:e})=>e.transitions.easing.easeInOut)),wQ=E_.forwardRef((function(e,t){const n=CZ({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=oU(n,uQ),[s,l]=E_.useState([]),c=E_.useRef(0),u=E_.useRef(null);E_.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=E_.useRef(!1),f=hX(),h=E_.useRef(null),p=E_.useRef(null),m=E_.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,iK.jsx(xQ,{classes:{ripple:qG(i.ripple,cQ.ripple),rippleVisible:qG(i.rippleVisible,cQ.rippleVisible),ripplePulsate:qG(i.ripplePulsate,cQ.ripplePulsate),child:qG(i.child,cQ.child),childLeaving:qG(i.childLeaving,cQ.childLeaving),childPulsate:qG(i.childPulsate,cQ.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=E_.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=E_.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=E_.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return E_.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),iK.jsx(bQ,iU({className:qG(cQ.root,i.root,o),ref:p},a,{children:iK.jsx(TB,{component:null,exit:!0,children:s})}))}));var kQ=wQ;function SQ(e){return RG("MuiButtonBase",e)}var CQ=OG("MuiButtonBase",["root","disabled","focusVisible"]);const MQ=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],EQ=tQ("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${CQ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),_Q=E_.forwardRef((function(e,t){const n=CZ({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:k,onMouseUp:S,onTouchEnd:C,onTouchMove:M,onTouchStart:E,tabIndex:_=0,TouchRippleProps:D,touchRippleRef:q,type:T}=n,R=oU(n,MQ),O=E_.useRef(null),N=E_.useRef(null),A=cX(N,q),{isFocusVisibleRef:P,onFocus:I,onBlur:L,ref:z}=kX(),[F,j]=E_.useState(!1);l&&F&&j(!1),E_.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),O.current.focus()}})),[]);const[$,H]=E_.useState(!1);E_.useEffect((()=>{H(!0)}),[]);const V=$&&!c&&!l;function B(e,t,n=u){return lX((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}E_.useEffect((()=>{F&&d&&!c&&$&&N.current.pulsate()}),[c,d,F,$]);const W=B("start",w),U=B("stop",m),Y=B("stop",g),K=B("stop",S),G=B("stop",(e=>{F&&e.preventDefault(),k&&k(e)})),X=B("start",E),Z=B("stop",C),Q=B("stop",M),J=B("stop",(e=>{L(e),!1===P.current&&j(!1),h&&h(e)}),!1),ee=lX((e=>{O.current||(O.current=e.currentTarget),I(e),!0===P.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=E_.useRef(!1),re=lX((e=>{d&&!ne.current&&F&&N.current&&" "===e.key&&(ne.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=lX((e=>{d&&" "===e.key&&N.current&&F&&!e.defaultPrevented&&(ne.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(R.href||R.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===T?"button":T,ae.disabled=l):(R.href||R.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=cX(t,z,O),le=iU({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:_,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=SX({root:["root",t&&"disabled",n&&"focusVisible"]},SQ,i);return n&&r&&(o.root+=` ${r}`),o})(le);return iK.jsxs(EQ,iU({as:oe,className:qG(ce.root,a),ownerState:le,onBlur:J,onClick:p,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:W,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:X,ref:se,tabIndex:l?-1:_,type:T},ae,R,{children:[o,V?iK.jsx(kQ,iU({ref:A,center:i},D)):null]}))}));var DQ=_Q;function qQ(e){return RG("MuiButton",e)}var TQ=OG("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var RQ=E_.createContext({});var OQ=E_.createContext(void 0);const NQ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],AQ=e=>iU({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),PQ=tQ(DQ,{shouldForwardProp:e=>eQ(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${kK(n.color)}`],t[`size${kK(n.size)}`],t[`${n.variant}Size${kK(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return iU({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":iU({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:jX(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jX(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jX(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":iU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${TQ.focusVisible}`]:iU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${TQ.disabled}`]:iU({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${jX(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${TQ.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${TQ.disabled}`]:{boxShadow:"none"}})),IQ=tQ("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${kK(n.size)}`]]}})((({ownerState:e})=>iU({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},AQ(e)))),LQ=tQ("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${kK(n.size)}`]]}})((({ownerState:e})=>iU({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},AQ(e)))),zQ=E_.forwardRef((function(e,t){const n=E_.useContext(RQ),r=E_.useContext(OQ),i=CZ({props:rX(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=oU(i,NQ),x=iU({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return iU({},a,SX({root:["root",o,`${o}${kK(t)}`,`size${kK(i)}`,`${o}Size${kK(i)}`,`color${kK(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${kK(i)}`],endIcon:["icon","endIcon",`iconSize${kK(i)}`]},qQ,a))})(x),k=g&&iK.jsx(IQ,{className:w.startIcon,ownerState:x,children:g}),S=f&&iK.jsx(LQ,{className:w.endIcon,ownerState:x,children:f}),C=r||"";return iK.jsxs(PQ,iU({ownerState:x,className:qG(n.className,w.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:qG(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[k,o,S]}))}));var FQ=zQ;var jQ=E_.createContext({});function $Q(e){return RG("MuiListItemButton",e)}var HQ=OG("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const VQ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],BQ=tQ(DQ,{shouldForwardProp:e=>eQ(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>iU({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${HQ.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${HQ.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:jX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${HQ.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:jX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jX(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${HQ.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${HQ.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),WQ=E_.forwardRef((function(e,t){const n=CZ({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,h=oU(n,VQ),p=E_.useContext(jQ),m=E_.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=E_.useRef(null);oX((()=>{i&&g.current&&g.current.focus()}),[i]);const y=iU({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return iU({},n,SX({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},$Q,n))})(y),b=cX(g,t);return iK.jsx(jQ.Provider,{value:m,children:iK.jsx(BQ,iU({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:qG(v.focusVisible,u),ownerState:y,className:qG(v.root,f)},h,{classes:v,children:a}))})}));var UQ=WQ;function YQ(e){return RG("MuiListItemIcon",e)}OG("MuiListItemIcon",["root","alignItemsFlexStart"]);const KQ=["className"],GQ=tQ("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>iU({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),XQ=E_.forwardRef((function(e,t){const n=CZ({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=oU(n,KQ),o=iU({},n,{alignItems:E_.useContext(jQ).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return SX({root:["root","flex-start"===t&&"alignItemsFlexStart"]},YQ,n)})(o);return iK.jsx(GQ,iU({className:qG(a.root,r),ownerState:o,ref:t},i))}));var ZQ=XQ;function QQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QQ(Object(n),!0).forEach((function(t){eJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eJ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tJ=function(e){var t=e.className,n=e.path,r=e.fillRule;return __.createElement(lQ,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},__.createElement("path",{d:n}),r?__.createElement("use",{fillRule:r}):void 0)},nJ={ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}};tQ(FQ,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),tQ((function(e){var t=e.className;return __.createElement(tJ,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:nJ.ICONS.COLOR.SECONDARY}})),tQ((function(e){var t=e.className;return __.createElement(tJ,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:nJ.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:nJ.ICONS.COLOR.DISABLED}}})),tQ(FQ,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}}));var rJ={color:nJ.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:nJ.ICONS.COLOR.DISABLED}};tQ((function(e){var t=e.className;return __.createElement(tJ,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return rJ})),tQ((function(e){var t=e.className;return __.createElement(tJ,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return rJ})),tQ((function(e){var t=e.className;return __.createElement(tJ,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:nJ.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),tQ(UQ)((function(){return{padding:"4px 12px","&:focus":JQ({},nJ.FOCUS)}})),tQ(ZQ)((function(){return{marginRight:0,justifyContent:"center"}})),tQ((function(e){var t=e.className;return __.createElement(tJ,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:nJ.ICONS.COLOR.SECONDARY}}));var iJ=Object.prototype.hasOwnProperty,oJ=Object.prototype.toString,aJ=Object.defineProperty,sJ=Object.getOwnPropertyDescriptor,lJ=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===oJ.call(e)},cJ=function(e){if(!e||"[object Object]"!==oJ.call(e))return!1;var t,n=iJ.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&iJ.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||iJ.call(e,t)},uJ=function(e,t){aJ&&"__proto__"===t.name?aJ(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},dJ=function(e,t){if("__proto__"===t){if(!iJ.call(e,t))return;if(sJ)return sJ(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=dJ(s,n),s!==(i=dJ(t,n))&&(u&&i&&(cJ(i)||(o=lJ(i)))?(o?(o=!1,a=r&&lJ(r)?r:[]):a=r&&cJ(r)?r:{},uJ(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&uJ(s,{name:n,newValue:i}));return s}));var fJ,hJ=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return __.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},pJ={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return __.createElement("div",{dir:o,style:a},__.createElement(hJ,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},mJ=iB;fJ=mJ.createRoot,mJ.hydrateRoot;var gJ=kZ({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function yJ(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function vJ(){var e={rendererBox:yJ(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=yJ(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=fJ(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return __.createElement(__.StrictMode,null,__.createElement(rQ,{theme:gJ},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function bJ(e){return Jy(e).l<70}function xJ(e,t){const n=Jy(e).l/100,r=Jy(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function wJ(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var kJ={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(xJ(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=wJ({r:s,a:e},n),o=wJ({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:bJ(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function SJ(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function CJ(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:SJ(s)}}var MJ={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),u=CJ({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function EJ(){const e=Fp();return e.use(Eg),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",qg(e))};e.interaction("hammer",qg(Hammer))}(a)),e.use((function(e){e.renderer("react",UW()),e.component("data-title",VW(e.renderer("svg")()))})),e.renderer("react-qcm",vJ),e.component("disclaimer",pJ),e.component("pie-dividers",kJ),e.component("negative-indicators",MJ),e}var _J={};function DJ(){DJ.init.call(this)}_J.isObject=function(e){return"object"==typeof e&&null!==e},_J.isNumber=function(e){return"number"==typeof e},_J.isUndefined=function(e){return void 0===e},_J.isFunction=function(e){return"function"==typeof e};var qJ=DJ;DJ.EventEmitter=DJ,DJ.prototype._events=void 0,DJ.prototype._maxListeners=void 0,DJ.defaultMaxListeners=10,DJ.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},DJ.prototype.setMaxListeners=function(e){if(!_J.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},DJ.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],_J.isUndefined(n))return!1;if(_J.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(_J.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},DJ.prototype.addListener=function(e,t){var n;if(!_J.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,_J.isFunction(t.listener)?t.listener:t),this._events[e]?_J.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,_J.isObject(this._events[e])&&!this._events[e].warned)&&((n=_J.isUndefined(this._maxListeners)?DJ.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,_J.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),_J.isFunction(console.trace)&&console.trace()));return this},DJ.prototype.on=DJ.prototype.addListener,DJ.prototype.once=function(e,t){if(!_J.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},DJ.prototype.removeListener=function(e,t){var n,r,i,o;if(!_J.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||_J.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(_J.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},DJ.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],_J.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},DJ.prototype.listeners=function(e){return this._events&&this._events[e]?_J.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},DJ.listenerCount=function(e,t){return e._events&&e._events[t]?_J.isFunction(e._events[t])?1:e._events[t].length:0};var TJ=r(qJ);const RJ=e=>(Object.keys(TJ.prototype).forEach((t=>{e[t]=TJ.prototype[t]})),TJ.init(e),e);function OJ({picasso:t}){var n;const r=e.useOptions(),i=e.useElement(),o=e.useSelections(),[a,s]=e.useState(),l=function(){const e={};return RJ(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),c=e.useLayout(),u=e.useTranslator(),d=!(null===(n=c.qSelectionInfo)||void 0===n||!n.qInSelections),[f,h]=e.useState(!1);return l.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[0])||void 0===o||!o.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:c,isInSelections:d,isLassoActionActive:f,setIsLassoActionActive:h,translator:u}),e.useAction((()=>(a&&(a.interactions.lasso.active=()=>f),{...l.lasso})),[a,f,d,u.language()]),e.useEffect((()=>{i.style.overflow="hidden";const e=t({renderer:{prio:[r.renderer||"canvas"]}}),n=e.chart({element:i,data:[],settings:{}}),a=tE({chart:n,actions:l,selections:o,config:{selectionActions:!1}});a.setLayout(c),a.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const u=function(e){var t=Pw({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({legendScrollOffset:0,rotation:0});u.intercept("rotation",(e=>(u.get("rotation")+e)%(2*Math.PI))),u.onChanged("rotation",(()=>{n.update({partialData:!0})}));const d=BS();return l.on("selections-start",(()=>{n.brush("selection").start()})),s({picasso:e,chart:n,selectionService:a,viewState:u,viewCache:d,interactions:l}),()=>{a.destroy(),n.destroy(),l.removeAllListeners(),delete l.select,u.intercept("rotation",void 0),u.onChanged("rotation",void 0)}}),[]),a}const NJ={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function AJ(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const PJ={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=o[t]*(n>l?1:n/l),u=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function IJ(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await PJ.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function LJ(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return IJ(u,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&AJ(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await PJ.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await PJ.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(AJ(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await PJ.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const zJ={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(LJ(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},FJ={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await zJ.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>zJ.checkIfPromisesExist({customTooltipModel:e})};const jJ=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:NJ.CHART.CHART_PARENT_TYPE,qId:NJ.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},$J=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:NJ.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const HJ={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=NJ.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:NJ.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await HJ.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=NJ.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=NJ.CHART.STATE,a=jJ(t,o),s=await e.createSessionObject(a),l=$J(t);if(s.id!==NJ.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(NJ.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await HJ.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(HJ.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(NJ.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=NJ.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function VJ(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function BJ(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=NJ.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function WJ(e){const t=BJ();return e.filter((e=>t[e.id]))}const UJ={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=UJ.getAttrExprData(a);o.length||n.length?FJ.handlePromises({customTooltipModel:i,nodes:UJ.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&HJ.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>FJ.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[NJ.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[NJ.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[NJ.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(WJ(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[NJ.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[NJ.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=VJ(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===WJ(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=VJ(e)||[];[...i,t].forEach((e=>{const t=WJ(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=BJ(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Jg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Jg.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function YJ(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case NJ.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case NJ.CUSTOM.TITLE:case NJ.CUSTOM.DESCRIPTION:case NJ.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const KJ={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>YJ(t,e,r,n)}}};const GJ={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[NJ.CUSTOM.TITLE]:!0,[NJ.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=UJ.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===NJ.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===NJ.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>ey.getMeasure(e,t))),e,i)}};function XJ({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(GJ.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function ZJ(e){const t=NJ.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function QJ(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const JJ={migrateProperties(e){var t,n;const r=Fg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=QJ(r);return o=function(e,t){return t.concat(e.map((e=>ZJ(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=ZJ(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(QJ(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var e0={attrExpr:JJ};const{CUSTOM:t0}=NJ;function n0({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:UJ,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),f="rtl"===c.direction,h=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&$S(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=XJ({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===t0.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===t0.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>UJ.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>UJ.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const i=UJ.getDataNodes(o,r),{attrExps:a}=UJ.getAttrExprData(t);return FJ.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>HJ.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>UJ.getFooterRow(a.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>HJ.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>HJ.hide({app:n,customTooltipModel:d}),destroy:()=>HJ.destroyVisualization({customTooltipModel:d})}}}function r0(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function i0({flags:t,picasso:n,instance:r}){const i=e.useModel(),o=e.useApp(),a=e.useTranslator(),s=e.useElement(),[l,c]=e.useState(),u=e.useStaleLayout(),d=e.usePlugins(),f=e.useConstraints(),h=e.useOptions(),p=e.useTheme(),{qLocaleInfo:m}=e.useAppLayout(),g=e.useEmbed();return e.useEffect((()=>{if(!r)return;s.style.overflow="hidden";const e=jS({picasso:r.picasso,model:i,app:o,translator:a,config:{auto:!1,key:"fill"}}),l=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return Fw(Iw().mark((function e(){var r,a,s,l;return Iw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=Fw(Iw().mark((function e(n){var r;return Iw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(Pw({},i));case 4:if("object"===Lw(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(Pw({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,Vw(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=Hw(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=ck(!0,{},n.brush);ck(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===Lw(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=US({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=US({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:r.picasso,plugins:d,pluginArgs:r0(u)}),y=n0({flags:t,layout:u,app:o,model:i,picasso:n,chart:r.chart,translator:a,localeInfo:m,embed:g,options:h}),v=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:lE(a),styles:void 0};return d.styles=uE({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=uE({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:p,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),b=function({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:u}=o.getStyles();return jE({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:i,create:o,util:a})=>{const[c]=n,{title:u,description:d,measures:f}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];u&&h.push(o.text({value:u,style:{bold:!0}})),d&&h.push(o.text({value:d}));const p=s.hideBasic();if(p&&!f.length&&(u||d)||h.push(o.text({value:c.data.label,style:{bold:!0}})),!p){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(c.desc.share)}))}f&&h.push(...f.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}({app:o,chart:r.chart,translator:a,layout:u,constraints:f,options:h,themeService:v,colorService:e,custom:y}),x=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),i=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(o=i("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=i("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:u,themeService:v,flags:t});c({colorService:e,pluginService:l,themeService:v,tooltipService:b,styleService:x})}),[i,o,r,u,a.language(),f,h.direction,p.name()]),l}function o0({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const a0=.8,s0=.55,l0=.3,c0={CORNER_RADIUS:0,INNER_RADIUS:s0,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},u0=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=a0,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:s0;e.donut.showAsDonut&&(o=a0-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:a0,d0=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:s0;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=a0-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},f0=({layout:e},t)=>{var n,r,i,o,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,f=d&&(d.label||d.title||d.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:p}=t.chart,m=Kg.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>p(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:f,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?KJ.getNode(e,{dimensionCount:m}):void 0,radius:h?g(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:d0({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?c0.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:c0.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(i=y.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:c0.STROKE.COLOR,outerRadius:u0({layout:e},t,y),cornerRadius:null!==(o=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==o?o:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function h0({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:s0,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=a0-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function p0(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function m0({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}const g0=()=>({key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}}),y0=()=>({key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}});function v0(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function b0(e){return e.node.data.num.label}function x0(e){return e.node.data.radius.label}function w0(e,t,n){if(e.dataPoint.auto)return n?b0:v0;if("share"===e.dataPoint.labelMode)return v0;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?x0:b0}return null}function k0({data:e}){return e?e.label:""}function S0(e){const t=parseInt(e,10);if(!isNaN(t))return t}const C0=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function M0(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:s0)>l0}function E0({node:e,data:t}){return Fg({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function _0(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:S0(r.fontSize),fontFamily:r.fontFamily,label:k0,linkData:({node:e,data:t})=>Fg({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(w0(e,t,!1)){const r=function(e,t,n){return{label:w0(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&M0(e)?"inside":"into",onBackground:e.donut.showAsDonut&&M0(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=ry(Fg(t,r),n.theme);o.linkData=E0,i.push(o)}return{key:"pie-labels",type:"labels",renderer:BE(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function D0({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=w0(e,t,!0),i=C0(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,c=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",renderer:BE(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:S0(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:k0,linkData:({data:e})=>e},{fontSize:S0(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):_0(e,n,t))}const q0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),i=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function T0(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}function R0(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=T0(e,t),o=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*a0;return(o-r)**2+(a-i)**2<=s**2}const O0=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let i=T0(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),N0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),A0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function P0(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&R0(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const I0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&R0(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),L0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),z0=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[I0(e,{}),O0(e,t,{}),...n]:[q0(e,{}),A0(e,{}),I0(e,{}),N0(e,{}),L0(e,{}),O0(e,t,{}),...n]});function F0(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[z0(t,r,o.gestures),P0(t),o.native]}function j0({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function $0({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,i=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:i.fontFamily,fontSize:i.fontSize,color:i.color}}}function H0({layout:e},t,n){const r=function(e,t){const n={field:"qDimensionInfo/0",props:{num:{field:t.encodings.slice.arc}}};t.encodings.slice.outerRadius&&(n.props.radius={field:t.encodings.slice.outerRadius});let r=t.ds.extract(n);if(0===r.length)return"NoDataExist";const i=Kg.getValue(e,"qHyperCube.qSize.qcy");if(Kg.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<i)return"LimitedData";if(r=t.encodings.slice.outerRadius?r.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):r.filter((e=>"NaN"!==e.num.value)),0===r.length)return"OnlyNanData";const o=r;return r=t.encodings.slice.outerRadius&&!e.donut.showAsDonut?r.filter((e=>e.num.value>0&&e.radius.value>0)):r.filter((e=>e.num.value>0)),0===r.length?"OnlyNegativeOrZeroValues":o.length!==r.length&&"NegativeOrZeroValues"}(e,t),{fontFamily:i}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:i}=t,{rtl:o}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:Hg[e].alignment},settings:{label:i.get(`Object.Disclaimer.${e}`),isRTL:o},style:r}}(r,t,n,{fontFamily:i})}function V0({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return Fg(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&Fg(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),o={scales:i};let a=[];const s=H0({layout:e},r,t);if(s&&"center"===s.layout.dock)return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return i.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[f0({layout:e,settings:o},r),h0({layout:e},r),p0(r),m0({layout:e},r),$0({layout:e},r,t),...c.components,o0({settings:o,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),y0(),g0(),D0({layout:{components:e.components,dataPoint:Fg({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),(!1!==e.showDisclaimer||!r.flags.isEnabled("SHOW_DISCLAIMER"))&&s],a=a.filter((e=>!1!==e)),{interactions:F0(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:j0({settings:o},r),strategy:Ug(0,r)}}function B0({instance:t,services:n,picasso:r,flags:i}){const o=e.useOptions(),a=e.useModel(),s=e.useApp(),l=e.useTranslator(),c=e.useTheme(),u=e.useStaleLayout(),d=e.useSelections(),f=e.useConstraints(),{qLocaleInfo:h}=e.useAppLayout(),[p]=e.usePromise((()=>{if(!n)return Promise.resolve();e0.attrExpr.updateProperties(a,u);return Promise.all([n.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:h,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}})}),a&&!u.snapshotData?a.getEffectiveProperties():Promise.resolve({}),n.pluginService.initialize()])}),[n]);e.useEffect((()=>{null!=t&&t.selectionService&&t.selectionService.setLayout(u)}),[u]),e.useEffect((()=>{if(!t||!p)return;const{chart:e,viewState:m,interactions:g,viewCache:y}=t,{colorService:v,pluginService:b,themeService:x,tooltipService:w,styleService:k}=n,S=o.viewState||{};u.snapshotData||(m.preventSet("legendScrollOffset",S.legendScrollOffset||0),m.preventSet("rotation",S.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,m),w.expando.set("properties",p[1]);const C=r.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}}),M=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}},...v.getData()],E={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(E.slice.outerRadius="qMeasureInfo/1");const _=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(r.data("q")({data:u.qHyperCube,config:{localeInfo:h}}),E),D=d?()=>{const t=e.brush("selection");Eg.selections(t,{},u).forEach((e=>{d.select(e)}))}:()=>{},q=u.snapshotData&&!o.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,T=e=>t.selectionService.getIsSelectionLocked(e),R=()=>V0({layout:u,context:{rtl:"rtl"===o.direction,theme:c,translator:l,constraints:f,model:a},selectionService:t.selectionService},{picasso:r,ds:C,model:a,app:s,chart:e,onSelect:D,isLocked:T,interactions:g,constraints:f,translator:l,viewState:m,dataRowCount:_,encodings:E,colorService:v,pluginService:b,themeService:x,styleService:k,tooltipService:w,debouncer:WS,properties:p[1],logicalSize:q,flags:i,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!VE.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:m,options:o,layout:u,viewCache:y,chart:e})}});t.generateSettings=R;const O=R();e.update({data:M,settings:O}),y.set("chartWidth",e.element.clientWidth),y.set("chartHeight",e.element.clientHeight),y.set("hasZeroLine",O.components.filter((e=>"zeroLine"===e.key)).length>0),VE.cacheProperties({viewCache:y,layout:u}),o.effect&&u.effectProperties?o.effect.update(u,e,{encodings:E}):u.effectPath||e.brush("highlight").end()}),[t,p,o.direction,o.effectProperties,f,c.name(),l.language()])}const W0="legend-cat";function U0({instance:t,services:n}){const r=e.useElement(),i=e.useStaleLayout();e.onTakeSnapshot((e=>{if(!(i.snapshotData&&i.snapshotData.content&&i.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(e,r),t&&n))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:Gg(t,W0),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:e,chart:t.chart,colorService:n.colorService,viewState:t.viewState})})),e.useImperativeHandle((()=>({getViewState:()=>({rotation:t.viewState.get("rotation"),legendScrollOffset:Gg(t.chart,"legend-cat")})})),[t])}var Y0={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Re});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const k={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return C="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},C(e)}var M=t().bind(null,!0),E={},_=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function q(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function R(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=q(e[n||t])?o:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(_(e)&&_(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}E.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?M({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);O(o,a)||T(t,i)||(q(a)?r.push({op:"add",path:s,value:o}):D(o)&&D(a)?r=r.concat(E.generate(a,o,s)):_(o)&&_(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&q(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(O(t,i))return r;if(!q(t[0])&&q(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(E.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){q(t[i])&&!T(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},E.apply=function(e,t){t.forEach((function(t){var n,r,i=R(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(_(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(_(a)&&_(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return S(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!T(n,e)&&delete n[e]})),M(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=R(e,t.from);_(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(_(i)?i.splice(+o,1):delete i[o])}))},E.clone=function(e){return M({},e)},E.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},E.updateObject=function(e,t){Object.keys(e).length?E.apply(e,E.generate(e,t)):M(e,t)};const N=E,A=function(e,n,r){if(!e)return Promise.resolve();var i=N.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var P="accumulation";function I(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===P)return n[r]}function L(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===P)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getNumStepComp(n,l),f=k.getAboveComp(n,l,u,d),h=k.getRangeComp("RangeSum",f);if(k.needDimension({modifier:n,properties:r,layout:i})){var p=k.getDimComp(c,1),m=k.getDimComp(c,0),g=k.getAggrComp(h,p,m);h=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(L(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(L(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(L(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(L(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=I(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=I(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(L(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(P))return!1;var o=I(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=k.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=k.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=k.getNumStepComp(r,c),p=k.getAboveComp(r,c,f,h);if(r.nullSuppression)t=k.getRangeComp("RangeAvg",p);else{var m=k.getRangeComp("RangeSum",p),g=function(e,t){var n=k.getRowNoComp(e,t);if(!k.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(k.needDimension({modifier:r,properties:i,layout:a})){var v=k.getDimComp(u,1),b=k.getDimComp(u,0),x=k.getAggrComp(y,v,b);y=r.showExcludedValues?k.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=$(t,e);return o&&!o.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?k.generateTSDExpression(n,t,r):t},extractInputExpression:k.extractInputExpression,initModifier:function(e,t){k.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=k.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(W))return!1;var o=U(t,e);return o&&!o.disabled}};return n}};var X="difference";function Z(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var J={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(k.needDimension({modifier:n,properties:r,layout:i})){var h=k.getDimComp(c,1),p=k.getDimComp(c,0),m=k.getAggrComp(f,h,p);f=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(J).forEach((function(t){void 0===e[t]&&(e[t]=J[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=Z(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(k.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(k.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=k.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=ie(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,n){if(e<2){var r=ie(t,0);t.splice(r,1)}return t}(i,o),o=function(e,t,n){if(0===e){var r=ie(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",ke="qDef.qLabelExpression",Se="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Me="qDef.qAggrFunc",Ee="qDef.base.qAggrFunc",_e={initBase:function(e,t){(t||_e.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Se,o(e,we)),n(e,Ce,o(e,ke)))},restoreBase:function(e){_e.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Se)),n(e,ke,o(e,Ce)),o(e,Me)&&o(e,Ee)&&n(e,Me,o(e,Ee)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const De=_e;function qe(e){return qe="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},qe(e)}var Te={accumulation:F,movingAverage:B,difference:ee,normalization:ue,timeSeriesDecomposition:G};const Re={modifiers:Te,apply:Ne,applyModifiers:Ae,cleanUpMeasure:Pe,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:Ie,getActiveModifier:Le,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Qe({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Oe={};function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var c=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===qe(r))return Ae({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Ie({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Je(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===qe(e)&&!e.disabled){if(n++,"object"!==qe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&k.simplifyExpression(t.qDef.base.qDef)!==k.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ae({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===qe(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Je(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Pe(e)})),Ze({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ae(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Je(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ie({measures:n,properties:r}))return n.forEach((function(e){return Pe(e)})),Promise.resolve();var l=a?void 0:Je(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===qe(e)&&!e.disabled){if(s++,"object"!==qe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Te[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Te[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Te[r.type].updateModifier&&Te[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Te[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Ve(n)):Pe(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Ze({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Pe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===qe(e)&&!e.disabled&&!Te[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Ie(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Le(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Te[r.type]&&!r.disabled)return r}}function ze(e){var t=Le(e);return!t||Te[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Le(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===qe(t)&&(t.disabled||!Te[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==qe(e)||e.disabled||!Te[e.type])&&(void 0===i[e.type]&&(i[e.type]=Te[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ze(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):A(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===qe(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Je(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=We(t);o&&n.push(o),i=i||Qe({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Ne({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="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},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var w=n(229),k=n.n(w);function S(e,t){var n=k()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return k()(!0,{},t,e)}function M(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var E=Math.pow(2,53)-1;function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const q=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},T=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},R=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},O=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},N=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},A=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=S(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=S(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},P=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=C(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=C(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},I=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=M(a.max,i.dimensions.length,E),l=M(a.min,i.dimensions.length,0);return{maxDimensions:M(o.max,s,E),minDimensions:M(o.min,l,0),maxMeasures:s,minMeasures:l}},L=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=k()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=k()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return _(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function B(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=I({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,k=b.maxMeasures,S=b.minMeasures,C=l.defaultDimension,M=void 0===C?O():C,E=l.defaultMeasure,_=void 0===E?N():E;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S,newHyperCubeDef:v}),A({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:M}),P({exportFormat:t,maxMeasures:k,minMeasures:S,newHyperCubeDef:v,defaultMeasure:_}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),L({exportFormat:t,newHyperCubeDef:v}),T("qMaxStackedCells",y,v),T("qNoOfLeftDims",y,v),R("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),R("qMode",y,v,"S"),R("qReductionMode",y,v,"N"),R("qSortbyYValue",y,v),R("qIndentMode",y,v),R("qShowTotalsAbove",y,v),q(g,t,r),m.qProperty=g;var D=o.getValue(u||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:D}),f&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&B(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var J={scatterplot:Q,"sn-scatter-plot":Q,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=n?"expression":t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:n||s,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}r||(o.auto=!1,o.mode=a)}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(J[t]||Z).colorModeOptions||Z.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(n,"unsupportedAutoMinMax")||k()(n.measureAxis,t.measureAxis):B(n,"supportedAutoMinMax")||k()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&k()(s,n.properties.measureAxes[t[0].axis])):k()(s,n.properties.measureAxes[0])}},we=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},ke={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Se(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Se(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Me(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Se(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Ee="qHyperCubeDef.qMeasures",_e="conditionalColoring",De="measures",qe="qDef.conditionalColoring";const Te={quarantine:function(e){Ce({properties:e,arrayPath:Ee,quarantineName:_e,arrayName:De,itemPath:qe})},unquarantine:function(e){Me({properties:e,arrayPath:Ee,itemPath:qe,arrayName:De,quarantineName:_e})}};var Re="qHyperCubeDef.qMeasures",Oe="measures",Ne="qHyperCubeDef.qDimensions",Ae="dimensions",Pe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ie="alternativeMeasures",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Re,quarantineName:je,arrayName:Oe,itemPath:Fe}),Ce({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Ae,itemPath:Fe})},unquarantine:function(e){Me({properties:e,arrayPath:Re,quarantineName:je,arrayName:Oe,itemPath:Fe}),Me({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Ae,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ce({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Me({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ie,itemPath:Fe}),Me({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:W,colorChart:ye,axisChart:ke,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:Ce,unquarantineArrayProp:Me,conditionalColoring:Te,conditionalShow:$e}})(),r.default})()}(Y0);var K0=r(Y0.exports);const G0={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},X0={getDimensions:e=>G0.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>G0.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>G0.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>G0.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=G0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=G0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const Z0={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>X0.getNumMeasures(e)>=1},showLegend:e=>{const t=G0.getValue(e,"color.auto"),n=G0.getValue(e,"color.expressionIsColor"),r=G0.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!G0.getValue(e,"color.auto")&&"byDimension"===G0.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===G0.getValue(e,"color.useDimColVal")&&G0.setValue(e,"color.useDimColVal",!1),!G0.getValue(e,"color.auto")&&"byDimension"===G0.getValue(e,"color.mode")&&"libraryItem"===G0.getValue(e,"color.byDimDef.type"))},Q0=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=Z0;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!G0.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=G0.getValue(e,"color.auto");return G0.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===G0.getValue(e,"color.mode")&&!0===G0.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>G0.getValue(e,"legend.show")&&i(e)}}};function J0(e){return new Q0(e)}const e1={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},t1=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},n1={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"slices",ref:"components",defaultValues:{key:"slices",style:{strokeColor:{index:-1,color:"#FFFFFF"},strokeWidth:"none",cornerRadius:0,innerRadius:.55}},items:{slices:{components:"items",type:"items",uses:"styling.slice",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},cornerRadius:{component:"slider",min:0,max:40,step:.05,defaultValue:0,show:!0},innerRadius:{component:"slider",min:.05,max:.75,step:.01,defaultValue:.55,show:(e,t,n)=>n.layout.donut.showAsDonut}}}}},r1=(e,t,n,r)=>{const i=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=ek({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:t1("axis.title",i,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:t1("label.name",i,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:t1("label.value",i,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:t1("legend.title",i,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:t1("legend.label",i,r)}}}:void 0}}},i1=J0("hard");const o1=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(VS(e,"color.mode","byDimension"),VS(e,"color.byDimDef.activeDimensionIndex",0),VS(e,"color.persistent",!1))},a1=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},s1=e=>{var t;const{flags:n,translator:r}=e||{},i=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,o=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),a={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:o1},colorMode:{options:a1}}}}},s={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||VS(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,i){i.dimensionTitle=!e}}}}}}},l={uses:"settings",items:{simpleStyling:null!=n&&n.isEnabled("PIECHART_SIMPLE_STYLING")?e1:void 0,simpleLabels:s,general:{items:{showDisclaimer:null!=n&&n.isEnabled("SHOW_DISCLAIMER")?{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}:void 0}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:null!=n&&n.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_PIECHART")?r1(o,n,r,i):n1,showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:i1.color.colorMode.options},persistentColors:{show:i1.color.persistentColors.show}}},simpleColors:a,legend:{show:i1.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:i1.legend.showTitle.show},dock:{show:i1.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return l},l1={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},c1={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},u1={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function d1(e){return{type:"items",component:"accordion",items:{data:l1,sorting:c1,addons:u1,settings:s1(e)}}}const f1=J0("explore"),h1=d1();var p1={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:h1.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:h1.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:f1.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&f1.color.useDimColVal.show(e))}}}}}}};const m1="slices";function g1(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function y1(e){return e.data.num.label}function v1(e){return e.data.radius.label}function b1(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?y1:g1;if("share"===e.dataPoint.labelMode)return g1;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?v1:y1;return y1}(n,r)(e,t)}function x1(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class w1{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(i+o)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),f=c.top-r.top+l.y*(s.y-a*Math.cos(u)),h=Math.cos(u)>0?"top":"bottom",p=Math.sin(u)>0?"right":"left";return{title:x1(n),label:b1(n,this.chart.formatter,e,t),orientation:`${h}${p}`,position:{x:d,y:f}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=Fg(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=Fg(e.options,{effect:null}),n?t.getProperties().then((e=>Fg(e,{effectPath:null,effectProperties:null,dataPoint:Fg(!0,{},e.originalModelSettings.dataPoint),legend:Fg(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class k1 extends w1{init(e,t,n,r){return e.options=Fg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(m1).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class S1 extends w1{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(m1).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(m1).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===m1)).map(((n,r)=>{const i=b1(n,this.chart.formatter,e,t);return{text:`${x1(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=Fg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const C1="/effects/highlight-value",M1="/effects/maxmin";var E1={isCompatible:({effectPath:e})=>e===M1||e===C1,create:e=>e.effectPath===M1?new k1(e):e.effectPath===C1?new S1(e):null};function _1(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(o=o.object)||void 0===o?void 0:o.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function D1(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function q1(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function T1({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){q1(e),D1(t),UJ.addCallbackCustomTooltip(t)},move(e,t){q1(e),D1(t),UJ.moveCallbackCustomTooltip(t,e)},remove(e,t){UJ.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){q1(e),D1(r),UJ.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){D1(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const R1=e=>e.qMax<=0,O1=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(R1));function N1(e){return{definition:d1(e),softDefinition:p1,support:{snapshot:O1,export:O1,exportData:!0,sharing:O1,viewData:!0,effects:!0},effects:E1,extendMetrics:_1,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=K0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:T1(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>K0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function A1(e){return{properties:{version:"1.27.2",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:c0.STROKE.COLOR},cornerRadius:c0.CORNER_RADIUS,innerRadius:c0.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[T1(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=K0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:T1(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>K0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}return t=>{const{flags:r}=t;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(n).forEach((t=>{e.add(n[t])}))}}(t.translator);const i=EJ();return{qae:A1(t),ext:N1(t),component(){const t=OJ({picasso:i}),n=i0({flags:r,picasso:i,instance:t});B0({instance:t,services:n,picasso:i,flags:r}),function({instance:t}){const n=e.useStaleLayout(),r=e.useOptions(),i=e.useRect();e.useEffect((()=>{if(!t||!t.generateSettings)return;const{viewCache:e,chart:i,generateSettings:o}=t;i.update({settings:o()}),e.set("chartWidth",i.element.clientWidth),e.set("chartHeight",i.element.clientHeight),r.effect&&r.effect.update(n,i)}),[i.width,i.height])}({instance:t}),U0({instance:t,services:n})}}}}));
|