@nebula.js/sn-combo-chart 1.8.9 → 1.8.10

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-combo-chart v1.8.9
2
+ * @nebula.js/sn-combo-chart v1.8.10
3
3
  * Copyright (c) 2021 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -60,7 +60,7 @@ Object.defineProperty(RI,"__esModule",{value:!0});var II="function"==typeof Symb
60
60
  * This source code is licensed under the MIT license found in the
61
61
  * LICENSE file in the root directory of this source tree.
62
62
  */
63
- var az=hR.exports,sz=vR,lz=iz.exports;function uz(e,t,n,r,i,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],u=0;(e=Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function cz(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);uz(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function dz(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}az||cz("227");var fz=!1,hz=null,pz=!1,mz=null,yz={onError:function(e){fz=!0,hz=e}};function gz(e,t,n,r,i,o,a,s,l){fz=!1,hz=null,dz.apply(yz,arguments)}var vz=null,bz={};function xz(){if(vz)for(var e in bz){var t=bz[e],n=vz.indexOf(e);if(-1<n||cz("96",e),!Sz[n])for(var r in t.extractEvents||cz("97",e),Sz[n]=t,n=t.eventTypes){var i=void 0,o=n[r],a=t,s=r;wz.hasOwnProperty(s)&&cz("99",s),wz[s]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&Mz(l[i],a,s);i=!0}else o.registrationName?(Mz(o.registrationName,a,s),i=!0):i=!1;i||cz("98",r,e)}}}function Mz(e,t,n){Ez[e]&&cz("100",e),Ez[e]=t,kz[e]=t.eventTypes[n].dependencies}var Sz=[],wz={},Ez={},kz={},Cz=null,Oz=null,Tz=null;function Az(e,t,n){var r=e.type||"unknown-event";e.currentTarget=Tz(n),function(e,t,n,r,i,o,a,s,l){if(gz.apply(this,arguments),fz){if(fz){var u=hz;fz=!1,hz=null}else cz("198"),u=void 0;pz||(pz=!0,mz=u)}}(r,t,void 0,e),e.currentTarget=null}function Nz(e,t){return null==t&&cz("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function qz(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var Dz=null;function Rz(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)Az(e,t[r],n[r]);else t&&Az(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var Iz={injectEventPluginOrder:function(e){vz&&cz("101"),vz=Array.prototype.slice.call(e),xz()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];bz.hasOwnProperty(t)&&bz[t]===r||(bz[t]&&cz("102",t),bz[t]=r,n=!0)}n&&xz()}};function _z(e,t){var n=e.stateNode;if(!n)return null;var r=Cz(n);if(!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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&cz("231",t,typeof n),n)}function Pz(e){if(null!==e&&(Dz=Nz(Dz,e)),e=Dz,Dz=null,e&&(qz(e,Rz),Dz&&cz("95"),pz))throw e=mz,pz=!1,mz=null,e}var Lz=Math.random().toString(36).slice(2),jz="__reactInternalInstance$"+Lz,zz="__reactEventHandlers$"+Lz;function Fz(e){if(e[jz])return e[jz];for(;!e[jz];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[jz]).tag||6===e.tag?e:null}function Bz(e){return!(e=e[jz])||5!==e.tag&&6!==e.tag?null:e}function Vz(e){if(5===e.tag||6===e.tag)return e.stateNode;cz("33")}function Hz(e){return e[zz]||null}function $z(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Uz(e,t,n){(t=_z(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=Nz(n._dispatchListeners,t),n._dispatchInstances=Nz(n._dispatchInstances,e))}function Wz(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=$z(t);for(t=n.length;0<t--;)Uz(n[t],"captured",e);for(t=0;t<n.length;t++)Uz(n[t],"bubbled",e)}}function Yz(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=_z(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=Nz(n._dispatchListeners,t),n._dispatchInstances=Nz(n._dispatchInstances,e))}function Xz(e){e&&e.dispatchConfig.registrationName&&Yz(e._targetInst,null,e)}function Gz(e){qz(e,Wz)}var Kz=!("undefined"==typeof window||!window.document||!window.document.createElement);function Jz(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zz={animationend:Jz("Animation","AnimationEnd"),animationiteration:Jz("Animation","AnimationIteration"),animationstart:Jz("Animation","AnimationStart"),transitionend:Jz("Transition","TransitionEnd")},Qz={},eF={};function tF(e){if(Qz[e])return Qz[e];if(!Zz[e])return e;var t,n=Zz[e];for(t in n)if(n.hasOwnProperty(t)&&t in eF)return Qz[e]=n[t];return e}Kz&&(eF=document.createElement("div").style,"AnimationEvent"in window||(delete Zz.animationend.animation,delete Zz.animationiteration.animation,delete Zz.animationstart.animation),"TransitionEvent"in window||delete Zz.transitionend.transition);var nF=tF("animationend"),rF=tF("animationiteration"),iF=tF("animationstart"),oF=tF("transitionend"),aF="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),sF=null,lF=null,uF=null;function cF(){if(uF)return uF;var e,t,n=lF,r=n.length,i="value"in sF?sF.value:sF.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 uF=i.slice(e,1<t?1-t:void 0)}function dF(){return!0}function fF(){return!1}function hF(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?dF:fF,this.isPropagationStopped=fF,this}function pF(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function mF(e){e instanceof this||cz("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function yF(e){e.eventPool=[],e.getPooled=pF,e.release=mF}sz(hF.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=dF)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=dF)},persist:function(){this.isPersistent=dF},isPersistent:fF,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=fF,this._dispatchInstances=this._dispatchListeners=null}}),hF.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},hF.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return sz(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=sz({},r.Interface,e),n.extend=r.extend,yF(n),n},yF(hF);var gF=hF.extend({data:null}),vF=hF.extend({data:null}),bF=[9,13,27,32],xF=Kz&&"CompositionEvent"in window,MF=null;Kz&&"documentMode"in document&&(MF=document.documentMode);var SF=Kz&&"TextEvent"in window&&!MF,wF=Kz&&(!xF||MF&&8<MF&&11>=MF),EF=String.fromCharCode(32),kF={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},CF=!1;function OF(e,t){switch(e){case"keyup":return-1!==bF.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function TF(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var AF=!1;var NF={eventTypes:kF,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(xF)e:{switch(e){case"compositionstart":i=kF.compositionStart;break e;case"compositionend":i=kF.compositionEnd;break e;case"compositionupdate":i=kF.compositionUpdate;break e}i=void 0}else AF?OF(e,n)&&(i=kF.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=kF.compositionStart);return i?(wF&&"ko"!==n.locale&&(AF||i!==kF.compositionStart?i===kF.compositionEnd&&AF&&(o=cF()):(lF="value"in(sF=r)?sF.value:sF.textContent,AF=!0)),i=gF.getPooled(i,t,n,r),o?i.data=o:null!==(o=TF(n))&&(i.data=o),Gz(i),o=i):o=null,(e=SF?function(e,t){switch(e){case"compositionend":return TF(t);case"keypress":return 32!==t.which?null:(CF=!0,EF);case"textInput":return(e=t.data)===EF&&CF?null:e;default:return null}}(e,n):function(e,t){if(AF)return"compositionend"===e||!xF&&OF(e,t)?(e=cF(),uF=lF=sF=null,AF=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wF&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=vF.getPooled(kF.beforeInput,t,n,r)).data=e,Gz(t)):t=null,null===o?t:null===t?o:[o,t]}},qF=null,DF=null,RF=null;function IF(e){if(e=Oz(e)){"function"!=typeof qF&&cz("280");var t=Cz(e.stateNode);qF(e.stateNode,e.type,t)}}function _F(e){DF?RF?RF.push(e):RF=[e]:DF=e}function PF(){if(DF){var e=DF,t=RF;if(RF=DF=null,IF(e),t)for(e=0;e<t.length;e++)IF(t[e])}}function LF(e,t){return e(t)}function jF(e,t,n){return e(t,n)}function zF(){}var FF=!1;function BF(e,t){if(FF)return e(t);FF=!0;try{return LF(e,t)}finally{FF=!1,(null!==DF||null!==RF)&&(zF(),PF())}}var VF={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 HF(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!VF[e.type]:"textarea"===t}function $F(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function UF(e){if(!Kz)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function WF(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function YF(e){e._valueTracker||(e._valueTracker=function(e){var t=WF(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 XF(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=WF(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var GF=az.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;GF.hasOwnProperty("ReactCurrentDispatcher")||(GF.ReactCurrentDispatcher={current:null});var KF=/^(.*)[\\\/]/,JF="function"==typeof Symbol&&Symbol.for,ZF=JF?Symbol.for("react.element"):60103,QF=JF?Symbol.for("react.portal"):60106,eB=JF?Symbol.for("react.fragment"):60107,tB=JF?Symbol.for("react.strict_mode"):60108,nB=JF?Symbol.for("react.profiler"):60114,rB=JF?Symbol.for("react.provider"):60109,iB=JF?Symbol.for("react.context"):60110,oB=JF?Symbol.for("react.concurrent_mode"):60111,aB=JF?Symbol.for("react.forward_ref"):60112,sB=JF?Symbol.for("react.suspense"):60113,lB=JF?Symbol.for("react.memo"):60115,uB=JF?Symbol.for("react.lazy"):60116,cB="function"==typeof Symbol&&Symbol.iterator;function dB(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=cB&&e[cB]||e["@@iterator"])?e:null}function fB(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 oB:return"ConcurrentMode";case eB:return"Fragment";case QF:return"Portal";case nB:return"Profiler";case tB:return"StrictMode";case sB:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case iB:return"Context.Consumer";case rB:return"Context.Provider";case aB:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case lB:return fB(e.type);case uB:if(e=1===e._status?e._result:null)return fB(e)}return null}function hB(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=fB(e.type);n=null,r&&(n=fB(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(KF,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}var pB=/^[: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]*$/,mB=Object.prototype.hasOwnProperty,yB={},gB={};function vB(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}var bB={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){bB[e]=new vB(e,0,!1,e,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];bB[t]=new vB(t,1,!1,e[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){bB[e]=new vB(e,2,!1,e.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){bB[e]=new vB(e,2,!1,e,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){bB[e]=new vB(e,3,!1,e.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(e){bB[e]=new vB(e,3,!0,e,null)})),["capture","download"].forEach((function(e){bB[e]=new vB(e,4,!1,e,null)})),["cols","rows","size","span"].forEach((function(e){bB[e]=new vB(e,6,!1,e,null)})),["rowSpan","start"].forEach((function(e){bB[e]=new vB(e,5,!1,e.toLowerCase(),null)}));var xB=/[\-:]([a-z])/g;function MB(e){return e[1].toUpperCase()}function SB(e,t,n,r){var i=bB.hasOwnProperty(t)?bB[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!!mB.call(gB,e)||!mB.call(yB,e)&&(pB.test(e)?gB[e]=!0:(yB[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))))}function wB(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function EB(e,t){var n=t.checked;return sz({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function kB(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=wB(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 CB(e,t){null!=(t=t.checked)&&SB(e,"checked",t,!1)}function OB(e,t){CB(e,t);var n=wB(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")?AB(e,t.type,n):t.hasOwnProperty("defaultValue")&&AB(e,t.type,wB(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function TB(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.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function AB(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+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(xB,MB);bB[t]=new vB(t,1,!1,e,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(xB,MB);bB[t]=new vB(t,1,!1,e,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(xB,MB);bB[t]=new vB(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")})),["tabIndex","crossOrigin"].forEach((function(e){bB[e]=new vB(e,1,!1,e.toLowerCase(),null)}));var NB={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function qB(e,t,n){return(e=hF.getPooled(NB.change,e,t,n)).type="change",_F(n),Gz(e),e}var DB=null,RB=null;function IB(e){Pz(e)}function _B(e){if(XF(Vz(e)))return e}function PB(e,t){if("change"===e)return t}var LB=!1;function jB(){DB&&(DB.detachEvent("onpropertychange",zB),RB=DB=null)}function zB(e){"value"===e.propertyName&&_B(RB)&&BF(IB,e=qB(RB,e,$F(e)))}function FB(e,t,n){"focus"===e?(jB(),RB=n,(DB=t).attachEvent("onpropertychange",zB)):"blur"===e&&jB()}function BB(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return _B(RB)}function VB(e,t){if("click"===e)return _B(t)}function HB(e,t){if("input"===e||"change"===e)return _B(t)}Kz&&(LB=UF("input")&&(!document.documentMode||9<document.documentMode));var $B={eventTypes:NB,_isInputEventSupported:LB,extractEvents:function(e,t,n,r){var i=t?Vz(t):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=PB:HF(i)?LB?o=HB:(o=BB,a=FB):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=VB),o&&(o=o(e,t)))return qB(o,n,r);a&&a(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&AB(i,"number",i.value)}},UB=hF.extend({view:null,detail:null}),WB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YB(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=WB[e])&&!!t[e]}function XB(){return YB}var GB=0,KB=0,JB=!1,ZB=!1,QB=UB.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:XB,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=GB;return GB=e.screenX,JB?"mousemove"===e.type?e.screenX-t:0:(JB=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=KB;return KB=e.screenY,ZB?"mousemove"===e.type?e.screenY-t:0:(ZB=!0,0)}}),eV=QB.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),tV={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},nV={eventTypes:tV,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?Fz(t):null):o=null,o===t)return null;var a=void 0,s=void 0,l=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=QB,s=tV.mouseLeave,l=tV.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=eV,s=tV.pointerLeave,l=tV.pointerEnter,u="pointer");var c=null==o?i:Vz(o);if(i=null==t?i:Vz(t),(e=a.getPooled(s,o,n,r)).type=u+"leave",e.target=c,e.relatedTarget=i,(n=a.getPooled(l,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=c,r=t,o&&r)e:{for(i=r,u=0,a=t=o;a;a=$z(a))u++;for(a=0,l=i;l;l=$z(l))a++;for(;0<u-a;)t=$z(t),u--;for(;0<a-u;)i=$z(i),a--;for(;u--;){if(t===i||t===i.alternate)break e;t=$z(t),i=$z(i)}t=null}else t=null;for(i=t,t=[];o&&o!==i&&(null===(u=o.alternate)||u!==i);)t.push(o),o=$z(o);for(o=[];r&&r!==i&&(null===(u=r.alternate)||u!==i);)o.push(r),r=$z(r);for(r=0;r<t.length;r++)Yz(t[r],"bubbled",e);for(r=o.length;0<r--;)Yz(o[r],"captured",n);return[e,n]}};function rV(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var iV=Object.prototype.hasOwnProperty;function oV(e,t){if(rV(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++)if(!iV.call(t,n[r])||!rV(e[n[r]],t[n[r]]))return!1;return!0}function aV(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function sV(e){2!==aV(e)&&cz("188")}function lV(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=aV(e))&&cz("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var a=i.child;a;){if(a===n)return sV(i),e;if(a===r)return sV(i),t;a=a.sibling}cz("188")}if(n.return!==r.return)n=i,r=o;else{a=!1;for(var 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}a||cz("189")}}n.alternate!==r&&cz("190")}return 3!==n.tag&&cz("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var uV=hF.extend({animationName:null,elapsedTime:null,pseudoElement:null}),cV=hF.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dV=UB.extend({relatedTarget:null});function fV(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}var hV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pV={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"},mV=UB.extend({key:function(e){if(e.key){var t=hV[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=fV(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pV[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:XB,charCode:function(e){return"keypress"===e.type?fV(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?fV(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),yV=QB.extend({dataTransfer:null}),gV=UB.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:XB}),vV=hF.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),bV=QB.extend({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:null,deltaMode:null}),xV=[["abort","abort"],[nF,"animationEnd"],[rF,"animationIteration"],[iF,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[oF,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],MV={},SV={};function wV(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},MV[e]=t,SV[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(e){wV(e,!0)})),xV.forEach((function(e){wV(e,!1)}));var EV={eventTypes:MV,isInteractiveTopLevelEventType:function(e){return void 0!==(e=SV[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=SV[e];if(!i)return null;switch(e){case"keypress":if(0===fV(n))return null;case"keydown":case"keyup":e=mV;break;case"blur":case"focus":e=dV;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=QB;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=yV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=gV;break;case nF:case rF:case iF:e=uV;break;case oF:e=vV;break;case"scroll":e=UB;break;case"wheel":e=bV;break;case"copy":case"cut":case"paste":e=cV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=eV;break;default:e=hF}return Gz(t=e.getPooled(i,t,n,r)),t}},kV=EV.isInteractiveTopLevelEventType,CV=[];function OV(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=Fz(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=$F(e.nativeEvent);r=e.topLevelType;for(var o=e.nativeEvent,a=null,s=0;s<Sz.length;s++){var l=Sz[s];l&&(l=l.extractEvents(r,t,o,i))&&(a=Nz(a,l))}Pz(a)}}var TV=!0;function AV(e,t){if(!t)return null;var n=(kV(e)?qV:DV).bind(null,e);t.addEventListener(e,n,!1)}function NV(e,t){if(!t)return null;var n=(kV(e)?qV:DV).bind(null,e);t.addEventListener(e,n,!0)}function qV(e,t){jF(DV,e,t)}function DV(e,t){if(TV){var n=$F(t);if(null===(n=Fz(n))||"number"!=typeof n.tag||2===aV(n)||(n=null),CV.length){var r=CV.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{BF(OV,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>CV.length&&CV.push(e)}}}var RV={},IV=0,_V="_reactListenersID"+(""+Math.random()).slice(2);function PV(e){return Object.prototype.hasOwnProperty.call(e,_V)||(e[_V]=IV++,RV[e[_V]]={}),RV[e[_V]]}function LV(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 jV(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zV(e,t){var n,r=jV(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=jV(r)}}function FV(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?FV(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function BV(){for(var e=window,t=LV();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=LV(e.document)}return t}function VV(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 HV(e){var t=BV(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&FV(n.ownerDocument.documentElement,n)){if(null!==r&&VV(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=zV(n,o);var a=zV(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 $V=Kz&&"documentMode"in document&&11>=document.documentMode,UV={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},WV=null,YV=null,XV=null,GV=!1;function KV(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return GV||null==WV||WV!==LV(n)?null:("selectionStart"in(n=WV)&&VV(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},XV&&oV(XV,n)?null:(XV=n,(e=hF.getPooled(UV.select,YV,e,t)).type="select",e.target=WV,Gz(e),e))}var JV={eventTypes:UV,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=PV(o),i=kz.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?Vz(t):window,e){case"focus":(HF(o)||"true"===o.contentEditable)&&(WV=o,YV=t,XV=null);break;case"blur":XV=YV=WV=null;break;case"mousedown":GV=!0;break;case"contextmenu":case"mouseup":case"dragend":return GV=!1,KV(n,r);case"selectionchange":if($V)break;case"keydown":case"keyup":return KV(n,r)}return null}};function ZV(e,t){return e=sz({children:void 0},t),(t=function(e){var t="";return az.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function QV(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=""+wB(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 eH(e,t){return null!=t.dangerouslySetInnerHTML&&cz("91"),sz({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tH(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&cz("92"),Array.isArray(t)&&(1>=t.length||cz("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:wB(n)}}function nH(e,t){var n=wB(t.value),r=wB(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 rH(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}Iz.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Cz=Hz,Oz=Bz,Tz=Vz,Iz.injectEventPluginsByName({SimpleEventPlugin:EV,EnterLeaveEventPlugin:nV,ChangeEventPlugin:$B,SelectEventPlugin:JV,BeforeInputEventPlugin:NF});var iH="http://www.w3.org/1999/xhtml",oH="http://www.w3.org/2000/svg";function aH(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 sH(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?aH(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var lH=void 0,uH=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(e.namespaceURI!==oH||"innerHTML"in e)e.innerHTML=t;else{for((lH=lH||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=lH.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function cH(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 dH={animationIterationCount:!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},fH=["Webkit","ms","Moz","O"];function hH(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||dH.hasOwnProperty(e)&&dH[e]?(""+t).trim():t+"px"}function pH(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=hH(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(dH).forEach((function(e){fH.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dH[t]=dH[e]}))}));var mH=sz({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 yH(e,t){t&&(mH[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&cz("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&cz("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||cz("61")),null!=t.style&&"object"!=typeof t.style&&cz("62",""))}function gH(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}}function vH(e,t){var n=PV(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=kz[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":NV("scroll",e);break;case"focus":case"blur":NV("focus",e),NV("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":UF(i)&&NV(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===aF.indexOf(i)&&AV(i,e)}n[i]=!0}}}function bH(){}var xH=null,MH=null;function SH(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function wH(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var EH="function"==typeof setTimeout?setTimeout:void 0,kH="function"==typeof clearTimeout?clearTimeout:void 0,CH=lz.unstable_scheduleCallback,OH=lz.unstable_cancelCallback;function TH(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function AH(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}var NH=[],qH=-1;function DH(e){0>qH||(e.current=NH[qH],NH[qH]=null,qH--)}function RH(e,t){qH++,NH[qH]=e.current,e.current=t}var IH={},_H={current:IH},PH={current:!1},LH=IH;function jH(e,t){var n=e.type.contextTypes;if(!n)return IH;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 zH(e){return null!=(e=e.childContextTypes)}function FH(e){DH(PH),DH(_H)}function BH(e){DH(PH),DH(_H)}function VH(e,t,n){_H.current!==IH&&cz("168"),RH(_H,t),RH(PH,n)}function HH(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||cz("108",fB(t)||"Unknown",i);return sz({},n,r)}function $H(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||IH,LH=_H.current,RH(_H,t),RH(PH,PH.current),!0}function UH(e,t,n){var r=e.stateNode;r||cz("169"),n?(t=HH(e,t,LH),r.__reactInternalMemoizedMergedChildContext=t,DH(PH),DH(_H),RH(_H,t)):DH(PH),RH(PH,n)}var WH=null,YH=null;function XH(e){return function(t){try{return e(t)}catch(e){}}}function GH(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.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function KH(e,t,n,r){return new GH(e,t,n,r)}function JH(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ZH(e,t){var n=e.alternate;return null===n?((n=KH(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.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function QH(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)JH(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case eB:return e$(n.children,i,o,t);case oB:return t$(n,3|i,o,t);case tB:return t$(n,2|i,o,t);case nB:return(e=KH(12,n,t,4|i)).elementType=nB,e.type=nB,e.expirationTime=o,e;case sB:return(e=KH(13,n,t,i)).elementType=sB,e.type=sB,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case rB:a=10;break e;case iB:a=9;break e;case aB:a=11;break e;case lB:a=14;break e;case uB:a=16,r=null;break e}cz("130",null==e?e:typeof e,"")}return(t=KH(a,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function e$(e,t,n,r){return(e=KH(7,e,r,t)).expirationTime=n,e}function t$(e,t,n,r){return e=KH(8,e,r,t),t=0==(1&t)?tB:oB,e.elementType=t,e.type=t,e.expirationTime=n,e}function n$(e,t,n){return(e=KH(6,e,null,t)).expirationTime=n,e}function r$(e,t,n){return(t=KH(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function i$(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),s$(t,e)}function o$(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),s$(t,e)}function a$(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function s$(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,o=t.latestPingedTime;0===(i=0!==i?i:o)&&(0===e||r<e)&&(i=r),0!==(e=i)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}function l$(e,t){if(e&&e.defaultProps)for(var n in t=sz({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var u$=(new az.Component).refs;function c$(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:sz({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var d$={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===aV(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=vY(),i=$U(r=HW(r,e));i.payload=t,null!=n&&(i.callback=n),LW(),WU(e,i),YW(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=vY(),i=$U(r=HW(r,e));i.tag=zU,i.payload=t,null!=n&&(i.callback=n),LW(),WU(e,i),YW(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=vY(),r=$U(n=HW(n,e));r.tag=FU,null!=t&&(r.callback=t),LW(),WU(e,r),YW(e,n)}};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||(!oV(n,r)||!oV(i,o))}function h$(e,t,n){var r=!1,i=IH,o=t.contextType;return"object"==typeof o&&null!==o?o=jU(o):(i=zH(t)?LH:_H.current,o=(r=null!=(r=t.contextTypes))?jH(e,i):IH),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=d$,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function p$(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&&d$.enqueueReplaceState(t,t.state,null)}function m$(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=u$;var o=t.contextType;"object"==typeof o&&null!==o?i.context=jU(o):(o=zH(t)?LH:_H.current,i.context=jH(e,o)),null!==(o=e.updateQueue)&&(KU(e,o,n,i,r),i.state=e.memoizedState),"function"==typeof(o=t.getDerivedStateFromProps)&&(c$(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&&d$.enqueueReplaceState(i,i.state,null),null!==(o=e.updateQueue)&&(KU(e,o,n,i,r),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var y$=Array.isArray;function g$(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&cz("309"),r=n.stateNode),r||cz("147",e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===u$&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}"string"!=typeof e&&cz("284"),n._owner||cz("290",e)}return e}function v$(e,t){"textarea"!==e.type&&cz("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function b$(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}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,n){return(e=ZH(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.effectTag=2,n):r:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=n$(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=g$(e,t,n),r.return=e,r):((r=QH(n.type,n.key,n.props,null,e.mode,r)).ref=g$(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=r$(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function c(e,t,n,r,o){return null===t||7!==t.tag?((t=e$(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=n$(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ZF:return(n=QH(t.type,t.key,t.props,null,e.mode,n)).ref=g$(e,null,t),n.return=e,n;case QF:return(t=r$(t,e.mode,n)).return=e,t}if(y$(t)||dB(t))return(t=e$(t,e.mode,n,null)).return=e,t;v$(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ZF:return n.key===i?n.type===eB?c(e,t,n.props.children,r,i):l(e,t,n,r):null;case QF:return n.key===i?u(e,t,n,r):null}if(y$(n)||dB(n))return null!==i?null:c(e,t,n,r,null);v$(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ZF:return e=e.get(null===r.key?n:r.key)||null,r.type===eB?c(t,e,r.props.children,i,r.key):l(t,e,r,i);case QF:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(y$(r)||dB(r))return c(t,e=e.get(n)||null,r,i,null);v$(t,r)}return null}function p(i,a,s,l){for(var u=null,c=null,p=a,m=a=0,y=null;null!==p&&m<s.length;m++){p.index>m?(y=p,p=null):y=p.sibling;var g=f(i,p,s[m],l);if(null===g){null===p&&(p=y);break}e&&p&&null===g.alternate&&t(i,p),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g,p=y}if(m===s.length)return n(i,p),u;if(null===p){for(;m<s.length;m++)(p=d(i,s[m],l))&&(a=o(p,a,m),null===c?u=p:c.sibling=p,c=p);return u}for(p=r(i,p);m<s.length;m++)(y=h(p,i,m,s[m],l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(i,e)})),u}function m(i,a,s,l){var u=dB(s);"function"!=typeof u&&cz("150"),null==(s=u.call(s))&&cz("151");for(var c=u=null,p=a,m=a=0,y=null,g=s.next();null!==p&&!g.done;m++,g=s.next()){p.index>m?(y=p,p=null):y=p.sibling;var v=f(i,p,g.value,l);if(null===v){p||(p=y);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,p=y}if(g.done)return n(i,p),u;if(null===p){for(;!g.done;m++,g=s.next())null!==(g=d(i,g.value,l))&&(a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return u}for(p=r(i,p);!g.done;m++,g=s.next())null!==(g=h(p,i,m,g.value,l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(i,e)})),u}return function(e,r,o,s){var l="object"==typeof o&&null!==o&&o.type===eB&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case ZF:e:{for(u=o.key,l=r;null!==l;){if(l.key===u){if(7===l.tag?o.type===eB:l.elementType===o.type){n(e,l.sibling),(r=i(l,o.type===eB?o.props.children:o.props)).ref=g$(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===eB?((r=e$(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=QH(o.type,o.key,o.props,null,e.mode,s)).ref=g$(e,r,o),s.return=e,e=s)}return a(e);case QF:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=r$(o,e.mode,s)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=n$(o,e.mode,s)).return=e,e=r),a(e);if(y$(o))return p(e,r,o,s);if(dB(o))return m(e,r,o,s);if(u&&v$(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:cz("152",(s=e.type).displayName||s.name||"Component")}return n(e,r)}}var x$=b$(!0),M$=b$(!1),S$={},w$={current:S$},E$={current:S$},k$={current:S$};function C$(e){return e===S$&&cz("174"),e}function O$(e,t){RH(k$,t),RH(E$,e),RH(w$,S$);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sH(null,"");break;default:t=sH(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}DH(w$),RH(w$,t)}function T$(e){DH(w$),DH(E$),DH(k$)}function A$(e){C$(k$.current);var t=C$(w$.current),n=sH(t,e.type);t!==n&&(RH(E$,e),RH(w$,n))}function N$(e){E$.current===e&&(DH(w$),DH(E$))}var q$=GF.ReactCurrentDispatcher,D$=0,R$=null,I$=null,_$=null,P$=null,L$=null,j$=null,z$=0,F$=null,B$=0,V$=!1,H$=null,$$=0;function U$(){cz("307")}function W$(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rV(e[n],t[n]))return!1;return!0}function Y$(e,t,n,r,i,o){if(D$=o,R$=t,_$=null!==e?e.memoizedState:null,q$.current=null===_$?aU:sU,t=n(r,i),V$){do{V$=!1,$$+=1,_$=null!==e?e.memoizedState:null,j$=P$,F$=L$=I$=null,q$.current=sU,t=n(r,i)}while(V$);H$=null,$$=0}return q$.current=oU,(e=R$).memoizedState=P$,e.expirationTime=z$,e.updateQueue=F$,e.effectTag|=B$,e=null!==I$&&null!==I$.next,D$=0,j$=L$=P$=_$=I$=R$=null,z$=0,F$=null,B$=0,e&&cz("300"),t}function X$(){q$.current=oU,D$=0,j$=L$=P$=_$=I$=R$=null,z$=0,F$=null,B$=0,V$=!1,H$=null,$$=0}function G$(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===L$?P$=L$=e:L$=L$.next=e,L$}function K$(){if(null!==j$)j$=(L$=j$).next,_$=null!==(I$=_$)?I$.next:null;else{null===_$&&cz("310");var e={memoizedState:(I$=_$).memoizedState,baseState:I$.baseState,queue:I$.queue,baseUpdate:I$.baseUpdate,next:null};L$=null===L$?P$=e:L$.next=e,_$=I$.next}return L$}function J$(e,t){return"function"==typeof t?t(e):t}function Z$(e){var t=K$(),n=t.queue;if(null===n&&cz("311"),0<$$){var r=n.dispatch;if(null!==H$){var i=H$.get(n);if(void 0!==i){H$.delete(n);var o=t.memoizedState;do{o=e(o,i.action),i=i.next}while(null!==i);return rV(o,t.memoizedState)||(vU=!0),t.memoizedState=o,t.baseUpdate===n.last&&(t.baseState=o),n.eagerReducer=e,n.eagerState=o,[o,r]}}return[t.memoizedState,r]}r=n.last;var a=t.baseUpdate;if(o=t.baseState,null!==a?(null!==r&&(r.next=null),r=a.next):r=null!==r?r.next:null,null!==r){var s=i=null,l=r,u=!1;do{var c=l.expirationTime;c<D$?(u||(u=!0,s=a,i=o),c>z$&&(z$=c)):o=l.eagerReducer===e?l.eagerState:e(o,l.action),a=l,l=l.next}while(null!==l&&l!==r);u||(s=a,i=o),rV(o,t.memoizedState)||(vU=!0),t.memoizedState=o,t.baseUpdate=s,t.baseState=i,n.eagerReducer=e,n.eagerState=o}return[t.memoizedState,n.dispatch]}function Q$(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===F$?(F$={lastEffect:null}).lastEffect=e.next=e:null===(t=F$.lastEffect)?F$.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,F$.lastEffect=e),e}function eU(e,t,n,r){var i=G$();B$|=e,i.memoizedState=Q$(t,n,void 0,void 0===r?null:r)}function tU(e,t,n,r){var i=K$();r=void 0===r?null:r;var o=void 0;if(null!==I$){var a=I$.memoizedState;if(o=a.destroy,null!==r&&W$(r,a.deps))return void Q$(0,n,o,r)}B$|=e,i.memoizedState=Q$(t,n,o,r)}function nU(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 rU(){}function iU(e,t,n){25>$$||cz("301");var r=e.alternate;if(e===R$||null!==r&&r===R$)if(V$=!0,e={expirationTime:D$,action:n,eagerReducer:null,eagerState:null,next:null},null===H$&&(H$=new Map),void 0===(n=H$.get(t)))H$.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{LW();var i=vY(),o={expirationTime:i=HW(i,e),action:n,eagerReducer:null,eagerState:null,next:null},a=t.last;if(null===a)o.next=o;else{var s=a.next;null!==s&&(o.next=s),a.next=o}if(t.last=o,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.eagerReducer))try{var l=t.eagerState,u=r(l,n);if(o.eagerReducer=r,o.eagerState=u,rV(u,l))return}catch(e){}YW(e,i)}}var oU={readContext:jU,useCallback:U$,useContext:U$,useEffect:U$,useImperativeHandle:U$,useLayoutEffect:U$,useMemo:U$,useReducer:U$,useRef:U$,useState:U$,useDebugValue:U$},aU={readContext:jU,useCallback:function(e,t){return G$().memoizedState=[e,void 0===t?null:t],e},useContext:jU,useEffect:function(e,t){return eU(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,eU(4,36,nU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return eU(4,36,e,t)},useMemo:function(e,t){var n=G$();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=G$();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,eagerReducer:e,eagerState:t}).dispatch=iU.bind(null,R$,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},G$().memoizedState=e},useState:function(e){var t=G$();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,eagerReducer:J$,eagerState:e}).dispatch=iU.bind(null,R$,e),[t.memoizedState,e]},useDebugValue:rU},sU={readContext:jU,useCallback:function(e,t){var n=K$();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&W$(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:jU,useEffect:function(e,t){return tU(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,tU(4,36,nU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tU(4,36,e,t)},useMemo:function(e,t){var n=K$();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&W$(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Z$,useRef:function(){return K$().memoizedState},useState:function(e){return Z$(J$)},useDebugValue:rU},lU=null,uU=null,cU=!1;function dU(e,t){var n=KH(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function fU(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,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function hU(e){if(cU){var t=uU;if(t){var n=t;if(!fU(e,t)){if(!(t=TH(n))||!fU(e,t))return e.effectTag|=2,cU=!1,void(lU=e);dU(lU,n)}lU=e,uU=AH(t)}else e.effectTag|=2,cU=!1,lU=e}}function pU(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;lU=e}function mU(e){if(e!==lU)return!1;if(!cU)return pU(e),cU=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!wH(t,e.memoizedProps))for(t=uU;t;)dU(e,t),t=TH(t);return pU(e),uU=lU?TH(e.stateNode):null,!0}function yU(){uU=lU=null,cU=!1}var gU=GF.ReactCurrentOwner,vU=!1;function bU(e,t,n,r){t.child=null===e?M$(t,null,n,r):x$(t,e.child,n,r)}function xU(e,t,n,r,i){n=n.render;var o=t.ref;return LU(t,i),r=Y$(e,t,n,r,o,i),null===e||vU?(t.effectTag|=1,bU(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),AU(e,t,i))}function MU(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||JH(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=QH(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,SU(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:oV)(i,r)&&e.ref===t.ref)?AU(e,t,o):(t.effectTag|=1,(e=ZH(a,r)).ref=t.ref,e.return=t,t.child=e)}function SU(e,t,n,r,i,o){return null!==e&&oV(e.memoizedProps,r)&&e.ref===t.ref&&(vU=!1,i<o)?AU(e,t,o):EU(e,t,n,r,o)}function wU(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function EU(e,t,n,r,i){var o=zH(n)?LH:_H.current;return o=jH(t,o),LU(t,i),n=Y$(e,t,n,r,o,i),null===e||vU?(t.effectTag|=1,bU(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),AU(e,t,i))}function kU(e,t,n,r,i){if(zH(n)){var o=!0;$H(t)}else o=!1;if(LU(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),h$(t,n,r),m$(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=jU(u):u=jH(t,u=zH(n)?LH:_H.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&p$(t,a,r,u),BU=!1;var f=t.memoizedState;l=a.state=f;var h=t.updateQueue;null!==h&&(KU(t,h,r,a,i),l=t.memoizedState),s!==r||f!==l||PH.current||BU?("function"==typeof c&&(c$(t,n,c,r),l=t.memoizedState),(s=BU||f$(t,n,s,r,f,l,u))?(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.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:l$(t.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=jU(u):u=jH(t,u=zH(n)?LH:_H.current),(d="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&p$(t,a,r,u),BU=!1,l=t.memoizedState,f=a.state=l,null!==(h=t.updateQueue)&&(KU(t,h,r,a,i),f=t.memoizedState),s!==r||l!==f||PH.current||BU?("function"==typeof c&&(c$(t,n,c,r),f=t.memoizedState),(c=BU||f$(t,n,s,r,l,f,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return CU(e,t,n,r,o,i)}function CU(e,t,n,r,i,o){wU(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&UH(t,n,!1),AU(e,t,o);r=t.stateNode,gU.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=x$(t,e.child,null,o),t.child=x$(t,null,s,o)):bU(e,t,s,o),t.memoizedState=r.state,i&&UH(t,n,!0),t.child}function OU(e){var t=e.stateNode;t.pendingContext?VH(0,t.pendingContext,t.pendingContext!==t.context):t.context&&VH(0,t.context,!1),O$(e,t.containerInfo)}function TU(e,t,n){var r=t.mode,i=t.pendingProps,o=t.memoizedState;if(0==(64&t.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,t.effectTag&=-65;if(null===e)if(a){var s=i.fallback;e=e$(null,r,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),r=e$(s,r,n,null),e.sibling=r,(n=e).return=r.return=t}else n=r=M$(t,null,i.children,n);else null!==e.memoizedState?(s=(r=e.child).sibling,a?(n=i.fallback,i=ZH(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(i.child=a)),r=i.sibling=ZH(s,n,s.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=t):n=r=x$(t,r.child,i.children,n)):(s=e.child,a?(a=i.fallback,(i=e$(null,r,0,null)).child=s,0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),(r=i.sibling=e$(a,r,n,null)).effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=t):r=n=x$(t,s,i.children,n)),t.stateNode=e.stateNode;return t.memoizedState=o,t.child=n,r}function AU(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&cz("153"),null!==t.child){for(n=ZH(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ZH(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function NU(e,t,n){var r=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||PH.current)vU=!0;else if(r<n){switch(vU=!1,t.tag){case 3:OU(t),yU();break;case 5:A$(t);break;case 1:zH(t.type)&&$H(t);break;case 4:O$(t,t.stateNode.containerInfo);break;case 10:_U(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?TU(e,t,n):null!==(t=AU(e,t,n))?t.sibling:null}return AU(e,t,n)}}else vU=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var i=jH(t,_H.current);if(LU(t,n),i=Y$(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,X$(),zH(r)){var o=!0;$H(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var a=r.getDerivedStateFromProps;"function"==typeof a&&c$(t,r,a,e),i.updater=d$,t.stateNode=i,i._reactInternalFiber=t,m$(t,r,e,n),t=CU(null,t,r,!0,o,n)}else t.tag=0,bU(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),o=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(i),t.type=e,i=t.tag=function(e){if("function"==typeof e)return JH(e)?1:0;if(null!=e){if((e=e.$$typeof)===aB)return 11;if(e===lB)return 14}return 2}(e),o=l$(e,o),a=void 0,i){case 0:a=EU(null,t,e,o,n);break;case 1:a=kU(null,t,e,o,n);break;case 11:a=xU(null,t,e,o,n);break;case 14:a=MU(null,t,e,l$(e.type,o),r,n);break;default:cz("306",e,"")}return a;case 0:return r=t.type,i=t.pendingProps,EU(e,t,r,i=t.elementType===r?i:l$(r,i),n);case 1:return r=t.type,i=t.pendingProps,kU(e,t,r,i=t.elementType===r?i:l$(r,i),n);case 3:return OU(t),null===(r=t.updateQueue)&&cz("282"),i=null!==(i=t.memoizedState)?i.element:null,KU(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===i?(yU(),t=AU(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(uU=AH(t.stateNode.containerInfo),lU=t,i=cU=!0),i?(t.effectTag|=2,t.child=M$(t,null,r,n)):(bU(e,t,r,n),yU()),t=t.child),t;case 5:return A$(t),null===e&&hU(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,wH(r,i)?a=null:null!==o&&wH(r,o)&&(t.effectTag|=16),wU(e,t),1!==n&&1&t.mode&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(bU(e,t,a,n),t=t.child),t;case 6:return null===e&&hU(t),null;case 13:return TU(e,t,n);case 4:return O$(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=x$(t,null,r,n):bU(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xU(e,t,r,i=t.elementType===r?i:l$(r,i),n);case 7:return bU(e,t,t.pendingProps,n),t.child;case 8:case 12:return bU(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,_U(t,o=i.value),null!==a){var s=a.value;if(0===(o=rV(s,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(a.children===i.children&&!PH.current){t=AU(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.contextDependencies;if(null!==l){a=s.child;for(var u=l.first;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===s.tag&&((u=$U(n)).tag=FU,WU(s,u)),s.expirationTime<n&&(s.expirationTime=n),null!==(u=s.alternate)&&u.expirationTime<n&&(u.expirationTime=n),u=n;for(var c=s.return;null!==c;){var d=c.alternate;if(c.childExpirationTime<u)c.childExpirationTime=u,null!==d&&d.childExpirationTime<u&&(d.childExpirationTime=u);else{if(!(null!==d&&d.childExpirationTime<u))break;d.childExpirationTime=u}c=c.return}l.expirationTime<n&&(l.expirationTime=n);break}u=u.next}}else a=10===s.tag&&s.type===t.type?null:s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}}bU(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,LU(t,n),r=r(i=jU(i,o.unstable_observedBits)),t.effectTag|=1,bU(e,t,r,n),t.child;case 14:return o=l$(i=t.type,t.pendingProps),MU(e,t,i,o=l$(i.type,o),r,n);case 15:return SU(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:l$(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,zH(r)?(e=!0,$H(t)):e=!1,LU(t,n),h$(t,r,i),m$(t,r,i,n),CU(null,t,r,!0,e,n)}cz("156")}var qU={current:null},DU=null,RU=null,IU=null;function _U(e,t){var n=e.type._context;RH(qU,n._currentValue),n._currentValue=t}function PU(e){var t=qU.current;DH(qU),e.type._context._currentValue=t}function LU(e,t){DU=e,IU=RU=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(vU=!0),e.contextDependencies=null}function jU(e,t){return IU!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(IU=e,t=1073741823),t={context:e,observedBits:t,next:null},null===RU?(null===DU&&cz("308"),RU=t,DU.contextDependencies={first:t,expirationTime:0}):RU=RU.next=t),e._currentValue}var zU=1,FU=2,BU=!1;function VU(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function HU(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function $U(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function UU(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function WU(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=VU(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=VU(e.memoizedState),i=n.updateQueue=VU(n.memoizedState)):r=e.updateQueue=HU(i):null===i&&(i=n.updateQueue=HU(r));null===i||r===i?UU(r,t):null===r.lastUpdate||null===i.lastUpdate?(UU(r,t),UU(i,t)):(UU(r,t),i.lastUpdate=t)}function YU(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=VU(e.memoizedState):XU(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function XU(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=HU(t)),t}function GU(e,t,n,r,i,o){switch(n.tag){case zU:return"function"==typeof(e=n.payload)?e.call(o,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(o,r,i):e))break;return sz({},r,i);case FU:BU=!0}return r}function KU(e,t,n,r,i){BU=!1;for(var o=(t=XU(e,t)).baseState,a=null,s=0,l=t.firstUpdate,u=o;null!==l;){var c=l.expirationTime;c<i?(null===a&&(a=l,o=u),s<c&&(s=c)):(u=GU(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var d=l.expirationTime;d<i?(null===c&&(c=l,null===a&&(o=u)),s<d&&(s=d)):(u=GU(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function JU(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),ZU(t.firstEffect,n),t.firstEffect=t.lastEffect=null,ZU(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function ZU(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&cz("191",n),n.call(r)}e=e.nextEffect}}function QU(e,t){return{value:e,source:t,stack:hB(t)}}function eW(e){e.effectTag|=4}var tW,nW,rW;tW=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}},nW=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a=t.stateNode;switch(C$(w$.current),e=null,n){case"input":o=EB(a,o),r=EB(a,r),e=[];break;case"option":o=ZV(a,o),r=ZV(a,r),e=[];break;case"select":o=sz({},o,{value:void 0}),r=sz({},r,{value:void 0}),e=[];break;case"textarea":o=eH(a,o),r=eH(a,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(a.onclick=bH)}yH(n,r),a=n=void 0;var s=null;for(n in o)if(!r.hasOwnProperty(n)&&o.hasOwnProperty(n)&&null!=o[n])if("style"===n){var l=o[n];for(a in l)l.hasOwnProperty(a)&&(s||(s={}),s[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(Ez.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(l=null!=o?o[n]:void 0,r.hasOwnProperty(n)&&u!==l&&(null!=u||null!=l))if("style"===n)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(s||(s={}),s[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(s||(s={}),s[a]=u[a])}else s||(e||(e=[]),e.push(n,s)),s=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(n,""+u)):"children"===n?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(Ez.hasOwnProperty(n)?(null!=u&&vH(i,n),e||l===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push("style",s),i=e,(t.updateQueue=i)&&eW(t)}},rW=function(e,t,n,r){n!==r&&eW(t)};var iW="function"==typeof WeakSet?WeakSet:Set;function oW(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=hB(n)),null!==n&&fB(n.type),t=t.value,null!==e&&1===e.tag&&fB(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function aW(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){VW(e,t)}else t.current=null}function sW(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if(0!=(r.tag&e)){var i=r.destroy;r.destroy=void 0,void 0!==i&&i()}0!=(r.tag&t)&&(i=r.create,r.destroy=i()),r=r.next}while(r!==n)}}function lW(e){switch("function"==typeof YH&&YH(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(void 0!==r){var i=e;try{r()}catch(e){VW(i,e)}}n=n.next}while(n!==t)}break;case 1:if(aW(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){VW(e,t)}break;case 5:aW(e);break;case 4:dW(e)}}function uW(e){return 5===e.tag||3===e.tag||4===e.tag}function cW(e){e:{for(var t=e.return;null!==t;){if(uW(t)){var n=t;break e}t=t.return}cz("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:cz("161")}16&n.effectTag&&(cH(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||uW(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)if(n)if(r){var o=t,a=i.stateNode,s=n;8===o.nodeType?o.parentNode.insertBefore(a,s):o.insertBefore(a,s)}else t.insertBefore(i.stateNode,n);else r?(a=t,s=i.stateNode,8===a.nodeType?(o=a.parentNode).insertBefore(s,a):(o=a).appendChild(s),null!=(a=a._reactRootContainer)||null!==o.onclick||(o.onclick=bH)):t.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function dW(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&cz("160"),n.tag){case 5:r=n.stateNode,i=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var o=t,a=o;;)if(lW(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===o)break;for(;null===a.sibling;){if(null===a.return||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}i?(o=r,a=t.stateNode,8===o.nodeType?o.parentNode.removeChild(a):o.removeChild(a)):r.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){r=t.stateNode.containerInfo,i=!0,t.child.return=t,t=t.child;continue}}else if(lW(t),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;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function fW(e,t){switch(t.tag){case 0:case 11:case 14:case 15:sW(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&function(e,t,n,r,i){e[zz]=i,"input"===n&&"radio"===i.type&&null!=i.name&&CB(e,i),gH(n,r),r=gH(n,i);for(var o=0;o<t.length;o+=2){var a=t[o],s=t[o+1];"style"===a?pH(e,s):"dangerouslySetInnerHTML"===a?uH(e,s):"children"===a?cH(e,s):SB(e,a,s,r)}switch(n){case"input":OB(e,i);break;case"textarea":nH(e,i);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!i.multiple,null!=(n=i.value)?QV(e,!!i.multiple,n,!1):t!==!!i.multiple&&(null!=i.defaultValue?QV(e,!!i.multiple,i.defaultValue,!0):QV(e,!!i.multiple,i.multiple?[]:"",!1))}}(n,o,i,e,r)}break;case 6:null===t.stateNode&&cz("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,r=void 0,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=vY())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r.style.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=hH("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,r),null!==(n=t.updateQueue)){t.updateQueue=null;var a=t.stateNode;null===a&&(a=t.stateNode=new iW),n.forEach((function(e){var n=UW.bind(null,t,e);a.has(e)||(a.add(e),e.then(n,n))}))}break;case 17:break;default:cz("163")}}var hW="function"==typeof WeakMap?WeakMap:Map;function pW(e,t,n){(n=$U(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){TY(r),oW(e,t)},n}function mW(e,t,n){(n=$U(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===qW?qW=new Set([this]):qW.add(this));var n=t.value,i=t.stack;oW(e,t),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function yW(e){switch(e.tag){case 1:zH(e.type)&&FH();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return T$(),BH(),0!=(64&(t=e.effectTag))&&cz("285"),e.effectTag=-2049&t|64,e;case 5:return N$(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return T$(),null;case 10:return PU(e),null;default:return null}}var gW=GF.ReactCurrentDispatcher,vW=GF.ReactCurrentOwner,bW=1073741822,xW=!1,MW=null,SW=null,wW=0,EW=-1,kW=!1,CW=null,OW=!1,TW=null,AW=null,NW=null,qW=null;function DW(){if(null!==MW)for(var e=MW.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&FH();break;case 3:T$(),BH();break;case 5:N$(t);break;case 4:T$();break;case 10:PU(t)}e=e.return}SW=null,wW=0,EW=-1,kW=!1,MW=null}function RW(){for(;null!==CW;){var e=CW.effectTag;if(16&e&&cH(CW.stateNode,""),128&e){var t=CW.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:cW(CW),CW.effectTag&=-3;break;case 6:cW(CW),CW.effectTag&=-3,fW(CW.alternate,CW);break;case 4:fW(CW.alternate,CW);break;case 8:dW(e=CW),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}CW=CW.nextEffect}}function IW(){for(;null!==CW;){if(256&CW.effectTag)e:{var e=CW.alternate,t=CW;switch(t.tag){case 0:case 11:case 15:sW(2,0,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:l$(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:cz("163")}}CW=CW.nextEffect}}function _W(e,t){for(;null!==CW;){var n=CW.effectTag;if(36&n){var r=CW.alternate,i=CW,o=t;switch(i.tag){case 0:case 11:case 15:sW(16,32,i);break;case 1:var a=i.stateNode;if(4&i.effectTag)if(null===r)a.componentDidMount();else{var s=i.elementType===i.type?r.memoizedProps:l$(i.type,r.memoizedProps);a.componentDidUpdate(s,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}null!==(r=i.updateQueue)&&JU(0,r,a);break;case 3:if(null!==(r=i.updateQueue)){if(a=null,null!==i.child)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}JU(0,r,a)}break;case 5:o=i.stateNode,null===r&&4&i.effectTag&&SH(i.type,i.memoizedProps)&&o.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:cz("163")}}128&n&&(null!==(i=CW.ref)&&(o=CW.stateNode,"function"==typeof i?i(o):i.current=o)),512&n&&(TW=e),CW=CW.nextEffect}}function PW(e,t){NW=AW=TW=null;var n=QW;QW=!0;do{if(512&t.effectTag){var r=!1,i=void 0;try{var o=t;sW(128,0,o),sW(0,64,o)}catch(e){r=!0,i=e}r&&VW(t,i)}t=t.nextEffect}while(null!==t);QW=n,0!==(n=e.expirationTime)&&bY(e,n),oY||QW||EY(1073741823,!1)}function LW(){null!==AW&&OH(AW),null!==NW&&NW()}function jW(e,t){OW=xW=!0,e.current===t&&cz("177");var n=e.pendingCommitExpirationTime;0===n&&cz("261"),e.pendingCommitExpirationTime=0;var r=t.expirationTime,i=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?i$(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,i$(e,t)):t>n&&i$(e,t)}s$(0,e)}(e,i>r?i:r),vW.current=null,r=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,xH=TV,MH=function(){var e=BV();if(VV(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch(e){t=null;break e}var o=0,a=-1,s=-1,l=0,u=0,c=e,d=null;t:for(;;){for(var f;c!==t||0!==r&&3!==c.nodeType||(a=o+r),c!==i||0!==n&&3!==c.nodeType||(s=o+n),3===c.nodeType&&(o+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===e)break t;if(d===t&&++l===r&&(a=o),d===i&&++u===n&&(s=o),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),TV=!1,CW=r;null!==CW;){i=!1;var o=void 0;try{IW()}catch(e){i=!0,o=e}i&&(null===CW&&cz("178"),VW(CW,o),null!==CW&&(CW=CW.nextEffect))}for(CW=r;null!==CW;){i=!1,o=void 0;try{RW()}catch(e){i=!0,o=e}i&&(null===CW&&cz("178"),VW(CW,o),null!==CW&&(CW=CW.nextEffect))}for(HV(MH),MH=null,TV=!!xH,xH=null,e.current=t,CW=r;null!==CW;){i=!1,o=void 0;try{_W(e,n)}catch(e){i=!0,o=e}i&&(null===CW&&cz("178"),VW(CW,o),null!==CW&&(CW=CW.nextEffect))}if(null!==r&&null!==TW){var a=PW.bind(null,e,r);AW=lz.unstable_runWithPriority(lz.unstable_NormalPriority,(function(){return CH(a)})),NW=a}xW=OW=!1,"function"==typeof WH&&WH(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(qW=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function zW(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){MW=e;e:{var i=t,o=wW,a=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:zH(t.type)&&FH();break;case 3:T$(),BH(),(a=t.stateNode).pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==i&&null!==i.child||(mU(t),t.effectTag&=-3);break;case 5:N$(t);var s=C$(k$.current);if(o=t.type,null!==i&&null!=t.stateNode)nW(i,t,o,a,s),i.ref!==t.ref&&(t.effectTag|=128);else if(a){var l=C$(w$.current);if(mU(t)){i=(a=t).stateNode;var u=a.type,c=a.memoizedProps,d=s;switch(i[jz]=a,i[zz]=c,o=void 0,s=u){case"iframe":case"object":AV("load",i);break;case"video":case"audio":for(u=0;u<aF.length;u++)AV(aF[u],i);break;case"source":AV("error",i);break;case"img":case"image":case"link":AV("error",i),AV("load",i);break;case"form":AV("reset",i),AV("submit",i);break;case"details":AV("toggle",i);break;case"input":kB(i,c),AV("invalid",i),vH(d,"onChange");break;case"select":i._wrapperState={wasMultiple:!!c.multiple},AV("invalid",i),vH(d,"onChange");break;case"textarea":tH(i,c),AV("invalid",i),vH(d,"onChange")}for(o in yH(s,c),u=null,c)c.hasOwnProperty(o)&&(l=c[o],"children"===o?"string"==typeof l?i.textContent!==l&&(u=["children",l]):"number"==typeof l&&i.textContent!==""+l&&(u=["children",""+l]):Ez.hasOwnProperty(o)&&null!=l&&vH(d,o));switch(s){case"input":YF(i),TB(i,c,!0);break;case"textarea":YF(i),rH(i);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(i.onclick=bH)}o=u,a.updateQueue=o,(a=null!==o)&&eW(t)}else{c=t,i=o,d=a,u=9===s.nodeType?s:s.ownerDocument,l===iH&&(l=aH(i)),l===iH?"script"===i?((i=u.createElement("div")).innerHTML="<script><\/script>",u=i.removeChild(i.firstChild)):"string"==typeof d.is?u=u.createElement(i,{is:d.is}):(u=u.createElement(i),"select"===i&&d.multiple&&(u.multiple=!0)):u=u.createElementNS(l,i),(i=u)[jz]=c,i[zz]=a,tW(i,t),d=i;var f=s,h=gH(u=o,c=a);switch(u){case"iframe":case"object":AV("load",d),s=c;break;case"video":case"audio":for(s=0;s<aF.length;s++)AV(aF[s],d);s=c;break;case"source":AV("error",d),s=c;break;case"img":case"image":case"link":AV("error",d),AV("load",d),s=c;break;case"form":AV("reset",d),AV("submit",d),s=c;break;case"details":AV("toggle",d),s=c;break;case"input":kB(d,c),s=EB(d,c),AV("invalid",d),vH(f,"onChange");break;case"option":s=ZV(d,c);break;case"select":d._wrapperState={wasMultiple:!!c.multiple},s=sz({},c,{value:void 0}),AV("invalid",d),vH(f,"onChange");break;case"textarea":tH(d,c),s=eH(d,c),AV("invalid",d),vH(f,"onChange");break;default:s=c}yH(u,s),l=void 0;var p=u,m=d,y=s;for(l in y)if(y.hasOwnProperty(l)){var g=y[l];"style"===l?pH(m,g):"dangerouslySetInnerHTML"===l?null!=(g=g?g.__html:void 0)&&uH(m,g):"children"===l?"string"==typeof g?("textarea"!==p||""!==g)&&cH(m,g):"number"==typeof g&&cH(m,""+g):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(Ez.hasOwnProperty(l)?null!=g&&vH(f,l):null!=g&&SB(m,l,g,h))}switch(u){case"input":YF(d),TB(d,c,!1);break;case"textarea":YF(d),rH(d);break;case"option":null!=c.value&&d.setAttribute("value",""+wB(c.value));break;case"select":(s=d).multiple=!!c.multiple,null!=(d=c.value)?QV(s,!!c.multiple,d,!1):null!=c.defaultValue&&QV(s,!!c.multiple,c.defaultValue,!0);break;default:"function"==typeof s.onClick&&(d.onclick=bH)}(a=SH(o,a))&&eW(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&cz("166");break;case 6:i&&null!=t.stateNode?rW(0,t,i.memoizedProps,a):("string"!=typeof a&&(null===t.stateNode&&cz("166")),i=C$(k$.current),C$(w$.current),mU(t)?(o=(a=t).stateNode,i=a.memoizedProps,o[jz]=a,(a=o.nodeValue!==i)&&eW(t)):(o=t,(a=(9===i.nodeType?i:i.ownerDocument).createTextNode(a))[jz]=t,o.stateNode=a));break;case 11:break;case 13:if(a=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=o,MW=t;break e}a=null!==a,o=null!==i&&null!==i.memoizedState,null!==i&&!a&&o&&(null!==(i=i.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(a||o)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:T$();break;case 10:PU(t);break;case 9:case 14:break;case 17:zH(t.type)&&FH();break;case 18:break;default:cz("156")}MW=null}if(t=e,1===wW||1!==t.childExpirationTime){for(a=0,o=t.child;null!==o;)(i=o.expirationTime)>a&&(a=i),(s=o.childExpirationTime)>a&&(a=s),o=o.sibling;t.childExpirationTime=a}if(null!==MW)return MW;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=yW(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function FW(e){var t=NU(e.alternate,e,wW);return e.memoizedProps=e.pendingProps,null===t&&(t=zW(e)),vW.current=null,t}function BW(e,t){xW&&cz("243"),LW(),xW=!0;var n=gW.current;gW.current=oU;var r=e.nextExpirationTimeToWorkOn;r===wW&&e===SW&&null!==MW||(DW(),wW=r,MW=ZH((SW=e).current,null),e.pendingCommitExpirationTime=0);for(var i=!1;;){try{if(t)for(;null!==MW&&!SY();)MW=FW(MW);else for(;null!==MW;)MW=FW(MW)}catch(t){if(IU=RU=DU=null,X$(),null===MW)i=!0,TY(t);else{null===MW&&cz("271");var o=MW,a=o.return;if(null!==a){e:{var s=e,l=a,u=o,c=t;if(a=wW,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var d=c;c=l;var f=-1,h=-1;do{if(13===c.tag){var p=c.alternate;if(null!==p&&null!==(p=p.memoizedState)){h=10*(1073741822-p.timedOutAt);break}"number"==typeof(p=c.pendingProps.maxDuration)&&(0>=p?f=0:(-1===f||p<f)&&(f=p))}c=c.return}while(null!==c);c=l;do{if((p=13===c.tag)&&(p=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),p){if(null===(l=c.updateQueue)?((l=new Set).add(d),c.updateQueue=l):l.add(d),0==(1&c.mode)){c.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((a=$U(1073741823)).tag=FU,WU(u,a))),u.expirationTime=1073741823;break e}l=a;var m=(u=s).pingCache;null===m?(m=u.pingCache=new hW,p=new Set,m.set(d,p)):void 0===(p=m.get(d))&&(p=new Set,m.set(d,p)),p.has(l)||(p.add(l),u=$W.bind(null,u,d,l),d.then(u,u)),-1===f?s=1073741823:(-1===h&&(h=10*(1073741822-a$(s,a))-5e3),s=h+f),0<=s&&EW<s&&(EW=s),c.effectTag|=2048,c.expirationTime=a;break e}c=c.return}while(null!==c);c=Error((fB(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+hB(u))}kW=!0,c=QU(c,u),s=l;do{switch(s.tag){case 3:s.effectTag|=2048,s.expirationTime=a,YU(s,a=pW(s,c,a));break e;case 1:if(f=c,h=s.type,u=s.stateNode,0==(64&s.effectTag)&&("function"==typeof h.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===qW||!qW.has(u)))){s.effectTag|=2048,s.expirationTime=a,YU(s,a=mW(s,f,a));break e}}s=s.return}while(null!==s)}MW=zW(o);continue}i=!0,TY(t)}}break}if(xW=!1,gW.current=n,IU=RU=DU=null,X$(),i)SW=null,e.finishedWork=null;else if(null!==MW)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&cz("281"),SW=null,kW){if(i=e.latestPendingTime,o=e.latestSuspendedTime,a=e.latestPingedTime,0!==i&&i<r||0!==o&&o<r||0!==a&&a<r)return o$(e,r),void yY(e,n,r,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,t=e.expirationTime=1073741823,void yY(e,n,r,t,-1)}t&&-1!==EW?(o$(e,r),(t=10*(1073741822-a$(e,r)))<EW&&(EW=t),t=10*(1073741822-vY()),t=EW-t,yY(e,n,r,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function VW(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qW||!qW.has(r)))return WU(n,e=mW(n,e=QU(t,e),1073741823)),void YW(n,1073741823);break;case 3:return WU(n,e=pW(n,e=QU(t,e),1073741823)),void YW(n,1073741823)}n=n.return}3===e.tag&&(WU(e,n=pW(e,n=QU(t,e),1073741823)),YW(e,1073741823))}function HW(e,t){var n=lz.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&t.mode))r=1073741823;else if(xW&&!OW)r=wW;else{switch(n){case lz.unstable_ImmediatePriority:r=1073741823;break;case lz.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case lz.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case lz.unstable_LowPriority:case lz.unstable_IdlePriority:r=1;break;default:cz("313")}null!==SW&&r===wW&&--r}return n===lz.unstable_UserBlockingPriority&&(0===nY||r<nY)&&(nY=r),r}function $W(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),null!==SW&&wW===n?SW=null:(t=e.earliestSuspendedTime,r=e.latestSuspendedTime,0!==t&&n<=t&&n>=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),s$(n,e),0!==(n=e.expirationTime)&&bY(e,n)))}function UW(e,t){var n=e.stateNode;null!==n&&n.delete(t),null!==(e=WW(e,t=HW(t=vY(),e)))&&(i$(e,t),0!==(t=e.expirationTime)&&bY(e,t))}function WW(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return i}function YW(e,t){null!==(e=WW(e,t))&&(!xW&&0!==wW&&t>wW&&DW(),i$(e,t),xW&&!OW&&SW===e||bY(e,e.expirationTime),fY>dY&&(fY=0,cz("185")))}function XW(e,t,n,r,i){return lz.unstable_runWithPriority(lz.unstable_ImmediatePriority,(function(){return e(t,n,r,i)}))}var GW=null,KW=null,JW=0,ZW=void 0,QW=!1,eY=null,tY=0,nY=0,rY=!1,iY=null,oY=!1,aY=!1,sY=null,lY=lz.unstable_now(),uY=1073741822-(lY/10|0),cY=uY,dY=50,fY=0,hY=null;function pY(){uY=1073741822-((lz.unstable_now()-lY)/10|0)}function mY(e,t){if(0!==JW){if(t<JW)return;null!==ZW&&lz.unstable_cancelCallback(ZW)}JW=t,e=lz.unstable_now()-lY,ZW=lz.unstable_scheduleCallback(wY,{timeout:10*(1073741822-t)-e})}function yY(e,t,n,r,i){e.expirationTime=r,0!==i||SY()?0<i&&(e.timeoutHandle=EH(gY.bind(null,e,t,n),i)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function gY(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,pY(),cY=uY,kY(e,n)}function vY(){return QW||(xY(),0!==tY&&1!==tY||(pY(),cY=uY)),cY}function bY(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===KW?(GW=KW=e,e.nextScheduledRoot=e):(KW=KW.nextScheduledRoot=e).nextScheduledRoot=GW):t>e.expirationTime&&(e.expirationTime=t),QW||(oY?aY&&(eY=e,tY=1073741823,CY(e,1073741823,!1)):1073741823===t?EY(1073741823,!1):mY(e,t))}function xY(){var e=0,t=null;if(null!==KW)for(var n=KW,r=GW;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===KW)&&cz("244"),r===r.nextScheduledRoot){GW=KW=r.nextScheduledRoot=null;break}if(r===GW)GW=i=r.nextScheduledRoot,KW.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===KW){(KW=n).nextScheduledRoot=GW,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>e&&(e=i,t=r),r===KW)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}eY=t,tY=e}var MY=!1;function SY(){return!!MY||!!lz.unstable_shouldYield()&&(MY=!0)}function wY(){try{if(!SY()&&null!==GW){pY();var e=GW;do{var t=e.expirationTime;0!==t&&uY<=t&&(e.nextExpirationTimeToWorkOn=uY),e=e.nextScheduledRoot}while(e!==GW)}EY(0,!0)}finally{MY=!1}}function EY(e,t){if(xY(),t)for(pY(),cY=uY;null!==eY&&0!==tY&&e<=tY&&!(MY&&uY>tY);)CY(eY,tY,uY>tY),xY(),pY(),cY=uY;else for(;null!==eY&&0!==tY&&e<=tY;)CY(eY,tY,!1),xY();if(t&&(JW=0,ZW=null),0!==tY&&mY(eY,tY),fY=0,hY=null,null!==sY)for(e=sY,sY=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){rY||(rY=!0,iY=e)}}if(rY)throw e=iY,iY=null,rY=!1,e}function kY(e,t){QW&&cz("253"),eY=e,tY=t,CY(e,t,!1),EY(1073741823,!1)}function CY(e,t,n){if(QW&&cz("245"),QW=!0,n){var r=e.finishedWork;null!==r?OY(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,kH(r)),BW(e,n),null!==(r=e.finishedWork)&&(SY()?e.finishedWork=r:OY(e,r,t)))}else null!==(r=e.finishedWork)?OY(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,kH(r)),BW(e,n),null!==(r=e.finishedWork)&&OY(e,r,t));QW=!1}function OY(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===sY?sY=[r]:sY.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===hY?fY++:(hY=e,fY=0),lz.unstable_runWithPriority(lz.unstable_ImmediatePriority,(function(){jW(e,t)}))}function TY(e){null===eY&&cz("246"),eY.expirationTime=0,rY||(rY=!0,iY=e)}function AY(e,t){var n=oY;oY=!0;try{return e(t)}finally{(oY=n)||QW||EY(1073741823,!1)}}function NY(e,t){if(oY&&!aY){aY=!0;try{return e(t)}finally{aY=!1}}return e(t)}function qY(e,t,n){oY||QW||0===nY||(EY(nY,!1),nY=0);var r=oY;oY=!0;try{return lz.unstable_runWithPriority(lz.unstable_UserBlockingPriority,(function(){return e(t,n)}))}finally{(oY=r)||QW||EY(1073741823,!1)}}function DY(e,t,n,r,i){var o=t.current;e:if(n){t:{2===aV(n=n._reactInternalFiber)&&1===n.tag||cz("170");var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(zH(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(null!==a);cz("171"),a=void 0}if(1===n.tag){var s=n.type;if(zH(s)){n=HH(n,s,a);break e}}n=a}else n=IH;return null===t.context?t.context=n:t.pendingContext=n,t=i,(i=$U(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),LW(),WU(o,i),YW(o,r),r}function RY(e,t,n,r){var i=t.current;return DY(e,t,n,i=HW(vY(),i),r)}function IY(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function _Y(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:QF,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function PY(e){var t=1073741822-25*(1+((1073741822-vY()+500)/25|0));t>=bW&&(t=bW-1),this._expirationTime=bW=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function LY(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function jY(e,t,n){e={current:t=KH(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function zY(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function FY(e,t,n,r,i){var o=n._reactRootContainer;if(o){if("function"==typeof i){var a=i;i=function(){var e=IY(o._internalRoot);a.call(e)}}null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new jY(e,!1,t)}(n,r),"function"==typeof i){var s=i;i=function(){var e=IY(o._internalRoot);s.call(e)}}NY((function(){null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}))}return IY(o._internalRoot)}function BY(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return zY(t)||cz("200"),_Y(e,t,null,n)}qF=function(e,t,n){switch(t){case"input":if(OB(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=Hz(r);i||cz("90"),XF(r),OB(r,i)}}}break;case"textarea":nH(e,n);break;case"select":null!=(t=n.value)&&QV(e,!!n.multiple,t,!1)}},PY.prototype.render=function(e){this._defer||cz("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new LY;return DY(e,t,null,n,r._onCommit),r},PY.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},PY.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||cz("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,i=t;i!==this;)r=i,i=i._next;null===r&&cz("251"),r._next=i._next,this._next=t,e.firstBatch=this}this._defer=!1,kY(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},PY.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},LY.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},LY.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&cz("191",n),n()}}},jY.prototype.render=function(e,t){var n=this._internalRoot,r=new LY;return null!==(t=void 0===t?null:t)&&r.then(t),RY(e,n,null,r._onCommit),r},jY.prototype.unmount=function(e){var t=this._internalRoot,n=new LY;return null!==(e=void 0===e?null:e)&&n.then(e),RY(null,t,null,n._onCommit),n},jY.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new LY;return null!==(n=void 0===n?null:n)&&i.then(n),RY(t,r,e,i._onCommit),i},jY.prototype.createBatch=function(){var e=new PY(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},LF=AY,jF=qY,zF=function(){QW||0===nY||(EY(nY,!1),nY=0)};var VY={createPortal:BY,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?cz("188"):cz("268",Object.keys(e))),e=null===(e=lV(t))?null:e.stateNode},hydrate:function(e,t,n){return zY(t)||cz("200"),FY(null,e,t,!0,n)},render:function(e,t,n){return zY(t)||cz("200"),FY(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return zY(n)||cz("200"),(null==e||void 0===e._reactInternalFiber)&&cz("38"),FY(e,t,n,!1,r)},unmountComponentAtNode:function(e){return zY(e)||cz("40"),!!e._reactRootContainer&&(NY((function(){FY(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return BY.apply(void 0,arguments)},unstable_batchedUpdates:AY,unstable_interactiveUpdates:qY,flushSync:function(e,t){QW&&cz("187");var n=oY;oY=!0;try{return XW(e,t)}finally{oY=n,EY(1073741823,!1)}},unstable_createRoot:function(e,t){return zY(e)||cz("299","unstable_createRoot"),new jY(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=oY;oY=!0;try{XW(e)}finally{(oY=t)||QW||EY(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[Bz,Vz,Hz,Iz.injectEventPluginsByName,wz,Gz,function(e){qz(e,Xz)},_F,PF,DV,Pz]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);WH=XH((function(e){return t.onCommitFiberRoot(n,e)})),YH=XH((function(e){return t.onCommitFiberUnmount(n,e)}))}catch(e){}})(sz({},e,{overrideProps:null,currentDispatcherRef:GF.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=lV(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:Fz,bundleType:0,version:"16.8.4",rendererPackageName:"react-dom"});var HY={default:VY},$Y=HY&&VY||HY,UY=$Y.default||$Y;!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)}}(),rz.exports=UY;var WY=rz.exports,YY=!1,XY=uI.createContext(null),GY="unmounted",KY="exited",JY="entering",ZY="entered",QY="exiting",eX=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=KY,r.appearStatus=JY):i=ZY:i=t.unmountOnExit||t.mountOnEnter?GY:KY,r.state={status:i},r.nextCallback=null,r}nz(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===GY?{status:KY}: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!==JY&&n!==ZY&&(t=JY):n!==JY&&n!==ZY||(t=QY)}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){this.cancelNextCallback();var n=WY.findDOMNode(this);t===JY?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===KY&&this.setState({status:GY})},n.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;!t&&!r||YY?this.safeSetState({status:ZY},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,i),this.safeSetState({status:JY},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:ZY},(function(){n.props.onEntered(e,i)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!YY?(this.props.onExit(e),this.safeSetState({status:QY},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:KY},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:KY},(function(){t.props.onExited(e)}))},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,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===GY)return null;var t=this.props,n=t.children,r=tz(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return uI.createElement(XY.Provider,{value:null},n(e,r));var i=uI.Children.only(n);return uI.createElement(XY.Provider,{value:null},uI.cloneElement(i,r))},t}(uI.Component);function tX(){}eX.contextType=XY,eX.propTypes={},eX.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tX,onEntering:tX,onEntered:tX,onExit:tX,onExiting:tX,onExited:tX},eX.UNMOUNTED=0,eX.EXITED=1,eX.ENTERING=2,eX.ENTERED=3,eX.EXITING=4;var nX=eX;function rX(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iX(e,t){var n=Object.create(null);return e&&hR.exports.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&hR.exports.isValidElement(e)?t(e):e}(e)})),n}function oX(e,t,n){return null!=n[t]?n[t]:e.props[t]}function aX(e,t,n){var r=iX(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 u=i[l][r];s[i[l][r]]=n(u)}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(hR.exports.isValidElement(a)){var s=o in t,l=o in r,u=t[o],c=hR.exports.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&hR.exports.isValidElement(u)&&(i[o]=hR.exports.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:oX(a,"exit",e),enter:oX(a,"enter",e)})):i[o]=hR.exports.cloneElement(a,{in:!1}):i[o]=hR.exports.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:oX(a,"exit",e),enter:oX(a,"enter",e)})}})),i}var sX=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},lX=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(rX(rX(r)));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}nz(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,iX(n.children,(function(e){return hR.exports.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:oX(e,"appear",n),enter:oX(e,"enter",n),exit:oX(e,"exit",n)})}))):aX(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=iX(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ez({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=tz(e,["component","childFactory"]),i=this.state.contextValue,o=sX(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?uI.createElement(XY.Provider,{value:i},o):uI.createElement(XY.Provider,{value:i},uI.createElement(t,r,o))},t}(uI.Component);lX.propTypes={},lX.defaultProps={component:"div",childFactory:function(e){return e}};var uX=lX;function cX(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}}function dX(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function fX(e,t){return uI.useMemo((function(){return null==e&&null==t?null:function(n){dX(e,n),dX(t,n)}}),[e,t])}var hX="undefined"!=typeof window?uI.useLayoutEffect:uI.useEffect;function pX(e){var t=uI.useRef(e);return hX((function(){t.current=e})),uI.useCallback((function(e){return(0,t.current)(e)}),[])}var mX="undefined"!=typeof window?uI.useLayoutEffect:uI.useEffect;function yX(e){var t=e.children,n=e.defer,r=void 0!==n&&n,i=e.fallback,o=void 0===i?null:i,a=uI.useState(!1),s=a[0],l=a[1];return mX((function(){r||l(!0)}),[r]),uI.useEffect((function(){r&&l(!0)}),[r]),uI.createElement(uI.Fragment,null,s?t:o)}var gX=!0,vX=!1,bX=null,xX={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 MX(e){e.metaKey||e.altKey||e.ctrlKey||(gX=!0)}function SX(){gX=!1}function wX(){"hidden"===this.visibilityState&&vX&&(gX=!0)}function EX(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return gX||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!xX[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function kX(){vX=!0,window.clearTimeout(bX),bX=window.setTimeout((function(){vX=!1}),100)}function CX(){return{isFocusVisible:EX,onBlurVisible:kX,ref:uI.useCallback((function(e){var t=WY.findDOMNode(e);null!=t&&function(e){e.addEventListener("keydown",MX,!0),e.addEventListener("mousedown",SX,!0),e.addEventListener("pointerdown",SX,!0),e.addEventListener("touchstart",SX,!0),e.addEventListener("visibilitychange",wX,!0)}(t.ownerDocument)}),[])}}function OX(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var TX="undefined"==typeof window?uI.useEffect:uI.useLayoutEffect;function AX(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,u=void 0===l?function(){}:l,c=e.timeout,d=uI.useState(!1),f=d[0],h=d[1],p=Rj(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},y=Rj(t.child,f&&t.childLeaving,r&&t.childPulsate),g=pX(u);return TX((function(){if(!s){h(!0);var e=setTimeout(g,c);return function(){clearTimeout(e)}}}),[g,s,c]),uI.createElement("span",{className:p,style:m},uI.createElement("span",{className:y}))}var NX=uI.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=CI(e,["center","classes","className"]),s=uI.useState([]),l=s[0],u=s[1],c=uI.useRef(0),d=uI.useRef(null);uI.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=uI.useRef(!1),h=uI.useRef(null),p=uI.useRef(null),m=uI.useRef(null);uI.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var y=uI.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;u((function(e){return[].concat(OX(e),[uI.createElement(AX,{key:c.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),c.current+=1,d.current=a}),[i]),g=uI.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,u=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var c,d,g,v=u?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)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.clientX?e.clientX:e.touches[0].clientX,M=e.clientY?e.clientY:e.touches[0].clientY;c=Math.round(x-b.left),d=Math.round(M-b.top)}if(s)(g=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(g+=1);else{var S=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,w=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;g=Math.sqrt(Math.pow(S,2)+Math.pow(w,2))}e.touches?(p.current=function(){y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})}}),[r,y]),v=uI.useCallback((function(){g({},{pulsate:!0})}),[g]),b=uI.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,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return uI.useImperativeHandle(t,(function(){return{pulsate:v,start:g,stop:b}}),[v,g,b]),uI.createElement("span",kI({className:Rj(i.root,o),ref:m},a),uI.createElement(uX,{component:null,exit:!0},l))}));var qX,DX=Kj((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"})(((qX=uI.memo(NX)).muiName="MuiTouchRipple",qX)),RX=uI.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,u=e.component,c=void 0===u?"button":u,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,y=void 0!==m&&m,g=e.focusRipple,v=void 0!==g&&g,b=e.focusVisibleClassName,x=e.onBlur,M=e.onClick,S=e.onFocus,w=e.onFocusVisible,E=e.onKeyDown,k=e.onKeyUp,C=e.onMouseDown,O=e.onMouseLeave,T=e.onMouseUp,A=e.onTouchEnd,N=e.onTouchMove,q=e.onTouchStart,D=e.onDragLeave,R=e.tabIndex,I=void 0===R?0:R,_=e.TouchRippleProps,P=e.type,L=void 0===P?"button":P,j=CI(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"]),z=uI.useRef(null);var F=uI.useRef(null),B=uI.useState(!1),V=B[0],H=B[1];f&&V&&H(!1);var $=CX(),U=$.isFocusVisible,W=$.onBlurVisible,Y=$.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return pX((function(r){return t&&t(r),!n&&F.current&&F.current[e](r),!0}))}uI.useImperativeHandle(n,(function(){return{focusVisible:function(){H(!0),z.current.focus()}}}),[]),uI.useEffect((function(){V&&v&&!p&&F.current.pulsate()}),[p,v,V]);var G=X("start",C),K=X("stop",D),J=X("stop",T),Z=X("stop",(function(e){V&&e.preventDefault(),O&&O(e)})),Q=X("start",q),ee=X("stop",A),te=X("stop",N),ne=X("stop",(function(e){V&&(W(e),H(!1)),x&&x(e)}),!1),re=pX((function(e){f||(z.current||(z.current=e.currentTarget),U(e)&&(H(!0),w&&w(e)),S&&S(e))})),ie=uI.useRef(!1),oe=pX((function(e){v&&!ie.current&&V&&F.current&&" "===e.key&&(ie.current=!0,e.persist(),F.current.stop(e,(function(){F.current.start(e)}))),E&&E(e);var t=WY.findDOMNode(z.current);e.target!==e.currentTarget||!c||"button"===c||" "!==e.key&&"Enter"!==e.key||"A"===t.tagName&&t.href||(e.preventDefault(),M&&M(e))})),ae=pX((function(e){v&&" "===e.key&&F.current&&V&&(ie.current=!1,e.persist(),F.current.stop(e,(function(){F.current.pulsate(e)}))),k&&k(e)})),se=c;"button"===se&&j.href&&(se="a");var le={};"button"===se?(le.type=L,le.disabled=f):("a"===se&&j.href||(le.role="button"),le["aria-disabled"]=f);var ue=fX(r,t),ce=fX(Y,z),de=fX(ue,ce);return uI.createElement(se,kI({className:Rj(s.root,l,V&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:M,onFocus:re,onKeyDown:oe,onKeyUp:ae,onMouseDown:G,onMouseLeave:Z,onMouseUp:J,onDragLeave:K,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:f?-1:I},le,j),a,p||f?null:uI.createElement(yX,null,uI.createElement(DX,kI({ref:F,center:o},_))))})),IX=Kj({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"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(RX),_X={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},PX=uI.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,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,y=void 0!==m&&m,g=e.variant,v=void 0===g?"body1":g,b=e.variantMapping,x=void 0===b?_X:b,M=CI(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=l||(y?"p":x[v]||_X[v])||"span";return uI.createElement(S,kI({className:Rj(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(Jj(s))],p&&i.noWrap,f&&i.gutterBottom,y&&i.paragraph,"inherit"!==r&&i["align".concat(Jj(r))],"initial"!==c&&i["display".concat(Jj(c))]),ref:t},M))})),LX=Kj((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"})(PX),jX=uI.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,u=e.disabled,c=void 0!==u&&u,d=e.disableFocusRipple,f=void 0!==d&&d,h=e.endIcon,p=e.focusVisibleClassName,m=e.fullWidth,y=void 0!==m&&m,g=e.size,v=void 0===g?"medium":g,b=e.startIcon,x=e.type,M=void 0===x?"button":x,S=e.variant,w=void 0===S?"text":S,E=CI(e,["children","classes","className","color","component","disabled","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),k=b&&uI.createElement("span",{className:Rj(r.startIcon,r["iconSize".concat(Jj(v))])},b),C=h&&uI.createElement("span",{className:Rj(r.endIcon,r["iconSize".concat(Jj(v))])},h);return uI.createElement(IX,kI({className:Rj(r.root,r[w],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(w).concat(Jj(a))],"medium"!==v&&[r["".concat(w,"Size").concat(Jj(v))],r["size".concat(Jj(v))]],c&&r.disabled,y&&r.fullWidth),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:Rj(r.focusVisible,p),ref:t,type:M},E),uI.createElement("span",{className:r.label},k,n,C))})),zX=Kj((function(e){return{root:kI({},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:wI(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:wI(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:wI(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.disabled)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(wI(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:wI(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(wI(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:wI(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}}},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"})(jX);function FX(e){return e&&e.ownerDocument||document}var BX="undefined"!=typeof window?uI.useLayoutEffect:uI.useEffect,VX=uI.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=uI.useState(null),l=s[0],u=s[1],c=fX(n.ref,t);return BX((function(){o||u(function(e){return e="function"==typeof e?e():e,WY.findDOMNode(e)}(r)||document.body)}),[r,o]),BX((function(){if(l&&!o)return dX(t,l),function(){dX(t,null)}}),[t,l,o]),BX((function(){a&&(l||o)&&a()}),[a,l,o]),o?(uI.Children.only(n),uI.cloneElement(n,{ref:c})):l?WY.createPortal(n,l):l}));function HX(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function $X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function UX(e){return FX(e).defaultView||window}function WX(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function YX(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function XX(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(OX(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&WX(e,i)}))}function GX(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function KX(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){var a=function(e){var t=FX(e);return t.body===e?UX(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o),s=o.parentElement,l="HTML"===s.nodeName?s:o;if(r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden",a){var u=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(YX(o)+u,"px"),n=FX(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(YX(e)+u,"px")}))}}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 JX=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=[]}var t,n,r;return t=e,(n=[{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&&WX(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);XX(t,e.mountNode,e.modalRef,r,!0);var i=GX(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=GX(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=KX(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=GX(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&&WX(e.modalRef,!0),XX(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&&WX(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}])&&$X(t.prototype,n),r&&$X(t,r),e}();function ZX(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,u=e.isEnabled,c=e.open,d=uI.useRef(),f=uI.useRef(null),h=uI.useRef(null),p=uI.useRef(),m=uI.useRef(null),y=uI.useCallback((function(e){m.current=WY.findDOMNode(e)}),[]),g=fX(t.ref,y);return uI.useMemo((function(){c&&"undefined"!=typeof window&&(p.current=l().activeElement)}),[c]),uI.useEffect((function(){if(c){var e=FX(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(){o||!u()||d.current?d.current=!1:m.current&&!m.current.contains(e.activeElement)&&m.current.focus()},n=function(t){!o&&u()&&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,u,c]),uI.createElement(uI.Fragment,null,uI.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),uI.cloneElement(t,{ref:g}),uI.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var QX={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},eG=uI.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=CI(e,["invisible","open"]);return i?uI.createElement("div",kI({"aria-hidden":!0,ref:t},o,{style:kI({},QX.root,{},r?QX.invisible:{},{},o.style)})):null}));var tG=new JX,nG=uI.forwardRef((function(e,t){var n=yj(),r=E_({name:"MuiModal",props:kI({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?eG:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,y=void 0!==m&&m,g=r.disableEscapeKeyDown,v=void 0!==g&&g,b=r.disablePortal,x=void 0!==b&&b,M=r.disableRestoreFocus,S=void 0!==M&&M,w=r.disableScrollLock,E=void 0!==w&&w,k=r.hideBackdrop,C=void 0!==k&&k,O=r.keepMounted,T=void 0!==O&&O,A=r.manager,N=void 0===A?tG:A,q=r.onBackdropClick,D=r.onClose,R=r.onEscapeKeyDown,I=r.onRendered,_=r.open,P=CI(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=uI.useState(!0),j=L[0],z=L[1],F=uI.useRef({}),B=uI.useRef(null),V=uI.useRef(null),H=fX(V,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return FX(B.current)},W=function(){return F.current.modalRef=V.current,F.current.mountNode=B.current,F.current},Y=function(){N.mount(W(),{disableScrollLock:E}),V.current.scrollTop=0},X=pX((function(){var e=function(e){return e="function"==typeof e?e():e,WY.findDOMNode(e)}(c)||U().body;N.add(W(),e),V.current&&Y()})),G=uI.useCallback((function(){return N.isTopModal(W())}),[N]),K=pX((function(e){B.current=e,e&&(I&&I(),_&&G()?Y():WX(V.current,!0))})),J=uI.useCallback((function(){N.remove(W())}),[N]);if(uI.useEffect((function(){return function(){J()}}),[J]),uI.useEffect((function(){_?X():$&&u||J()}),[_,J,$,u,X]),!T&&!_&&(!$||j))return null;var Z=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:b_}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),$&&(Q.onEnter=HX((function(){z(!1)}),s.props.onEnter),Q.onExited=HX((function(){z(!0),u&&J()}),s.props.onExited)),uI.createElement(VX,{ref:K,container:c,disablePortal:x},uI.createElement("div",kI({ref:H,onKeyDown:function(e){"Escape"===e.key&&G()&&(e.stopPropagation(),R&&R(e),!v&&D&&D(e,"escapeKeyDown"))},role:"presentation"},P,{style:kI({},Z.root,{},!_&&j?Z.hidden:{},{},P.style)}),C?null:uI.createElement(o,kI({open:_,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!p&&D&&D(e,"backdropClick"))}},a)),uI.createElement(ZX,{disableEnforceFocus:y,disableAutoFocus:f,disableRestoreFocus:S,getDoc:U,isEnabled:G,open:_},uI.cloneElement(s,Q))))}));function rG(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var iG={entering:{opacity:1,transform:rG(1)},entered:{opacity:1,transform:"none"}},oG=uI.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,o=e.onExit,a=e.style,s=e.timeout,l=void 0===s?"auto":s,u=CI(e,["children","in","onEnter","onExit","style","timeout"]),c=uI.useRef(),d=uI.useRef(),f=fX(n.ref,t),h=yj()||Gj;return uI.useEffect((function(){return function(){clearTimeout(c.current)}}),[]),uI.createElement(nX,kI({appear:!0,in:r,onEnter:function(e,t){!function(e){e.scrollTop}(e);var n,r=cX({style:a,timeout:l},{mode:"enter"}),o=r.duration,s=r.delay;"auto"===l?(n=h.transitions.getAutoHeightDuration(e.clientHeight),d.current=n):n=o,e.style.transition=[h.transitions.create("opacity",{duration:n,delay:s}),h.transitions.create("transform",{duration:.666*n,delay:s})].join(","),i&&i(e,t)},onExit:function(e){var t,n=cX({style:a,timeout:l},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===l?(t=h.transitions.getAutoHeightDuration(e.clientHeight),d.current=t):t=r,e.style.transition=[h.transitions.create("opacity",{duration:t,delay:i}),h.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=rG(.75),o&&o(e)},addEndListener:function(e,t){"auto"===l&&(c.current=setTimeout(t,d.current||0))},timeout:"auto"===l?null:l},u),(function(e,t){return uI.cloneElement(n,kI({style:kI({opacity:0,transform:rG(.75),visibility:"exited"!==e||r?void 0:"hidden"},iG[e],{},a,{},n.props.style),ref:f},t))}))}));oG.muiSupportAuto=!0;var aG=oG,sG=uI.createContext({}),lG=uI.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,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,f=CI(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=uI.useMemo((function(){return{dense:l}}),[l]);return uI.createElement(sG.Provider,{value:h},uI.createElement(a,kI({className:Rj(r.root,i,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},f),d,n))})),uG=Kj({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(lG),cG="undefined"==typeof window?uI.useEffect:uI.useLayoutEffect,dG=uI.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,u=e.classes,c=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,y=CI(p,["className"]),g=e.dense,v=e.disabled,b=void 0!==v&&v,x=e.disableGutters,M=void 0!==x&&x,S=e.divider,w=void 0!==S&&S,E=e.focusVisibleClassName,k=e.selected,C=void 0!==k&&k,O=CI(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=uI.useContext(sG),A={dense:g||T.dense||!1,alignItems:r},N=uI.useRef(null);cG((function(){o&&N.current&&N.current.focus()}),[o]);var q,D,R=uI.Children.toArray(l),I=R.length&&(q=R[R.length-1],D=["ListItemSecondaryAction"],uI.isValidElement(q)&&-1!==D.indexOf(q.type.muiName)),_=fX(uI.useCallback((function(e){N.current=WY.findDOMNode(e)}),[]),t),P=kI({className:Rj(u.root,c,A.dense&&u.dense,!M&&u.gutters,w&&u.divider,b&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,I&&u.secondaryAction,C&&u.selected),disabled:b},O),L=d||"li";return s&&(P.component=d||"div",P.focusVisibleClassName=Rj(u.focusVisible,E),L=IX),I?(L=P.component||d?L:"div","li"===h&&("li"===L?L="div":"li"===P.component&&(P.component="div")),uI.createElement(sG.Provider,{value:A},uI.createElement(h,kI({className:Rj(u.container,m),ref:_},y),uI.createElement(L,P,R),R.pop()))):uI.createElement(sG.Provider,{value:A},uI.createElement(L,kI({ref:_},P),R))})),fG=Kj((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"})(dG),hG=uI.forwardRef((function(e,t){var n=e.classes,r=e.className,i=CI(e,["classes","className"]),o=uI.useContext(sG);return uI.createElement("div",kI({className:Rj(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),pG=Kj((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(hG),mG=uI.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,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=CI(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=uI.useContext(sG).dense,m=null!=u?u:n;null==m||m.type===LX||a||(m=uI.createElement(LX,kI({variant:p?"body2":"body1",className:r.primary,component:"span"},c),m));var y=d;return null==y||y.type===LX||a||(y=uI.createElement(LX,kI({variant:"body2",className:r.secondary,color:"textSecondary"},f),y)),uI.createElement("div",kI({className:Rj(r.root,i,p&&r.dense,l&&r.inset,m&&y&&r.multiline),ref:t},h),m,y)})),yG=Kj({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(mG);function gG(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function vG(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bG(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function xG(e){return"function"==typeof e?e():e}var MG=uI.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,u=e.children,c=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,y=e.marginThreshold,g=void 0===y?16:y,v=e.onEnter,b=e.onEntered,x=e.onEntering,M=e.onExit,S=e.onExited,w=e.onExiting,E=e.open,k=e.PaperProps,C=void 0===k?{}:k,O=e.transformOrigin,T=void 0===O?{vertical:"top",horizontal:"left"}:O,A=e.TransitionComponent,N=void 0===A?aG:A,q=e.transitionDuration,D=void 0===q?"auto":q,R=e.TransitionProps,I=void 0===R?{}:R,_=CI(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"]),P=uI.useRef(),L=uI.useCallback((function(e){if("anchorPosition"===l)return a;var t=xG(r),n=(t instanceof UX(t).Element?t:FX(P.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+gG(n,i),left:n.left+vG(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),j=uI.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]),z=uI.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:gG(e,T.vertical)+t,horizontal:vG(e,T.horizontal)}}),[T.horizontal,T.vertical]),F=uI.useCallback((function(e){var t=j(e),n={width:e.offsetWidth,height:e.offsetHeight},i=z(n,t);if("none"===l)return{top:null,left:null,transformOrigin:bG(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,u=a+n.height,c=s+n.width,d=UX(xG(r)),f=d.innerHeight-g,h=d.innerWidth-g;if(a<g){var p=a-g;a-=p,i.vertical+=p}else if(u>f){var m=u-f;a-=m,i.vertical+=m}if(s<g){var y=s-g;s-=y,i.horizontal+=y}else if(c>h){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(a,"px"),left:"".concat(s,"px"),transformOrigin:bG(i)}}),[r,l,L,j,z,g]),B=uI.useCallback((function(e){var t=F(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[F]),V=uI.useCallback((function(e){P.current=WY.findDOMNode(e)}),[]),H=uI.useMemo((function(){if(E)return 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,s=function(){e.apply(a,i)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}((function(){B(P.current)}))}),[E,B]);uI.useImperativeHandle(n,(function(){return E?{updatePosition:H}:null}),[E,H]),uI.useEffect((function(){if(H)return window.addEventListener("resize",H),function(){window.removeEventListener("resize",H),H.clear()}}),[H]);var $=D;"auto"!==D||N.muiSupportAuto||($=void 0);var U=f||(r?FX(xG(r)).body:void 0);return uI.createElement(nG,kI({container:U,open:E,ref:t,BackdropProps:{invisible:!0},className:Rj(c.root,d)},_),uI.createElement(N,kI({appear:!0,in:E,onEnter:v,onEntered:b,onExit:M,onExited:S,onExiting:w,timeout:$},I,{onEntering:HX((function(e,t){x&&x(e,t),B(e)}),I.onEntering)}),uI.createElement(Qj,kI({elevation:p,ref:V},C,{className:Rj(c.paper,C.className)}),u)))})),SG=Kj({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(MG);function wG(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function EG({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:wG(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return uI.createElement("i",{style:i},uI.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},uI.createElement("path",{d:e})))}const kG={d:"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"},CG={d:"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"},OG="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",TG={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},AG={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};function NG(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=Bi.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function qG(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=d(!0,{},a),l=s.qHyperCubeDef[r][t],u=s.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][n];u.qAttributeDimensions=l.qAttributeDimensions,l.qAttributeDimensions=[],o||(u.qAttributeExpressions=l.qAttributeExpressions,l.qAttributeExpressions=[]),s.qHyperCubeDef[r][t]=u,s.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][n]=l,i&&i({oldItem:l,newItem:u,oldProperties:a,newProperties:s,model:e}),NG(e,a,s)}))}function DG({dir:e,dock:t,altList:n,model:r,translator:i,app:o,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives(){const e=n.map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(e,o,i).then((t=>({id:e.qDef.cId,selected:!1,title:t})))));return Promise.all(e)},changeTo(e,t){qG(r,e,t,"qDimensions",a)}}}function RG(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(i=e,"H"===i.qGrouping?i.title||"":i.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)}};var i}function IG({altList:e,app:t,dir:n,dock:r,model:i,onChange:o,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives(){const n=e.map((e=>function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t})))));return Promise.all(n)},changeTo(e,t){qG(i,e,t,"qMeasures",o,a)}}}function _G(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle}}const PG={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"}}},LG=({children:e,...t})=>uI.createElement(zX,fR({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);function jG(){function e({title:e,selected:t,onClick:n}){const r=P.detectTextDirection(e);return uI.createElement(fG,{button:!0,onClick:n,style:{textAlign:"start"}},uI.createElement(pG,{style:{minWidth:32}},uI.createElement(EG,{d:t?OG:""})),uI.createElement(yG,{primaryTypographyProps:{dir:r}},e))}function t({alignTo:t,changeTo:n,current:r,dir:i,dock:o,list:a,onClose:s,show:l}){const u=a.map(((t,r)=>uI.createElement(e,{key:t.id,title:t.title,onClick:()=>n(r)})));return uI.createElement(SG,fR({anchorEl:t,open:l,onClose:s},PG[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),uI.createElement(uG,{dense:!0,dir:i,component:"nav"},uI.createElement(e,{title:r,selected:!0,onClick:s}),u))}e.propTypes={title:hI.string.isRequired,selected:hI.bool,onClick:hI.func.isRequired},e.defaultProps={selected:!1},t.propTypes={alignTo:hI.any,changeTo:hI.func.isRequired,current:hI.string.isRequired,dir:hI.string.isRequired,dock:hI.string.isRequired,list:hI.array,onClose:hI.func.isRequired,show:hI.bool.isRequired},t.defaultProps={list:[],alignTo:null};class n extends uI.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive()},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=uI.createRef()}componentDidMount(){const{selections:e}=this.props;e&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),e.addListener("activated",this.onSelectionsActivated),e.addListener("deactivated",this.onSelectionsDeactivated),e.addListener("canceled",this.onSelectionsDeactivated))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.index,e),this.closePopover()}openPopover(){this.state.closeTime&&Date.now()-this.state.closeTime<20||this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e})}))}closePopover(){this.setState({open:!1,closeTime:Date.now()})}render(){const{titleData:e,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",...this.props.style},c=e.breadcrumbs.length,d=i||this.state.inSelection,f=e.breadcrumbs.map(((t,n)=>uI.createElement(LG,{style:{display:"flex",alignItems:"center",color:d&&"rgba(89, 89, 89, 0.8)",pointerEvents:d?"none":"auto"},key:n,onClick:()=>d?void 0:e.drillUp(c-n),title:t},uI.createElement("span",{style:u},t),uI.createElement(EG,fR({},AG,{size:"small",style:{margin:"0 8px"}}))))),h=n&&!this.state.open?this.openPopover:this.closePopover,p=!n||i||this.state.inSelection,m={display:"flex",alignItems:"center",width:"100%",color:p&&"rgba(89, 89, 89, 0.8)",height:!o&&p&&"20px",lineHeight:!o&&p&&"20px",border:!o&&p&&"none"};a&&(m.padding=a),s&&(m.minWidth=s);const y=P.detectTextDirection(e.text),g=uI.createElement(LG,{style:m,onClick:p?void 0:h,title:e.text,tabIndex:"-1"},e.locked&&uI.createElement(EG,fR({},CG,{size:"small",title:r.get("Tooltip.selections.locked")})),uI.createElement("span",{style:u,dir:y},e.text),n&&uI.createElement(EG,fR({},TG,{size:"small",style:{margin:"0 8px"}})));return uI.createElement(uI.Fragment,null,e.drilldown&&uI.createElement(EG,fR({},kG,{size:"small",title:r.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),f,uI.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:l?"auto":"none"}},g),n&&uI.createElement(t,{dock:n.dock,dir:n.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo}))}}function r(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function i(e){return!e.isDimension&&M(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return n.propTypes={disabled:hI.bool.isRequired,padding:hI.string,minWidth:hI.string,titleData:hI.shape({breadcrumbs:hI.arrayOf(hI.string).isRequired,drilldown:hI.bool.isRequired,index:hI.number.isRequired,locked:hI.bool.isRequired,text:hI.string.isRequired,popoverText:hI.string.isRequired,drillUp:hI.func}).isRequired,popover:hI.shape({dir:hI.string.isRequired,dock:hI.string.isRequired,changeTo:hI.func.isRequired,getAlternatives:hI.func.isRequired}),translator:hI.shape({get:hI.func.isRequired}).isRequired,selections:hI.shape({isActive:hI.func,addListener:hI.func,removeListener:hI.func}),style:hI.shape({fontSize:hI.string,color:hI.string,fontFamily:hI.string}).isRequired,isDimension:hI.bool.isRequired,hasAlternative:hI.bool.isRequired},n.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){return this.settings.settings.isDimension||i(this.settings.settings)?28:20},render(){const{settings:{app:e,disabled:t,explicitItemInfos:o,hyperCube:a,hyperCubeDef:s,isDimension:l,minWidth:u,model:c,onChangeToAlternative:d,padding:f,rtl:h,selections:p,skipAttributeExpressions:m,translator:y},layout:{dock:g}}=this.settings,v="top"!==g&&"bottom"!==g||!h?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center"};return"left"===e?(n.width=t.height+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=t.height+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),x=s&&s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef,S=x&&x[l?"qDimensions":"qMeasures"]||[],w=o||a[l?"qDimensionInfo":"qMeasureInfo"],E=l?DG:IG,k=l?RG:_G,C=c&&c.colorSupport&&c.modifiers&&E({altList:S,app:e,dir:h?"rtl":"ltr",dock:r(g),model:c,onChange:d,skipAttributeExpressions:m,translator:y}),O=(T=this.settings.settings).isDimension&&M(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||i(this.settings.settings);var T;const A=w.map(((e,r)=>{const i="number"==typeof e.explicitColumn?e.explicitColumn:r,o=k(e,i,c),a=r===w.length-1;return uI.createElement(uI.Fragment,{key:e.cId},uI.createElement(n,{popover:C,titleData:o,model:c,translator:y,selections:p,disabled:t(),style:this.style,isDimension:l,padding:f,minWidth:u,hasAlternative:O}),!a&&uI.createElement("span",null,", "))}));return uI.createElement("div",{style:b,dir:v},A)}}}const zG=x_({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:'"QlikView Sans", "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 FG=w_({productionPrefix:"qb272",disableGlobal:!0,seed:""});function BG(){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",WY.render(function(e,t){return uI.createElement(Mj,{generateClassName:t},uI.createElement(Yj,{theme:zG},e))}(e,FG),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&WY.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(WY.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function VG(){return function(e){e.renderer("react",BG()),e.component("data-title",jG()),e.component("disclaimer",function(){class e extends uI.Component{render(){const{label:e,spanStyle:t}=this.props;return uI.createElement(uI.Fragment,null,uI.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:hI.string.isRequired,spanStyle:hI.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r}}=this.settings,i="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",o=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px"};switch(e){case"left":n.width=t.height+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left";break;case"right":n.width=t.height+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left";break;case"center":n.width=t.width+"px",n.height=t.height+"px",n.color="#595959",n.fontStyle="normal",n.fontSize="1.2em",n.textAlign="center";break;default:case"top":case"bottom":n.justifyContent="flex-start",n.alignItems="flex-start"}return n}(r,this.rect),a="center"===r?t:"* "+t,s="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return uI.createElement("div",{style:o,dir:i},uI.createElement(uI.Fragment,null,uI.createElement(e,{label:a,spanStyle:s})))}}}())}}function HG(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:HG(i,t,n)},i}function $G(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),HG(i,a,l,e.invert)}))}const UG={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",u=r,c=i,f=t<.5?90:-90;return o&&(s="y",l="x",u=i,c=r,f=t<.5?180:0),a(d({},e,{[s]:n*u,[l]:c-Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:f}))}};function WG({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,u=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,u=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let c=0;s?s.bandwidth?(c=s.bandwidth(),l-=c/2):c=u-l:c=1;const f=d({},{major:l,majorEnd:u},r.minor.items[e]);i.forEach((t=>{f[t]=r[t].items[e]}));const h=o?n:t,p=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:c,width:f[a].width,minWidthPx:f[a].minWidthPx,maxWidthPx:f[a].maxWidthPx,maxMajorWidth:h}),m=(c-p)/2,y=m+f.major+p/2;return{item:f,boxCenter:y,boxWidth:p,boxPadding:m,rendWidth:t,rendHeight:n}}function YG({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=d(!0,{},n||{},r||{}),u={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},c=i.major;let f;f="object"==typeof c&&"object"==typeof c.ref&&void 0!==c.ref.start&&void 0!==c.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof c&&void 0!==c.binStart&&void 0!==c.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:u,defaults:{major:.5},settings:{major:i.major}});const h=i.minor||{};let p;const m={major:f,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{start:{scale:h.scale,ref:"start"},end:{scale:h.scale,ref:"end"},min:{scale:h.scale,ref:"min"},max:{scale:h.scale,ref:"max"},med:{scale:h.scale,ref:"med"}},h)})};for(let n=0,r=e.length;n<r;n++)p=e[n],m[p]=s.resolve({data:t,defaults:l[p],settings:i[p],scaled:u});return m}const XG=["oob"];const GG={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=YG({keys:XG,data:i,defaultSettings:{oob:UG.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:u,items:c}=l;return function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=WG}){const l=[],{items:u}=r.major;for(let c=0,d=u.length;c<d;c++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:c,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=u[c].data,y=[];if(d.oob.show){y.push(UG.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:h,rendHeight:p,flipXY:n,symbol:o}));const e={type:"container",data:m,collider:{type:"bounds"},children:y};l.push(e)}}return l}({items:c,settings:u,width:e,height:t,flipXY:r,resolved:l,keys:XG,symbol:s,dockValue:n})}},KG={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},JG=["hat"];function ZG(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 QG({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,u=i,c=e.hat.alignment||0;o&&(a="y",s="x",l=i,u=r,c=1-c);const f=(n+e.major)*l;let h=[{[a]:f,[s]:0+u},{[a]:f+t*c*l,[s]:8},{[a]:f+t*l,[s]:0+u},{[a]:f+t*l,[s]:0+u+10},{[a]:f,[s]:0+u+10}];const p=d({},e.hat,{type:"path",d:ZG(h)});h=[{[a]:f,[s]:0},{[a]:f+t*(1-c)*l,[s]:0+u-8},{[a]:f+t*l,[s]:0},{[a]:f+t*l,[s]:-10},{[a]:f,[s]:-10}];return[p,d({},e.hat,{type:"path",d:ZG(h)})]}const eK={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=YG({keys:JG,data:r,defaultSettings:KG,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a;return function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=WG}){const a=[],{items:s}=r.major;for(let l=0,u=s.length;l<u;l++){const{item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),p=s[l].data,m=[];u.hat.show&&m.push(...QG({item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const y={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(y)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:JG})}};var tK="unclassified",nK="equal-equal",rK="equal-higher",iK="equal-lower",oK="equal-void",aK="higher-equal",sK="higher-higher-acute",lK="higher-higher-obtuse",uK="higher-lower-negative",cK="higher-lower-positive",dK="higher-void",fK="lower-equal",hK="lower-higher-negative",pK="lower-higher-positive",mK="lower-lower-acute",yK="lower-lower-obtuse",gK="lower-void",vK="void-equal",bK="void-higher",xK="void-lower",MK="void-void";function SK(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function wK(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),i=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),o=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((i*i+r*r-o*o)/(2*i*r))*(180/Math.PI)}function EK({previous:e,current:t,next:n}){const r=e&&e.value,i=t&&t.value,o=n&&n.value;return e||n?e?n?r===i?i===o?nK:i<o?rK:iK:i===o?r>i?aK:fK:r>i?i<o?wK(e,t,n)>90?lK:sK:SK(e,t)>SK(e,n)?cK:uK:i>o?wK(e,t,n)>90?yK:mK:SK(e,t)>SK(e,n)?pK:hK:r===i?oK:r>i?dK:gK:i===o?vK:i<o?bK:xK:MK}function kK({bounds:e,size:t}){const{x:n,y:r,width:i,height:o}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+i/2)>=0&&Math.ceil(n+i/2)<=t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height:Math.floor(n+i)>0&&Math.ceil(n)<t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height}const CK=1,OK=0;function TK({node:e,line:t,groupIndex:n,extract:r,style:i,measureText:o,size:a,horizontal:s,rtl:l,meta:u,showLabel:c}){const d=r.label(e.data);if("string"!=typeof d&&"number"!=typeof d||""===d)return!1;const f=o({fontFamily:i.fontFamily,fontSize:i.fontSize,text:d}),{localBounds:h}=e,{"stroke-width":p}=e.attrs,m=r.pointValue(e.data),y={x:h.x+h.width/2,y:h.y+h.height/2,width:f.width+2*CK,height:f.height+2*OK},g=`${y.x}-${y.y}`,v=!s&&!l,b=s?a.height:a.width,x=(s?y.y:y.x)/b,M=(v?1-x:x)<=(b<=200?.25:.1),S={key:g,node:e,line:t,group:n,value:m,labelMeasurements:f,bounds:y,inside:kK({bounds:h,size:a}),border:p?p/2:0,classification:tK,setClassification(e){S.classification=e},preferences:[],setPreferences(e){S.preferences.push(...e)},placement:void 0,setPlacement(e){S.placement=e},duplicate:!1,setDuplicate(){S.duplicate=!0},extreme:u.getExtreme(g),minority:u.getMinority(g),elite:M,show:c(e)};return S}function AK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=function({nodes:e,size:t,horizontal:n}){const r={top:[],right:[],bottom:[],left:[]},i=n?t.height:t.width,o=n?"y":"x",a=[...[.2,.4,.6,.8,1].map((e=>({threshold:e*i,count:0,distribution:0})))],s={},l=e.map((t=>{const{localBounds:n}=t,r={x:n.x+n.width/2,y:n.y+n.height/2},i=`${r.x}-${r.y}`;for(let t=0;t<a.length;t++){const n=a[t];if(r[o]<n.threshold||t===a.length-1){n.count++,n.distribution=n.count/e.length,s[i]=t;break}}return{key:i,center:r}})),u=l.reduce(((e,t)=>((!e.top||t.center.y<e.top.center.y)&&(e.top=t),(!e.right||t.center.x>e.right.center.x)&&(e.right=t),(!e.bottom||t.center.y>e.bottom.center.y)&&(e.bottom=t),(!e.left||t.center.x<e.left.center.x)&&(e.left=t),e)),{});return r.top=l.filter((e=>e.center.y===u.top.center.y)).map((e=>e.key)),r.right=l.filter((e=>e.center.x===u.right.center.x)).map((e=>e.key)),r.bottom=l.filter((e=>e.center.y===u.bottom.center.y)).map((e=>e.key)),r.left=l.filter((e=>e.center.x===u.left.center.x)).map((e=>e.key)),{getExtrema:e=>({top:-1!==r.top.indexOf(e),right:-1!==r.right.indexOf(e),bottom:-1!==r.bottom.indexOf(e),left:-1!==r.left.indexOf(e)}),getExtreme:e=>{const{top:t,right:n,bottom:i,left:o}=r;return[t,n,i,o].some((t=>-1!==t.indexOf(e)))},getMinority:e=>a[s[e]].distribution<1}}({nodes:e,size:i,horizontal:o});return function({nodes:e,by:t,lineIndex:n}){const r=e.reduce(((e,r,i)=>{const o=t(r.data);return e[o]||(e[o]={items:[],index:i}),e[o].items.push({node:r,line:r.data[n].value}),e}),{});return Object.keys(r).map((e=>r[e])).sort(((e,t)=>e.index-t.index)).map((e=>e.items))}({nodes:e,by:t.majorValue,lineIndex:t.lineIndex}).map(((e,u)=>e.map((e=>({line:e.line,item:TK({node:e.node,line:e.line,groupIndex:u,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,meta:l,showLabel:s})}))).filter((e=>e.item)).reduce(((e,t)=>(e[t.line]=t.item,e)),{}))).filter((e=>Object.keys(e).length))}var NK={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},qK={[nK]:[NK.TOP,NK.BOTTOM],[rK]:[NK.BOTTOM,NK.BOTTOM_RIGHT],[iK]:[NK.TOP,NK.TOP_RIGHT],[oK]:[NK.TOP,NK.BOTTOM],[aK]:[NK.LEFT,NK.BOTTOM_LEFT,NK.TOP,NK.TOP_RIGHT],[sK]:[NK.BOTTOM,NK.BOTTOM_LEFT,NK.LEFT,NK.TOP_RIGHT],[lK]:[NK.BOTTOM,NK.TOP],[uK]:[NK.TOP,NK.TOP_RIGHT,NK.RIGHT],[cK]:[NK.BOTTOM,NK.BOTTOM_LEFT,NK.LEFT],[dK]:[NK.TOP],[fK]:[NK.TOP],[hK]:[NK.TOP,NK.TOP_LEFT],[pK]:[NK.BOTTOM_RIGHT],[mK]:[NK.TOP,NK.TOP_LEFT,NK.LEFT,NK.TOP_RIGHT,NK.RIGHT],[yK]:[NK.TOP,NK.BOTTOM],[gK]:[NK.TOP],[vK]:[NK.TOP],[bK]:[NK.TOP,NK.BOTTOM],[xK]:[NK.TOP,NK.BOTTOM,NK.LEFT],[MK]:[NK.TOP]};function DK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=AK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}),u=[...l.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],c=u.reduce(((e,t)=>(e[t.line]||(e[t.line]=0),e[t.line]++,e)),{}),d=Math.max(...Object.keys(c).map((e=>c[e]))),f=l.map((e=>Object.keys(e).map((t=>e[t])))),h={getItems:()=>u,getMaxLineDensity:()=>d,getLocalLines({index:e,reach:t}){const{lines:n}=function({groups:e,index:t,reach:n}){const r={};for(let i=t-n;i<=t+n;i++){const t=e[i];if(t)for(let e=0;e<t.length;e++){const n=t[e],{line:i}=n;r[i]||(r[i]=[]),r[i].push(n.bounds)}}const i=Object.keys(r).map((e=>r[e])),o=[];for(let e=0;e<i.length;e++)for(let t=0;t<i[e].length-1;t++){const n=i[e][t],r=i[e][t+1],a={x1:n.x,y1:n.y,x2:r.x,y2:r.y};o.push(a)}return{lines:o}}({groups:f,index:e,reach:t});return n}};return function({groups:e}){for(let t=0;t<e.length;t++){const n=Object.keys(e[t]).map((n=>e[t][n]));for(let r=0;r<n.length;r++){const i=n[r],o=EK({previous:e[t-1]&&e[t-1][i.line],current:i,next:e[t+1]&&e[t+1][i.line]});i.setClassification(o)}}}({groups:l}),h.getItems().forEach((e=>e.setPreferences(qK[e.classification]))),h}function RK({item:e,placement:t,size:n}){return t.x>=0-n.edgeBleed.left&&t.x<=n.width-e.bounds.width+n.edgeBleed.right&&t.y>=0-n.edgeBleed.top&&t.y<=n.height-e.bounds.height}function IK({line1:e,line2:t}){const n=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(0===n)return!1;const r=((t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1))/n,i=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&i>=0&&i<=1}function _K({candidate:e,lines:t,rects:n}){return!!t.some((t=>function({line:e,rect:t}){const n={x:t.x,y:t.y},r={x:t.x+t.width,y:t.y},i={x:t.x+t.width,y:t.y+t.height},o={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:i.x,y2:i.y},s={x1:i.x,y1:i.y,x2:o.x,y2:o.y},l={x1:o.x,y1:o.y,x2:n.x,y2:n.y};return IK({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||IK({line1:e,line2:a})||IK({line1:e,line2:s})||IK({line1:e,line2:l})}({line:t,rect:e})))||n.some((t=>function({rect1:e,rect2:t}){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)}({rect1:t,rect2:e})))}const PK={x:0,width:0,y:0,height:0};const LK=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),jK=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),zK=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),FK=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),BK=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),VK=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),HK=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),$K=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var UK=2.5,WK=4;const YK=[NK.TOP,NK.TOP_LEFT,NK.TOP_RIGHT],XK=[NK.BOTTOM,NK.BOTTOM_LEFT,NK.BOTTOM_RIGHT];function GK({position:e}){const t={x:UK,width:-2*UK,y:0,height:0},n=YK.indexOf(e)>-1,r=XK.indexOf(e)>-1;return n&&(t.y=WK,t.height=-WK),r&&(t.height=-WK),t}function KK({cx:e,cy:t,r:n,degrees:r}){const i=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(i)),y:Math.round(t+n*-Math.cos(i))}}function JK({coordinates:e,degrees:t,item:n}){const r={x:e.x,y:e.y};return t<=90?r.y-=n.bounds.height:t>180&&t<=270?r.x-=n.bounds.width:t>270&&(r.y-=n.bounds.height,r.x-=n.bounds.width),r}function ZK({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),i=e.bounds.x,o=e.bounds.y;for(let a=0;a<r.length;a++){const s=r[a];for(let r=40;r<=180;r+=15){const a=JK({coordinates:KK({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}for(let r=320;r>180;r-=15){const a=JK({coordinates:KK({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const QK=void 0;function eJ({item:e,validator:t,force:n=!1}){const r=[...e.preferences,...Object.keys(NK).map((e=>NK[e])).filter((t=>-1===e.preferences.indexOf(t)))],i={[NK.TOP]:LK,[NK.TOP_RIGHT]:jK,[NK.RIGHT]:zK,[NK.BOTTOM_RIGHT]:FK,[NK.BOTTOM]:BK,[NK.BOTTOM_LEFT]:VK,[NK.LEFT]:HK,[NK.TOP_LEFT]:$K},o=[];for(let a=0;a<r.length;a++){const s=r[a],l=i[s]({item:e}),u=GK({position:s}),c=t({item:e,placement:l,adjustment:u,ignoreLines:n});if(n&&c.inside&&o.push(l),c.valid)return l}const a=()=>ZK({item:e,validator:t,force:n});if(n){const e=a();return e||(o[0]||QK)}return(e.extreme||e.elite)&&a()||QK}function tJ({model:e,itemSize:t,connect:n,size:r,all:i}){const o={},a=function({model:e}){const{length:t}=e.getItems();return t>1e3}({model:e}),s=function({model:e,itemSize:t,connect:n,size:r}){const i=e.getItems(),o=Math.max(...i.map((e=>e.labelMeasurements.width))),a=t||r.width/i.length,s=Math.ceil(o/a)+1;return n?Math.max(s,e.getMaxLineDensity()):s}({model:e,itemSize:t,connect:n,size:r}),l=e.getItems(),u=[...l.map((e=>({x:e.node.localBounds.x-e.border+1,y:e.node.localBounds.y-e.border+1,height:e.node.localBounds.height+2*e.border-2,width:e.node.localBounds.width+2*e.border-2})))],c=[];l.forEach((t=>{const{data:n}=t.node;if(!t.show||!t.inside||n.null&&n.null.value||n.interpolated&&n.interpolated.value)return;if(a&&!t.minority)return;const{key:l}=t;if(o[l])return void t.setDuplicate();o[l]=!0;const d=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=PK,ignoreLines:a=!1}){const s={inside:RK({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=_K({candidate:{x:i.x+o.x,y:i.y+o.y,width:r.bounds.width+o.width,height:r.bounds.height+o.height},lines:a?[]:t,rects:n}),s.valid=s.inside&&!s.collides,s):s}}({size:r,lines:e.getLocalLines({index:t.group,reach:s}),placements:u}),f=eJ({item:t,validator:d});f?(f.height=t.bounds.height,f.width=t.bounds.width,u.push(f),t.setPlacement(f)):i&&c.push({item:t,validator:d})})),c.forEach((e=>{const{item:t,validator:n}=e,r=eJ({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,u.push(r),t.setPlacement(r))}))}var nJ={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,itemSize:()=>{},connect:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},target:{labelSpace:"label-space-component",point:"point-component",allPoints:[]},lineIndex:"line",insideStrategy:"edge"},style:{fontFamily:"QlikView Sans, sans-serif",fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},t=this.chart.component(this.settings.settings.target.labelSpace);if(!t||!t.rect)return e;const{orientation:n,rtl:r}=this.settings.settings,i="horizontal"===n;if(t.show(r)){const{size:n}=t.settings.settings;e.edgeBleed.top=i?n:0,e.edgeBleed[r?"left":"right"]=i?0:n}return e},render(){if(!this.chart.component(this.settings.settings.target.point))return[];const e=this.settings.settings.target.allPoints.length?e=>this.settings.settings.target.allPoints.includes(e.key):e=>e.key===this.settings.settings.target.point,t=this.chart.findShapes("circle").filter(e);if(!t.length)return[];const{settings:n}=this.settings,r={label:n.label,pointValue:n.pointValue,majorValue:n.majorValue,lineIndex:n.lineIndex},{height:i,width:o,edgeBleed:a}=this.rect,s={height:i,width:o,edgeBleed:a,insideStrategy:n.insideStrategy},{style:l}=this,u=DK({nodes:t,extract:r,style:l,measureText:this.renderer.measureText,size:s,horizontal:"horizontal"===n.orientation,rtl:n.rtl,showLabel:n.showLabel});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:u}),tJ({model:u,itemSize:n.itemSize(),connect:n.connect,size:s,all:n.all}),u.getItems().filter((e=>e.placement&&e.node.key===this.settings.settings.target.point)).map((e=>({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2,fontSize:l.fontSize,fontFamily:l.fontFamily,fill:l.fill,text:r.label(e.node.data),baseline:"central",anchor:"middle"})))}},rJ={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var iJ={require:["resolver","symbol"],defaultSettings:{settings:{type:"max",primaryExtremum:()=>{},secondaryExtremum:()=>{},primarySeries:[],secondarySeries:[],orientation:"horizontal",rtl:!1,major:{scale:"major-scale"},markerOffset:1,size:10},style:{fill:"#999"}},preferredSize(){return this.settings.settings.size},render(){const{items:e=[]}=this.data;if(!e.length)return[];const{type:t,orientation:n,rtl:r,markerOffset:i,size:o,major:a,primarySeries:s,secondarySeries:l}=this.settings.settings,u=this.settings.settings.primaryExtremum(),c=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==u,f=l.length&&void 0!==c;if(!d&&!f)return[];const h=s.map((e=>e.ref)),p=l.map((e=>e.ref)),m=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:i=[],primarySeries:o=[],secondarySeries:a=[]}){const s=[];return[...o,...a].forEach((o=>{const a=o.isPrimary?t:n,l=o.isPrimary?r:i;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const i="max"===e?e=>e>t:e=>e<t,o=n?e=>i(e.point.value<0?e.start.value:e.end.value):e=>i(e.end.value);return r.filter(o)})({type:e,extremum:a,items:l}))})),(({items:e})=>{const t=[],n=[];return e.forEach((e=>{const{value:r}=e.major;t[r]||(t[r]=!0,n.push(e))})),n})({items:s.reduce(((e,t)=>e.concat(t)),[])})}({type:t,primaryExtremum:u,secondaryExtremum:c,primaryItems:e.filter((e=>h.includes(e.end.source.field))),secondaryItems:e.filter((e=>p.includes(e.end.source.field))),primarySeries:s,secondarySeries:l});if(!m.length)return[];const y="horizontal"===n,g=this.rect[y?"width":"height"],v=this.resolver.resolve({data:{items:m},settings:{major:a},scaled:{major:g}}),b=("max"===t?90:-90)-(y?0:90)-(!y&&r?180:0),x=o/2*i,{fill:M}=this.settings.style;return v.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:i,y:o,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:i,y:o,data:a})}({symbol:this.symbol,size:o,fill:M,startAngle:b,x:y?g*e.major:x,y:y?x:g*e.major,data:e.data})))}};function oJ({x:e,y:t,size:n,stroke:r,strokeWidth:i,fill:o}){return{type:"container",children:[{type:"line",stroke:r||o,strokeWidth:i,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:o,cx:e,cy:t,r:.25*n}]}}function aJ({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))];return e.findShapes("path").filter((e=>r.some((t=>t===e.key)))).reduce(((e,n)=>((t.primary.some((e=>e.key===n.key))?e.primary:e.secondary).paths.push(n),e)),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function sJ({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function lJ({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(Vo.SCALE.MAJOR),i=r&&r.max&&r.max(),o="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===i?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&o(e,t.max)))}}function uJ({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:i,chart:o}){const a=e.brushes();if(!a.length)return[];const s=a[0],{minorRange:l,legendRange:u,legendTap:c}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let f=[u?e=>e.color.value:r[d]].filter(Boolean);if(i&&l&&f.push((e=>e.color.value)),!i&&c&&(f=[e=>e.color.value]),!f.length)return[];const h=function({brush:e,chart:t}){return("value"===e.type?sJ:lJ)({brush:e,chart:t})}({brush:s,chart:o});return h?n.reduce(((e,t,n)=>(f.some((e=>h({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function cJ({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Vo.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a),u=l-s,c=0===u?1:u,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e)))||i,offset:Math.min(1,Math.max(0,(e-s)/c))}))),f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function dJ({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Vo.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a)-s,u=0===l?1:l,c=o.domain(),d=[];for(let e=0;e<c.length-1;e++){const t=c[e],n=o(t)||i;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/u))});const r=c[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/u))})}const f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function fJ({property:e,chart:t,connection:n,attrs:r,colorSettings:i,colorByData:o,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:u,orientation:c,rtl:d}){const f=r[e];if("gradient"!==f.type)return f;const{type:h,nil:p}=i;if(s||!o)return function({chart:e,selected:t,connection:n,gradient:r,fallback:i,orientation:o,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:u}){const c=e.scale(Vo.SCALE.MAJOR),d=e.scale(Vo.SCALE.COLOR),f=s?e=>c([e,0])+c.bandwidth()*l/2:e=>c(e),h=t.filter((e=>-1!==n.indexOf(e.index))),p=("vertical"===o&&u?h.reverse():h).map((e=>e.item)),m=p.map((e=>f(e.major.value))),y=Math.min(...m),g=Math.max(...m)-y,v=0===g?1:g,b=m.map(((e,t)=>0===t?0:t===m.length-1?1:(e-y)/v)),x=[];for(let e=0;e<p.length;e++){const t=p[e],n=a?t.color.value:d(t.color.value)||i,r=b[e];x.push({color:n,offset:0===e?0:Math.max(0,x[x.length-1].offset)}),x.push({color:n,offset:e===p.length-1?1:Math.max(0,parseFloat((r+(b[e+1]-r)/2).toFixed(5)))})}return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:x}}({chart:t,selected:a,connection:n,gradient:f,fallback:p,orientation:c,isColorCode:"color"===h,groupedByMeasure:l,itemsPerGroup:u,rtl:d});return("continuous"===h?cJ:dJ)({chart:t,selected:a,connection:n,gradient:f,fallback:p})}function hJ({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,lineKey:l,primary:u,selected:c,connections:d,rtl:f,count:h}){const p=t.getLine(l,u),{attrs:m}=p,y=function({d:e}){return e.replace("Z","").split(/(?=[LMC])/).map((e=>{const t=e.substring(0,1),n={letter:t,x:0,y:0,raw:e},r=e.substring(1).split(",");return"M"===t||"L"===t?([n.x]=r,[,n.y]=r):"C"===t&&([,,,,n.x]=r,[,,,,,n.y]=r),n}))}({d:m.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,selected:s,connection:l,commands:u,attrs:c,rtl:d,count:f}){return{path:l.map(((e,t)=>{const n=u[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join(""),attrs:c,stroke:fJ({property:"stroke",chart:e,connection:l,attrs:c,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,rtl:d,count:f})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,selected:c,connection:t,commands:y,attrs:m,rtl:f,count:h})))}function pJ({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:i,items:o,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:u,groupedByMeasure:c,itemsPerGroup:d,orientation:f,rtl:h}){const p=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const i=n.typeIndex.value;var o;return e[i]||(e[i]={key:i,items:[],index:r,measureIx:null===(o=n.colorMeasureIdx)||void 0===o?void 0:o.value,primary:t.primary.some((e=>e.typeIndex===i))}),e[i].items.push(n),e}),{});return Object.keys(n).map((e=>n[e])).sort(((e,t)=>e.index-t.index)).map((e=>({lineKey:e.key,items:e.items,primary:e.primary,measureIx:e.measureIx})))}({items:function({items:e,selectionInfo:t,seriesInfo:n}){return e.filter((e=>{if("NaN"===e.end.value||Number.isNaN(e.end.value))return!1;const{minorRange:r,minorRangePrimary:i}=t;return!r||(i?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:o,selectionInfo:i,seriesInfo:n}),seriesInfo:n}),{lines:m}=p.reduce(((n,o)=>{const p=uJ({brush:r,selectionInfo:i,items:o.items,selectionValues:a,colorByData:l,chart:e});if(p.length<2)return n;const m=function({selected:e}){return e.reduce(((e,t)=>{const{index:n}=t;if(e.length){const t=e[e.length-1];n===t[t.length-1]+1?t.push(n):e.push([n])}else e.push([n]);return e}),[]).filter((e=>e.length>1))}({selected:p});return m.length?(n.lines.push(...hJ({chart:e,pathModel:t,colorSettings:s(o.measureIx),colorByData:l(o.measureIx),hasMultipleMeasures:u,groupedByMeasure:c,itemsPerGroup:d,orientation:f,lineKey:o.lineKey,primary:o.primary,selected:p,connections:m,rtl:h,count:o.items.length})),n):n}),{lines:[]}),y=[];return m.forEach((e=>y.push({type:"path",d:e.path,stroke:e.stroke,strokeLinejoin:e.attrs["stroke-linejoin"],strokeWidth:e.attrs["stroke-width"],strokeDasharray:e.attrs["stroke-dasharray"],fill:"none"}))),y}var mJ={require:["chart","renderer"],defaultSettings:{settings:{seriesInfo:{primary:[],secondary:[]},selectionValues:{},colorSettings:void 0,colorByData:!1,isColorCode:!1,hasMultipleMeasures:!1,groupedByMeasure:!1,itemsPerGroup:1,orientation:"vertical",rtl:!1}},addListener(e,t){this.state.brush.addListener(e,t),this.state.listeners.push({type:e,fn:t})},removeListeners(){this.state.listeners.forEach((e=>this.state.brush.removeListener(e.type,e.fn))),this.state.listeners.length=0},created(){this.state={pathModel:aJ({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),brush:this.chart.brush("selection"),listeners:[],selectionInfo:{minorRange:!1,minorRangePrimary:!1,legendRange:!1,legendTap:!1}}},mounted(){this.addListener("update",(()=>{this.state.selectionInfo=this.settings.settings.getSelectionInfo();const e=pJ({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl});this.renderer.render(e)})),this.addListener("end",(()=>{this.renderer.render([])}))},render(){this.state.pathModel=aJ({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return pJ({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl})},destroyed(){this.removeListeners()}};const yJ=()=>{const e=cq();return e.use(lR),e.use(function(e){if("function"!=typeof e.interaction)return function(t){t.interaction("hammer",dR(e))};e.interaction("hammer",dR(Hammer))}(vm)),e.use($G),e.use(VG()),e.component("scrollbar",Xa),e.component("point-label",nJ),e.component("label-space",rJ),e.component("time-axis",$p.picassoComponents.timeAxis),e.component("axis-overlay",$p.picassoComponents.axisOverlay),e.component("reference-line-labels",Do),e.component("box-sliced-hat",eK),e.component("box-out-of-bounds",GG),e.component("data-out-of-bounds-marker",iJ),e.component("scroll-hint",Ii),e.component("brush-highlighter",mJ),e.scale("time",$p.picassoScales.time),e.symbol("line-point",oJ),e},gJ="QlikView Sans, sans-serif";var vJ=[["object.comboChart","","fontFamily"],["object.comboChart","outOfRange","color","#999"],["object.comboChart","axis.title","color"],["object.comboChart","axis.title","fontSize","13px"],["object.comboChart","axis.title","fontFamily",gJ],["object.comboChart","axis.label.name","color","#595959"],["object.comboChart","axis.label.name","fontSize","12px"],["object.comboChart","axis.label.name","fontFamily",gJ],["object.comboChart","axis.line.major","color","#cccccc"],["object.comboChart","axis.line.minor","color","#e6e6e6"],["object.comboChart","label.value","fontFamily",gJ],["object.comboChart","label.value","fontSize","12px"],["object.comboChart","label.value","numFontSize","12px",e=>parseInt(e,10)],["object.comboChart","label.value","color","#595959"],[!1,"label.value","lightColor","#E6E6E6"],[!1,"label.value","darkColor","#595959"]];const bJ={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},xJ=e=>void 0===e.marker?bJ.circle:bJ[e.marker],MJ=e=>void 0===e.markerFill||e.markerFill;function SJ({series:e,layoutService:t}){switch(wh(e)){case Ho.MARKER:return(e=>({marker:xJ(e),fill:MJ(e)}))(e);case Ho.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);default:return{}}}function wJ(e=Uo,t){return t?e.axis===$o.PRIMARY:e.axis===$o.PRIMARY||wh(e)===Ho.BAR}var EJ={exports:{}};var kJ={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var CJ="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=kJ,r=CJ,i=(t=e.exports={}).re=[],o=t.src=[],a=t.t={};let s=0;const l=(e,t,n)=>{const l=s++;r(l,t),a[e]=l,o[l]=t,i[l]=new RegExp(t,n?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),l("FULL",`^${o[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),l("LOOSE",`^${o[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",o[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",o[a.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),l("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",o[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(EJ,EJ.exports);const OJ=["includePrerelease","loose","rtl"];var TJ=e=>e?"object"!=typeof e?{loose:!0}:OJ.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};const AJ=/^[0-9]+$/,NJ=(e,t)=>{const n=AJ.test(e),r=AJ.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var qJ={compareIdentifiers:NJ,rcompareIdentifiers:(e,t)=>NJ(t,e)};const DJ=CJ,{MAX_LENGTH:RJ,MAX_SAFE_INTEGER:IJ}=kJ,{re:_J,t:PJ}=EJ.exports,LJ=TJ,{compareIdentifiers:jJ}=qJ;class zJ{constructor(e,t){if(t=LJ(t),e instanceof zJ){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>RJ)throw new TypeError(`version is longer than ${RJ} characters`);DJ("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?_J[PJ.LOOSE]:_J[PJ.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>IJ||this.major<0)throw new TypeError("Invalid major version");if(this.minor>IJ||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>IJ||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<IJ)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(DJ("SemVer.compare",this.version,this.options,e),!(e instanceof zJ)){if("string"==typeof e&&e===this.version)return 0;e=new zJ(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof zJ||(e=new zJ(e,this.options)),jJ(this.major,e.major)||jJ(this.minor,e.minor)||jJ(this.patch,e.patch)}comparePre(e){if(e instanceof zJ||(e=new zJ(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],r=e.prerelease[t];if(DJ("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return jJ(n,r)}while(++t)}compareBuild(e){e instanceof zJ||(e=new zJ(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(DJ("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return jJ(n,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}var FJ=zJ;const{MAX_LENGTH:BJ}=kJ,{re:VJ,t:HJ}=EJ.exports,$J=FJ,UJ=TJ;var WJ=(e,t)=>{if(t=UJ(t),e instanceof $J)return e;if("string"!=typeof e)return null;if(e.length>BJ)return null;if(!(t.loose?VJ[HJ.LOOSE]:VJ[HJ.FULL]).test(e))return null;try{return new $J(e,t)}catch(e){return null}};const YJ=WJ;var XJ=(e,t)=>{const n=YJ(e,t);return n?n.version:null};const GJ=WJ;var KJ=(e,t)=>{const n=GJ(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const JJ=FJ;var ZJ=(e,t,n,r)=>{"string"==typeof n&&(r=n,n=void 0);try{return new JJ(e,n).inc(t,r).version}catch(e){return null}};const QJ=FJ;var eZ=(e,t,n)=>new QJ(e,n).compare(new QJ(t,n));const tZ=eZ;var nZ=(e,t,n)=>0===tZ(e,t,n);const rZ=WJ,iZ=nZ;var oZ=(e,t)=>{if(iZ(e,t))return null;{const n=rZ(e),r=rZ(t),i=n.prerelease.length||r.prerelease.length,o=i?"pre":"",a=i?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==r[e])return o+e;return a}};const aZ=FJ;var sZ=(e,t)=>new aZ(e,t).major;const lZ=FJ;var uZ=(e,t)=>new lZ(e,t).minor;const cZ=FJ;var dZ=(e,t)=>new cZ(e,t).patch;const fZ=WJ;var hZ=(e,t)=>{const n=fZ(e,t);return n&&n.prerelease.length?n.prerelease:null};const pZ=eZ;var mZ=(e,t,n)=>pZ(t,e,n);const yZ=eZ;var gZ=(e,t)=>yZ(e,t,!0);const vZ=FJ;var bZ=(e,t,n)=>{const r=new vZ(e,n),i=new vZ(t,n);return r.compare(i)||r.compareBuild(i)};const xZ=bZ;var MZ=(e,t)=>e.sort(((e,n)=>xZ(e,n,t)));const SZ=bZ;var wZ=(e,t)=>e.sort(((e,n)=>SZ(n,e,t)));const EZ=eZ;var kZ=(e,t,n)=>EZ(e,t,n)>0;const CZ=eZ;var OZ=(e,t,n)=>CZ(e,t,n)<0;const TZ=eZ;var AZ=(e,t,n)=>0!==TZ(e,t,n);const NZ=eZ;var qZ=(e,t,n)=>NZ(e,t,n)>=0;const DZ=eZ;var RZ=(e,t,n)=>DZ(e,t,n)<=0;const IZ=nZ,_Z=AZ,PZ=kZ,LZ=qZ,jZ=OZ,zZ=RZ;var FZ=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return IZ(e,n,r);case"!=":return _Z(e,n,r);case">":return PZ(e,n,r);case">=":return LZ(e,n,r);case"<":return jZ(e,n,r);case"<=":return zZ(e,n,r);default:throw new TypeError("Invalid operator: "+t)}};const BZ=FJ,VZ=WJ,{re:HZ,t:$Z}=EJ.exports;var UZ=(e,t)=>{if(e instanceof BZ)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=HZ[$Z.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),HZ[$Z.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;HZ[$Z.COERCERTL].lastIndex=-1}else n=e.match(HZ[$Z.COERCE]);return null===n?null:VZ(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)},WZ=YZ;function YZ(e){var t=this;if(t instanceof YZ||(t=new YZ),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function XZ(e,t,n){var r=t===e.head?new JZ(n,null,t,e):new JZ(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function GZ(e,t){e.tail=new JZ(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function KZ(e,t){e.head=new JZ(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function JZ(e,t,n,r){if(!(this instanceof JZ))return new JZ(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}YZ.Node=JZ,YZ.create=YZ,YZ.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},YZ.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},YZ.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},YZ.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)GZ(this,arguments[e]);return this.length},YZ.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)KZ(this,arguments[e]);return this.length},YZ.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},YZ.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},YZ.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},YZ.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},YZ.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},YZ.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},YZ.prototype.map=function(e,t){t=t||this;for(var n=new YZ,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},YZ.prototype.mapReverse=function(e,t){t=t||this;for(var n=new YZ,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},YZ.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},YZ.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},YZ.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},YZ.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},YZ.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new YZ;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;for(;null!==i&&r<t;r++,i=i.next)n.push(i.value);return n},YZ.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new YZ;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;null!==i&&r>t;r--)i=i.prev;for(;null!==i&&r>e;r--,i=i.prev)n.push(i.value);return n},YZ.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;var o=[];for(r=0;i&&r<t;r++)o.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(r=0;r<n.length;r++)i=XZ(this,i,n[r]);return o},YZ.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{require("./iterator.js")(YZ)}catch(jd){}const ZZ=WZ,QZ=Symbol("max"),eQ=Symbol("length"),tQ=Symbol("lengthCalculator"),nQ=Symbol("allowStale"),rQ=Symbol("maxAge"),iQ=Symbol("dispose"),oQ=Symbol("noDisposeOnSet"),aQ=Symbol("lruList"),sQ=Symbol("cache"),lQ=Symbol("updateAgeOnGet"),uQ=()=>1;const cQ=(e,t,n)=>{const r=e[sQ].get(t);if(r){const t=r.value;if(dQ(e,t)){if(hQ(e,r),!e[nQ])return}else n&&(e[lQ]&&(r.value.now=Date.now()),e[aQ].unshiftNode(r));return t.value}},dQ=(e,t)=>{if(!t||!t.maxAge&&!e[rQ])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[rQ]&&n>e[rQ]},fQ=e=>{if(e[eQ]>e[QZ])for(let t=e[aQ].tail;e[eQ]>e[QZ]&&null!==t;){const n=t.prev;hQ(e,t),t=n}},hQ=(e,t)=>{if(t){const n=t.value;e[iQ]&&e[iQ](n.key,n.value),e[eQ]-=n.length,e[sQ].delete(n.key),e[aQ].removeNode(t)}};class pQ{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const mQ=(e,t,n,r)=>{let i=n.value;dQ(e,i)&&(hQ(e,n),e[nQ]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var yQ=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[QZ]=e.max||1/0;const t=e.length||uQ;if(this[tQ]="function"!=typeof t?uQ:t,this[nQ]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[rQ]=e.maxAge||0,this[iQ]=e.dispose,this[oQ]=e.noDisposeOnSet||!1,this[lQ]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[QZ]=e||1/0,fQ(this)}get max(){return this[QZ]}set allowStale(e){this[nQ]=!!e}get allowStale(){return this[nQ]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[rQ]=e,fQ(this)}get maxAge(){return this[rQ]}set lengthCalculator(e){"function"!=typeof e&&(e=uQ),e!==this[tQ]&&(this[tQ]=e,this[eQ]=0,this[aQ].forEach((e=>{e.length=this[tQ](e.value,e.key),this[eQ]+=e.length}))),fQ(this)}get lengthCalculator(){return this[tQ]}get length(){return this[eQ]}get itemCount(){return this[aQ].length}rforEach(e,t){t=t||this;for(let n=this[aQ].tail;null!==n;){const r=n.prev;mQ(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[aQ].head;null!==n;){const r=n.next;mQ(this,e,n,t),n=r}}keys(){return this[aQ].toArray().map((e=>e.key))}values(){return this[aQ].toArray().map((e=>e.value))}reset(){this[iQ]&&this[aQ]&&this[aQ].length&&this[aQ].forEach((e=>this[iQ](e.key,e.value))),this[sQ]=new Map,this[aQ]=new ZZ,this[eQ]=0}dump(){return this[aQ].map((e=>!dQ(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[aQ]}set(e,t,n){if((n=n||this[rQ])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,i=this[tQ](t,e);if(this[sQ].has(e)){if(i>this[QZ])return hQ(this,this[sQ].get(e)),!1;const o=this[sQ].get(e).value;return this[iQ]&&(this[oQ]||this[iQ](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[eQ]+=i-o.length,o.length=i,this.get(e),fQ(this),!0}const o=new pQ(e,t,i,r,n);return o.length>this[QZ]?(this[iQ]&&this[iQ](e,t),!1):(this[eQ]+=o.length,this[aQ].unshift(o),this[sQ].set(e,this[aQ].head),fQ(this),!0)}has(e){if(!this[sQ].has(e))return!1;const t=this[sQ].get(e).value;return!dQ(this,t)}get(e){return cQ(this,e,!0)}peek(e){return cQ(this,e,!1)}pop(){const e=this[aQ].tail;return e?(hQ(this,e),e.value):null}del(e){hQ(this,this[sQ].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[sQ].forEach(((e,t)=>cQ(this,t,!1)))}};class gQ{constructor(e,t){if(t=xQ(t),e instanceof gQ)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new gQ(e.raw,t);if(e instanceof MQ)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!AQ(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&NQ(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=bQ.get(t);if(n)return n;const r=this.options.loose,i=r?EQ[kQ.HYPHENRANGELOOSE]:EQ[kQ.HYPHENRANGE];e=e.replace(i,VQ(this.options.includePrerelease)),SQ("hyphen replace",e),e=e.replace(EQ[kQ.COMPARATORTRIM],CQ),SQ("comparator trim",e,EQ[kQ.COMPARATORTRIM]),e=(e=(e=e.replace(EQ[kQ.TILDETRIM],OQ)).replace(EQ[kQ.CARETTRIM],TQ)).split(/\s+/).join(" ");const o=r?EQ[kQ.COMPARATORLOOSE]:EQ[kQ.COMPARATOR],a=e.split(" ").map((e=>DQ(e,this.options))).join(" ").split(/\s+/).map((e=>BQ(e,this.options))).filter(this.options.loose?e=>!!e.match(o):()=>!0).map((e=>new MQ(e,this.options)));a.length;const s=new Map;for(const e of a){if(AQ(e))return[e];s.set(e.value,e)}s.size>1&&s.has("")&&s.delete("");const l=[...s.values()];return bQ.set(t,l),l}intersects(e,t){if(!(e instanceof gQ))throw new TypeError("a Range is required");return this.set.some((n=>qQ(n,t)&&e.set.some((e=>qQ(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new wQ(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(HQ(this.set[t],e,this.options))return!0;return!1}}var vQ=gQ;const bQ=new yQ({max:1e3}),xQ=TJ,MQ=WQ,SQ=CJ,wQ=FJ,{re:EQ,t:kQ,comparatorTrimReplace:CQ,tildeTrimReplace:OQ,caretTrimReplace:TQ}=EJ.exports,AQ=e=>"<0.0.0-0"===e.value,NQ=e=>""===e.value,qQ=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},DQ=(e,t)=>(SQ("comp",e,t),e=PQ(e,t),SQ("caret",e),e=IQ(e,t),SQ("tildes",e),e=jQ(e,t),SQ("xrange",e),e=FQ(e,t),SQ("stars",e),e),RQ=e=>!e||"x"===e.toLowerCase()||"*"===e,IQ=(e,t)=>e.trim().split(/\s+/).map((e=>_Q(e,t))).join(" "),_Q=(e,t)=>{const n=t.loose?EQ[kQ.TILDELOOSE]:EQ[kQ.TILDE];return e.replace(n,((t,n,r,i,o)=>{let a;return SQ("tilde",e,t,n,r,i,o),RQ(n)?a="":RQ(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:RQ(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(SQ("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,SQ("tilde return",a),a}))},PQ=(e,t)=>e.trim().split(/\s+/).map((e=>LQ(e,t))).join(" "),LQ=(e,t)=>{SQ("caret",e,t);const n=t.loose?EQ[kQ.CARETLOOSE]:EQ[kQ.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,a)=>{let s;return SQ("caret",e,t,n,i,o,a),RQ(n)?s="":RQ(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:RQ(o)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(SQ("replaceCaret pr",a),s="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(SQ("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),SQ("caret return",s),s}))},jQ=(e,t)=>(SQ("replaceXRanges",e,t),e.split(/\s+/).map((e=>zQ(e,t))).join(" ")),zQ=(e,t)=>{e=e.trim();const n=t.loose?EQ[kQ.XRANGELOOSE]:EQ[kQ.XRANGE];return e.replace(n,((n,r,i,o,a,s)=>{SQ("xRange",e,n,r,i,o,a,s);const l=RQ(i),u=l||RQ(o),c=u||RQ(a),d=c;return"="===r&&d&&(r=""),s=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(s="-0"),n=`${r+i}.${o}.${a}${s}`):u?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:c&&(n=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),SQ("xRange return",n),n}))},FQ=(e,t)=>(SQ("replaceStars",e,t),e.trim().replace(EQ[kQ.STAR],"")),BQ=(e,t)=>(SQ("replaceGTE0",e,t),e.trim().replace(EQ[t.includePrerelease?kQ.GTE0PRE:kQ.GTE0],"")),VQ=e=>(t,n,r,i,o,a,s,l,u,c,d,f,h)=>`${n=RQ(r)?"":RQ(i)?`>=${r}.0.0${e?"-0":""}`:RQ(o)?`>=${r}.${i}.0${e?"-0":""}`:a?">="+n:`>=${n}${e?"-0":""}`} ${l=RQ(u)?"":RQ(c)?`<${+u+1}.0.0-0`:RQ(d)?`<${u}.${+c+1}.0-0`:f?`<=${u}.${c}.${d}-${f}`:e?`<${u}.${c}.${+d+1}-0`:"<="+l}`.trim(),HQ=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(SQ(e[n].semver),e[n].semver!==MQ.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0},$Q=Symbol("SemVer ANY");class UQ{static get ANY(){return $Q}constructor(e,t){if(t=YQ(t),e instanceof UQ){if(e.loose===!!t.loose)return e;e=e.value}JQ("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===$Q?this.value="":this.value=this.operator+this.semver.version,JQ("comp",this)}parse(e){const t=this.options.loose?XQ[GQ.COMPARATORLOOSE]:XQ[GQ.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new ZQ(n[2],this.options.loose):this.semver=$Q}toString(){return this.value}test(e){if(JQ("Comparator.test",e,this.options.loose),this.semver===$Q||e===$Q)return!0;if("string"==typeof e)try{e=new ZQ(e,this.options)}catch(e){return!1}return KQ(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof UQ))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new QQ(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new QQ(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=KQ(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=KQ(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||r||i&&o||a||s}}var WQ=UQ;const YQ=TJ,{re:XQ,t:GQ}=EJ.exports,KQ=FZ,JQ=CJ,ZQ=FJ,QQ=vQ,e0=vQ;var t0=(e,t,n)=>{try{t=new e0(t,n)}catch(e){return!1}return t.test(e)};const n0=vQ;var r0=(e,t)=>new n0(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const i0=FJ,o0=vQ;var a0=(e,t,n)=>{let r=null,i=null,o=null;try{o=new o0(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new i0(r,n)))})),r};const s0=FJ,l0=vQ;var u0=(e,t,n)=>{let r=null,i=null,o=null;try{o=new l0(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new s0(r,n)))})),r};const c0=FJ,d0=vQ,f0=kZ;var h0=(e,t)=>{e=new d0(e,t);let n=new c0("0.0.0");if(e.test(n))return n;if(n=new c0("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let i=null;r.forEach((e=>{const t=new c0(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!f0(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})),!i||n&&!f0(n,i)||(n=i)}return n&&e.test(n)?n:null};const p0=vQ;var m0=(e,t)=>{try{return new p0(e,t).range||"*"}catch(e){return null}};const y0=FJ,g0=WQ,{ANY:v0}=g0,b0=vQ,x0=t0,M0=kZ,S0=OZ,w0=RZ,E0=qZ;var k0=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new y0(e,r),t=new b0(t,r),n){case">":i=M0,o=w0,a=S0,s=">",l=">=";break;case"<":i=S0,o=E0,a=M0,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(x0(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const u=t.set[n];let c=null,d=null;if(u.forEach((e=>{e.semver===v0&&(e=new g0(">=0.0.0")),c=c||e,d=d||e,i(e.semver,c.semver,r)?c=e:a(e.semver,d.semver,r)&&(d=e)})),c.operator===s||c.operator===l)return!1;if((!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const C0=k0;var O0=(e,t,n)=>C0(e,t,">",n);const T0=k0;var A0=(e,t,n)=>T0(e,t,"<",n);const N0=vQ;var q0=(e,t,n)=>(e=new N0(e,n),t=new N0(t,n),e.intersects(t));const D0=t0,R0=eZ;const I0=vQ,_0=WQ,{ANY:P0}=_0,L0=t0,j0=eZ,z0=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===P0){if(1===t.length&&t[0].semver===P0)return!0;e=n.includePrerelease?[new _0(">=0.0.0-0")]:[new _0(">=0.0.0")]}if(1===t.length&&t[0].semver===P0){if(n.includePrerelease)return!0;t=[new _0(">=0.0.0")]}const r=new Set;let i,o,a,s,l,u,c;for(const t of e)">"===t.operator||">="===t.operator?i=F0(i,t,n):"<"===t.operator||"<="===t.operator?o=B0(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=j0(i.semver,o.semver,n),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of r){if(i&&!L0(e,String(i),n))return null;if(o&&!L0(e,String(o),n))return null;for(const r of t)if(!L0(e,String(r),n))return!1;return!0}let d=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver,f=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;d&&1===d.prerelease.length&&"<"===o.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(c=c||">"===e.operator||">="===e.operator,u=u||"<"===e.operator||"<="===e.operator,i)if(f&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===f.major&&e.semver.minor===f.minor&&e.semver.patch===f.patch&&(f=!1),">"===e.operator||">="===e.operator){if(s=F0(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!L0(i.semver,String(e),n))return!1;if(o)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=B0(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!L0(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&u&&!o&&0!==a)&&(!(o&&c&&!i&&0!==a)&&(!f&&!d))},F0=(e,t,n)=>{if(!e)return t;const r=j0(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},B0=(e,t,n)=>{if(!e)return t;const r=j0(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var V0=(e,t,n={})=>{if(e===t)return!0;e=new I0(e,n),t=new I0(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=z0(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const H0=EJ.exports;var $0={re:H0.re,src:H0.src,tokens:H0.t,SEMVER_SPEC_VERSION:kJ.SEMVER_SPEC_VERSION,SemVer:FJ,compareIdentifiers:qJ.compareIdentifiers,rcompareIdentifiers:qJ.rcompareIdentifiers,parse:WJ,valid:XJ,clean:KJ,inc:ZJ,diff:oZ,major:sZ,minor:uZ,patch:dZ,prerelease:hZ,compare:eZ,rcompare:mZ,compareLoose:gZ,compareBuild:bZ,sort:MZ,rsort:wZ,gt:kZ,lt:OZ,eq:nZ,neq:AZ,gte:qZ,lte:RZ,cmp:FZ,coerce:UZ,Comparator:WQ,Range:vQ,satisfies:t0,toComparators:r0,maxSatisfying:a0,minSatisfying:u0,minVersion:h0,validRange:m0,outside:k0,gtr:O0,ltr:A0,intersects:q0,simplifyRange:(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>R0(e,t,n)));for(const e of a){D0(e,t,n)?(o=e,i||(i=e)):(o&&r.push([i,o]),o=null,i=null)}i&&r.push([i,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push("<="+t):s.push(`${e} - ${t}`):s.push(">="+e):s.push("*");const l=s.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return l.length<u.length?l:t},subset:V0},U0="0.23.1";const W0=e=>!e||$0.lt($0.coerce(e),$0.coerce(U0)),Y0=({layoutService:e,flags:t})=>{const n=t.isEnabled("BARS_IN_SECONDARY_AXIS")&&!W0(e.getLayoutValue("version")),r=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[Ho.BAR]:0,[Ho.LINE]:0,[Ho.MARKER]:0};return({series:r=Uo},i)=>{const o=wJ(r,t),a=wh(r);return{id:i,type:a,typeIndex:n[a]++,ref:"qMeasureInfo/"+i,refIndex:i,isPrimary:o,scale:o?Vo.SCALE.MINOR.PRIMARY:Vo.SCALE.MINOR.SECONDARY,collection:o?Vo.COLLECTION.PRIMARY:Vo.COLLECTION.SECONDARY,options:SJ({series:r,layoutService:e})}}})(e,n)),i=(e,t)=>e.filter((e=>wh(e)===t)).length,o=r.filter((e=>e.isPrimary)),a=r.filter((e=>!e.isPrimary)),s=[!!o.length&&o[0],!!a.length&&a[0]].filter((e=>!!e)),l=i(r,Ho.BAR),u=i(o,Ho.BAR),c=i(a,Ho.BAR),d=e=>r.filter((t=>wh(t)===e)),f=d(Ho.LINE).map((e=>Es(Vo.COMPONENT.POINT,e))),h=d(Ho.MARKER).map((e=>({key:Es(Vo.COMPONENT.MARKER,e),type:e.options.marker}))),p=h.map((e=>e.key)),m=[];u>0&&m.push(`${Vo.COMPONENT.BAR}-${$o.PRIMARY}`),c>0&&m.push(`${Vo.COMPONENT.BAR}-${$o.SECONDARY}`);const y=[...m,...f,...p],{MINI_CHART:g}=Vo.COMPONENT,v=d(Ho.LINE).map((e=>Es(g.LINE,e))),b=d(Ho.MARKER).map((e=>Es(g.MARKER,e))),x=e.meta.isContinuous?[`${g.BAR}-${$o.PRIMARY}`,`${g.BAR}-${$o.SECONDARY}`,...v,...b]:[];return{meta:{allSeries:r,primarySeries:o,secondarySeries:a,barSeriesCount:l,primaryBarSeriesCount:u,secondaryBarSeriesCount:c,measureAxes:s,pointComponentKeys:f,markerComponentKeys:p,barComponentKeys:m,seriesComponentKeys:y,miniComponentKeys:x,markers:h},query:{all:()=>r,seriesByAxis:e=>e?o:a,series:d,isPrimary:wJ}}};function X0(e){return function({layout:t}){var n,r,i;const o=Uu(t,"qHyperCube.qMeasureInfo",[]),a=o.some((({series:e=Uo})=>wh(e)===Ho.LINE)),s=k.continuous(t,(()=>a&&x.isTime(!0,t))),l=e.isEnabled("BARS_IN_SECONDARY_AXIS")&&!W0(Uu(t,"version","")),u=o.filter((({series:e=Uo})=>wh(e)===Ho.BAR)),c=u.length,d=u.filter((e=>e.series.axis===$o.PRIMARY)).length,f=u.filter((e=>e.series.axis===$o.SECONDARY)).length,h=l?d>1||f>1:c>1,p=("grouped"!==Uu(t,"barGrouping.grouping")||s)&&h,m=!p&&c>1,y=l&&p&&(d>0&&f>1||d>1&&f>0),g=!(null==t||null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r||null===(i=r[0])||void 0===i||!i.qLocked);return{canBeContinuous:x.canBeContinuous(t),isDiscrete:!s,isContinuous:s,isTime:x.isTime(s,t),isSnapshot:k.snapshot(t),isBarSeriesStacked:p,isBarSeriesGrouped:m,isBarSeriesStackedInBothAxis:y,isGrouped:m||y,isGroupedByMeasure:m||y,isDimensionLocked:g,groupSize:y?2:c,hasLineSeries:a}}}function G0({layoutService:e}){const{dimensionCount:t,measureCount:n}=e.meta;return{qTop:0,qLeft:0,qWidth:t+n,qHeight:Math.min(2e3,1e4/(n+1))}}function K0({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(O).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize")}}}))}(e,t,{path:"/qHyperCubeDef",rect:G0({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function J0({genericObjectModel:e,layoutService:t}){const{isSnapshot:n,isContinuous:r}=t.meta;return n?function({layoutService:e}){return function(){return Promise.resolve({reducedCube:e.getLayoutValue("reducedHyperCube")||e.getHyperCube()})}}({layoutService:t}):r?function({layoutService:e}){return function(){const t=e.getHyperCube();return Promise.resolve({reducedCube:{...t,qDataPages:[...t.qDataPages]}})}}({layoutService:t}):K0({genericObjectModel:e,layoutService:t})}const Z0=e=>"number"==typeof e&&!Number.isNaN(e);function Q0({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),i=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),o=i.filter((e=>wh(e.series)===Ho.BAR)),a=i.filter((e=>wh(e.series)===Ho.LINE)),s=i.filter((e=>wh(e.series)===Ho.MARKER));return{min:Math.min(...i.filter((e=>Z0(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>Z0(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>Z0(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>Z0(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>Z0(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>Z0(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>Z0(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>Z0(e.qMax))).map((e=>e.qMax)))}}}}function e1({isPrimary:e,layoutService:t,seriesModel:n}){const r=Q0({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(Ho.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:i}=n,o={min:NaN,max:NaN};return i.forEach((e=>{let t=0,n=0;e.slice(1).filter(((e,t)=>r.some((e=>e===t))&&"NaN"!==e.qNum)).forEach((e=>{e.qNum>=0?n+=e.qNum:t+=e.qNum})),o.min=Number.isNaN(o.min)?t:Math.min(t,o.min),o.max=Number.isNaN(o.max)?n:Math.max(n,o.max)})),o}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=i({dataPage:e}),t.min=Math.min(t.bar.min,t.line.min,t.marker.min),t.max=Math.max(t.bar.max,t.line.max,t.marker.max),t}}function t1({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:i}){const o={min:NaN,max:NaN,implicit:{min:NaN,max:NaN,bar:{min:NaN,max:NaN},line:{min:NaN,max:NaN},marker:{min:NaN,max:NaN}},explicit:{min:NaN,max:NaN},meta:{hasExplicit:!1,hasExplicitMin:!1,hasExplicitMax:!1,includesZero:!1}},a=function({isPrimary:e,layoutService:t,seriesModel:n}){const{isBarSeriesStacked:r}=t.meta;return r?e1({isPrimary:e,layoutService:t,seriesModel:n}):Q0({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:i});return{query:{getExtrema:()=>o},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,i=r("measureAxes."+(e?0:1),{});if(i.autoMinMax)return n;const{minMax:o,min:a,max:s}=i;return"min"!==o&&"minMax"!==o||(n.min=a),"max"!==o&&"minMax"!==o||(n.max=s),Number.isNaN(n.min)||Number.isNaN(n.max)||(n.min=Math.min(a,s),n.max=Math.max(a,s)),n}({isPrimary:e,layoutService:n});return o.explicit.min=s,o.explicit.max=l,o.meta.hasExplicitMin=!Number.isNaN(s),o.meta.hasExplicitMax=!Number.isNaN(l),o.meta.hasExplicit=o.meta.hasExplicitMin||o.meta.hasExplicitMax,function({continuousModel:e,layoutService:t,reducedModel:n}){const{isDiscrete:r}=t.meta;if(r){const e=n.query.getCube();return Promise.resolve({dataPage:e.qDataPages[0]})}return e.fetchMinMaxData().then((e=>({dataPage:e[0]})))}({continuousModel:t,layoutService:n,reducedModel:r}).then((({dataPage:t})=>{const{min:n,max:r,bar:s,line:l,marker:u}=a({dataPage:t}),c=i.query.seriesByAxis(e).some((e=>wh(e)===Ho.BAR)),d=c?Math.min(n,0):n,f=c?Math.max(r,0):r,h=c?Math.min(s.min,0):s.min,p=c?Math.max(s.max,0):s.max,m=c?Math.min(l.min,0):l.min,y=c?Math.max(l.max,0):l.max,g=c?Math.min(u.min,0):u.min,v=c?Math.max(u.max,0):u.max;o.implicit.min=Number.isFinite(d)?d:0,o.implicit.max=Number.isFinite(f)?f:0,o.implicit.bar.min=Number.isFinite(h)?h:0,o.implicit.bar.max=Number.isFinite(p)?p:0,o.implicit.line.min=Number.isFinite(m)?m:0,o.implicit.line.max=Number.isFinite(y)?y:0,o.implicit.marker.min=Number.isFinite(g)?g:0,o.implicit.marker.max=Number.isFinite(v)?v:0,o.min=Number.isNaN(o.explicit.min)?o.implicit.min:o.explicit.min,o.max=Number.isNaN(o.explicit.max)?o.implicit.max:o.explicit.max,o.meta.hasExplicitMin&&!o.meta.hasExplicitMax&&(o.max=Math.max(o.min,o.max)),o.meta.hasExplicitMax&&!o.meta.hasExplicitMin&&(o.min=Math.min(o.min,o.max)),o.meta.includesZero=!!((0-o.min)*(0-o.max)<=0)}))}}}}function n1({extrema:e,ticks:t}){const n=e.meta.hasExplicit?2:3;return t.filter((t=>(t=>!e.meta.hasExplicitMin||t>=e.explicit.min)(t)&&(t=>!e.meta.hasExplicitMax||t<=e.explicit.max)(t))).length>=n}function r1({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=In().domain([e,t]);return r.nice(n),r}(e,t,n),a=function({min:e,max:t,threshold:n,scale:r,disable:i}){const o={start:!0,stop:!0};if(i)return o;const[a,s]=r.domain();return 0!==e&&0!==a&&(o.start=r(e)>n),0!==t&&0!==s&&(o.stop=r(t)<1-n),o}({min:e,max:t,threshold:r,scale:o,disable:i});if(!a.start||!a.stop){const[e,t]=o.domain(),r=o.ticks(n),i=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;o.domain([a.start?e:e-i,a.stop?t:t+s]),o.nice(n)}return o}const i1=50,o1=100,a1=200,s1=125;function l1({config:{measureAxesRef:e},layoutService:t,size:n}){const r=(e=>{switch(e){case.5:return i1;case 1:return o1;case 2:return a1;default:return e*s1}})(t.getLayoutValue(e+".spacing",1));return Math.max(1,Math.round(n/r))}function u1({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:o,min:a,max:s}){const l=l1({config:e,layoutService:n,size:o}),u=r1({min:a,max:s,count:l,threshold:.05,disable:!0}),c=u.domain(),d={roundedMin:c[0],roundedMax:c[1],ticks:u.ticks(l)},f="horizontal"===r.meta.major.orientation?"height":"width",h=e=>i(e)[f],p=t.formatter(e.formatter),m=()=>{const e=d.ticks.map(p);return!e.some(((t,n)=>e.indexOf(t)!==n))&&(e=>{const t=o/d.ticks.length;return Math.max(...e.map(h))<=t})(e)};for(let e=l-1;e>0&&!m();e--)u.domain([a,s]),u.nice(e),[d.roundedMin,d.roundedMax]=u.domain(),d.ticks=u.ticks(e);return d}function c1({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function d1({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}function f1({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=r1({min:r,max:i,count:10,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(10),l=function({ticks:e}){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),u=l?c1:d1;o.ticks=s.filter(((e,t,n)=>u({tick:e,index:t,ticks:n})));o.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(o.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const c=t.formatter(e.formatter),d=o.ticks.map(c);return d.some(((e,t)=>d.indexOf(e)!==t))&&(o.ticks=[o.ticks[0],o.ticks[o.ticks.length-1]]),o}function h1({ticks:e,extrema:t}){let n=[...e];return t.meta.hasExplicit&&e.length?(t.meta.hasExplicitMin&&!e.some((e=>e===t.explicit.min))&&(n.unshift(t.explicit.min),n=n.filter((e=>e>=t.explicit.min))),t.meta.hasExplicitMax&&!e.some((e=>e===t.explicit.max))&&(n.push(t.explicit.max),n=n.filter((e=>e<=t.explicit.max))),n):n}function p1({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){const{ticks:u,roundedMin:c,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){if("SPARK"===r.meta.chart.mode)return function({min:e,max:t}){return{roundedMin:e,roundedMax:t,ticks:[]}}({min:s,max:l});const u=u1({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return n1({extrema:i,ticks:u.ticks})?u:f1({config:e,chart:t,extrema:i,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}),f=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}({ticks:u,count:1});return{min:c,max:d,values:[...h1({ticks:u,extrema:i}).map((e=>({value:e,isMinor:!1}))),...f.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value))}}function m1({config:e,chart:t,layoutService:n,dockService:r,measureText:i,extrema:o,size:a}){const{min:s,max:l}=function({extrema:e}){const{min:t,max:n}=e;return t!==n?{min:t,max:n}:0===t||1===t?{min:t-1,max:n+1}:{min:t-.2*t*Math.sign(t),max:n+.2*n*Math.sign(n)}}({extrema:o});return p1({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function y1({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,u=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:i,seriesModel:o,themeService:a}){const{measureText:s}=cq.renderer("svg")();return()=>{const l=a.getStyles(),u=function({dockService:e,seriesModel:t,chart:n}){var r;const i=n.component(t.meta.seriesComponentKeys[0]),o=null!==(r=null==i?void 0:i.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?o.height:o.width}({chart:e,dockService:n,seriesModel:o}),c=r.query.getExtrema();return m1({config:t,chart:e,layoutService:i,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:c,size:u})}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}),c=()=>(s.locked&&s.resolved||(s.resolved=u()),s.resolved);return{query:{getValues:()=>c().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:c().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:c().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function g1({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return k.snapshot(e)?Promise.resolve(null):t.getEffectiveProperties().then((e=>({properties:e})))}({layout:t.getLayout(),model:e}).then((e=>{const{properties:t}=null!=e?e:{};n.properties=t}))}}}function v1({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:i,fieldType:o}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===i?"measure"===o?()=>({type:Ho.BAR}):()=>t.query.all()[0]:e=>t.query.all()[e.value];return{item:{shape:{type:({datum:e})=>{const{type:t,options:n}=s(e);switch(t){case"line":return a;case"marker":return n.marker;default:return"square"}},stroke:{},strokeWidth:({datum:e})=>{const{type:t,options:n}=s(e);return t===Ho.LINE?2:t!==Ho.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==Ho.MARKER||r.fill?t(e.value):"none"}}}}}}function b1({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function x1({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:i,flags:o,genericObjectModel:a,layoutService:s,picasso:l,seriesModel:u,viewState:c}){let d;const{theme:f,translator:h}=i,p={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=Iu({picasso:l,model:a,app:n,translator:h,layoutService:s,createConfig:()=>{let e;o.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&(e=s.getHyperCubeValue("qMeasureInfo").map((e=>e.color)));return{theme:f,colorProps:{measureOverrides:e},legendProps:s.getLayoutValue("legend"),hc:s.getHyperCube(),key:Vo.SCALE.COLOR}},config:{auto:b1,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>p.wrappedScales,legendComponents:()=>p.legendComponents,legendInteractions:()=>p.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:o}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:i,colorService:o,actions:a}){const{options:s}=i,l={eventName:"legend-c",key:Vo.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",rtl:"rtl"===s.direction,settings:v1({layoutService:n,seriesModel:r,colorService:o})},{components:u,interactions:c}=o.getLegend(l,{actions:a,navigationDisabled:!a.interact.enabled()}),d=o.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=d[Vo.SCALE.COLOR+"Range"];return!r||"right"!==n&&"left"!==n||(r.invert=!0),"legend-cat"===e.type&&(e.settings.item.shape.fill.scale=e.scale,e.settings.item.shape.stroke.scale=e.scale),e})),interactions:c,scales:d}}({viewState:c,chart:r,environment:i,colorService:d,seriesModel:u,layoutService:s,actions:e});p.wrappedScales=o,p.legendComponents=t,p.legendInteractions=n}}}),d}const M1="REJECTED",S1=()=>{},w1=1e4,E1=2,k1=20,C1=200,O1=10;var T1={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),u=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),c={qArea:{qHeight:s-a,qWidth:u-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)c.qMatrix.push(e.qMatrix[t].slice(l,u));return c},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-O1<=t.qTop,i=n.qLeft+n.qWidth+O1>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+O1>=t.qTop+t.qHeight,a=n.qLeft-O1<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var A1={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-O1<=t.qTop,i=n.qTop+n.qHeight+O1>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({layoutService:e,definitionPath:t}){const n=e.getLayoutValue("dimensionAxis.axisDisplayMode","auto");return e=>{const r={method:"getHyperCubeStackData",args:[t,[e]]};return"auto"===n&&r.args.push(600),r}}};var N1={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const q1="pages";const D1="discretePan";function R1({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:D1,pointers:1,threshold:10,enable(r,i){return this.started===D1||!i||!!t.scroll.enabled()&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{discretePanstart(e){e.preventDefault(),this.started=D1;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},discretePanmove(e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},discretePanend(e){e.preventDefault(),this.started=!1},discretePancancel(e){e.preventDefault(),this.started=!1}}}}function I1({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=100*Math.sign(-a);r.scroll(s)}}function _1({layoutService:e,areaBuffer:t}){const n=void 0===t?function({layoutService:e}){const t=Math.floor(w1/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(C1,n));return{width:e,height:Math.max(k1,Math.min(n*E1,r))}}}({layoutService:e}):function({layoutService:e}){const t=Math.floor(w1/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){return{width:e,height:Math.min(t,n)}}}({layoutService:e}),r={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:t,height:i}=n({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=t?Math.ceil((t-e.qWidth)/2):0;return{qHeight:i?Math.min(i,r.height):e.qHeight,qWidth:t?Math.min(t,r.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,r.height-i)):e.qTop,qLeft:t?Math.max(0,Math.min(e.qLeft-a,r.width-t)):e.qLeft}}}function P1(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject(M1),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(M1),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(M1),n=null)},i}const L1={command:{update:()=>{}}};function j1({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=L1,definitionPath:o,areaBuffer:a,processDataPage:s}){const{slicer:l,cacheWarden:u,request:c}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:u}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&u&&u();const c=r(l);return o(i(c)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:l,warden:u({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:_1({layoutService:r,areaBuffer:a}),request:c({layoutService:r,definitionPath:o}),process:P1(n),connectionless:r.meta.isSnapshot,processDataPage:s}),f=Gu(((e,{onProcessing:t,onData:n})=>{d(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==M1)throw e}))}),50);return function(e,{onProcessing:t=S1,onDataPage:n=S1}={}){f(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var z1={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var F1={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function B1(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function V1(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function H1(e){return V1(e.qMatrix,(e=>e[0].qElemNumber))-1}var $1={inTotal:function({layoutService:e}){const t=B1(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=B1(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=B1(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=H1(o),u=o.qArea.qHeight*i+l,c=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[c,n.inView>=n.inTotal?c+1:c+u/n.inView]}};const U1=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function W1(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return U1(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n})(t.qMatrix,n);return r.successful?r.count:U1(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return U1(e,n);return V1(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var Y1={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=W1(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:u}=n,c=W1(t).area(e(),l,a.qArea),d=H1(a),f=a.qArea.qHeight+d,h=u===o?(r.inView-f)*s/i:(u+(a.qArea.qTop+c)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function X1({rect:e,dockService:t,itemWidths:n,dimensionAxis:r,inTotal:i,isMajorVisible:o,isMajorLabelless:a,maxDataRows:s}){const{DEFAULT:l,SQUEEZE:u,LABELLESS:c}=n[t.meta.chart.mode],{axisDisplayMode:d="auto",maxVisibleItems:f=10}=r,h="horizontal"===t.meta.major.orientation?e.width:e.height,p=h/i>=u;switch(d){case"max":return Math.min(i,s);case"custom":return Math.min(f,s);case"auto":default:return!o||a?h/c:p?i:h/l}}function G1({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,areaBuffer:s,rtl:l}){const{inTotal:u,area:c,scaleRange:d}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?z1:n?r?$1:Y1:F1}({layoutService:r}),f=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,h=e=>e?f()/e:0,p=(e,t)=>-(e-t)*h(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),s=u({layoutService:r}),l=e.component(a),c=!a||!l||l.isVisible();return{inTotal:s,inView:X1({rect:t(),dockService:i,itemWidths:o(),dimensionAxis:n,inTotal:s,isMajorVisible:c,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(w1/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return h(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,p(n,r)));return{pixel:i,item:r?Math.abs(r*i/f()):0}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return p(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,o+e/i]}({viewSize:f(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>c({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:s}),getScaleRange({offsets:e,items:t}){const o=d({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:f(),upperBound:p(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&l?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=p(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*h(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(h(r)*n)}}}}function K1({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:u,areaBuffer:c,viewState:d,rtl:f}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const h=G1({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:u,areaBuffer:c,rtl:f}),p=()=>{const e=h.getItems();return n.set("items",e),e},m=({pixelOffset:e,items:t})=>{const r=h.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=p(),a=m({pixelOffset:e,items:r}),s=h.getArea({itemOffset:a.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((h.validate.offset({pixelOffset:e,items:r})||d.get("scrollOffset")!==a.item)&&(n.set("finished",t),n.set("scaleRange",h.getScaleRange({offsets:a,items:r})),d.preventSet("viewRange",h.getViewRange({pixelOffset:a.pixel,items:r})),d.set("scrollOffset",a.item)));d.preventSet("viewRange",h.getViewRange({pixelOffset:a.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",h.getScaleRange({offsets:a,items:r})),d.set("scrollOffset",a.item))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=p();n.set("itemSize",h.getItemSize({items:a}));const u=void 0===d.get("scrollOffset")?(({items:e})=>1===o.getLayoutValue("scrollStartPos")?h.getUpperBound({items:e}):0)({items:a}):h.convert.itemToPixelOffset({itemOffset:d.get("scrollOffset"),items:a}),c=m({pixelOffset:u,items:a});d.preventSet("viewRange",h.getViewRange({pixelOffset:c.pixel,items:a}));const f=h.getArea({itemOffset:c.item,items:a});return new Promise((e=>{i(f,{onDataPage:()=>{n.set("scaleRange",h.getScaleRange({offsets:c,items:a})),d.preventSet("scrollOffset",c.item),e()}})}))},scroll(e){const t=n.get("offsets").pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=h.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function J1({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:u,options:{definitionPath:c="/qHyperCubeDef",getRect:d,axisKey:f,areaBuffer:h,processDataPage:p=(()=>{})}={}}){const m=Yu(),y=function({qMode:e}){switch(e){case"S":default:return T1;case"K":return A1;case"T":return N1}}({qMode:i.getHyperCubeValue("qMode")}),g=function({state:e,contains:t}){return e.set(q1,[]),{add:t=>{const n=e.get(q1);n.length=0,n.push(t)},getCurrent:()=>e.get(q1)[0],getAll:()=>e.get(q1),contains:n=>t(e.get(q1)[0],n)}}({state:m,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:g,composition:y});const v=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:h}),b=j1({dataStore:g,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:c,areaBuffer:v,processDataPage:p}),x=K1({chart:e,componentKey:n,state:m,dataStore:g,pageData:b,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,areaBuffer:v,viewState:l,rtl:u}),M=function({layoutService:e,dataStore:t}){return function(n){const r=Uu(n,""+e.refs.dataPages);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:g});return{interactions:function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[R1({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:I1({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:u,scroller:x}),query:{getCanScroll:()=>x.enabled(),getItemSize:()=>x.itemSize(),getScaleRange:()=>x.scaleRange(),getCurrentDataPage:()=>g.getCurrent()},command:{initialize:()=>x.initialize(),scrollTo:e=>x.scrollToRelative(e),setSnapshotData:e=>M(e)}}}var Z1={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}};function Q1({appLayoutModel:e,appModel:t,chart:n,environment:r,flags:i,genericObjectModel:o,layout:a,picasso:s}){const{translator:l,embed:u}=r,c=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:ia,miniChartToken:{},embed:s}}({layout:a,app:t,model:o,picasso:s,chart:n,translator:l,localeInfo:e.qLocaleInfo,embed:u});return{query:{useCustomTooltip:()=>c.useCustomTooltip,useTooltipChart:()=>{var e,t,n,r;return i.isEnabled("CUSTOM_TOOLTIP_CHART")&&(null===(e=a.tooltip)||void 0===e||null===(t=e.chart)||void 0===t||null===(n=t.object)||void 0===n?void 0:n.refId)&&c.embed&&"function"==typeof(null===(r=c.model)||void 0===r?void 0:r.getEffectiveProperties)},hasChartLimitation:()=>{var e;return null==t||null===(e=t.isInModalSelection)||void 0===e?void 0:e.call(t)},getCustomTooltipModel:()=>c}}}function e2({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:r,defaultValue:i,index:o})=>{const a=n&&Object.hasOwnProperty.call(n,r)?n[r]:i;if(void 0===o)return a;const{style:s}=e.getHyperCubeValue((e=>`qMeasureInfo.${e}.styling`)(o),[]).filter((e=>e.key===t))[0]||{};return s&&Object.hasOwnProperty.call(s,r)?s[r]:a}}function t2({layoutService:e,dockService:t}){const{BAR:n,LINE:r,POINT:i}=Is,o=e2({layoutService:e,key:"bar"}),a=e2({layoutService:e,key:"line"}),s=()=>{const e=o({property:"strokeWidth",defaultValue:"none"});return e?n.STROKE.WIDTH[e.toUpperCase()]:0};return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>o({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!s(),getStrokeWidth:()=>s(),getStrokeColor:()=>o({property:"strokeColor",defaultValue:{index:-1,color:n.STROKE.COLOR}}).color},line:{getCurveFn:()=>(e,t)=>a({property:"lineCurve",defaultValue:r.CURVE.LINEAR,index:t}),getStrokeWidthFn:()=>(e,n)=>a({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?r.WIDTH.FULL.DEFAULT:r.WIDTH.LESS.DEFAULT,index:n}),getStrokeDasharrayFn:()=>(e,t)=>{const n=a({property:"lineType",defaultValue:r.TYPE.SOLID,index:t});return n&&r.TYPE[n.toUpperCase()]}},point:{getSize:e=>a({property:"dataPointSize",defaultValue:i.SIZE.DEFAULT,index:e})}}}}const{model:n2}=$p,r2=({picasso:t,chart:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,selectionService:l})=>{const u=e.useStaleLayout(),{width:c,height:d}=e.useRect(),[f,h]=e.useState(),[p,m]=e.useState(),y=e.useModel(),g=e.useApp(),v=e.useAppLayout(),b=e.usePlugins();e.useEffect((()=>{if(!(u&&null!=n&&n.update&&r&&o))return;const e=function(e){var t=e.source,n=e.metaAdditionsFn,r=xl(!0,{},t),i=Ju(r),o=function(){return function(e){var t=e.layout,n=e.additionsFn,r=void 0===n?function(){return{}}:n,i=e.additionsProps,o=void 0===i?{}:i,a=t.qHyperCube,s=a.qDimensionInfo,l=a.qMeasureInfo,u=a.qMode,c=s.length,d=l.length,f=al({mode:{S:"S"===u,P:"P"===u,K:"K"===u,T:"T"===u},dimensionCount:c,measureCount:d,hasMultipleDimensions:c>1,hasMultipleMeasures:d>1,isOneDimensional:1===c,isTwoDimensional:2===c},o);return al(al({},f),r({layout:t,meta:f}))}({layout:r,additionsFn:n,additionsProps:{size:i.size}})},a={refs:al({},i.refs),meta:o(),getLayout:function(){return r},getLayoutValue:function(e,t){return Uu(r,e,t)},setLayoutValue:function(e,t){Wu(r,e,t),i=Ju(r),a.meta=o()},getHyperCube:function(){return r.qHyperCube},getHyperCubeValue:function(e,t){return Uu(r.qHyperCube,e,t)},setHyperCubeValue:function(e,t){Wu(r.qHyperCube,e,t),i=Ju(r),a.meta=o()},getDataPages:function(){return Uu(r,i.refs.dataPages)},setDataPages:function(e){Wu(r,i.refs.dataPages,e),a.meta=o()}};return a}({source:u,metaAdditionsFn:X0(i)}),{viewState:f={}}=r.options,{legendScrollOffset:p,scrollOffset:m}=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):f;o.preventSet("scrollOffset",m),o.preventSet("legendScrollOffset",p),o.preventSet("title",e.getLayoutValue("title"));const x=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=J0({genericObjectModel:e,layoutService:t});return{query:{getCube:()=>n.cube,getIsReduced:()=>n.on},command:{initialize:()=>r().then((({reducedCube:e})=>{n.cube=e,n.on=!!(n.cube&&n.cube.qDataPages[0]&&n.cube.qDataPages[0].qIsReduced)})),setSnapshotData:e=>{e.reducedHyperCube=n.cube}}}}({genericObjectModel:y,layoutService:e}),M=$u({chart:n,layoutService:e,config:{logicalSize:{width:c,height:d},rtl:"rtl"===r.options.direction},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),S=t2({layoutService:e,dockService:M}),w=Y0({layoutService:e,flags:i}),E=e.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:i,viewState:o,rtl:a,actions:s}){return J1({chart:e,actions:s,componentKey:Up(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:Z1,options:{axisKey:Vo.COMPONENT.AXIS.MAJOR}})}({chart:n,genericObjectModel:y,layoutService:e,dockService:M,seriesModel:w,viewState:o,rtl:"rtl"===r.options.direction,actions:s}):void 0,k=e.meta.isContinuous?n2({model:y,layoutService:e,viewState:o,viewCache:a}):void 0,C=x1({actions:s,appLayoutModel:v,appModel:g,chart:n,environment:r,flags:i,genericObjectModel:y,layoutService:e,picasso:t,seriesModel:w,viewState:o}),O=function(e){var t=e.theme,n=e.styleMatrix,r={theme:t,styleMatrix:Sf(void 0===n?[]:n),styles:void 0};return r.styles=wf(r.styleMatrix,t),{getStyles:function(){return r.styles},getTheme:function(){return r.theme},setTheme:function(e){r.theme=e,r.styles=wf(r.styleMatrix,e)}}}({theme:r.theme,styleMatrix:vJ}),T=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=r+":numeric";return{main:{major:r,majorNumeric:i,minorsPrimary:t.meta.primarySeries.map((e=>e.ref)),minorsSecondary:t.meta.secondarySeries.map((e=>e.ref))},virtuals:n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0}}({layoutService:e,seriesModel:w}),A=t1({isPrimary:!0,layoutService:e,reducedModel:x,seriesModel:w,continuousModel:k,flags:i}),N=t1({isPrimary:!1,layoutService:e,reducedModel:x,seriesModel:w,continuousModel:k,flags:i}),q=y1({config:{measureAxesRef:"measureAxes.0",formatter:Vo.FORMATTER.PRIMARY},chart:n,layoutService:e,extremumModel:A,dockService:M,seriesModel:w,themeService:O}),D=y1({config:{measureAxesRef:"measureAxes.1",formatter:Vo.FORMATTER.SECONDARY},chart:n,layoutService:e,extremumModel:N,dockService:M,seriesModel:w,themeService:O}),R=g1({genericObjectModel:y,layoutService:e}),I=Q1({appLayoutModel:v,appModel:g,chart:n,environment:r,flags:i,genericObjectModel:y,layout:u,picasso:t}),_=Fo({layoutService:e,discreteModel:E}),P=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:Vo.SCALE.MAJOR,MAJOR_INNER:Vo.SCALE.MAJOR_INNER,MINOR:{PRIMARY:Vo.SCALE.MINOR.PRIMARY,SECONDARY:Vo.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${Vo.COMPONENT.BAR}-${$o.PRIMARY}`,BAR_SECONDARY:`${Vo.COMPONENT.BAR}-${$o.SECONDARY}`,AXIS:{MAJOR:Vo.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:Vo.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:Vo.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:Vo.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:Vo.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:Vo.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:Vo.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:Vo.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:Vo.COLLECTION.MAIN}}}}(e),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 rl(regeneratorRuntime.mark((function e(){var r,a,s,l;return regeneratorRuntime.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=rl(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.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(al({},i));case 4:if("object"===tl(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(al({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,ul(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=ll(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=xl(!0,{},n.brush);xl(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===tl(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=Zu({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=Zu({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:b,pluginArgs:P});h({selectionService:l,genericObjectModel:y,appModel:g,dockService:M,styleModel:S,layoutService:e,fieldModel:T,seriesModel:w,reducedModel:x,primaryExtremumModel:A,secondaryExtremumModel:N,primaryTickModel:q,secondaryTickModel:D,propertiesModel:R,colorService:C,themeService:O,appLayoutModel:v,tooltipModel:I,flags:i,...E&&{discreteModel:E},...k&&{continuousModel:k},refLineModel:_,pluginService:L})}),[u,y,g,v,r,null==n?void 0:n.update,o]);const[,x]=e.usePromise((()=>{if(!f)return Promise.resolve();const{layoutService:e,colorService:t,reducedModel:n,primaryExtremumModel:i,secondaryExtremumModel:a,propertiesModel:u,continuousModel:c,discreteModel:d,pluginService:h}=f,p=c?()=>{var t,n;c.update(e.getLayout());const i=c.initialFetch(),a=!e.meta.isSnapshot&&(null==r||null===(t=r.options)||void 0===t||null===(n=t.viewState)||void 0===n?void 0:n.zoom);return a&&o.preventSet("zoom",a),i}:()=>Promise.resolve(),g=t.initialize().then((()=>{const e=t.getSettings().field;l.setBrushAliases({colorField:e}),t.custom.updateLegend()}));return Promise.all([h.initialize(),n.command.initialize(),y?u.command.initialize():Promise.resolve(),g,p(),s.scroll.attachDiscreteModel(d)]).then((()=>Promise.all([i.command.initialize(),a.command.initialize()]).then((()=>m(f)))))}),[f]);if(x)throw x;return p};function i2(){const[t,n]=e.useState();return e.useEffect((()=>{n(function(e){var t=al({},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}({viewRange:[0,1],scrollOffset:void 0}))}),[]),t}const o2={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"}}]};const a2={query:{getCanScroll:()=>!0}};function s2(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState(!1),[a,s]=e.useState(!1),l=function(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState({}),[a,s]=e.useState();return e.useEffect((()=>()=>{o({})}),[]),e.useEffect((()=>{t&&r(!t.select&&!t.active)}),[t]),{enabled:()=>n,emit:(e,...t)=>i[e].forEach((e=>e(...t))),removeListener:(e,t)=>{var n;const r=null===(n=i[e])||void 0===n?void 0:n.indexOf(t);r>-1&&i[e].splice(r,1)},on:(e,t)=>{Array.isArray(i[e])?i[e].push(t):i[e]=[t]},get brushSelectionIncludeMax(){return a},set brushSelectionIncludeMax(e){s(e)},getBrushOptions:void 0}}(),u=function(){var t,n,r;const i=e.useConstraints(),[o,a]=e.useState(!1),[s,l]=e.useState(!1),u=e.useLayout(),c=!!u.qSelectionInfo.qInSelections,d=!(null===(t=u.qHyperCube)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n||null===(r=n[0])||void 0===r||!r.qIsOneAndOnlyOne);e.useEffect((()=>{i&&a(!i.select&&!i.active)}),[i]);const f=e=>{l("boolean"==typeof e?e:!s)};return e.useAction((()=>({key:"lasso",label:"Lasso",icon:o2,hidden:!o||!c||d,active:s,action:f})),[c,d,s,o]),{action:f,enabled:()=>o,active:()=>s}}();let c=a2;e.useEffect((()=>{t&&(r(!t.active),o(!t.active),s(!t.passive))}),[t]);const[d]=e.useState({});return d.scroll={enabled:()=>n&&c.query.getCanScroll(),attachDiscreteModel:e=>{c=e||a2}},d.interact={enabled:()=>i},d.tooltip={enabled:()=>a},d.lasso=u,d.select=l,d}function l2({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function u2({setSelectionInfo:e,event:t,components:n,clear:r}){const i=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:i,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&i[0]===Vo.COMPONENT.LEGEND_CATEGORICAL}),r()}var c2={exports:{}};!function(e,t){!function(t,n){e.exports=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/conversion/",n(n.s="./index.js")}({"../node_modules/extend/index.js":
63
+ var az=hR.exports,sz=vR,lz=iz.exports;function uz(e,t,n,r,i,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],u=0;(e=Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function cz(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);uz(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function dz(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}az||cz("227");var fz=!1,hz=null,pz=!1,mz=null,yz={onError:function(e){fz=!0,hz=e}};function gz(e,t,n,r,i,o,a,s,l){fz=!1,hz=null,dz.apply(yz,arguments)}var vz=null,bz={};function xz(){if(vz)for(var e in bz){var t=bz[e],n=vz.indexOf(e);if(-1<n||cz("96",e),!Sz[n])for(var r in t.extractEvents||cz("97",e),Sz[n]=t,n=t.eventTypes){var i=void 0,o=n[r],a=t,s=r;wz.hasOwnProperty(s)&&cz("99",s),wz[s]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&Mz(l[i],a,s);i=!0}else o.registrationName?(Mz(o.registrationName,a,s),i=!0):i=!1;i||cz("98",r,e)}}}function Mz(e,t,n){Ez[e]&&cz("100",e),Ez[e]=t,kz[e]=t.eventTypes[n].dependencies}var Sz=[],wz={},Ez={},kz={},Cz=null,Oz=null,Tz=null;function Az(e,t,n){var r=e.type||"unknown-event";e.currentTarget=Tz(n),function(e,t,n,r,i,o,a,s,l){if(gz.apply(this,arguments),fz){if(fz){var u=hz;fz=!1,hz=null}else cz("198"),u=void 0;pz||(pz=!0,mz=u)}}(r,t,void 0,e),e.currentTarget=null}function Nz(e,t){return null==t&&cz("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function qz(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var Dz=null;function Rz(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)Az(e,t[r],n[r]);else t&&Az(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var Iz={injectEventPluginOrder:function(e){vz&&cz("101"),vz=Array.prototype.slice.call(e),xz()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];bz.hasOwnProperty(t)&&bz[t]===r||(bz[t]&&cz("102",t),bz[t]=r,n=!0)}n&&xz()}};function _z(e,t){var n=e.stateNode;if(!n)return null;var r=Cz(n);if(!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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&cz("231",t,typeof n),n)}function Pz(e){if(null!==e&&(Dz=Nz(Dz,e)),e=Dz,Dz=null,e&&(qz(e,Rz),Dz&&cz("95"),pz))throw e=mz,pz=!1,mz=null,e}var Lz=Math.random().toString(36).slice(2),jz="__reactInternalInstance$"+Lz,zz="__reactEventHandlers$"+Lz;function Fz(e){if(e[jz])return e[jz];for(;!e[jz];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[jz]).tag||6===e.tag?e:null}function Bz(e){return!(e=e[jz])||5!==e.tag&&6!==e.tag?null:e}function Vz(e){if(5===e.tag||6===e.tag)return e.stateNode;cz("33")}function Hz(e){return e[zz]||null}function $z(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Uz(e,t,n){(t=_z(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=Nz(n._dispatchListeners,t),n._dispatchInstances=Nz(n._dispatchInstances,e))}function Wz(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=$z(t);for(t=n.length;0<t--;)Uz(n[t],"captured",e);for(t=0;t<n.length;t++)Uz(n[t],"bubbled",e)}}function Yz(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=_z(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=Nz(n._dispatchListeners,t),n._dispatchInstances=Nz(n._dispatchInstances,e))}function Xz(e){e&&e.dispatchConfig.registrationName&&Yz(e._targetInst,null,e)}function Gz(e){qz(e,Wz)}var Kz=!("undefined"==typeof window||!window.document||!window.document.createElement);function Jz(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zz={animationend:Jz("Animation","AnimationEnd"),animationiteration:Jz("Animation","AnimationIteration"),animationstart:Jz("Animation","AnimationStart"),transitionend:Jz("Transition","TransitionEnd")},Qz={},eF={};function tF(e){if(Qz[e])return Qz[e];if(!Zz[e])return e;var t,n=Zz[e];for(t in n)if(n.hasOwnProperty(t)&&t in eF)return Qz[e]=n[t];return e}Kz&&(eF=document.createElement("div").style,"AnimationEvent"in window||(delete Zz.animationend.animation,delete Zz.animationiteration.animation,delete Zz.animationstart.animation),"TransitionEvent"in window||delete Zz.transitionend.transition);var nF=tF("animationend"),rF=tF("animationiteration"),iF=tF("animationstart"),oF=tF("transitionend"),aF="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),sF=null,lF=null,uF=null;function cF(){if(uF)return uF;var e,t,n=lF,r=n.length,i="value"in sF?sF.value:sF.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 uF=i.slice(e,1<t?1-t:void 0)}function dF(){return!0}function fF(){return!1}function hF(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?dF:fF,this.isPropagationStopped=fF,this}function pF(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function mF(e){e instanceof this||cz("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function yF(e){e.eventPool=[],e.getPooled=pF,e.release=mF}sz(hF.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=dF)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=dF)},persist:function(){this.isPersistent=dF},isPersistent:fF,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=fF,this._dispatchInstances=this._dispatchListeners=null}}),hF.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},hF.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return sz(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=sz({},r.Interface,e),n.extend=r.extend,yF(n),n},yF(hF);var gF=hF.extend({data:null}),vF=hF.extend({data:null}),bF=[9,13,27,32],xF=Kz&&"CompositionEvent"in window,MF=null;Kz&&"documentMode"in document&&(MF=document.documentMode);var SF=Kz&&"TextEvent"in window&&!MF,wF=Kz&&(!xF||MF&&8<MF&&11>=MF),EF=String.fromCharCode(32),kF={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},CF=!1;function OF(e,t){switch(e){case"keyup":return-1!==bF.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function TF(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var AF=!1;var NF={eventTypes:kF,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(xF)e:{switch(e){case"compositionstart":i=kF.compositionStart;break e;case"compositionend":i=kF.compositionEnd;break e;case"compositionupdate":i=kF.compositionUpdate;break e}i=void 0}else AF?OF(e,n)&&(i=kF.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=kF.compositionStart);return i?(wF&&"ko"!==n.locale&&(AF||i!==kF.compositionStart?i===kF.compositionEnd&&AF&&(o=cF()):(lF="value"in(sF=r)?sF.value:sF.textContent,AF=!0)),i=gF.getPooled(i,t,n,r),o?i.data=o:null!==(o=TF(n))&&(i.data=o),Gz(i),o=i):o=null,(e=SF?function(e,t){switch(e){case"compositionend":return TF(t);case"keypress":return 32!==t.which?null:(CF=!0,EF);case"textInput":return(e=t.data)===EF&&CF?null:e;default:return null}}(e,n):function(e,t){if(AF)return"compositionend"===e||!xF&&OF(e,t)?(e=cF(),uF=lF=sF=null,AF=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wF&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=vF.getPooled(kF.beforeInput,t,n,r)).data=e,Gz(t)):t=null,null===o?t:null===t?o:[o,t]}},qF=null,DF=null,RF=null;function IF(e){if(e=Oz(e)){"function"!=typeof qF&&cz("280");var t=Cz(e.stateNode);qF(e.stateNode,e.type,t)}}function _F(e){DF?RF?RF.push(e):RF=[e]:DF=e}function PF(){if(DF){var e=DF,t=RF;if(RF=DF=null,IF(e),t)for(e=0;e<t.length;e++)IF(t[e])}}function LF(e,t){return e(t)}function jF(e,t,n){return e(t,n)}function zF(){}var FF=!1;function BF(e,t){if(FF)return e(t);FF=!0;try{return LF(e,t)}finally{FF=!1,(null!==DF||null!==RF)&&(zF(),PF())}}var VF={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 HF(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!VF[e.type]:"textarea"===t}function $F(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function UF(e){if(!Kz)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function WF(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function YF(e){e._valueTracker||(e._valueTracker=function(e){var t=WF(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 XF(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=WF(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var GF=az.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;GF.hasOwnProperty("ReactCurrentDispatcher")||(GF.ReactCurrentDispatcher={current:null});var KF=/^(.*)[\\\/]/,JF="function"==typeof Symbol&&Symbol.for,ZF=JF?Symbol.for("react.element"):60103,QF=JF?Symbol.for("react.portal"):60106,eB=JF?Symbol.for("react.fragment"):60107,tB=JF?Symbol.for("react.strict_mode"):60108,nB=JF?Symbol.for("react.profiler"):60114,rB=JF?Symbol.for("react.provider"):60109,iB=JF?Symbol.for("react.context"):60110,oB=JF?Symbol.for("react.concurrent_mode"):60111,aB=JF?Symbol.for("react.forward_ref"):60112,sB=JF?Symbol.for("react.suspense"):60113,lB=JF?Symbol.for("react.memo"):60115,uB=JF?Symbol.for("react.lazy"):60116,cB="function"==typeof Symbol&&Symbol.iterator;function dB(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=cB&&e[cB]||e["@@iterator"])?e:null}function fB(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 oB:return"ConcurrentMode";case eB:return"Fragment";case QF:return"Portal";case nB:return"Profiler";case tB:return"StrictMode";case sB:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case iB:return"Context.Consumer";case rB:return"Context.Provider";case aB:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case lB:return fB(e.type);case uB:if(e=1===e._status?e._result:null)return fB(e)}return null}function hB(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=fB(e.type);n=null,r&&(n=fB(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(KF,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}var pB=/^[: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]*$/,mB=Object.prototype.hasOwnProperty,yB={},gB={};function vB(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}var bB={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){bB[e]=new vB(e,0,!1,e,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];bB[t]=new vB(t,1,!1,e[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){bB[e]=new vB(e,2,!1,e.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){bB[e]=new vB(e,2,!1,e,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){bB[e]=new vB(e,3,!1,e.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(e){bB[e]=new vB(e,3,!0,e,null)})),["capture","download"].forEach((function(e){bB[e]=new vB(e,4,!1,e,null)})),["cols","rows","size","span"].forEach((function(e){bB[e]=new vB(e,6,!1,e,null)})),["rowSpan","start"].forEach((function(e){bB[e]=new vB(e,5,!1,e.toLowerCase(),null)}));var xB=/[\-:]([a-z])/g;function MB(e){return e[1].toUpperCase()}function SB(e,t,n,r){var i=bB.hasOwnProperty(t)?bB[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!!mB.call(gB,e)||!mB.call(yB,e)&&(pB.test(e)?gB[e]=!0:(yB[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))))}function wB(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function EB(e,t){var n=t.checked;return sz({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function kB(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=wB(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 CB(e,t){null!=(t=t.checked)&&SB(e,"checked",t,!1)}function OB(e,t){CB(e,t);var n=wB(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")?AB(e,t.type,n):t.hasOwnProperty("defaultValue")&&AB(e,t.type,wB(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function TB(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.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function AB(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+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(xB,MB);bB[t]=new vB(t,1,!1,e,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(xB,MB);bB[t]=new vB(t,1,!1,e,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(xB,MB);bB[t]=new vB(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")})),["tabIndex","crossOrigin"].forEach((function(e){bB[e]=new vB(e,1,!1,e.toLowerCase(),null)}));var NB={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function qB(e,t,n){return(e=hF.getPooled(NB.change,e,t,n)).type="change",_F(n),Gz(e),e}var DB=null,RB=null;function IB(e){Pz(e)}function _B(e){if(XF(Vz(e)))return e}function PB(e,t){if("change"===e)return t}var LB=!1;function jB(){DB&&(DB.detachEvent("onpropertychange",zB),RB=DB=null)}function zB(e){"value"===e.propertyName&&_B(RB)&&BF(IB,e=qB(RB,e,$F(e)))}function FB(e,t,n){"focus"===e?(jB(),RB=n,(DB=t).attachEvent("onpropertychange",zB)):"blur"===e&&jB()}function BB(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return _B(RB)}function VB(e,t){if("click"===e)return _B(t)}function HB(e,t){if("input"===e||"change"===e)return _B(t)}Kz&&(LB=UF("input")&&(!document.documentMode||9<document.documentMode));var $B={eventTypes:NB,_isInputEventSupported:LB,extractEvents:function(e,t,n,r){var i=t?Vz(t):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=PB:HF(i)?LB?o=HB:(o=BB,a=FB):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=VB),o&&(o=o(e,t)))return qB(o,n,r);a&&a(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&AB(i,"number",i.value)}},UB=hF.extend({view:null,detail:null}),WB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YB(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=WB[e])&&!!t[e]}function XB(){return YB}var GB=0,KB=0,JB=!1,ZB=!1,QB=UB.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:XB,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=GB;return GB=e.screenX,JB?"mousemove"===e.type?e.screenX-t:0:(JB=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=KB;return KB=e.screenY,ZB?"mousemove"===e.type?e.screenY-t:0:(ZB=!0,0)}}),eV=QB.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),tV={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},nV={eventTypes:tV,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?Fz(t):null):o=null,o===t)return null;var a=void 0,s=void 0,l=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=QB,s=tV.mouseLeave,l=tV.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=eV,s=tV.pointerLeave,l=tV.pointerEnter,u="pointer");var c=null==o?i:Vz(o);if(i=null==t?i:Vz(t),(e=a.getPooled(s,o,n,r)).type=u+"leave",e.target=c,e.relatedTarget=i,(n=a.getPooled(l,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=c,r=t,o&&r)e:{for(i=r,u=0,a=t=o;a;a=$z(a))u++;for(a=0,l=i;l;l=$z(l))a++;for(;0<u-a;)t=$z(t),u--;for(;0<a-u;)i=$z(i),a--;for(;u--;){if(t===i||t===i.alternate)break e;t=$z(t),i=$z(i)}t=null}else t=null;for(i=t,t=[];o&&o!==i&&(null===(u=o.alternate)||u!==i);)t.push(o),o=$z(o);for(o=[];r&&r!==i&&(null===(u=r.alternate)||u!==i);)o.push(r),r=$z(r);for(r=0;r<t.length;r++)Yz(t[r],"bubbled",e);for(r=o.length;0<r--;)Yz(o[r],"captured",n);return[e,n]}};function rV(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var iV=Object.prototype.hasOwnProperty;function oV(e,t){if(rV(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++)if(!iV.call(t,n[r])||!rV(e[n[r]],t[n[r]]))return!1;return!0}function aV(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function sV(e){2!==aV(e)&&cz("188")}function lV(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=aV(e))&&cz("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var a=i.child;a;){if(a===n)return sV(i),e;if(a===r)return sV(i),t;a=a.sibling}cz("188")}if(n.return!==r.return)n=i,r=o;else{a=!1;for(var 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}a||cz("189")}}n.alternate!==r&&cz("190")}return 3!==n.tag&&cz("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var uV=hF.extend({animationName:null,elapsedTime:null,pseudoElement:null}),cV=hF.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dV=UB.extend({relatedTarget:null});function fV(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}var hV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pV={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"},mV=UB.extend({key:function(e){if(e.key){var t=hV[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=fV(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pV[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:XB,charCode:function(e){return"keypress"===e.type?fV(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?fV(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),yV=QB.extend({dataTransfer:null}),gV=UB.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:XB}),vV=hF.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),bV=QB.extend({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:null,deltaMode:null}),xV=[["abort","abort"],[nF,"animationEnd"],[rF,"animationIteration"],[iF,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[oF,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],MV={},SV={};function wV(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},MV[e]=t,SV[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(e){wV(e,!0)})),xV.forEach((function(e){wV(e,!1)}));var EV={eventTypes:MV,isInteractiveTopLevelEventType:function(e){return void 0!==(e=SV[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=SV[e];if(!i)return null;switch(e){case"keypress":if(0===fV(n))return null;case"keydown":case"keyup":e=mV;break;case"blur":case"focus":e=dV;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=QB;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=yV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=gV;break;case nF:case rF:case iF:e=uV;break;case oF:e=vV;break;case"scroll":e=UB;break;case"wheel":e=bV;break;case"copy":case"cut":case"paste":e=cV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=eV;break;default:e=hF}return Gz(t=e.getPooled(i,t,n,r)),t}},kV=EV.isInteractiveTopLevelEventType,CV=[];function OV(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=Fz(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=$F(e.nativeEvent);r=e.topLevelType;for(var o=e.nativeEvent,a=null,s=0;s<Sz.length;s++){var l=Sz[s];l&&(l=l.extractEvents(r,t,o,i))&&(a=Nz(a,l))}Pz(a)}}var TV=!0;function AV(e,t){if(!t)return null;var n=(kV(e)?qV:DV).bind(null,e);t.addEventListener(e,n,!1)}function NV(e,t){if(!t)return null;var n=(kV(e)?qV:DV).bind(null,e);t.addEventListener(e,n,!0)}function qV(e,t){jF(DV,e,t)}function DV(e,t){if(TV){var n=$F(t);if(null===(n=Fz(n))||"number"!=typeof n.tag||2===aV(n)||(n=null),CV.length){var r=CV.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{BF(OV,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>CV.length&&CV.push(e)}}}var RV={},IV=0,_V="_reactListenersID"+(""+Math.random()).slice(2);function PV(e){return Object.prototype.hasOwnProperty.call(e,_V)||(e[_V]=IV++,RV[e[_V]]={}),RV[e[_V]]}function LV(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 jV(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zV(e,t){var n,r=jV(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=jV(r)}}function FV(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?FV(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function BV(){for(var e=window,t=LV();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=LV(e.document)}return t}function VV(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 HV(e){var t=BV(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&FV(n.ownerDocument.documentElement,n)){if(null!==r&&VV(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=zV(n,o);var a=zV(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 $V=Kz&&"documentMode"in document&&11>=document.documentMode,UV={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},WV=null,YV=null,XV=null,GV=!1;function KV(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return GV||null==WV||WV!==LV(n)?null:("selectionStart"in(n=WV)&&VV(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},XV&&oV(XV,n)?null:(XV=n,(e=hF.getPooled(UV.select,YV,e,t)).type="select",e.target=WV,Gz(e),e))}var JV={eventTypes:UV,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=PV(o),i=kz.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?Vz(t):window,e){case"focus":(HF(o)||"true"===o.contentEditable)&&(WV=o,YV=t,XV=null);break;case"blur":XV=YV=WV=null;break;case"mousedown":GV=!0;break;case"contextmenu":case"mouseup":case"dragend":return GV=!1,KV(n,r);case"selectionchange":if($V)break;case"keydown":case"keyup":return KV(n,r)}return null}};function ZV(e,t){return e=sz({children:void 0},t),(t=function(e){var t="";return az.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function QV(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=""+wB(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 eH(e,t){return null!=t.dangerouslySetInnerHTML&&cz("91"),sz({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tH(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&cz("92"),Array.isArray(t)&&(1>=t.length||cz("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:wB(n)}}function nH(e,t){var n=wB(t.value),r=wB(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 rH(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}Iz.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Cz=Hz,Oz=Bz,Tz=Vz,Iz.injectEventPluginsByName({SimpleEventPlugin:EV,EnterLeaveEventPlugin:nV,ChangeEventPlugin:$B,SelectEventPlugin:JV,BeforeInputEventPlugin:NF});var iH="http://www.w3.org/1999/xhtml",oH="http://www.w3.org/2000/svg";function aH(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 sH(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?aH(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var lH=void 0,uH=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(e.namespaceURI!==oH||"innerHTML"in e)e.innerHTML=t;else{for((lH=lH||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=lH.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function cH(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 dH={animationIterationCount:!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},fH=["Webkit","ms","Moz","O"];function hH(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||dH.hasOwnProperty(e)&&dH[e]?(""+t).trim():t+"px"}function pH(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=hH(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(dH).forEach((function(e){fH.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dH[t]=dH[e]}))}));var mH=sz({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 yH(e,t){t&&(mH[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&cz("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&cz("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||cz("61")),null!=t.style&&"object"!=typeof t.style&&cz("62",""))}function gH(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}}function vH(e,t){var n=PV(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=kz[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":NV("scroll",e);break;case"focus":case"blur":NV("focus",e),NV("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":UF(i)&&NV(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===aF.indexOf(i)&&AV(i,e)}n[i]=!0}}}function bH(){}var xH=null,MH=null;function SH(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function wH(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var EH="function"==typeof setTimeout?setTimeout:void 0,kH="function"==typeof clearTimeout?clearTimeout:void 0,CH=lz.unstable_scheduleCallback,OH=lz.unstable_cancelCallback;function TH(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function AH(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}var NH=[],qH=-1;function DH(e){0>qH||(e.current=NH[qH],NH[qH]=null,qH--)}function RH(e,t){qH++,NH[qH]=e.current,e.current=t}var IH={},_H={current:IH},PH={current:!1},LH=IH;function jH(e,t){var n=e.type.contextTypes;if(!n)return IH;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 zH(e){return null!=(e=e.childContextTypes)}function FH(e){DH(PH),DH(_H)}function BH(e){DH(PH),DH(_H)}function VH(e,t,n){_H.current!==IH&&cz("168"),RH(_H,t),RH(PH,n)}function HH(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||cz("108",fB(t)||"Unknown",i);return sz({},n,r)}function $H(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||IH,LH=_H.current,RH(_H,t),RH(PH,PH.current),!0}function UH(e,t,n){var r=e.stateNode;r||cz("169"),n?(t=HH(e,t,LH),r.__reactInternalMemoizedMergedChildContext=t,DH(PH),DH(_H),RH(_H,t)):DH(PH),RH(PH,n)}var WH=null,YH=null;function XH(e){return function(t){try{return e(t)}catch(e){}}}function GH(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.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function KH(e,t,n,r){return new GH(e,t,n,r)}function JH(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ZH(e,t){var n=e.alternate;return null===n?((n=KH(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.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function QH(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)JH(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case eB:return e$(n.children,i,o,t);case oB:return t$(n,3|i,o,t);case tB:return t$(n,2|i,o,t);case nB:return(e=KH(12,n,t,4|i)).elementType=nB,e.type=nB,e.expirationTime=o,e;case sB:return(e=KH(13,n,t,i)).elementType=sB,e.type=sB,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case rB:a=10;break e;case iB:a=9;break e;case aB:a=11;break e;case lB:a=14;break e;case uB:a=16,r=null;break e}cz("130",null==e?e:typeof e,"")}return(t=KH(a,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function e$(e,t,n,r){return(e=KH(7,e,r,t)).expirationTime=n,e}function t$(e,t,n,r){return e=KH(8,e,r,t),t=0==(1&t)?tB:oB,e.elementType=t,e.type=t,e.expirationTime=n,e}function n$(e,t,n){return(e=KH(6,e,null,t)).expirationTime=n,e}function r$(e,t,n){return(t=KH(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function i$(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),s$(t,e)}function o$(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),s$(t,e)}function a$(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function s$(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,o=t.latestPingedTime;0===(i=0!==i?i:o)&&(0===e||r<e)&&(i=r),0!==(e=i)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}function l$(e,t){if(e&&e.defaultProps)for(var n in t=sz({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var u$=(new az.Component).refs;function c$(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:sz({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var d$={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===aV(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=vY(),i=$U(r=HW(r,e));i.payload=t,null!=n&&(i.callback=n),LW(),WU(e,i),YW(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=vY(),i=$U(r=HW(r,e));i.tag=zU,i.payload=t,null!=n&&(i.callback=n),LW(),WU(e,i),YW(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=vY(),r=$U(n=HW(n,e));r.tag=FU,null!=t&&(r.callback=t),LW(),WU(e,r),YW(e,n)}};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||(!oV(n,r)||!oV(i,o))}function h$(e,t,n){var r=!1,i=IH,o=t.contextType;return"object"==typeof o&&null!==o?o=jU(o):(i=zH(t)?LH:_H.current,o=(r=null!=(r=t.contextTypes))?jH(e,i):IH),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=d$,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function p$(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&&d$.enqueueReplaceState(t,t.state,null)}function m$(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=u$;var o=t.contextType;"object"==typeof o&&null!==o?i.context=jU(o):(o=zH(t)?LH:_H.current,i.context=jH(e,o)),null!==(o=e.updateQueue)&&(KU(e,o,n,i,r),i.state=e.memoizedState),"function"==typeof(o=t.getDerivedStateFromProps)&&(c$(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&&d$.enqueueReplaceState(i,i.state,null),null!==(o=e.updateQueue)&&(KU(e,o,n,i,r),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var y$=Array.isArray;function g$(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&cz("309"),r=n.stateNode),r||cz("147",e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===u$&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}"string"!=typeof e&&cz("284"),n._owner||cz("290",e)}return e}function v$(e,t){"textarea"!==e.type&&cz("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function b$(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}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,n){return(e=ZH(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.effectTag=2,n):r:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=n$(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=g$(e,t,n),r.return=e,r):((r=QH(n.type,n.key,n.props,null,e.mode,r)).ref=g$(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=r$(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function c(e,t,n,r,o){return null===t||7!==t.tag?((t=e$(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=n$(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ZF:return(n=QH(t.type,t.key,t.props,null,e.mode,n)).ref=g$(e,null,t),n.return=e,n;case QF:return(t=r$(t,e.mode,n)).return=e,t}if(y$(t)||dB(t))return(t=e$(t,e.mode,n,null)).return=e,t;v$(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ZF:return n.key===i?n.type===eB?c(e,t,n.props.children,r,i):l(e,t,n,r):null;case QF:return n.key===i?u(e,t,n,r):null}if(y$(n)||dB(n))return null!==i?null:c(e,t,n,r,null);v$(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ZF:return e=e.get(null===r.key?n:r.key)||null,r.type===eB?c(t,e,r.props.children,i,r.key):l(t,e,r,i);case QF:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(y$(r)||dB(r))return c(t,e=e.get(n)||null,r,i,null);v$(t,r)}return null}function p(i,a,s,l){for(var u=null,c=null,p=a,m=a=0,y=null;null!==p&&m<s.length;m++){p.index>m?(y=p,p=null):y=p.sibling;var g=f(i,p,s[m],l);if(null===g){null===p&&(p=y);break}e&&p&&null===g.alternate&&t(i,p),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g,p=y}if(m===s.length)return n(i,p),u;if(null===p){for(;m<s.length;m++)(p=d(i,s[m],l))&&(a=o(p,a,m),null===c?u=p:c.sibling=p,c=p);return u}for(p=r(i,p);m<s.length;m++)(y=h(p,i,m,s[m],l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(i,e)})),u}function m(i,a,s,l){var u=dB(s);"function"!=typeof u&&cz("150"),null==(s=u.call(s))&&cz("151");for(var c=u=null,p=a,m=a=0,y=null,g=s.next();null!==p&&!g.done;m++,g=s.next()){p.index>m?(y=p,p=null):y=p.sibling;var v=f(i,p,g.value,l);if(null===v){p||(p=y);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,p=y}if(g.done)return n(i,p),u;if(null===p){for(;!g.done;m++,g=s.next())null!==(g=d(i,g.value,l))&&(a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return u}for(p=r(i,p);!g.done;m++,g=s.next())null!==(g=h(p,i,m,g.value,l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(i,e)})),u}return function(e,r,o,s){var l="object"==typeof o&&null!==o&&o.type===eB&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case ZF:e:{for(u=o.key,l=r;null!==l;){if(l.key===u){if(7===l.tag?o.type===eB:l.elementType===o.type){n(e,l.sibling),(r=i(l,o.type===eB?o.props.children:o.props)).ref=g$(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===eB?((r=e$(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=QH(o.type,o.key,o.props,null,e.mode,s)).ref=g$(e,r,o),s.return=e,e=s)}return a(e);case QF:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=r$(o,e.mode,s)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=n$(o,e.mode,s)).return=e,e=r),a(e);if(y$(o))return p(e,r,o,s);if(dB(o))return m(e,r,o,s);if(u&&v$(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:cz("152",(s=e.type).displayName||s.name||"Component")}return n(e,r)}}var x$=b$(!0),M$=b$(!1),S$={},w$={current:S$},E$={current:S$},k$={current:S$};function C$(e){return e===S$&&cz("174"),e}function O$(e,t){RH(k$,t),RH(E$,e),RH(w$,S$);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sH(null,"");break;default:t=sH(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}DH(w$),RH(w$,t)}function T$(e){DH(w$),DH(E$),DH(k$)}function A$(e){C$(k$.current);var t=C$(w$.current),n=sH(t,e.type);t!==n&&(RH(E$,e),RH(w$,n))}function N$(e){E$.current===e&&(DH(w$),DH(E$))}var q$=GF.ReactCurrentDispatcher,D$=0,R$=null,I$=null,_$=null,P$=null,L$=null,j$=null,z$=0,F$=null,B$=0,V$=!1,H$=null,$$=0;function U$(){cz("307")}function W$(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rV(e[n],t[n]))return!1;return!0}function Y$(e,t,n,r,i,o){if(D$=o,R$=t,_$=null!==e?e.memoizedState:null,q$.current=null===_$?aU:sU,t=n(r,i),V$){do{V$=!1,$$+=1,_$=null!==e?e.memoizedState:null,j$=P$,F$=L$=I$=null,q$.current=sU,t=n(r,i)}while(V$);H$=null,$$=0}return q$.current=oU,(e=R$).memoizedState=P$,e.expirationTime=z$,e.updateQueue=F$,e.effectTag|=B$,e=null!==I$&&null!==I$.next,D$=0,j$=L$=P$=_$=I$=R$=null,z$=0,F$=null,B$=0,e&&cz("300"),t}function X$(){q$.current=oU,D$=0,j$=L$=P$=_$=I$=R$=null,z$=0,F$=null,B$=0,V$=!1,H$=null,$$=0}function G$(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===L$?P$=L$=e:L$=L$.next=e,L$}function K$(){if(null!==j$)j$=(L$=j$).next,_$=null!==(I$=_$)?I$.next:null;else{null===_$&&cz("310");var e={memoizedState:(I$=_$).memoizedState,baseState:I$.baseState,queue:I$.queue,baseUpdate:I$.baseUpdate,next:null};L$=null===L$?P$=e:L$.next=e,_$=I$.next}return L$}function J$(e,t){return"function"==typeof t?t(e):t}function Z$(e){var t=K$(),n=t.queue;if(null===n&&cz("311"),0<$$){var r=n.dispatch;if(null!==H$){var i=H$.get(n);if(void 0!==i){H$.delete(n);var o=t.memoizedState;do{o=e(o,i.action),i=i.next}while(null!==i);return rV(o,t.memoizedState)||(vU=!0),t.memoizedState=o,t.baseUpdate===n.last&&(t.baseState=o),n.eagerReducer=e,n.eagerState=o,[o,r]}}return[t.memoizedState,r]}r=n.last;var a=t.baseUpdate;if(o=t.baseState,null!==a?(null!==r&&(r.next=null),r=a.next):r=null!==r?r.next:null,null!==r){var s=i=null,l=r,u=!1;do{var c=l.expirationTime;c<D$?(u||(u=!0,s=a,i=o),c>z$&&(z$=c)):o=l.eagerReducer===e?l.eagerState:e(o,l.action),a=l,l=l.next}while(null!==l&&l!==r);u||(s=a,i=o),rV(o,t.memoizedState)||(vU=!0),t.memoizedState=o,t.baseUpdate=s,t.baseState=i,n.eagerReducer=e,n.eagerState=o}return[t.memoizedState,n.dispatch]}function Q$(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===F$?(F$={lastEffect:null}).lastEffect=e.next=e:null===(t=F$.lastEffect)?F$.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,F$.lastEffect=e),e}function eU(e,t,n,r){var i=G$();B$|=e,i.memoizedState=Q$(t,n,void 0,void 0===r?null:r)}function tU(e,t,n,r){var i=K$();r=void 0===r?null:r;var o=void 0;if(null!==I$){var a=I$.memoizedState;if(o=a.destroy,null!==r&&W$(r,a.deps))return void Q$(0,n,o,r)}B$|=e,i.memoizedState=Q$(t,n,o,r)}function nU(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 rU(){}function iU(e,t,n){25>$$||cz("301");var r=e.alternate;if(e===R$||null!==r&&r===R$)if(V$=!0,e={expirationTime:D$,action:n,eagerReducer:null,eagerState:null,next:null},null===H$&&(H$=new Map),void 0===(n=H$.get(t)))H$.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{LW();var i=vY(),o={expirationTime:i=HW(i,e),action:n,eagerReducer:null,eagerState:null,next:null},a=t.last;if(null===a)o.next=o;else{var s=a.next;null!==s&&(o.next=s),a.next=o}if(t.last=o,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.eagerReducer))try{var l=t.eagerState,u=r(l,n);if(o.eagerReducer=r,o.eagerState=u,rV(u,l))return}catch(e){}YW(e,i)}}var oU={readContext:jU,useCallback:U$,useContext:U$,useEffect:U$,useImperativeHandle:U$,useLayoutEffect:U$,useMemo:U$,useReducer:U$,useRef:U$,useState:U$,useDebugValue:U$},aU={readContext:jU,useCallback:function(e,t){return G$().memoizedState=[e,void 0===t?null:t],e},useContext:jU,useEffect:function(e,t){return eU(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,eU(4,36,nU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return eU(4,36,e,t)},useMemo:function(e,t){var n=G$();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=G$();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,eagerReducer:e,eagerState:t}).dispatch=iU.bind(null,R$,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},G$().memoizedState=e},useState:function(e){var t=G$();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,eagerReducer:J$,eagerState:e}).dispatch=iU.bind(null,R$,e),[t.memoizedState,e]},useDebugValue:rU},sU={readContext:jU,useCallback:function(e,t){var n=K$();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&W$(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:jU,useEffect:function(e,t){return tU(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,tU(4,36,nU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tU(4,36,e,t)},useMemo:function(e,t){var n=K$();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&W$(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Z$,useRef:function(){return K$().memoizedState},useState:function(e){return Z$(J$)},useDebugValue:rU},lU=null,uU=null,cU=!1;function dU(e,t){var n=KH(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function fU(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,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function hU(e){if(cU){var t=uU;if(t){var n=t;if(!fU(e,t)){if(!(t=TH(n))||!fU(e,t))return e.effectTag|=2,cU=!1,void(lU=e);dU(lU,n)}lU=e,uU=AH(t)}else e.effectTag|=2,cU=!1,lU=e}}function pU(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;lU=e}function mU(e){if(e!==lU)return!1;if(!cU)return pU(e),cU=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!wH(t,e.memoizedProps))for(t=uU;t;)dU(e,t),t=TH(t);return pU(e),uU=lU?TH(e.stateNode):null,!0}function yU(){uU=lU=null,cU=!1}var gU=GF.ReactCurrentOwner,vU=!1;function bU(e,t,n,r){t.child=null===e?M$(t,null,n,r):x$(t,e.child,n,r)}function xU(e,t,n,r,i){n=n.render;var o=t.ref;return LU(t,i),r=Y$(e,t,n,r,o,i),null===e||vU?(t.effectTag|=1,bU(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),AU(e,t,i))}function MU(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||JH(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=QH(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,SU(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:oV)(i,r)&&e.ref===t.ref)?AU(e,t,o):(t.effectTag|=1,(e=ZH(a,r)).ref=t.ref,e.return=t,t.child=e)}function SU(e,t,n,r,i,o){return null!==e&&oV(e.memoizedProps,r)&&e.ref===t.ref&&(vU=!1,i<o)?AU(e,t,o):EU(e,t,n,r,o)}function wU(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function EU(e,t,n,r,i){var o=zH(n)?LH:_H.current;return o=jH(t,o),LU(t,i),n=Y$(e,t,n,r,o,i),null===e||vU?(t.effectTag|=1,bU(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),AU(e,t,i))}function kU(e,t,n,r,i){if(zH(n)){var o=!0;$H(t)}else o=!1;if(LU(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),h$(t,n,r),m$(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=jU(u):u=jH(t,u=zH(n)?LH:_H.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&p$(t,a,r,u),BU=!1;var f=t.memoizedState;l=a.state=f;var h=t.updateQueue;null!==h&&(KU(t,h,r,a,i),l=t.memoizedState),s!==r||f!==l||PH.current||BU?("function"==typeof c&&(c$(t,n,c,r),l=t.memoizedState),(s=BU||f$(t,n,s,r,f,l,u))?(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.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:l$(t.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=jU(u):u=jH(t,u=zH(n)?LH:_H.current),(d="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&p$(t,a,r,u),BU=!1,l=t.memoizedState,f=a.state=l,null!==(h=t.updateQueue)&&(KU(t,h,r,a,i),f=t.memoizedState),s!==r||l!==f||PH.current||BU?("function"==typeof c&&(c$(t,n,c,r),f=t.memoizedState),(c=BU||f$(t,n,s,r,l,f,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return CU(e,t,n,r,o,i)}function CU(e,t,n,r,i,o){wU(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&UH(t,n,!1),AU(e,t,o);r=t.stateNode,gU.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=x$(t,e.child,null,o),t.child=x$(t,null,s,o)):bU(e,t,s,o),t.memoizedState=r.state,i&&UH(t,n,!0),t.child}function OU(e){var t=e.stateNode;t.pendingContext?VH(0,t.pendingContext,t.pendingContext!==t.context):t.context&&VH(0,t.context,!1),O$(e,t.containerInfo)}function TU(e,t,n){var r=t.mode,i=t.pendingProps,o=t.memoizedState;if(0==(64&t.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,t.effectTag&=-65;if(null===e)if(a){var s=i.fallback;e=e$(null,r,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),r=e$(s,r,n,null),e.sibling=r,(n=e).return=r.return=t}else n=r=M$(t,null,i.children,n);else null!==e.memoizedState?(s=(r=e.child).sibling,a?(n=i.fallback,i=ZH(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(i.child=a)),r=i.sibling=ZH(s,n,s.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=t):n=r=x$(t,r.child,i.children,n)):(s=e.child,a?(a=i.fallback,(i=e$(null,r,0,null)).child=s,0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),(r=i.sibling=e$(a,r,n,null)).effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=t):r=n=x$(t,s,i.children,n)),t.stateNode=e.stateNode;return t.memoizedState=o,t.child=n,r}function AU(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&cz("153"),null!==t.child){for(n=ZH(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ZH(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function NU(e,t,n){var r=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||PH.current)vU=!0;else if(r<n){switch(vU=!1,t.tag){case 3:OU(t),yU();break;case 5:A$(t);break;case 1:zH(t.type)&&$H(t);break;case 4:O$(t,t.stateNode.containerInfo);break;case 10:_U(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?TU(e,t,n):null!==(t=AU(e,t,n))?t.sibling:null}return AU(e,t,n)}}else vU=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var i=jH(t,_H.current);if(LU(t,n),i=Y$(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,X$(),zH(r)){var o=!0;$H(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var a=r.getDerivedStateFromProps;"function"==typeof a&&c$(t,r,a,e),i.updater=d$,t.stateNode=i,i._reactInternalFiber=t,m$(t,r,e,n),t=CU(null,t,r,!0,o,n)}else t.tag=0,bU(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),o=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(i),t.type=e,i=t.tag=function(e){if("function"==typeof e)return JH(e)?1:0;if(null!=e){if((e=e.$$typeof)===aB)return 11;if(e===lB)return 14}return 2}(e),o=l$(e,o),a=void 0,i){case 0:a=EU(null,t,e,o,n);break;case 1:a=kU(null,t,e,o,n);break;case 11:a=xU(null,t,e,o,n);break;case 14:a=MU(null,t,e,l$(e.type,o),r,n);break;default:cz("306",e,"")}return a;case 0:return r=t.type,i=t.pendingProps,EU(e,t,r,i=t.elementType===r?i:l$(r,i),n);case 1:return r=t.type,i=t.pendingProps,kU(e,t,r,i=t.elementType===r?i:l$(r,i),n);case 3:return OU(t),null===(r=t.updateQueue)&&cz("282"),i=null!==(i=t.memoizedState)?i.element:null,KU(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===i?(yU(),t=AU(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(uU=AH(t.stateNode.containerInfo),lU=t,i=cU=!0),i?(t.effectTag|=2,t.child=M$(t,null,r,n)):(bU(e,t,r,n),yU()),t=t.child),t;case 5:return A$(t),null===e&&hU(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,wH(r,i)?a=null:null!==o&&wH(r,o)&&(t.effectTag|=16),wU(e,t),1!==n&&1&t.mode&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(bU(e,t,a,n),t=t.child),t;case 6:return null===e&&hU(t),null;case 13:return TU(e,t,n);case 4:return O$(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=x$(t,null,r,n):bU(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xU(e,t,r,i=t.elementType===r?i:l$(r,i),n);case 7:return bU(e,t,t.pendingProps,n),t.child;case 8:case 12:return bU(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,_U(t,o=i.value),null!==a){var s=a.value;if(0===(o=rV(s,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(a.children===i.children&&!PH.current){t=AU(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.contextDependencies;if(null!==l){a=s.child;for(var u=l.first;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===s.tag&&((u=$U(n)).tag=FU,WU(s,u)),s.expirationTime<n&&(s.expirationTime=n),null!==(u=s.alternate)&&u.expirationTime<n&&(u.expirationTime=n),u=n;for(var c=s.return;null!==c;){var d=c.alternate;if(c.childExpirationTime<u)c.childExpirationTime=u,null!==d&&d.childExpirationTime<u&&(d.childExpirationTime=u);else{if(!(null!==d&&d.childExpirationTime<u))break;d.childExpirationTime=u}c=c.return}l.expirationTime<n&&(l.expirationTime=n);break}u=u.next}}else a=10===s.tag&&s.type===t.type?null:s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}}bU(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,LU(t,n),r=r(i=jU(i,o.unstable_observedBits)),t.effectTag|=1,bU(e,t,r,n),t.child;case 14:return o=l$(i=t.type,t.pendingProps),MU(e,t,i,o=l$(i.type,o),r,n);case 15:return SU(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:l$(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,zH(r)?(e=!0,$H(t)):e=!1,LU(t,n),h$(t,r,i),m$(t,r,i,n),CU(null,t,r,!0,e,n)}cz("156")}var qU={current:null},DU=null,RU=null,IU=null;function _U(e,t){var n=e.type._context;RH(qU,n._currentValue),n._currentValue=t}function PU(e){var t=qU.current;DH(qU),e.type._context._currentValue=t}function LU(e,t){DU=e,IU=RU=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(vU=!0),e.contextDependencies=null}function jU(e,t){return IU!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(IU=e,t=1073741823),t={context:e,observedBits:t,next:null},null===RU?(null===DU&&cz("308"),RU=t,DU.contextDependencies={first:t,expirationTime:0}):RU=RU.next=t),e._currentValue}var zU=1,FU=2,BU=!1;function VU(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function HU(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function $U(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function UU(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function WU(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=VU(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=VU(e.memoizedState),i=n.updateQueue=VU(n.memoizedState)):r=e.updateQueue=HU(i):null===i&&(i=n.updateQueue=HU(r));null===i||r===i?UU(r,t):null===r.lastUpdate||null===i.lastUpdate?(UU(r,t),UU(i,t)):(UU(r,t),i.lastUpdate=t)}function YU(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=VU(e.memoizedState):XU(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function XU(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=HU(t)),t}function GU(e,t,n,r,i,o){switch(n.tag){case zU:return"function"==typeof(e=n.payload)?e.call(o,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(o,r,i):e))break;return sz({},r,i);case FU:BU=!0}return r}function KU(e,t,n,r,i){BU=!1;for(var o=(t=XU(e,t)).baseState,a=null,s=0,l=t.firstUpdate,u=o;null!==l;){var c=l.expirationTime;c<i?(null===a&&(a=l,o=u),s<c&&(s=c)):(u=GU(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var d=l.expirationTime;d<i?(null===c&&(c=l,null===a&&(o=u)),s<d&&(s=d)):(u=GU(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function JU(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),ZU(t.firstEffect,n),t.firstEffect=t.lastEffect=null,ZU(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function ZU(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&cz("191",n),n.call(r)}e=e.nextEffect}}function QU(e,t){return{value:e,source:t,stack:hB(t)}}function eW(e){e.effectTag|=4}var tW,nW,rW;tW=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}},nW=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a=t.stateNode;switch(C$(w$.current),e=null,n){case"input":o=EB(a,o),r=EB(a,r),e=[];break;case"option":o=ZV(a,o),r=ZV(a,r),e=[];break;case"select":o=sz({},o,{value:void 0}),r=sz({},r,{value:void 0}),e=[];break;case"textarea":o=eH(a,o),r=eH(a,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(a.onclick=bH)}yH(n,r),a=n=void 0;var s=null;for(n in o)if(!r.hasOwnProperty(n)&&o.hasOwnProperty(n)&&null!=o[n])if("style"===n){var l=o[n];for(a in l)l.hasOwnProperty(a)&&(s||(s={}),s[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(Ez.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(l=null!=o?o[n]:void 0,r.hasOwnProperty(n)&&u!==l&&(null!=u||null!=l))if("style"===n)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(s||(s={}),s[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(s||(s={}),s[a]=u[a])}else s||(e||(e=[]),e.push(n,s)),s=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(n,""+u)):"children"===n?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(Ez.hasOwnProperty(n)?(null!=u&&vH(i,n),e||l===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push("style",s),i=e,(t.updateQueue=i)&&eW(t)}},rW=function(e,t,n,r){n!==r&&eW(t)};var iW="function"==typeof WeakSet?WeakSet:Set;function oW(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=hB(n)),null!==n&&fB(n.type),t=t.value,null!==e&&1===e.tag&&fB(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function aW(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){VW(e,t)}else t.current=null}function sW(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if(0!=(r.tag&e)){var i=r.destroy;r.destroy=void 0,void 0!==i&&i()}0!=(r.tag&t)&&(i=r.create,r.destroy=i()),r=r.next}while(r!==n)}}function lW(e){switch("function"==typeof YH&&YH(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(void 0!==r){var i=e;try{r()}catch(e){VW(i,e)}}n=n.next}while(n!==t)}break;case 1:if(aW(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){VW(e,t)}break;case 5:aW(e);break;case 4:dW(e)}}function uW(e){return 5===e.tag||3===e.tag||4===e.tag}function cW(e){e:{for(var t=e.return;null!==t;){if(uW(t)){var n=t;break e}t=t.return}cz("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:cz("161")}16&n.effectTag&&(cH(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||uW(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)if(n)if(r){var o=t,a=i.stateNode,s=n;8===o.nodeType?o.parentNode.insertBefore(a,s):o.insertBefore(a,s)}else t.insertBefore(i.stateNode,n);else r?(a=t,s=i.stateNode,8===a.nodeType?(o=a.parentNode).insertBefore(s,a):(o=a).appendChild(s),null!=(a=a._reactRootContainer)||null!==o.onclick||(o.onclick=bH)):t.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function dW(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&cz("160"),n.tag){case 5:r=n.stateNode,i=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var o=t,a=o;;)if(lW(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===o)break;for(;null===a.sibling;){if(null===a.return||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}i?(o=r,a=t.stateNode,8===o.nodeType?o.parentNode.removeChild(a):o.removeChild(a)):r.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){r=t.stateNode.containerInfo,i=!0,t.child.return=t,t=t.child;continue}}else if(lW(t),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;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function fW(e,t){switch(t.tag){case 0:case 11:case 14:case 15:sW(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&function(e,t,n,r,i){e[zz]=i,"input"===n&&"radio"===i.type&&null!=i.name&&CB(e,i),gH(n,r),r=gH(n,i);for(var o=0;o<t.length;o+=2){var a=t[o],s=t[o+1];"style"===a?pH(e,s):"dangerouslySetInnerHTML"===a?uH(e,s):"children"===a?cH(e,s):SB(e,a,s,r)}switch(n){case"input":OB(e,i);break;case"textarea":nH(e,i);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!i.multiple,null!=(n=i.value)?QV(e,!!i.multiple,n,!1):t!==!!i.multiple&&(null!=i.defaultValue?QV(e,!!i.multiple,i.defaultValue,!0):QV(e,!!i.multiple,i.multiple?[]:"",!1))}}(n,o,i,e,r)}break;case 6:null===t.stateNode&&cz("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,r=void 0,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=vY())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r.style.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=hH("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,r),null!==(n=t.updateQueue)){t.updateQueue=null;var a=t.stateNode;null===a&&(a=t.stateNode=new iW),n.forEach((function(e){var n=UW.bind(null,t,e);a.has(e)||(a.add(e),e.then(n,n))}))}break;case 17:break;default:cz("163")}}var hW="function"==typeof WeakMap?WeakMap:Map;function pW(e,t,n){(n=$U(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){TY(r),oW(e,t)},n}function mW(e,t,n){(n=$U(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===qW?qW=new Set([this]):qW.add(this));var n=t.value,i=t.stack;oW(e,t),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function yW(e){switch(e.tag){case 1:zH(e.type)&&FH();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return T$(),BH(),0!=(64&(t=e.effectTag))&&cz("285"),e.effectTag=-2049&t|64,e;case 5:return N$(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return T$(),null;case 10:return PU(e),null;default:return null}}var gW=GF.ReactCurrentDispatcher,vW=GF.ReactCurrentOwner,bW=1073741822,xW=!1,MW=null,SW=null,wW=0,EW=-1,kW=!1,CW=null,OW=!1,TW=null,AW=null,NW=null,qW=null;function DW(){if(null!==MW)for(var e=MW.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&FH();break;case 3:T$(),BH();break;case 5:N$(t);break;case 4:T$();break;case 10:PU(t)}e=e.return}SW=null,wW=0,EW=-1,kW=!1,MW=null}function RW(){for(;null!==CW;){var e=CW.effectTag;if(16&e&&cH(CW.stateNode,""),128&e){var t=CW.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:cW(CW),CW.effectTag&=-3;break;case 6:cW(CW),CW.effectTag&=-3,fW(CW.alternate,CW);break;case 4:fW(CW.alternate,CW);break;case 8:dW(e=CW),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}CW=CW.nextEffect}}function IW(){for(;null!==CW;){if(256&CW.effectTag)e:{var e=CW.alternate,t=CW;switch(t.tag){case 0:case 11:case 15:sW(2,0,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:l$(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:cz("163")}}CW=CW.nextEffect}}function _W(e,t){for(;null!==CW;){var n=CW.effectTag;if(36&n){var r=CW.alternate,i=CW,o=t;switch(i.tag){case 0:case 11:case 15:sW(16,32,i);break;case 1:var a=i.stateNode;if(4&i.effectTag)if(null===r)a.componentDidMount();else{var s=i.elementType===i.type?r.memoizedProps:l$(i.type,r.memoizedProps);a.componentDidUpdate(s,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}null!==(r=i.updateQueue)&&JU(0,r,a);break;case 3:if(null!==(r=i.updateQueue)){if(a=null,null!==i.child)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}JU(0,r,a)}break;case 5:o=i.stateNode,null===r&&4&i.effectTag&&SH(i.type,i.memoizedProps)&&o.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:cz("163")}}128&n&&(null!==(i=CW.ref)&&(o=CW.stateNode,"function"==typeof i?i(o):i.current=o)),512&n&&(TW=e),CW=CW.nextEffect}}function PW(e,t){NW=AW=TW=null;var n=QW;QW=!0;do{if(512&t.effectTag){var r=!1,i=void 0;try{var o=t;sW(128,0,o),sW(0,64,o)}catch(e){r=!0,i=e}r&&VW(t,i)}t=t.nextEffect}while(null!==t);QW=n,0!==(n=e.expirationTime)&&bY(e,n),oY||QW||EY(1073741823,!1)}function LW(){null!==AW&&OH(AW),null!==NW&&NW()}function jW(e,t){OW=xW=!0,e.current===t&&cz("177");var n=e.pendingCommitExpirationTime;0===n&&cz("261"),e.pendingCommitExpirationTime=0;var r=t.expirationTime,i=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?i$(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,i$(e,t)):t>n&&i$(e,t)}s$(0,e)}(e,i>r?i:r),vW.current=null,r=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,xH=TV,MH=function(){var e=BV();if(VV(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch(e){t=null;break e}var o=0,a=-1,s=-1,l=0,u=0,c=e,d=null;t:for(;;){for(var f;c!==t||0!==r&&3!==c.nodeType||(a=o+r),c!==i||0!==n&&3!==c.nodeType||(s=o+n),3===c.nodeType&&(o+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===e)break t;if(d===t&&++l===r&&(a=o),d===i&&++u===n&&(s=o),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),TV=!1,CW=r;null!==CW;){i=!1;var o=void 0;try{IW()}catch(e){i=!0,o=e}i&&(null===CW&&cz("178"),VW(CW,o),null!==CW&&(CW=CW.nextEffect))}for(CW=r;null!==CW;){i=!1,o=void 0;try{RW()}catch(e){i=!0,o=e}i&&(null===CW&&cz("178"),VW(CW,o),null!==CW&&(CW=CW.nextEffect))}for(HV(MH),MH=null,TV=!!xH,xH=null,e.current=t,CW=r;null!==CW;){i=!1,o=void 0;try{_W(e,n)}catch(e){i=!0,o=e}i&&(null===CW&&cz("178"),VW(CW,o),null!==CW&&(CW=CW.nextEffect))}if(null!==r&&null!==TW){var a=PW.bind(null,e,r);AW=lz.unstable_runWithPriority(lz.unstable_NormalPriority,(function(){return CH(a)})),NW=a}xW=OW=!1,"function"==typeof WH&&WH(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(qW=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function zW(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){MW=e;e:{var i=t,o=wW,a=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:zH(t.type)&&FH();break;case 3:T$(),BH(),(a=t.stateNode).pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==i&&null!==i.child||(mU(t),t.effectTag&=-3);break;case 5:N$(t);var s=C$(k$.current);if(o=t.type,null!==i&&null!=t.stateNode)nW(i,t,o,a,s),i.ref!==t.ref&&(t.effectTag|=128);else if(a){var l=C$(w$.current);if(mU(t)){i=(a=t).stateNode;var u=a.type,c=a.memoizedProps,d=s;switch(i[jz]=a,i[zz]=c,o=void 0,s=u){case"iframe":case"object":AV("load",i);break;case"video":case"audio":for(u=0;u<aF.length;u++)AV(aF[u],i);break;case"source":AV("error",i);break;case"img":case"image":case"link":AV("error",i),AV("load",i);break;case"form":AV("reset",i),AV("submit",i);break;case"details":AV("toggle",i);break;case"input":kB(i,c),AV("invalid",i),vH(d,"onChange");break;case"select":i._wrapperState={wasMultiple:!!c.multiple},AV("invalid",i),vH(d,"onChange");break;case"textarea":tH(i,c),AV("invalid",i),vH(d,"onChange")}for(o in yH(s,c),u=null,c)c.hasOwnProperty(o)&&(l=c[o],"children"===o?"string"==typeof l?i.textContent!==l&&(u=["children",l]):"number"==typeof l&&i.textContent!==""+l&&(u=["children",""+l]):Ez.hasOwnProperty(o)&&null!=l&&vH(d,o));switch(s){case"input":YF(i),TB(i,c,!0);break;case"textarea":YF(i),rH(i);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(i.onclick=bH)}o=u,a.updateQueue=o,(a=null!==o)&&eW(t)}else{c=t,i=o,d=a,u=9===s.nodeType?s:s.ownerDocument,l===iH&&(l=aH(i)),l===iH?"script"===i?((i=u.createElement("div")).innerHTML="<script><\/script>",u=i.removeChild(i.firstChild)):"string"==typeof d.is?u=u.createElement(i,{is:d.is}):(u=u.createElement(i),"select"===i&&d.multiple&&(u.multiple=!0)):u=u.createElementNS(l,i),(i=u)[jz]=c,i[zz]=a,tW(i,t),d=i;var f=s,h=gH(u=o,c=a);switch(u){case"iframe":case"object":AV("load",d),s=c;break;case"video":case"audio":for(s=0;s<aF.length;s++)AV(aF[s],d);s=c;break;case"source":AV("error",d),s=c;break;case"img":case"image":case"link":AV("error",d),AV("load",d),s=c;break;case"form":AV("reset",d),AV("submit",d),s=c;break;case"details":AV("toggle",d),s=c;break;case"input":kB(d,c),s=EB(d,c),AV("invalid",d),vH(f,"onChange");break;case"option":s=ZV(d,c);break;case"select":d._wrapperState={wasMultiple:!!c.multiple},s=sz({},c,{value:void 0}),AV("invalid",d),vH(f,"onChange");break;case"textarea":tH(d,c),s=eH(d,c),AV("invalid",d),vH(f,"onChange");break;default:s=c}yH(u,s),l=void 0;var p=u,m=d,y=s;for(l in y)if(y.hasOwnProperty(l)){var g=y[l];"style"===l?pH(m,g):"dangerouslySetInnerHTML"===l?null!=(g=g?g.__html:void 0)&&uH(m,g):"children"===l?"string"==typeof g?("textarea"!==p||""!==g)&&cH(m,g):"number"==typeof g&&cH(m,""+g):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(Ez.hasOwnProperty(l)?null!=g&&vH(f,l):null!=g&&SB(m,l,g,h))}switch(u){case"input":YF(d),TB(d,c,!1);break;case"textarea":YF(d),rH(d);break;case"option":null!=c.value&&d.setAttribute("value",""+wB(c.value));break;case"select":(s=d).multiple=!!c.multiple,null!=(d=c.value)?QV(s,!!c.multiple,d,!1):null!=c.defaultValue&&QV(s,!!c.multiple,c.defaultValue,!0);break;default:"function"==typeof s.onClick&&(d.onclick=bH)}(a=SH(o,a))&&eW(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&cz("166");break;case 6:i&&null!=t.stateNode?rW(0,t,i.memoizedProps,a):("string"!=typeof a&&(null===t.stateNode&&cz("166")),i=C$(k$.current),C$(w$.current),mU(t)?(o=(a=t).stateNode,i=a.memoizedProps,o[jz]=a,(a=o.nodeValue!==i)&&eW(t)):(o=t,(a=(9===i.nodeType?i:i.ownerDocument).createTextNode(a))[jz]=t,o.stateNode=a));break;case 11:break;case 13:if(a=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=o,MW=t;break e}a=null!==a,o=null!==i&&null!==i.memoizedState,null!==i&&!a&&o&&(null!==(i=i.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(a||o)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:T$();break;case 10:PU(t);break;case 9:case 14:break;case 17:zH(t.type)&&FH();break;case 18:break;default:cz("156")}MW=null}if(t=e,1===wW||1!==t.childExpirationTime){for(a=0,o=t.child;null!==o;)(i=o.expirationTime)>a&&(a=i),(s=o.childExpirationTime)>a&&(a=s),o=o.sibling;t.childExpirationTime=a}if(null!==MW)return MW;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=yW(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function FW(e){var t=NU(e.alternate,e,wW);return e.memoizedProps=e.pendingProps,null===t&&(t=zW(e)),vW.current=null,t}function BW(e,t){xW&&cz("243"),LW(),xW=!0;var n=gW.current;gW.current=oU;var r=e.nextExpirationTimeToWorkOn;r===wW&&e===SW&&null!==MW||(DW(),wW=r,MW=ZH((SW=e).current,null),e.pendingCommitExpirationTime=0);for(var i=!1;;){try{if(t)for(;null!==MW&&!SY();)MW=FW(MW);else for(;null!==MW;)MW=FW(MW)}catch(t){if(IU=RU=DU=null,X$(),null===MW)i=!0,TY(t);else{null===MW&&cz("271");var o=MW,a=o.return;if(null!==a){e:{var s=e,l=a,u=o,c=t;if(a=wW,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var d=c;c=l;var f=-1,h=-1;do{if(13===c.tag){var p=c.alternate;if(null!==p&&null!==(p=p.memoizedState)){h=10*(1073741822-p.timedOutAt);break}"number"==typeof(p=c.pendingProps.maxDuration)&&(0>=p?f=0:(-1===f||p<f)&&(f=p))}c=c.return}while(null!==c);c=l;do{if((p=13===c.tag)&&(p=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),p){if(null===(l=c.updateQueue)?((l=new Set).add(d),c.updateQueue=l):l.add(d),0==(1&c.mode)){c.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((a=$U(1073741823)).tag=FU,WU(u,a))),u.expirationTime=1073741823;break e}l=a;var m=(u=s).pingCache;null===m?(m=u.pingCache=new hW,p=new Set,m.set(d,p)):void 0===(p=m.get(d))&&(p=new Set,m.set(d,p)),p.has(l)||(p.add(l),u=$W.bind(null,u,d,l),d.then(u,u)),-1===f?s=1073741823:(-1===h&&(h=10*(1073741822-a$(s,a))-5e3),s=h+f),0<=s&&EW<s&&(EW=s),c.effectTag|=2048,c.expirationTime=a;break e}c=c.return}while(null!==c);c=Error((fB(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+hB(u))}kW=!0,c=QU(c,u),s=l;do{switch(s.tag){case 3:s.effectTag|=2048,s.expirationTime=a,YU(s,a=pW(s,c,a));break e;case 1:if(f=c,h=s.type,u=s.stateNode,0==(64&s.effectTag)&&("function"==typeof h.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===qW||!qW.has(u)))){s.effectTag|=2048,s.expirationTime=a,YU(s,a=mW(s,f,a));break e}}s=s.return}while(null!==s)}MW=zW(o);continue}i=!0,TY(t)}}break}if(xW=!1,gW.current=n,IU=RU=DU=null,X$(),i)SW=null,e.finishedWork=null;else if(null!==MW)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&cz("281"),SW=null,kW){if(i=e.latestPendingTime,o=e.latestSuspendedTime,a=e.latestPingedTime,0!==i&&i<r||0!==o&&o<r||0!==a&&a<r)return o$(e,r),void yY(e,n,r,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,t=e.expirationTime=1073741823,void yY(e,n,r,t,-1)}t&&-1!==EW?(o$(e,r),(t=10*(1073741822-a$(e,r)))<EW&&(EW=t),t=10*(1073741822-vY()),t=EW-t,yY(e,n,r,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function VW(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qW||!qW.has(r)))return WU(n,e=mW(n,e=QU(t,e),1073741823)),void YW(n,1073741823);break;case 3:return WU(n,e=pW(n,e=QU(t,e),1073741823)),void YW(n,1073741823)}n=n.return}3===e.tag&&(WU(e,n=pW(e,n=QU(t,e),1073741823)),YW(e,1073741823))}function HW(e,t){var n=lz.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&t.mode))r=1073741823;else if(xW&&!OW)r=wW;else{switch(n){case lz.unstable_ImmediatePriority:r=1073741823;break;case lz.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case lz.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case lz.unstable_LowPriority:case lz.unstable_IdlePriority:r=1;break;default:cz("313")}null!==SW&&r===wW&&--r}return n===lz.unstable_UserBlockingPriority&&(0===nY||r<nY)&&(nY=r),r}function $W(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),null!==SW&&wW===n?SW=null:(t=e.earliestSuspendedTime,r=e.latestSuspendedTime,0!==t&&n<=t&&n>=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),s$(n,e),0!==(n=e.expirationTime)&&bY(e,n)))}function UW(e,t){var n=e.stateNode;null!==n&&n.delete(t),null!==(e=WW(e,t=HW(t=vY(),e)))&&(i$(e,t),0!==(t=e.expirationTime)&&bY(e,t))}function WW(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return i}function YW(e,t){null!==(e=WW(e,t))&&(!xW&&0!==wW&&t>wW&&DW(),i$(e,t),xW&&!OW&&SW===e||bY(e,e.expirationTime),fY>dY&&(fY=0,cz("185")))}function XW(e,t,n,r,i){return lz.unstable_runWithPriority(lz.unstable_ImmediatePriority,(function(){return e(t,n,r,i)}))}var GW=null,KW=null,JW=0,ZW=void 0,QW=!1,eY=null,tY=0,nY=0,rY=!1,iY=null,oY=!1,aY=!1,sY=null,lY=lz.unstable_now(),uY=1073741822-(lY/10|0),cY=uY,dY=50,fY=0,hY=null;function pY(){uY=1073741822-((lz.unstable_now()-lY)/10|0)}function mY(e,t){if(0!==JW){if(t<JW)return;null!==ZW&&lz.unstable_cancelCallback(ZW)}JW=t,e=lz.unstable_now()-lY,ZW=lz.unstable_scheduleCallback(wY,{timeout:10*(1073741822-t)-e})}function yY(e,t,n,r,i){e.expirationTime=r,0!==i||SY()?0<i&&(e.timeoutHandle=EH(gY.bind(null,e,t,n),i)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function gY(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,pY(),cY=uY,kY(e,n)}function vY(){return QW||(xY(),0!==tY&&1!==tY||(pY(),cY=uY)),cY}function bY(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===KW?(GW=KW=e,e.nextScheduledRoot=e):(KW=KW.nextScheduledRoot=e).nextScheduledRoot=GW):t>e.expirationTime&&(e.expirationTime=t),QW||(oY?aY&&(eY=e,tY=1073741823,CY(e,1073741823,!1)):1073741823===t?EY(1073741823,!1):mY(e,t))}function xY(){var e=0,t=null;if(null!==KW)for(var n=KW,r=GW;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===KW)&&cz("244"),r===r.nextScheduledRoot){GW=KW=r.nextScheduledRoot=null;break}if(r===GW)GW=i=r.nextScheduledRoot,KW.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===KW){(KW=n).nextScheduledRoot=GW,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>e&&(e=i,t=r),r===KW)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}eY=t,tY=e}var MY=!1;function SY(){return!!MY||!!lz.unstable_shouldYield()&&(MY=!0)}function wY(){try{if(!SY()&&null!==GW){pY();var e=GW;do{var t=e.expirationTime;0!==t&&uY<=t&&(e.nextExpirationTimeToWorkOn=uY),e=e.nextScheduledRoot}while(e!==GW)}EY(0,!0)}finally{MY=!1}}function EY(e,t){if(xY(),t)for(pY(),cY=uY;null!==eY&&0!==tY&&e<=tY&&!(MY&&uY>tY);)CY(eY,tY,uY>tY),xY(),pY(),cY=uY;else for(;null!==eY&&0!==tY&&e<=tY;)CY(eY,tY,!1),xY();if(t&&(JW=0,ZW=null),0!==tY&&mY(eY,tY),fY=0,hY=null,null!==sY)for(e=sY,sY=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){rY||(rY=!0,iY=e)}}if(rY)throw e=iY,iY=null,rY=!1,e}function kY(e,t){QW&&cz("253"),eY=e,tY=t,CY(e,t,!1),EY(1073741823,!1)}function CY(e,t,n){if(QW&&cz("245"),QW=!0,n){var r=e.finishedWork;null!==r?OY(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,kH(r)),BW(e,n),null!==(r=e.finishedWork)&&(SY()?e.finishedWork=r:OY(e,r,t)))}else null!==(r=e.finishedWork)?OY(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,kH(r)),BW(e,n),null!==(r=e.finishedWork)&&OY(e,r,t));QW=!1}function OY(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===sY?sY=[r]:sY.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===hY?fY++:(hY=e,fY=0),lz.unstable_runWithPriority(lz.unstable_ImmediatePriority,(function(){jW(e,t)}))}function TY(e){null===eY&&cz("246"),eY.expirationTime=0,rY||(rY=!0,iY=e)}function AY(e,t){var n=oY;oY=!0;try{return e(t)}finally{(oY=n)||QW||EY(1073741823,!1)}}function NY(e,t){if(oY&&!aY){aY=!0;try{return e(t)}finally{aY=!1}}return e(t)}function qY(e,t,n){oY||QW||0===nY||(EY(nY,!1),nY=0);var r=oY;oY=!0;try{return lz.unstable_runWithPriority(lz.unstable_UserBlockingPriority,(function(){return e(t,n)}))}finally{(oY=r)||QW||EY(1073741823,!1)}}function DY(e,t,n,r,i){var o=t.current;e:if(n){t:{2===aV(n=n._reactInternalFiber)&&1===n.tag||cz("170");var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(zH(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(null!==a);cz("171"),a=void 0}if(1===n.tag){var s=n.type;if(zH(s)){n=HH(n,s,a);break e}}n=a}else n=IH;return null===t.context?t.context=n:t.pendingContext=n,t=i,(i=$U(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),LW(),WU(o,i),YW(o,r),r}function RY(e,t,n,r){var i=t.current;return DY(e,t,n,i=HW(vY(),i),r)}function IY(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function _Y(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:QF,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function PY(e){var t=1073741822-25*(1+((1073741822-vY()+500)/25|0));t>=bW&&(t=bW-1),this._expirationTime=bW=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function LY(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function jY(e,t,n){e={current:t=KH(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function zY(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function FY(e,t,n,r,i){var o=n._reactRootContainer;if(o){if("function"==typeof i){var a=i;i=function(){var e=IY(o._internalRoot);a.call(e)}}null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new jY(e,!1,t)}(n,r),"function"==typeof i){var s=i;i=function(){var e=IY(o._internalRoot);s.call(e)}}NY((function(){null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}))}return IY(o._internalRoot)}function BY(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return zY(t)||cz("200"),_Y(e,t,null,n)}qF=function(e,t,n){switch(t){case"input":if(OB(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=Hz(r);i||cz("90"),XF(r),OB(r,i)}}}break;case"textarea":nH(e,n);break;case"select":null!=(t=n.value)&&QV(e,!!n.multiple,t,!1)}},PY.prototype.render=function(e){this._defer||cz("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new LY;return DY(e,t,null,n,r._onCommit),r},PY.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},PY.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||cz("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,i=t;i!==this;)r=i,i=i._next;null===r&&cz("251"),r._next=i._next,this._next=t,e.firstBatch=this}this._defer=!1,kY(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},PY.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},LY.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},LY.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&cz("191",n),n()}}},jY.prototype.render=function(e,t){var n=this._internalRoot,r=new LY;return null!==(t=void 0===t?null:t)&&r.then(t),RY(e,n,null,r._onCommit),r},jY.prototype.unmount=function(e){var t=this._internalRoot,n=new LY;return null!==(e=void 0===e?null:e)&&n.then(e),RY(null,t,null,n._onCommit),n},jY.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new LY;return null!==(n=void 0===n?null:n)&&i.then(n),RY(t,r,e,i._onCommit),i},jY.prototype.createBatch=function(){var e=new PY(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},LF=AY,jF=qY,zF=function(){QW||0===nY||(EY(nY,!1),nY=0)};var VY={createPortal:BY,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?cz("188"):cz("268",Object.keys(e))),e=null===(e=lV(t))?null:e.stateNode},hydrate:function(e,t,n){return zY(t)||cz("200"),FY(null,e,t,!0,n)},render:function(e,t,n){return zY(t)||cz("200"),FY(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return zY(n)||cz("200"),(null==e||void 0===e._reactInternalFiber)&&cz("38"),FY(e,t,n,!1,r)},unmountComponentAtNode:function(e){return zY(e)||cz("40"),!!e._reactRootContainer&&(NY((function(){FY(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return BY.apply(void 0,arguments)},unstable_batchedUpdates:AY,unstable_interactiveUpdates:qY,flushSync:function(e,t){QW&&cz("187");var n=oY;oY=!0;try{return XW(e,t)}finally{oY=n,EY(1073741823,!1)}},unstable_createRoot:function(e,t){return zY(e)||cz("299","unstable_createRoot"),new jY(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=oY;oY=!0;try{XW(e)}finally{(oY=t)||QW||EY(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[Bz,Vz,Hz,Iz.injectEventPluginsByName,wz,Gz,function(e){qz(e,Xz)},_F,PF,DV,Pz]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);WH=XH((function(e){return t.onCommitFiberRoot(n,e)})),YH=XH((function(e){return t.onCommitFiberUnmount(n,e)}))}catch(e){}})(sz({},e,{overrideProps:null,currentDispatcherRef:GF.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=lV(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:Fz,bundleType:0,version:"16.8.4",rendererPackageName:"react-dom"});var HY={default:VY},$Y=HY&&VY||HY,UY=$Y.default||$Y;!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)}}(),rz.exports=UY;var WY=rz.exports,YY=!1,XY=uI.createContext(null),GY="unmounted",KY="exited",JY="entering",ZY="entered",QY="exiting",eX=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=KY,r.appearStatus=JY):i=ZY:i=t.unmountOnExit||t.mountOnEnter?GY:KY,r.state={status:i},r.nextCallback=null,r}nz(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===GY?{status:KY}: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!==JY&&n!==ZY&&(t=JY):n!==JY&&n!==ZY||(t=QY)}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){this.cancelNextCallback();var n=WY.findDOMNode(this);t===JY?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===KY&&this.setState({status:GY})},n.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;!t&&!r||YY?this.safeSetState({status:ZY},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,i),this.safeSetState({status:JY},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:ZY},(function(){n.props.onEntered(e,i)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!YY?(this.props.onExit(e),this.safeSetState({status:QY},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:KY},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:KY},(function(){t.props.onExited(e)}))},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,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===GY)return null;var t=this.props,n=t.children,r=tz(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return uI.createElement(XY.Provider,{value:null},n(e,r));var i=uI.Children.only(n);return uI.createElement(XY.Provider,{value:null},uI.cloneElement(i,r))},t}(uI.Component);function tX(){}eX.contextType=XY,eX.propTypes={},eX.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tX,onEntering:tX,onEntered:tX,onExit:tX,onExiting:tX,onExited:tX},eX.UNMOUNTED=0,eX.EXITED=1,eX.ENTERING=2,eX.ENTERED=3,eX.EXITING=4;var nX=eX;function rX(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iX(e,t){var n=Object.create(null);return e&&hR.exports.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&hR.exports.isValidElement(e)?t(e):e}(e)})),n}function oX(e,t,n){return null!=n[t]?n[t]:e.props[t]}function aX(e,t,n){var r=iX(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 u=i[l][r];s[i[l][r]]=n(u)}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(hR.exports.isValidElement(a)){var s=o in t,l=o in r,u=t[o],c=hR.exports.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&hR.exports.isValidElement(u)&&(i[o]=hR.exports.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:oX(a,"exit",e),enter:oX(a,"enter",e)})):i[o]=hR.exports.cloneElement(a,{in:!1}):i[o]=hR.exports.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:oX(a,"exit",e),enter:oX(a,"enter",e)})}})),i}var sX=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},lX=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(rX(rX(r)));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}nz(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,iX(n.children,(function(e){return hR.exports.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:oX(e,"appear",n),enter:oX(e,"enter",n),exit:oX(e,"exit",n)})}))):aX(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=iX(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ez({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=tz(e,["component","childFactory"]),i=this.state.contextValue,o=sX(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?uI.createElement(XY.Provider,{value:i},o):uI.createElement(XY.Provider,{value:i},uI.createElement(t,r,o))},t}(uI.Component);lX.propTypes={},lX.defaultProps={component:"div",childFactory:function(e){return e}};var uX=lX;function cX(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}}function dX(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function fX(e,t){return uI.useMemo((function(){return null==e&&null==t?null:function(n){dX(e,n),dX(t,n)}}),[e,t])}var hX="undefined"!=typeof window?uI.useLayoutEffect:uI.useEffect;function pX(e){var t=uI.useRef(e);return hX((function(){t.current=e})),uI.useCallback((function(e){return(0,t.current)(e)}),[])}var mX="undefined"!=typeof window?uI.useLayoutEffect:uI.useEffect;function yX(e){var t=e.children,n=e.defer,r=void 0!==n&&n,i=e.fallback,o=void 0===i?null:i,a=uI.useState(!1),s=a[0],l=a[1];return mX((function(){r||l(!0)}),[r]),uI.useEffect((function(){r&&l(!0)}),[r]),uI.createElement(uI.Fragment,null,s?t:o)}var gX=!0,vX=!1,bX=null,xX={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 MX(e){e.metaKey||e.altKey||e.ctrlKey||(gX=!0)}function SX(){gX=!1}function wX(){"hidden"===this.visibilityState&&vX&&(gX=!0)}function EX(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return gX||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!xX[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function kX(){vX=!0,window.clearTimeout(bX),bX=window.setTimeout((function(){vX=!1}),100)}function CX(){return{isFocusVisible:EX,onBlurVisible:kX,ref:uI.useCallback((function(e){var t=WY.findDOMNode(e);null!=t&&function(e){e.addEventListener("keydown",MX,!0),e.addEventListener("mousedown",SX,!0),e.addEventListener("pointerdown",SX,!0),e.addEventListener("touchstart",SX,!0),e.addEventListener("visibilitychange",wX,!0)}(t.ownerDocument)}),[])}}function OX(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var TX="undefined"==typeof window?uI.useEffect:uI.useLayoutEffect;function AX(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,u=void 0===l?function(){}:l,c=e.timeout,d=uI.useState(!1),f=d[0],h=d[1],p=Rj(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},y=Rj(t.child,f&&t.childLeaving,r&&t.childPulsate),g=pX(u);return TX((function(){if(!s){h(!0);var e=setTimeout(g,c);return function(){clearTimeout(e)}}}),[g,s,c]),uI.createElement("span",{className:p,style:m},uI.createElement("span",{className:y}))}var NX=uI.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=CI(e,["center","classes","className"]),s=uI.useState([]),l=s[0],u=s[1],c=uI.useRef(0),d=uI.useRef(null);uI.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=uI.useRef(!1),h=uI.useRef(null),p=uI.useRef(null),m=uI.useRef(null);uI.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var y=uI.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;u((function(e){return[].concat(OX(e),[uI.createElement(AX,{key:c.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),c.current+=1,d.current=a}),[i]),g=uI.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,u=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var c,d,g,v=u?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)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.clientX?e.clientX:e.touches[0].clientX,M=e.clientY?e.clientY:e.touches[0].clientY;c=Math.round(x-b.left),d=Math.round(M-b.top)}if(s)(g=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(g+=1);else{var S=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,w=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;g=Math.sqrt(Math.pow(S,2)+Math.pow(w,2))}e.touches?(p.current=function(){y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})}}),[r,y]),v=uI.useCallback((function(){g({},{pulsate:!0})}),[g]),b=uI.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,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return uI.useImperativeHandle(t,(function(){return{pulsate:v,start:g,stop:b}}),[v,g,b]),uI.createElement("span",kI({className:Rj(i.root,o),ref:m},a),uI.createElement(uX,{component:null,exit:!0},l))}));var qX,DX=Kj((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"})(((qX=uI.memo(NX)).muiName="MuiTouchRipple",qX)),RX=uI.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,u=e.component,c=void 0===u?"button":u,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,y=void 0!==m&&m,g=e.focusRipple,v=void 0!==g&&g,b=e.focusVisibleClassName,x=e.onBlur,M=e.onClick,S=e.onFocus,w=e.onFocusVisible,E=e.onKeyDown,k=e.onKeyUp,C=e.onMouseDown,O=e.onMouseLeave,T=e.onMouseUp,A=e.onTouchEnd,N=e.onTouchMove,q=e.onTouchStart,D=e.onDragLeave,R=e.tabIndex,I=void 0===R?0:R,_=e.TouchRippleProps,P=e.type,L=void 0===P?"button":P,j=CI(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"]),z=uI.useRef(null);var F=uI.useRef(null),B=uI.useState(!1),V=B[0],H=B[1];f&&V&&H(!1);var $=CX(),U=$.isFocusVisible,W=$.onBlurVisible,Y=$.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return pX((function(r){return t&&t(r),!n&&F.current&&F.current[e](r),!0}))}uI.useImperativeHandle(n,(function(){return{focusVisible:function(){H(!0),z.current.focus()}}}),[]),uI.useEffect((function(){V&&v&&!p&&F.current.pulsate()}),[p,v,V]);var G=X("start",C),K=X("stop",D),J=X("stop",T),Z=X("stop",(function(e){V&&e.preventDefault(),O&&O(e)})),Q=X("start",q),ee=X("stop",A),te=X("stop",N),ne=X("stop",(function(e){V&&(W(e),H(!1)),x&&x(e)}),!1),re=pX((function(e){f||(z.current||(z.current=e.currentTarget),U(e)&&(H(!0),w&&w(e)),S&&S(e))})),ie=uI.useRef(!1),oe=pX((function(e){v&&!ie.current&&V&&F.current&&" "===e.key&&(ie.current=!0,e.persist(),F.current.stop(e,(function(){F.current.start(e)}))),E&&E(e);var t=WY.findDOMNode(z.current);e.target!==e.currentTarget||!c||"button"===c||" "!==e.key&&"Enter"!==e.key||"A"===t.tagName&&t.href||(e.preventDefault(),M&&M(e))})),ae=pX((function(e){v&&" "===e.key&&F.current&&V&&(ie.current=!1,e.persist(),F.current.stop(e,(function(){F.current.pulsate(e)}))),k&&k(e)})),se=c;"button"===se&&j.href&&(se="a");var le={};"button"===se?(le.type=L,le.disabled=f):("a"===se&&j.href||(le.role="button"),le["aria-disabled"]=f);var ue=fX(r,t),ce=fX(Y,z),de=fX(ue,ce);return uI.createElement(se,kI({className:Rj(s.root,l,V&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:M,onFocus:re,onKeyDown:oe,onKeyUp:ae,onMouseDown:G,onMouseLeave:Z,onMouseUp:J,onDragLeave:K,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:f?-1:I},le,j),a,p||f?null:uI.createElement(yX,null,uI.createElement(DX,kI({ref:F,center:o},_))))})),IX=Kj({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"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(RX),_X={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},PX=uI.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,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,y=void 0!==m&&m,g=e.variant,v=void 0===g?"body1":g,b=e.variantMapping,x=void 0===b?_X:b,M=CI(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=l||(y?"p":x[v]||_X[v])||"span";return uI.createElement(S,kI({className:Rj(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(Jj(s))],p&&i.noWrap,f&&i.gutterBottom,y&&i.paragraph,"inherit"!==r&&i["align".concat(Jj(r))],"initial"!==c&&i["display".concat(Jj(c))]),ref:t},M))})),LX=Kj((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"})(PX),jX=uI.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,u=e.disabled,c=void 0!==u&&u,d=e.disableFocusRipple,f=void 0!==d&&d,h=e.endIcon,p=e.focusVisibleClassName,m=e.fullWidth,y=void 0!==m&&m,g=e.size,v=void 0===g?"medium":g,b=e.startIcon,x=e.type,M=void 0===x?"button":x,S=e.variant,w=void 0===S?"text":S,E=CI(e,["children","classes","className","color","component","disabled","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),k=b&&uI.createElement("span",{className:Rj(r.startIcon,r["iconSize".concat(Jj(v))])},b),C=h&&uI.createElement("span",{className:Rj(r.endIcon,r["iconSize".concat(Jj(v))])},h);return uI.createElement(IX,kI({className:Rj(r.root,r[w],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(w).concat(Jj(a))],"medium"!==v&&[r["".concat(w,"Size").concat(Jj(v))],r["size".concat(Jj(v))]],c&&r.disabled,y&&r.fullWidth),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:Rj(r.focusVisible,p),ref:t,type:M},E),uI.createElement("span",{className:r.label},k,n,C))})),zX=Kj((function(e){return{root:kI({},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:wI(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:wI(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:wI(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.disabled)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(wI(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:wI(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(wI(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:wI(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}}},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"})(jX);function FX(e){return e&&e.ownerDocument||document}var BX="undefined"!=typeof window?uI.useLayoutEffect:uI.useEffect,VX=uI.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=uI.useState(null),l=s[0],u=s[1],c=fX(n.ref,t);return BX((function(){o||u(function(e){return e="function"==typeof e?e():e,WY.findDOMNode(e)}(r)||document.body)}),[r,o]),BX((function(){if(l&&!o)return dX(t,l),function(){dX(t,null)}}),[t,l,o]),BX((function(){a&&(l||o)&&a()}),[a,l,o]),o?(uI.Children.only(n),uI.cloneElement(n,{ref:c})):l?WY.createPortal(n,l):l}));function HX(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function $X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function UX(e){return FX(e).defaultView||window}function WX(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function YX(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function XX(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(OX(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&WX(e,i)}))}function GX(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function KX(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){var a=function(e){var t=FX(e);return t.body===e?UX(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o),s=o.parentElement,l="HTML"===s.nodeName?s:o;if(r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden",a){var u=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(YX(o)+u,"px"),n=FX(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(YX(e)+u,"px")}))}}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 JX=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=[]}var t,n,r;return t=e,(n=[{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&&WX(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);XX(t,e.mountNode,e.modalRef,r,!0);var i=GX(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=GX(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=KX(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=GX(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&&WX(e.modalRef,!0),XX(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&&WX(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}])&&$X(t.prototype,n),r&&$X(t,r),e}();function ZX(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,u=e.isEnabled,c=e.open,d=uI.useRef(),f=uI.useRef(null),h=uI.useRef(null),p=uI.useRef(),m=uI.useRef(null),y=uI.useCallback((function(e){m.current=WY.findDOMNode(e)}),[]),g=fX(t.ref,y);return uI.useMemo((function(){c&&"undefined"!=typeof window&&(p.current=l().activeElement)}),[c]),uI.useEffect((function(){if(c){var e=FX(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(){o||!u()||d.current?d.current=!1:m.current&&!m.current.contains(e.activeElement)&&m.current.focus()},n=function(t){!o&&u()&&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,u,c]),uI.createElement(uI.Fragment,null,uI.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),uI.cloneElement(t,{ref:g}),uI.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var QX={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},eG=uI.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=CI(e,["invisible","open"]);return i?uI.createElement("div",kI({"aria-hidden":!0,ref:t},o,{style:kI({},QX.root,{},r?QX.invisible:{},{},o.style)})):null}));var tG=new JX,nG=uI.forwardRef((function(e,t){var n=yj(),r=E_({name:"MuiModal",props:kI({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?eG:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,y=void 0!==m&&m,g=r.disableEscapeKeyDown,v=void 0!==g&&g,b=r.disablePortal,x=void 0!==b&&b,M=r.disableRestoreFocus,S=void 0!==M&&M,w=r.disableScrollLock,E=void 0!==w&&w,k=r.hideBackdrop,C=void 0!==k&&k,O=r.keepMounted,T=void 0!==O&&O,A=r.manager,N=void 0===A?tG:A,q=r.onBackdropClick,D=r.onClose,R=r.onEscapeKeyDown,I=r.onRendered,_=r.open,P=CI(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=uI.useState(!0),j=L[0],z=L[1],F=uI.useRef({}),B=uI.useRef(null),V=uI.useRef(null),H=fX(V,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return FX(B.current)},W=function(){return F.current.modalRef=V.current,F.current.mountNode=B.current,F.current},Y=function(){N.mount(W(),{disableScrollLock:E}),V.current.scrollTop=0},X=pX((function(){var e=function(e){return e="function"==typeof e?e():e,WY.findDOMNode(e)}(c)||U().body;N.add(W(),e),V.current&&Y()})),G=uI.useCallback((function(){return N.isTopModal(W())}),[N]),K=pX((function(e){B.current=e,e&&(I&&I(),_&&G()?Y():WX(V.current,!0))})),J=uI.useCallback((function(){N.remove(W())}),[N]);if(uI.useEffect((function(){return function(){J()}}),[J]),uI.useEffect((function(){_?X():$&&u||J()}),[_,J,$,u,X]),!T&&!_&&(!$||j))return null;var Z=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:b_}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),$&&(Q.onEnter=HX((function(){z(!1)}),s.props.onEnter),Q.onExited=HX((function(){z(!0),u&&J()}),s.props.onExited)),uI.createElement(VX,{ref:K,container:c,disablePortal:x},uI.createElement("div",kI({ref:H,onKeyDown:function(e){"Escape"===e.key&&G()&&(e.stopPropagation(),R&&R(e),!v&&D&&D(e,"escapeKeyDown"))},role:"presentation"},P,{style:kI({},Z.root,{},!_&&j?Z.hidden:{},{},P.style)}),C?null:uI.createElement(o,kI({open:_,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!p&&D&&D(e,"backdropClick"))}},a)),uI.createElement(ZX,{disableEnforceFocus:y,disableAutoFocus:f,disableRestoreFocus:S,getDoc:U,isEnabled:G,open:_},uI.cloneElement(s,Q))))}));function rG(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var iG={entering:{opacity:1,transform:rG(1)},entered:{opacity:1,transform:"none"}},oG=uI.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,o=e.onExit,a=e.style,s=e.timeout,l=void 0===s?"auto":s,u=CI(e,["children","in","onEnter","onExit","style","timeout"]),c=uI.useRef(),d=uI.useRef(),f=fX(n.ref,t),h=yj()||Gj;return uI.useEffect((function(){return function(){clearTimeout(c.current)}}),[]),uI.createElement(nX,kI({appear:!0,in:r,onEnter:function(e,t){!function(e){e.scrollTop}(e);var n,r=cX({style:a,timeout:l},{mode:"enter"}),o=r.duration,s=r.delay;"auto"===l?(n=h.transitions.getAutoHeightDuration(e.clientHeight),d.current=n):n=o,e.style.transition=[h.transitions.create("opacity",{duration:n,delay:s}),h.transitions.create("transform",{duration:.666*n,delay:s})].join(","),i&&i(e,t)},onExit:function(e){var t,n=cX({style:a,timeout:l},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===l?(t=h.transitions.getAutoHeightDuration(e.clientHeight),d.current=t):t=r,e.style.transition=[h.transitions.create("opacity",{duration:t,delay:i}),h.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=rG(.75),o&&o(e)},addEndListener:function(e,t){"auto"===l&&(c.current=setTimeout(t,d.current||0))},timeout:"auto"===l?null:l},u),(function(e,t){return uI.cloneElement(n,kI({style:kI({opacity:0,transform:rG(.75),visibility:"exited"!==e||r?void 0:"hidden"},iG[e],{},a,{},n.props.style),ref:f},t))}))}));oG.muiSupportAuto=!0;var aG=oG,sG=uI.createContext({}),lG=uI.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,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,f=CI(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=uI.useMemo((function(){return{dense:l}}),[l]);return uI.createElement(sG.Provider,{value:h},uI.createElement(a,kI({className:Rj(r.root,i,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},f),d,n))})),uG=Kj({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(lG),cG="undefined"==typeof window?uI.useEffect:uI.useLayoutEffect,dG=uI.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,u=e.classes,c=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,y=CI(p,["className"]),g=e.dense,v=e.disabled,b=void 0!==v&&v,x=e.disableGutters,M=void 0!==x&&x,S=e.divider,w=void 0!==S&&S,E=e.focusVisibleClassName,k=e.selected,C=void 0!==k&&k,O=CI(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=uI.useContext(sG),A={dense:g||T.dense||!1,alignItems:r},N=uI.useRef(null);cG((function(){o&&N.current&&N.current.focus()}),[o]);var q,D,R=uI.Children.toArray(l),I=R.length&&(q=R[R.length-1],D=["ListItemSecondaryAction"],uI.isValidElement(q)&&-1!==D.indexOf(q.type.muiName)),_=fX(uI.useCallback((function(e){N.current=WY.findDOMNode(e)}),[]),t),P=kI({className:Rj(u.root,c,A.dense&&u.dense,!M&&u.gutters,w&&u.divider,b&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,I&&u.secondaryAction,C&&u.selected),disabled:b},O),L=d||"li";return s&&(P.component=d||"div",P.focusVisibleClassName=Rj(u.focusVisible,E),L=IX),I?(L=P.component||d?L:"div","li"===h&&("li"===L?L="div":"li"===P.component&&(P.component="div")),uI.createElement(sG.Provider,{value:A},uI.createElement(h,kI({className:Rj(u.container,m),ref:_},y),uI.createElement(L,P,R),R.pop()))):uI.createElement(sG.Provider,{value:A},uI.createElement(L,kI({ref:_},P),R))})),fG=Kj((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"})(dG),hG=uI.forwardRef((function(e,t){var n=e.classes,r=e.className,i=CI(e,["classes","className"]),o=uI.useContext(sG);return uI.createElement("div",kI({className:Rj(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),pG=Kj((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(hG),mG=uI.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,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=CI(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=uI.useContext(sG).dense,m=null!=u?u:n;null==m||m.type===LX||a||(m=uI.createElement(LX,kI({variant:p?"body2":"body1",className:r.primary,component:"span"},c),m));var y=d;return null==y||y.type===LX||a||(y=uI.createElement(LX,kI({variant:"body2",className:r.secondary,color:"textSecondary"},f),y)),uI.createElement("div",kI({className:Rj(r.root,i,p&&r.dense,l&&r.inset,m&&y&&r.multiline),ref:t},h),m,y)})),yG=Kj({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(mG);function gG(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function vG(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bG(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function xG(e){return"function"==typeof e?e():e}var MG=uI.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,u=e.children,c=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,y=e.marginThreshold,g=void 0===y?16:y,v=e.onEnter,b=e.onEntered,x=e.onEntering,M=e.onExit,S=e.onExited,w=e.onExiting,E=e.open,k=e.PaperProps,C=void 0===k?{}:k,O=e.transformOrigin,T=void 0===O?{vertical:"top",horizontal:"left"}:O,A=e.TransitionComponent,N=void 0===A?aG:A,q=e.transitionDuration,D=void 0===q?"auto":q,R=e.TransitionProps,I=void 0===R?{}:R,_=CI(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"]),P=uI.useRef(),L=uI.useCallback((function(e){if("anchorPosition"===l)return a;var t=xG(r),n=(t instanceof UX(t).Element?t:FX(P.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+gG(n,i),left:n.left+vG(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),j=uI.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]),z=uI.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:gG(e,T.vertical)+t,horizontal:vG(e,T.horizontal)}}),[T.horizontal,T.vertical]),F=uI.useCallback((function(e){var t=j(e),n={width:e.offsetWidth,height:e.offsetHeight},i=z(n,t);if("none"===l)return{top:null,left:null,transformOrigin:bG(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,u=a+n.height,c=s+n.width,d=UX(xG(r)),f=d.innerHeight-g,h=d.innerWidth-g;if(a<g){var p=a-g;a-=p,i.vertical+=p}else if(u>f){var m=u-f;a-=m,i.vertical+=m}if(s<g){var y=s-g;s-=y,i.horizontal+=y}else if(c>h){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(a,"px"),left:"".concat(s,"px"),transformOrigin:bG(i)}}),[r,l,L,j,z,g]),B=uI.useCallback((function(e){var t=F(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[F]),V=uI.useCallback((function(e){P.current=WY.findDOMNode(e)}),[]),H=uI.useMemo((function(){if(E)return 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,s=function(){e.apply(a,i)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}((function(){B(P.current)}))}),[E,B]);uI.useImperativeHandle(n,(function(){return E?{updatePosition:H}:null}),[E,H]),uI.useEffect((function(){if(H)return window.addEventListener("resize",H),function(){window.removeEventListener("resize",H),H.clear()}}),[H]);var $=D;"auto"!==D||N.muiSupportAuto||($=void 0);var U=f||(r?FX(xG(r)).body:void 0);return uI.createElement(nG,kI({container:U,open:E,ref:t,BackdropProps:{invisible:!0},className:Rj(c.root,d)},_),uI.createElement(N,kI({appear:!0,in:E,onEnter:v,onEntered:b,onExit:M,onExited:S,onExiting:w,timeout:$},I,{onEntering:HX((function(e,t){x&&x(e,t),B(e)}),I.onEntering)}),uI.createElement(Qj,kI({elevation:p,ref:V},C,{className:Rj(c.paper,C.className)}),u)))})),SG=Kj({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(MG);function wG(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function EG({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:wG(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return uI.createElement("i",{style:i},uI.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},uI.createElement("path",{d:e})))}const kG={d:"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"},CG={d:"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"},OG="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",TG={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},AG={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};function NG(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=Bi.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function qG(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=d(!0,{},a),l=s.qHyperCubeDef[r][t],u=s.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][n];u.qAttributeDimensions=l.qAttributeDimensions,l.qAttributeDimensions=[],o||(u.qAttributeExpressions=l.qAttributeExpressions,l.qAttributeExpressions=[]),s.qHyperCubeDef[r][t]=u,s.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][n]=l,i&&i({oldItem:l,newItem:u,oldProperties:a,newProperties:s,model:e}),NG(e,a,s)}))}function DG({dir:e,dock:t,altList:n,model:r,translator:i,app:o,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives(){const e=n.map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(e,o,i).then((t=>({id:e.qDef.cId,selected:!1,title:t})))));return Promise.all(e)},changeTo(e,t){qG(r,e,t,"qDimensions",a)}}}function RG(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(i=e,"H"===i.qGrouping?i.title||"":i.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)}};var i}function IG({altList:e,app:t,dir:n,dock:r,model:i,onChange:o,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives(){const n=e.map((e=>function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t})))));return Promise.all(n)},changeTo(e,t){qG(i,e,t,"qMeasures",o,a)}}}function _G(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle}}const PG={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"}}},LG=({children:e,...t})=>uI.createElement(zX,fR({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);function jG(){function e({title:e,selected:t,onClick:n}){const r=P.detectTextDirection(e);return uI.createElement(fG,{button:!0,onClick:n,style:{textAlign:"start"}},uI.createElement(pG,{style:{minWidth:32}},uI.createElement(EG,{d:t?OG:""})),uI.createElement(yG,{primaryTypographyProps:{dir:r}},e))}function t({alignTo:t,changeTo:n,current:r,dir:i,dock:o,list:a,onClose:s,show:l}){const u=a.map(((t,r)=>uI.createElement(e,{key:t.id,title:t.title,onClick:()=>n(r)})));return uI.createElement(SG,fR({anchorEl:t,open:l,onClose:s},PG[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),uI.createElement(uG,{dense:!0,dir:i,component:"nav"},uI.createElement(e,{title:r,selected:!0,onClick:s}),u))}e.propTypes={title:hI.string.isRequired,selected:hI.bool,onClick:hI.func.isRequired},e.defaultProps={selected:!1},t.propTypes={alignTo:hI.any,changeTo:hI.func.isRequired,current:hI.string.isRequired,dir:hI.string.isRequired,dock:hI.string.isRequired,list:hI.array,onClose:hI.func.isRequired,show:hI.bool.isRequired},t.defaultProps={list:[],alignTo:null};class n extends uI.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive()},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=uI.createRef()}componentDidMount(){const{selections:e}=this.props;e&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),e.addListener("activated",this.onSelectionsActivated),e.addListener("deactivated",this.onSelectionsDeactivated),e.addListener("canceled",this.onSelectionsDeactivated))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.index,e),this.closePopover()}openPopover(){this.state.closeTime&&Date.now()-this.state.closeTime<20||this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e})}))}closePopover(){this.setState({open:!1,closeTime:Date.now()})}render(){const{titleData:e,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",...this.props.style},c=e.breadcrumbs.length,d=i||this.state.inSelection,f=e.breadcrumbs.map(((t,n)=>uI.createElement(LG,{style:{display:"flex",alignItems:"center",color:d&&"rgba(89, 89, 89, 0.8)",pointerEvents:d?"none":"auto"},key:n,onClick:()=>d?void 0:e.drillUp(c-n),title:t},uI.createElement("span",{style:u},t),uI.createElement(EG,fR({},AG,{size:"small",style:{margin:"0 8px"}}))))),h=n&&!this.state.open?this.openPopover:this.closePopover,p=!n||i||this.state.inSelection,m={display:"flex",alignItems:"center",width:"100%",color:p&&"rgba(89, 89, 89, 0.8)",height:!o&&p&&"20px",lineHeight:!o&&p&&"20px",border:!o&&p&&"none"};this.state.open&&(m.background="rgba(0,0,0,0.08)");a&&(m.padding=a),s&&(m.minWidth=s);const y=P.detectTextDirection(e.text),g=uI.createElement(LG,{style:m,onClick:p?void 0:h,title:e.text,tabIndex:p?-1:0,onFocus:p?void 0:e=>{this.state.closeTime&&Date.now()-this.state.closeTime<20||(e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px")},onBlur:p?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()}},e.locked&&uI.createElement(EG,fR({},CG,{size:"small",title:r.get("Tooltip.selections.locked")})),uI.createElement("span",{style:u,dir:y},e.text),n&&uI.createElement(EG,fR({},TG,{size:"small",style:{margin:"0 8px"}})));return uI.createElement(uI.Fragment,null,e.drilldown&&uI.createElement(EG,fR({},kG,{size:"small",title:r.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),f,uI.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:l?"auto":"none"}},g),n&&uI.createElement(t,{dock:n.dock,dir:n.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo}))}}function r(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function i(e){return!e.isDimension&&M(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return n.propTypes={disabled:hI.bool.isRequired,padding:hI.string,minWidth:hI.string,titleData:hI.shape({breadcrumbs:hI.arrayOf(hI.string).isRequired,drilldown:hI.bool.isRequired,index:hI.number.isRequired,locked:hI.bool.isRequired,text:hI.string.isRequired,popoverText:hI.string.isRequired,drillUp:hI.func}).isRequired,popover:hI.shape({dir:hI.string.isRequired,dock:hI.string.isRequired,changeTo:hI.func.isRequired,getAlternatives:hI.func.isRequired}),translator:hI.shape({get:hI.func.isRequired}).isRequired,selections:hI.shape({isActive:hI.func,addListener:hI.func,removeListener:hI.func}),style:hI.shape({fontSize:hI.string,color:hI.string,fontFamily:hI.string}).isRequired,isDimension:hI.bool.isRequired,hasAlternative:hI.bool.isRequired},n.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){return this.settings.settings.isDimension||i(this.settings.settings)?28:20},render(){const{settings:{app:e,disabled:t,explicitItemInfos:o,hyperCube:a,hyperCubeDef:s,isDimension:l,minWidth:u,model:c,onChangeToAlternative:d,padding:f,rtl:h,selections:p,skipAttributeExpressions:m,translator:y},layout:{dock:g}}=this.settings,v="top"!==g&&"bottom"!==g||!h?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center"};return"left"===e?(n.width=t.height+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=t.height+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),x=s&&s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef,S=x&&x[l?"qDimensions":"qMeasures"]||[],w=o||a[l?"qDimensionInfo":"qMeasureInfo"],E=l?DG:IG,k=l?RG:_G,C=c&&c.colorSupport&&c.modifiers&&E({altList:S,app:e,dir:h?"rtl":"ltr",dock:r(g),model:c,onChange:d,skipAttributeExpressions:m,translator:y}),O=(T=this.settings.settings).isDimension&&M(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||i(this.settings.settings);var T;const A=w.map(((e,r)=>{const i="number"==typeof e.explicitColumn?e.explicitColumn:r,o=k(e,i,c),a=r===w.length-1;return uI.createElement(uI.Fragment,{key:e.cId},uI.createElement(n,{popover:C,titleData:o,model:c,translator:y,selections:p,disabled:t(),style:this.style,isDimension:l,padding:f,minWidth:u,hasAlternative:O}),!a&&uI.createElement("span",null,", "))}));return uI.createElement("div",{style:b,dir:v},A)}}}const zG=x_({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:'"QlikView Sans", "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 FG=w_({productionPrefix:"q4f39",disableGlobal:!0,seed:""});function BG(){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",WY.render(function(e,t){return uI.createElement(Mj,{generateClassName:t},uI.createElement(Yj,{theme:zG},e))}(e,FG),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&WY.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(WY.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function VG(){return function(e){e.renderer("react",BG()),e.component("data-title",jG()),e.component("disclaimer",function(){class e extends uI.Component{render(){const{label:e,spanStyle:t}=this.props;return uI.createElement(uI.Fragment,null,uI.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:hI.string.isRequired,spanStyle:hI.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r}}=this.settings,i="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",o=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px"};switch(e){case"left":n.width=t.height+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left";break;case"right":n.width=t.height+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left";break;case"center":n.width=t.width+"px",n.height=t.height+"px",n.color="#595959",n.fontStyle="normal",n.fontSize="1.2em",n.textAlign="center";break;default:case"top":case"bottom":n.justifyContent="flex-start",n.alignItems="flex-start"}return n}(r,this.rect),a="center"===r?t:"* "+t,s="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return uI.createElement("div",{style:o,dir:i},uI.createElement(uI.Fragment,null,uI.createElement(e,{label:a,spanStyle:s})))}}}())}}function HG(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:HG(i,t,n)},i}function $G(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),HG(i,a,l,e.invert)}))}const UG={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",u=r,c=i,f=t<.5?90:-90;return o&&(s="y",l="x",u=i,c=r,f=t<.5?180:0),a(d({},e,{[s]:n*u,[l]:c-Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:f}))}};function WG({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,u=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,u=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let c=0;s?s.bandwidth?(c=s.bandwidth(),l-=c/2):c=u-l:c=1;const f=d({},{major:l,majorEnd:u},r.minor.items[e]);i.forEach((t=>{f[t]=r[t].items[e]}));const h=o?n:t,p=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:c,width:f[a].width,minWidthPx:f[a].minWidthPx,maxWidthPx:f[a].maxWidthPx,maxMajorWidth:h}),m=(c-p)/2,y=m+f.major+p/2;return{item:f,boxCenter:y,boxWidth:p,boxPadding:m,rendWidth:t,rendHeight:n}}function YG({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=d(!0,{},n||{},r||{}),u={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},c=i.major;let f;f="object"==typeof c&&"object"==typeof c.ref&&void 0!==c.ref.start&&void 0!==c.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof c&&void 0!==c.binStart&&void 0!==c.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:u,defaults:{major:.5},settings:{major:i.major}});const h=i.minor||{};let p;const m={major:f,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{start:{scale:h.scale,ref:"start"},end:{scale:h.scale,ref:"end"},min:{scale:h.scale,ref:"min"},max:{scale:h.scale,ref:"max"},med:{scale:h.scale,ref:"med"}},h)})};for(let n=0,r=e.length;n<r;n++)p=e[n],m[p]=s.resolve({data:t,defaults:l[p],settings:i[p],scaled:u});return m}const XG=["oob"];const GG={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=YG({keys:XG,data:i,defaultSettings:{oob:UG.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:u,items:c}=l;return function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=WG}){const l=[],{items:u}=r.major;for(let c=0,d=u.length;c<d;c++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:c,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=u[c].data,y=[];if(d.oob.show){y.push(UG.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:h,rendHeight:p,flipXY:n,symbol:o}));const e={type:"container",data:m,collider:{type:"bounds"},children:y};l.push(e)}}return l}({items:c,settings:u,width:e,height:t,flipXY:r,resolved:l,keys:XG,symbol:s,dockValue:n})}},KG={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},JG=["hat"];function ZG(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 QG({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,u=i,c=e.hat.alignment||0;o&&(a="y",s="x",l=i,u=r,c=1-c);const f=(n+e.major)*l;let h=[{[a]:f,[s]:0+u},{[a]:f+t*c*l,[s]:8},{[a]:f+t*l,[s]:0+u},{[a]:f+t*l,[s]:0+u+10},{[a]:f,[s]:0+u+10}];const p=d({},e.hat,{type:"path",d:ZG(h)});h=[{[a]:f,[s]:0},{[a]:f+t*(1-c)*l,[s]:0+u-8},{[a]:f+t*l,[s]:0},{[a]:f+t*l,[s]:-10},{[a]:f,[s]:-10}];return[p,d({},e.hat,{type:"path",d:ZG(h)})]}const eK={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=YG({keys:JG,data:r,defaultSettings:KG,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a;return function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=WG}){const a=[],{items:s}=r.major;for(let l=0,u=s.length;l<u;l++){const{item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),p=s[l].data,m=[];u.hat.show&&m.push(...QG({item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const y={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(y)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:JG})}};var tK="unclassified",nK="equal-equal",rK="equal-higher",iK="equal-lower",oK="equal-void",aK="higher-equal",sK="higher-higher-acute",lK="higher-higher-obtuse",uK="higher-lower-negative",cK="higher-lower-positive",dK="higher-void",fK="lower-equal",hK="lower-higher-negative",pK="lower-higher-positive",mK="lower-lower-acute",yK="lower-lower-obtuse",gK="lower-void",vK="void-equal",bK="void-higher",xK="void-lower",MK="void-void";function SK(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function wK(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),i=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),o=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((i*i+r*r-o*o)/(2*i*r))*(180/Math.PI)}function EK({previous:e,current:t,next:n}){const r=e&&e.value,i=t&&t.value,o=n&&n.value;return e||n?e?n?r===i?i===o?nK:i<o?rK:iK:i===o?r>i?aK:fK:r>i?i<o?wK(e,t,n)>90?lK:sK:SK(e,t)>SK(e,n)?cK:uK:i>o?wK(e,t,n)>90?yK:mK:SK(e,t)>SK(e,n)?pK:hK:r===i?oK:r>i?dK:gK:i===o?vK:i<o?bK:xK:MK}function kK({bounds:e,size:t}){const{x:n,y:r,width:i,height:o}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+i/2)>=0&&Math.ceil(n+i/2)<=t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height:Math.floor(n+i)>0&&Math.ceil(n)<t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height}const CK=1,OK=0;function TK({node:e,line:t,groupIndex:n,extract:r,style:i,measureText:o,size:a,horizontal:s,rtl:l,meta:u,showLabel:c}){const d=r.label(e.data);if("string"!=typeof d&&"number"!=typeof d||""===d)return!1;const f=o({fontFamily:i.fontFamily,fontSize:i.fontSize,text:d}),{localBounds:h}=e,{"stroke-width":p}=e.attrs,m=r.pointValue(e.data),y={x:h.x+h.width/2,y:h.y+h.height/2,width:f.width+2*CK,height:f.height+2*OK},g=`${y.x}-${y.y}`,v=!s&&!l,b=s?a.height:a.width,x=(s?y.y:y.x)/b,M=(v?1-x:x)<=(b<=200?.25:.1),S={key:g,node:e,line:t,group:n,value:m,labelMeasurements:f,bounds:y,inside:kK({bounds:h,size:a}),border:p?p/2:0,classification:tK,setClassification(e){S.classification=e},preferences:[],setPreferences(e){S.preferences.push(...e)},placement:void 0,setPlacement(e){S.placement=e},duplicate:!1,setDuplicate(){S.duplicate=!0},extreme:u.getExtreme(g),minority:u.getMinority(g),elite:M,show:c(e)};return S}function AK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=function({nodes:e,size:t,horizontal:n}){const r={top:[],right:[],bottom:[],left:[]},i=n?t.height:t.width,o=n?"y":"x",a=[...[.2,.4,.6,.8,1].map((e=>({threshold:e*i,count:0,distribution:0})))],s={},l=e.map((t=>{const{localBounds:n}=t,r={x:n.x+n.width/2,y:n.y+n.height/2},i=`${r.x}-${r.y}`;for(let t=0;t<a.length;t++){const n=a[t];if(r[o]<n.threshold||t===a.length-1){n.count++,n.distribution=n.count/e.length,s[i]=t;break}}return{key:i,center:r}})),u=l.reduce(((e,t)=>((!e.top||t.center.y<e.top.center.y)&&(e.top=t),(!e.right||t.center.x>e.right.center.x)&&(e.right=t),(!e.bottom||t.center.y>e.bottom.center.y)&&(e.bottom=t),(!e.left||t.center.x<e.left.center.x)&&(e.left=t),e)),{});return r.top=l.filter((e=>e.center.y===u.top.center.y)).map((e=>e.key)),r.right=l.filter((e=>e.center.x===u.right.center.x)).map((e=>e.key)),r.bottom=l.filter((e=>e.center.y===u.bottom.center.y)).map((e=>e.key)),r.left=l.filter((e=>e.center.x===u.left.center.x)).map((e=>e.key)),{getExtrema:e=>({top:-1!==r.top.indexOf(e),right:-1!==r.right.indexOf(e),bottom:-1!==r.bottom.indexOf(e),left:-1!==r.left.indexOf(e)}),getExtreme:e=>{const{top:t,right:n,bottom:i,left:o}=r;return[t,n,i,o].some((t=>-1!==t.indexOf(e)))},getMinority:e=>a[s[e]].distribution<1}}({nodes:e,size:i,horizontal:o});return function({nodes:e,by:t,lineIndex:n}){const r=e.reduce(((e,r,i)=>{const o=t(r.data);return e[o]||(e[o]={items:[],index:i}),e[o].items.push({node:r,line:r.data[n].value}),e}),{});return Object.keys(r).map((e=>r[e])).sort(((e,t)=>e.index-t.index)).map((e=>e.items))}({nodes:e,by:t.majorValue,lineIndex:t.lineIndex}).map(((e,u)=>e.map((e=>({line:e.line,item:TK({node:e.node,line:e.line,groupIndex:u,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,meta:l,showLabel:s})}))).filter((e=>e.item)).reduce(((e,t)=>(e[t.line]=t.item,e)),{}))).filter((e=>Object.keys(e).length))}var NK={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},qK={[nK]:[NK.TOP,NK.BOTTOM],[rK]:[NK.BOTTOM,NK.BOTTOM_RIGHT],[iK]:[NK.TOP,NK.TOP_RIGHT],[oK]:[NK.TOP,NK.BOTTOM],[aK]:[NK.LEFT,NK.BOTTOM_LEFT,NK.TOP,NK.TOP_RIGHT],[sK]:[NK.BOTTOM,NK.BOTTOM_LEFT,NK.LEFT,NK.TOP_RIGHT],[lK]:[NK.BOTTOM,NK.TOP],[uK]:[NK.TOP,NK.TOP_RIGHT,NK.RIGHT],[cK]:[NK.BOTTOM,NK.BOTTOM_LEFT,NK.LEFT],[dK]:[NK.TOP],[fK]:[NK.TOP],[hK]:[NK.TOP,NK.TOP_LEFT],[pK]:[NK.BOTTOM_RIGHT],[mK]:[NK.TOP,NK.TOP_LEFT,NK.LEFT,NK.TOP_RIGHT,NK.RIGHT],[yK]:[NK.TOP,NK.BOTTOM],[gK]:[NK.TOP],[vK]:[NK.TOP],[bK]:[NK.TOP,NK.BOTTOM],[xK]:[NK.TOP,NK.BOTTOM,NK.LEFT],[MK]:[NK.TOP]};function DK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=AK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}),u=[...l.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],c=u.reduce(((e,t)=>(e[t.line]||(e[t.line]=0),e[t.line]++,e)),{}),d=Math.max(...Object.keys(c).map((e=>c[e]))),f=l.map((e=>Object.keys(e).map((t=>e[t])))),h={getItems:()=>u,getMaxLineDensity:()=>d,getLocalLines({index:e,reach:t}){const{lines:n}=function({groups:e,index:t,reach:n}){const r={};for(let i=t-n;i<=t+n;i++){const t=e[i];if(t)for(let e=0;e<t.length;e++){const n=t[e],{line:i}=n;r[i]||(r[i]=[]),r[i].push(n.bounds)}}const i=Object.keys(r).map((e=>r[e])),o=[];for(let e=0;e<i.length;e++)for(let t=0;t<i[e].length-1;t++){const n=i[e][t],r=i[e][t+1],a={x1:n.x,y1:n.y,x2:r.x,y2:r.y};o.push(a)}return{lines:o}}({groups:f,index:e,reach:t});return n}};return function({groups:e}){for(let t=0;t<e.length;t++){const n=Object.keys(e[t]).map((n=>e[t][n]));for(let r=0;r<n.length;r++){const i=n[r],o=EK({previous:e[t-1]&&e[t-1][i.line],current:i,next:e[t+1]&&e[t+1][i.line]});i.setClassification(o)}}}({groups:l}),h.getItems().forEach((e=>e.setPreferences(qK[e.classification]))),h}function RK({item:e,placement:t,size:n}){return t.x>=0-n.edgeBleed.left&&t.x<=n.width-e.bounds.width+n.edgeBleed.right&&t.y>=0-n.edgeBleed.top&&t.y<=n.height-e.bounds.height}function IK({line1:e,line2:t}){const n=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(0===n)return!1;const r=((t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1))/n,i=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&i>=0&&i<=1}function _K({candidate:e,lines:t,rects:n}){return!!t.some((t=>function({line:e,rect:t}){const n={x:t.x,y:t.y},r={x:t.x+t.width,y:t.y},i={x:t.x+t.width,y:t.y+t.height},o={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:i.x,y2:i.y},s={x1:i.x,y1:i.y,x2:o.x,y2:o.y},l={x1:o.x,y1:o.y,x2:n.x,y2:n.y};return IK({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||IK({line1:e,line2:a})||IK({line1:e,line2:s})||IK({line1:e,line2:l})}({line:t,rect:e})))||n.some((t=>function({rect1:e,rect2:t}){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)}({rect1:t,rect2:e})))}const PK={x:0,width:0,y:0,height:0};const LK=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),jK=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),zK=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),FK=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),BK=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),VK=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),HK=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),$K=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var UK=2.5,WK=4;const YK=[NK.TOP,NK.TOP_LEFT,NK.TOP_RIGHT],XK=[NK.BOTTOM,NK.BOTTOM_LEFT,NK.BOTTOM_RIGHT];function GK({position:e}){const t={x:UK,width:-2*UK,y:0,height:0},n=YK.indexOf(e)>-1,r=XK.indexOf(e)>-1;return n&&(t.y=WK,t.height=-WK),r&&(t.height=-WK),t}function KK({cx:e,cy:t,r:n,degrees:r}){const i=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(i)),y:Math.round(t+n*-Math.cos(i))}}function JK({coordinates:e,degrees:t,item:n}){const r={x:e.x,y:e.y};return t<=90?r.y-=n.bounds.height:t>180&&t<=270?r.x-=n.bounds.width:t>270&&(r.y-=n.bounds.height,r.x-=n.bounds.width),r}function ZK({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),i=e.bounds.x,o=e.bounds.y;for(let a=0;a<r.length;a++){const s=r[a];for(let r=40;r<=180;r+=15){const a=JK({coordinates:KK({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}for(let r=320;r>180;r-=15){const a=JK({coordinates:KK({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const QK=void 0;function eJ({item:e,validator:t,force:n=!1}){const r=[...e.preferences,...Object.keys(NK).map((e=>NK[e])).filter((t=>-1===e.preferences.indexOf(t)))],i={[NK.TOP]:LK,[NK.TOP_RIGHT]:jK,[NK.RIGHT]:zK,[NK.BOTTOM_RIGHT]:FK,[NK.BOTTOM]:BK,[NK.BOTTOM_LEFT]:VK,[NK.LEFT]:HK,[NK.TOP_LEFT]:$K},o=[];for(let a=0;a<r.length;a++){const s=r[a],l=i[s]({item:e}),u=GK({position:s}),c=t({item:e,placement:l,adjustment:u,ignoreLines:n});if(n&&c.inside&&o.push(l),c.valid)return l}const a=()=>ZK({item:e,validator:t,force:n});if(n){const e=a();return e||(o[0]||QK)}return(e.extreme||e.elite)&&a()||QK}function tJ({model:e,itemSize:t,connect:n,size:r,all:i}){const o={},a=function({model:e}){const{length:t}=e.getItems();return t>1e3}({model:e}),s=function({model:e,itemSize:t,connect:n,size:r}){const i=e.getItems(),o=Math.max(...i.map((e=>e.labelMeasurements.width))),a=t||r.width/i.length,s=Math.ceil(o/a)+1;return n?Math.max(s,e.getMaxLineDensity()):s}({model:e,itemSize:t,connect:n,size:r}),l=e.getItems(),u=[...l.map((e=>({x:e.node.localBounds.x-e.border+1,y:e.node.localBounds.y-e.border+1,height:e.node.localBounds.height+2*e.border-2,width:e.node.localBounds.width+2*e.border-2})))],c=[];l.forEach((t=>{const{data:n}=t.node;if(!t.show||!t.inside||n.null&&n.null.value||n.interpolated&&n.interpolated.value)return;if(a&&!t.minority)return;const{key:l}=t;if(o[l])return void t.setDuplicate();o[l]=!0;const d=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=PK,ignoreLines:a=!1}){const s={inside:RK({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=_K({candidate:{x:i.x+o.x,y:i.y+o.y,width:r.bounds.width+o.width,height:r.bounds.height+o.height},lines:a?[]:t,rects:n}),s.valid=s.inside&&!s.collides,s):s}}({size:r,lines:e.getLocalLines({index:t.group,reach:s}),placements:u}),f=eJ({item:t,validator:d});f?(f.height=t.bounds.height,f.width=t.bounds.width,u.push(f),t.setPlacement(f)):i&&c.push({item:t,validator:d})})),c.forEach((e=>{const{item:t,validator:n}=e,r=eJ({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,u.push(r),t.setPlacement(r))}))}var nJ={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,itemSize:()=>{},connect:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},target:{labelSpace:"label-space-component",point:"point-component",allPoints:[]},lineIndex:"line",insideStrategy:"edge"},style:{fontFamily:"QlikView Sans, sans-serif",fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},t=this.chart.component(this.settings.settings.target.labelSpace);if(!t||!t.rect)return e;const{orientation:n,rtl:r}=this.settings.settings,i="horizontal"===n;if(t.show(r)){const{size:n}=t.settings.settings;e.edgeBleed.top=i?n:0,e.edgeBleed[r?"left":"right"]=i?0:n}return e},render(){if(!this.chart.component(this.settings.settings.target.point))return[];const e=this.settings.settings.target.allPoints.length?e=>this.settings.settings.target.allPoints.includes(e.key):e=>e.key===this.settings.settings.target.point,t=this.chart.findShapes("circle").filter(e);if(!t.length)return[];const{settings:n}=this.settings,r={label:n.label,pointValue:n.pointValue,majorValue:n.majorValue,lineIndex:n.lineIndex},{height:i,width:o,edgeBleed:a}=this.rect,s={height:i,width:o,edgeBleed:a,insideStrategy:n.insideStrategy},{style:l}=this,u=DK({nodes:t,extract:r,style:l,measureText:this.renderer.measureText,size:s,horizontal:"horizontal"===n.orientation,rtl:n.rtl,showLabel:n.showLabel});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:u}),tJ({model:u,itemSize:n.itemSize(),connect:n.connect,size:s,all:n.all}),u.getItems().filter((e=>e.placement&&e.node.key===this.settings.settings.target.point)).map((e=>({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2,fontSize:l.fontSize,fontFamily:l.fontFamily,fill:l.fill,text:r.label(e.node.data),baseline:"central",anchor:"middle"})))}},rJ={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var iJ={require:["resolver","symbol"],defaultSettings:{settings:{type:"max",primaryExtremum:()=>{},secondaryExtremum:()=>{},primarySeries:[],secondarySeries:[],orientation:"horizontal",rtl:!1,major:{scale:"major-scale"},markerOffset:1,size:10},style:{fill:"#999"}},preferredSize(){return this.settings.settings.size},render(){const{items:e=[]}=this.data;if(!e.length)return[];const{type:t,orientation:n,rtl:r,markerOffset:i,size:o,major:a,primarySeries:s,secondarySeries:l}=this.settings.settings,u=this.settings.settings.primaryExtremum(),c=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==u,f=l.length&&void 0!==c;if(!d&&!f)return[];const h=s.map((e=>e.ref)),p=l.map((e=>e.ref)),m=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:i=[],primarySeries:o=[],secondarySeries:a=[]}){const s=[];return[...o,...a].forEach((o=>{const a=o.isPrimary?t:n,l=o.isPrimary?r:i;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const i="max"===e?e=>e>t:e=>e<t,o=n?e=>i(e.point.value<0?e.start.value:e.end.value):e=>i(e.end.value);return r.filter(o)})({type:e,extremum:a,items:l}))})),(({items:e})=>{const t=[],n=[];return e.forEach((e=>{const{value:r}=e.major;t[r]||(t[r]=!0,n.push(e))})),n})({items:s.reduce(((e,t)=>e.concat(t)),[])})}({type:t,primaryExtremum:u,secondaryExtremum:c,primaryItems:e.filter((e=>h.includes(e.end.source.field))),secondaryItems:e.filter((e=>p.includes(e.end.source.field))),primarySeries:s,secondarySeries:l});if(!m.length)return[];const y="horizontal"===n,g=this.rect[y?"width":"height"],v=this.resolver.resolve({data:{items:m},settings:{major:a},scaled:{major:g}}),b=("max"===t?90:-90)-(y?0:90)-(!y&&r?180:0),x=o/2*i,{fill:M}=this.settings.style;return v.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:i,y:o,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:i,y:o,data:a})}({symbol:this.symbol,size:o,fill:M,startAngle:b,x:y?g*e.major:x,y:y?x:g*e.major,data:e.data})))}};function oJ({x:e,y:t,size:n,stroke:r,strokeWidth:i,fill:o}){return{type:"container",children:[{type:"line",stroke:r||o,strokeWidth:i,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:o,cx:e,cy:t,r:.25*n}]}}function aJ({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))];return e.findShapes("path").filter((e=>r.some((t=>t===e.key)))).reduce(((e,n)=>((t.primary.some((e=>e.key===n.key))?e.primary:e.secondary).paths.push(n),e)),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function sJ({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function lJ({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(Vo.SCALE.MAJOR),i=r&&r.max&&r.max(),o="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===i?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&o(e,t.max)))}}function uJ({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:i,chart:o}){const a=e.brushes();if(!a.length)return[];const s=a[0],{minorRange:l,legendRange:u,legendTap:c}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let f=[u?e=>e.color.value:r[d]].filter(Boolean);if(i&&l&&f.push((e=>e.color.value)),!i&&c&&(f=[e=>e.color.value]),!f.length)return[];const h=function({brush:e,chart:t}){return("value"===e.type?sJ:lJ)({brush:e,chart:t})}({brush:s,chart:o});return h?n.reduce(((e,t,n)=>(f.some((e=>h({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function cJ({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Vo.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a),u=l-s,c=0===u?1:u,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e)))||i,offset:Math.min(1,Math.max(0,(e-s)/c))}))),f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function dJ({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Vo.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a)-s,u=0===l?1:l,c=o.domain(),d=[];for(let e=0;e<c.length-1;e++){const t=c[e],n=o(t)||i;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/u))});const r=c[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/u))})}const f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function fJ({property:e,chart:t,connection:n,attrs:r,colorSettings:i,colorByData:o,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:u,orientation:c,rtl:d}){const f=r[e];if("gradient"!==f.type)return f;const{type:h,nil:p}=i;if(s||!o)return function({chart:e,selected:t,connection:n,gradient:r,fallback:i,orientation:o,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:u}){const c=e.scale(Vo.SCALE.MAJOR),d=e.scale(Vo.SCALE.COLOR),f=s?e=>c([e,0])+c.bandwidth()*l/2:e=>c(e),h=t.filter((e=>-1!==n.indexOf(e.index))),p=("vertical"===o&&u?h.reverse():h).map((e=>e.item)),m=p.map((e=>f(e.major.value))),y=Math.min(...m),g=Math.max(...m)-y,v=0===g?1:g,b=m.map(((e,t)=>0===t?0:t===m.length-1?1:(e-y)/v)),x=[];for(let e=0;e<p.length;e++){const t=p[e],n=a?t.color.value:d(t.color.value)||i,r=b[e];x.push({color:n,offset:0===e?0:Math.max(0,x[x.length-1].offset)}),x.push({color:n,offset:e===p.length-1?1:Math.max(0,parseFloat((r+(b[e+1]-r)/2).toFixed(5)))})}return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:x}}({chart:t,selected:a,connection:n,gradient:f,fallback:p,orientation:c,isColorCode:"color"===h,groupedByMeasure:l,itemsPerGroup:u,rtl:d});return("continuous"===h?cJ:dJ)({chart:t,selected:a,connection:n,gradient:f,fallback:p})}function hJ({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,lineKey:l,primary:u,selected:c,connections:d,rtl:f,count:h}){const p=t.getLine(l,u),{attrs:m}=p,y=function({d:e}){return e.replace("Z","").split(/(?=[LMC])/).map((e=>{const t=e.substring(0,1),n={letter:t,x:0,y:0,raw:e},r=e.substring(1).split(",");return"M"===t||"L"===t?([n.x]=r,[,n.y]=r):"C"===t&&([,,,,n.x]=r,[,,,,,n.y]=r),n}))}({d:m.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,selected:s,connection:l,commands:u,attrs:c,rtl:d,count:f}){return{path:l.map(((e,t)=>{const n=u[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join(""),attrs:c,stroke:fJ({property:"stroke",chart:e,connection:l,attrs:c,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,rtl:d,count:f})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,selected:c,connection:t,commands:y,attrs:m,rtl:f,count:h})))}function pJ({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:i,items:o,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:u,groupedByMeasure:c,itemsPerGroup:d,orientation:f,rtl:h}){const p=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const i=n.typeIndex.value;var o;return e[i]||(e[i]={key:i,items:[],index:r,measureIx:null===(o=n.colorMeasureIdx)||void 0===o?void 0:o.value,primary:t.primary.some((e=>e.typeIndex===i))}),e[i].items.push(n),e}),{});return Object.keys(n).map((e=>n[e])).sort(((e,t)=>e.index-t.index)).map((e=>({lineKey:e.key,items:e.items,primary:e.primary,measureIx:e.measureIx})))}({items:function({items:e,selectionInfo:t,seriesInfo:n}){return e.filter((e=>{if("NaN"===e.end.value||Number.isNaN(e.end.value))return!1;const{minorRange:r,minorRangePrimary:i}=t;return!r||(i?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:o,selectionInfo:i,seriesInfo:n}),seriesInfo:n}),{lines:m}=p.reduce(((n,o)=>{const p=uJ({brush:r,selectionInfo:i,items:o.items,selectionValues:a,colorByData:l,chart:e});if(p.length<2)return n;const m=function({selected:e}){return e.reduce(((e,t)=>{const{index:n}=t;if(e.length){const t=e[e.length-1];n===t[t.length-1]+1?t.push(n):e.push([n])}else e.push([n]);return e}),[]).filter((e=>e.length>1))}({selected:p});return m.length?(n.lines.push(...hJ({chart:e,pathModel:t,colorSettings:s(o.measureIx),colorByData:l(o.measureIx),hasMultipleMeasures:u,groupedByMeasure:c,itemsPerGroup:d,orientation:f,lineKey:o.lineKey,primary:o.primary,selected:p,connections:m,rtl:h,count:o.items.length})),n):n}),{lines:[]}),y=[];return m.forEach((e=>y.push({type:"path",d:e.path,stroke:e.stroke,strokeLinejoin:e.attrs["stroke-linejoin"],strokeWidth:e.attrs["stroke-width"],strokeDasharray:e.attrs["stroke-dasharray"],fill:"none"}))),y}var mJ={require:["chart","renderer"],defaultSettings:{settings:{seriesInfo:{primary:[],secondary:[]},selectionValues:{},colorSettings:void 0,colorByData:!1,isColorCode:!1,hasMultipleMeasures:!1,groupedByMeasure:!1,itemsPerGroup:1,orientation:"vertical",rtl:!1}},addListener(e,t){this.state.brush.addListener(e,t),this.state.listeners.push({type:e,fn:t})},removeListeners(){this.state.listeners.forEach((e=>this.state.brush.removeListener(e.type,e.fn))),this.state.listeners.length=0},created(){this.state={pathModel:aJ({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),brush:this.chart.brush("selection"),listeners:[],selectionInfo:{minorRange:!1,minorRangePrimary:!1,legendRange:!1,legendTap:!1}}},mounted(){this.addListener("update",(()=>{this.state.selectionInfo=this.settings.settings.getSelectionInfo();const e=pJ({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl});this.renderer.render(e)})),this.addListener("end",(()=>{this.renderer.render([])}))},render(){this.state.pathModel=aJ({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return pJ({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl})},destroyed(){this.removeListeners()}};const yJ=()=>{const e=cq();return e.use(lR),e.use(function(e){if("function"!=typeof e.interaction)return function(t){t.interaction("hammer",dR(e))};e.interaction("hammer",dR(Hammer))}(vm)),e.use($G),e.use(VG()),e.component("scrollbar",Xa),e.component("point-label",nJ),e.component("label-space",rJ),e.component("time-axis",$p.picassoComponents.timeAxis),e.component("axis-overlay",$p.picassoComponents.axisOverlay),e.component("reference-line-labels",Do),e.component("box-sliced-hat",eK),e.component("box-out-of-bounds",GG),e.component("data-out-of-bounds-marker",iJ),e.component("scroll-hint",Ii),e.component("brush-highlighter",mJ),e.scale("time",$p.picassoScales.time),e.symbol("line-point",oJ),e},gJ="QlikView Sans, sans-serif";var vJ=[["object.comboChart","","fontFamily"],["object.comboChart","outOfRange","color","#999"],["object.comboChart","axis.title","color"],["object.comboChart","axis.title","fontSize","13px"],["object.comboChart","axis.title","fontFamily",gJ],["object.comboChart","axis.label.name","color","#595959"],["object.comboChart","axis.label.name","fontSize","12px"],["object.comboChart","axis.label.name","fontFamily",gJ],["object.comboChart","axis.line.major","color","#cccccc"],["object.comboChart","axis.line.minor","color","#e6e6e6"],["object.comboChart","label.value","fontFamily",gJ],["object.comboChart","label.value","fontSize","12px"],["object.comboChart","label.value","numFontSize","12px",e=>parseInt(e,10)],["object.comboChart","label.value","color","#595959"],[!1,"label.value","lightColor","#E6E6E6"],[!1,"label.value","darkColor","#595959"]];const bJ={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},xJ=e=>void 0===e.marker?bJ.circle:bJ[e.marker],MJ=e=>void 0===e.markerFill||e.markerFill;function SJ({series:e,layoutService:t}){switch(wh(e)){case Ho.MARKER:return(e=>({marker:xJ(e),fill:MJ(e)}))(e);case Ho.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);default:return{}}}function wJ(e=Uo,t){return t?e.axis===$o.PRIMARY:e.axis===$o.PRIMARY||wh(e)===Ho.BAR}var EJ={exports:{}};var kJ={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var CJ="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=kJ,r=CJ,i=(t=e.exports={}).re=[],o=t.src=[],a=t.t={};let s=0;const l=(e,t,n)=>{const l=s++;r(l,t),a[e]=l,o[l]=t,i[l]=new RegExp(t,n?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),l("FULL",`^${o[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),l("LOOSE",`^${o[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",o[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",o[a.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),l("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",o[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(EJ,EJ.exports);const OJ=["includePrerelease","loose","rtl"];var TJ=e=>e?"object"!=typeof e?{loose:!0}:OJ.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};const AJ=/^[0-9]+$/,NJ=(e,t)=>{const n=AJ.test(e),r=AJ.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var qJ={compareIdentifiers:NJ,rcompareIdentifiers:(e,t)=>NJ(t,e)};const DJ=CJ,{MAX_LENGTH:RJ,MAX_SAFE_INTEGER:IJ}=kJ,{re:_J,t:PJ}=EJ.exports,LJ=TJ,{compareIdentifiers:jJ}=qJ;class zJ{constructor(e,t){if(t=LJ(t),e instanceof zJ){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>RJ)throw new TypeError(`version is longer than ${RJ} characters`);DJ("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?_J[PJ.LOOSE]:_J[PJ.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>IJ||this.major<0)throw new TypeError("Invalid major version");if(this.minor>IJ||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>IJ||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<IJ)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(DJ("SemVer.compare",this.version,this.options,e),!(e instanceof zJ)){if("string"==typeof e&&e===this.version)return 0;e=new zJ(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof zJ||(e=new zJ(e,this.options)),jJ(this.major,e.major)||jJ(this.minor,e.minor)||jJ(this.patch,e.patch)}comparePre(e){if(e instanceof zJ||(e=new zJ(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],r=e.prerelease[t];if(DJ("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return jJ(n,r)}while(++t)}compareBuild(e){e instanceof zJ||(e=new zJ(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(DJ("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return jJ(n,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}var FJ=zJ;const{MAX_LENGTH:BJ}=kJ,{re:VJ,t:HJ}=EJ.exports,$J=FJ,UJ=TJ;var WJ=(e,t)=>{if(t=UJ(t),e instanceof $J)return e;if("string"!=typeof e)return null;if(e.length>BJ)return null;if(!(t.loose?VJ[HJ.LOOSE]:VJ[HJ.FULL]).test(e))return null;try{return new $J(e,t)}catch(e){return null}};const YJ=WJ;var XJ=(e,t)=>{const n=YJ(e,t);return n?n.version:null};const GJ=WJ;var KJ=(e,t)=>{const n=GJ(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const JJ=FJ;var ZJ=(e,t,n,r)=>{"string"==typeof n&&(r=n,n=void 0);try{return new JJ(e,n).inc(t,r).version}catch(e){return null}};const QJ=FJ;var eZ=(e,t,n)=>new QJ(e,n).compare(new QJ(t,n));const tZ=eZ;var nZ=(e,t,n)=>0===tZ(e,t,n);const rZ=WJ,iZ=nZ;var oZ=(e,t)=>{if(iZ(e,t))return null;{const n=rZ(e),r=rZ(t),i=n.prerelease.length||r.prerelease.length,o=i?"pre":"",a=i?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==r[e])return o+e;return a}};const aZ=FJ;var sZ=(e,t)=>new aZ(e,t).major;const lZ=FJ;var uZ=(e,t)=>new lZ(e,t).minor;const cZ=FJ;var dZ=(e,t)=>new cZ(e,t).patch;const fZ=WJ;var hZ=(e,t)=>{const n=fZ(e,t);return n&&n.prerelease.length?n.prerelease:null};const pZ=eZ;var mZ=(e,t,n)=>pZ(t,e,n);const yZ=eZ;var gZ=(e,t)=>yZ(e,t,!0);const vZ=FJ;var bZ=(e,t,n)=>{const r=new vZ(e,n),i=new vZ(t,n);return r.compare(i)||r.compareBuild(i)};const xZ=bZ;var MZ=(e,t)=>e.sort(((e,n)=>xZ(e,n,t)));const SZ=bZ;var wZ=(e,t)=>e.sort(((e,n)=>SZ(n,e,t)));const EZ=eZ;var kZ=(e,t,n)=>EZ(e,t,n)>0;const CZ=eZ;var OZ=(e,t,n)=>CZ(e,t,n)<0;const TZ=eZ;var AZ=(e,t,n)=>0!==TZ(e,t,n);const NZ=eZ;var qZ=(e,t,n)=>NZ(e,t,n)>=0;const DZ=eZ;var RZ=(e,t,n)=>DZ(e,t,n)<=0;const IZ=nZ,_Z=AZ,PZ=kZ,LZ=qZ,jZ=OZ,zZ=RZ;var FZ=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return IZ(e,n,r);case"!=":return _Z(e,n,r);case">":return PZ(e,n,r);case">=":return LZ(e,n,r);case"<":return jZ(e,n,r);case"<=":return zZ(e,n,r);default:throw new TypeError("Invalid operator: "+t)}};const BZ=FJ,VZ=WJ,{re:HZ,t:$Z}=EJ.exports;var UZ=(e,t)=>{if(e instanceof BZ)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=HZ[$Z.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),HZ[$Z.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;HZ[$Z.COERCERTL].lastIndex=-1}else n=e.match(HZ[$Z.COERCE]);return null===n?null:VZ(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)},WZ=YZ;function YZ(e){var t=this;if(t instanceof YZ||(t=new YZ),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function XZ(e,t,n){var r=t===e.head?new JZ(n,null,t,e):new JZ(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function GZ(e,t){e.tail=new JZ(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function KZ(e,t){e.head=new JZ(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function JZ(e,t,n,r){if(!(this instanceof JZ))return new JZ(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}YZ.Node=JZ,YZ.create=YZ,YZ.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},YZ.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},YZ.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},YZ.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)GZ(this,arguments[e]);return this.length},YZ.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)KZ(this,arguments[e]);return this.length},YZ.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},YZ.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},YZ.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},YZ.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},YZ.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},YZ.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},YZ.prototype.map=function(e,t){t=t||this;for(var n=new YZ,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},YZ.prototype.mapReverse=function(e,t){t=t||this;for(var n=new YZ,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},YZ.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},YZ.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},YZ.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},YZ.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},YZ.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new YZ;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;for(;null!==i&&r<t;r++,i=i.next)n.push(i.value);return n},YZ.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new YZ;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;null!==i&&r>t;r--)i=i.prev;for(;null!==i&&r>e;r--,i=i.prev)n.push(i.value);return n},YZ.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;var o=[];for(r=0;i&&r<t;r++)o.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(r=0;r<n.length;r++)i=XZ(this,i,n[r]);return o},YZ.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{!function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}(YZ)}catch(jd){}const ZZ=WZ,QZ=Symbol("max"),eQ=Symbol("length"),tQ=Symbol("lengthCalculator"),nQ=Symbol("allowStale"),rQ=Symbol("maxAge"),iQ=Symbol("dispose"),oQ=Symbol("noDisposeOnSet"),aQ=Symbol("lruList"),sQ=Symbol("cache"),lQ=Symbol("updateAgeOnGet"),uQ=()=>1;const cQ=(e,t,n)=>{const r=e[sQ].get(t);if(r){const t=r.value;if(dQ(e,t)){if(hQ(e,r),!e[nQ])return}else n&&(e[lQ]&&(r.value.now=Date.now()),e[aQ].unshiftNode(r));return t.value}},dQ=(e,t)=>{if(!t||!t.maxAge&&!e[rQ])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[rQ]&&n>e[rQ]},fQ=e=>{if(e[eQ]>e[QZ])for(let t=e[aQ].tail;e[eQ]>e[QZ]&&null!==t;){const n=t.prev;hQ(e,t),t=n}},hQ=(e,t)=>{if(t){const n=t.value;e[iQ]&&e[iQ](n.key,n.value),e[eQ]-=n.length,e[sQ].delete(n.key),e[aQ].removeNode(t)}};class pQ{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const mQ=(e,t,n,r)=>{let i=n.value;dQ(e,i)&&(hQ(e,n),e[nQ]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var yQ=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[QZ]=e.max||1/0;const t=e.length||uQ;if(this[tQ]="function"!=typeof t?uQ:t,this[nQ]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[rQ]=e.maxAge||0,this[iQ]=e.dispose,this[oQ]=e.noDisposeOnSet||!1,this[lQ]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[QZ]=e||1/0,fQ(this)}get max(){return this[QZ]}set allowStale(e){this[nQ]=!!e}get allowStale(){return this[nQ]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[rQ]=e,fQ(this)}get maxAge(){return this[rQ]}set lengthCalculator(e){"function"!=typeof e&&(e=uQ),e!==this[tQ]&&(this[tQ]=e,this[eQ]=0,this[aQ].forEach((e=>{e.length=this[tQ](e.value,e.key),this[eQ]+=e.length}))),fQ(this)}get lengthCalculator(){return this[tQ]}get length(){return this[eQ]}get itemCount(){return this[aQ].length}rforEach(e,t){t=t||this;for(let n=this[aQ].tail;null!==n;){const r=n.prev;mQ(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[aQ].head;null!==n;){const r=n.next;mQ(this,e,n,t),n=r}}keys(){return this[aQ].toArray().map((e=>e.key))}values(){return this[aQ].toArray().map((e=>e.value))}reset(){this[iQ]&&this[aQ]&&this[aQ].length&&this[aQ].forEach((e=>this[iQ](e.key,e.value))),this[sQ]=new Map,this[aQ]=new ZZ,this[eQ]=0}dump(){return this[aQ].map((e=>!dQ(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[aQ]}set(e,t,n){if((n=n||this[rQ])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,i=this[tQ](t,e);if(this[sQ].has(e)){if(i>this[QZ])return hQ(this,this[sQ].get(e)),!1;const o=this[sQ].get(e).value;return this[iQ]&&(this[oQ]||this[iQ](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[eQ]+=i-o.length,o.length=i,this.get(e),fQ(this),!0}const o=new pQ(e,t,i,r,n);return o.length>this[QZ]?(this[iQ]&&this[iQ](e,t),!1):(this[eQ]+=o.length,this[aQ].unshift(o),this[sQ].set(e,this[aQ].head),fQ(this),!0)}has(e){if(!this[sQ].has(e))return!1;const t=this[sQ].get(e).value;return!dQ(this,t)}get(e){return cQ(this,e,!0)}peek(e){return cQ(this,e,!1)}pop(){const e=this[aQ].tail;return e?(hQ(this,e),e.value):null}del(e){hQ(this,this[sQ].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[sQ].forEach(((e,t)=>cQ(this,t,!1)))}};class gQ{constructor(e,t){if(t=xQ(t),e instanceof gQ)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new gQ(e.raw,t);if(e instanceof MQ)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!AQ(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&NQ(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=bQ.get(t);if(n)return n;const r=this.options.loose,i=r?EQ[kQ.HYPHENRANGELOOSE]:EQ[kQ.HYPHENRANGE];e=e.replace(i,VQ(this.options.includePrerelease)),SQ("hyphen replace",e),e=e.replace(EQ[kQ.COMPARATORTRIM],CQ),SQ("comparator trim",e,EQ[kQ.COMPARATORTRIM]),e=(e=(e=e.replace(EQ[kQ.TILDETRIM],OQ)).replace(EQ[kQ.CARETTRIM],TQ)).split(/\s+/).join(" ");const o=r?EQ[kQ.COMPARATORLOOSE]:EQ[kQ.COMPARATOR],a=e.split(" ").map((e=>DQ(e,this.options))).join(" ").split(/\s+/).map((e=>BQ(e,this.options))).filter(this.options.loose?e=>!!e.match(o):()=>!0).map((e=>new MQ(e,this.options)));a.length;const s=new Map;for(const e of a){if(AQ(e))return[e];s.set(e.value,e)}s.size>1&&s.has("")&&s.delete("");const l=[...s.values()];return bQ.set(t,l),l}intersects(e,t){if(!(e instanceof gQ))throw new TypeError("a Range is required");return this.set.some((n=>qQ(n,t)&&e.set.some((e=>qQ(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new wQ(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(HQ(this.set[t],e,this.options))return!0;return!1}}var vQ=gQ;const bQ=new yQ({max:1e3}),xQ=TJ,MQ=WQ,SQ=CJ,wQ=FJ,{re:EQ,t:kQ,comparatorTrimReplace:CQ,tildeTrimReplace:OQ,caretTrimReplace:TQ}=EJ.exports,AQ=e=>"<0.0.0-0"===e.value,NQ=e=>""===e.value,qQ=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},DQ=(e,t)=>(SQ("comp",e,t),e=PQ(e,t),SQ("caret",e),e=IQ(e,t),SQ("tildes",e),e=jQ(e,t),SQ("xrange",e),e=FQ(e,t),SQ("stars",e),e),RQ=e=>!e||"x"===e.toLowerCase()||"*"===e,IQ=(e,t)=>e.trim().split(/\s+/).map((e=>_Q(e,t))).join(" "),_Q=(e,t)=>{const n=t.loose?EQ[kQ.TILDELOOSE]:EQ[kQ.TILDE];return e.replace(n,((t,n,r,i,o)=>{let a;return SQ("tilde",e,t,n,r,i,o),RQ(n)?a="":RQ(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:RQ(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(SQ("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,SQ("tilde return",a),a}))},PQ=(e,t)=>e.trim().split(/\s+/).map((e=>LQ(e,t))).join(" "),LQ=(e,t)=>{SQ("caret",e,t);const n=t.loose?EQ[kQ.CARETLOOSE]:EQ[kQ.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,a)=>{let s;return SQ("caret",e,t,n,i,o,a),RQ(n)?s="":RQ(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:RQ(o)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(SQ("replaceCaret pr",a),s="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(SQ("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),SQ("caret return",s),s}))},jQ=(e,t)=>(SQ("replaceXRanges",e,t),e.split(/\s+/).map((e=>zQ(e,t))).join(" ")),zQ=(e,t)=>{e=e.trim();const n=t.loose?EQ[kQ.XRANGELOOSE]:EQ[kQ.XRANGE];return e.replace(n,((n,r,i,o,a,s)=>{SQ("xRange",e,n,r,i,o,a,s);const l=RQ(i),u=l||RQ(o),c=u||RQ(a),d=c;return"="===r&&d&&(r=""),s=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(s="-0"),n=`${r+i}.${o}.${a}${s}`):u?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:c&&(n=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),SQ("xRange return",n),n}))},FQ=(e,t)=>(SQ("replaceStars",e,t),e.trim().replace(EQ[kQ.STAR],"")),BQ=(e,t)=>(SQ("replaceGTE0",e,t),e.trim().replace(EQ[t.includePrerelease?kQ.GTE0PRE:kQ.GTE0],"")),VQ=e=>(t,n,r,i,o,a,s,l,u,c,d,f,h)=>`${n=RQ(r)?"":RQ(i)?`>=${r}.0.0${e?"-0":""}`:RQ(o)?`>=${r}.${i}.0${e?"-0":""}`:a?">="+n:`>=${n}${e?"-0":""}`} ${l=RQ(u)?"":RQ(c)?`<${+u+1}.0.0-0`:RQ(d)?`<${u}.${+c+1}.0-0`:f?`<=${u}.${c}.${d}-${f}`:e?`<${u}.${c}.${+d+1}-0`:"<="+l}`.trim(),HQ=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(SQ(e[n].semver),e[n].semver!==MQ.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0},$Q=Symbol("SemVer ANY");class UQ{static get ANY(){return $Q}constructor(e,t){if(t=YQ(t),e instanceof UQ){if(e.loose===!!t.loose)return e;e=e.value}JQ("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===$Q?this.value="":this.value=this.operator+this.semver.version,JQ("comp",this)}parse(e){const t=this.options.loose?XQ[GQ.COMPARATORLOOSE]:XQ[GQ.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new ZQ(n[2],this.options.loose):this.semver=$Q}toString(){return this.value}test(e){if(JQ("Comparator.test",e,this.options.loose),this.semver===$Q||e===$Q)return!0;if("string"==typeof e)try{e=new ZQ(e,this.options)}catch(e){return!1}return KQ(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof UQ))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new QQ(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new QQ(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=KQ(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=KQ(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||r||i&&o||a||s}}var WQ=UQ;const YQ=TJ,{re:XQ,t:GQ}=EJ.exports,KQ=FZ,JQ=CJ,ZQ=FJ,QQ=vQ,e0=vQ;var t0=(e,t,n)=>{try{t=new e0(t,n)}catch(e){return!1}return t.test(e)};const n0=vQ;var r0=(e,t)=>new n0(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const i0=FJ,o0=vQ;var a0=(e,t,n)=>{let r=null,i=null,o=null;try{o=new o0(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new i0(r,n)))})),r};const s0=FJ,l0=vQ;var u0=(e,t,n)=>{let r=null,i=null,o=null;try{o=new l0(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new s0(r,n)))})),r};const c0=FJ,d0=vQ,f0=kZ;var h0=(e,t)=>{e=new d0(e,t);let n=new c0("0.0.0");if(e.test(n))return n;if(n=new c0("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let i=null;r.forEach((e=>{const t=new c0(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!f0(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})),!i||n&&!f0(n,i)||(n=i)}return n&&e.test(n)?n:null};const p0=vQ;var m0=(e,t)=>{try{return new p0(e,t).range||"*"}catch(e){return null}};const y0=FJ,g0=WQ,{ANY:v0}=g0,b0=vQ,x0=t0,M0=kZ,S0=OZ,w0=RZ,E0=qZ;var k0=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new y0(e,r),t=new b0(t,r),n){case">":i=M0,o=w0,a=S0,s=">",l=">=";break;case"<":i=S0,o=E0,a=M0,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(x0(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const u=t.set[n];let c=null,d=null;if(u.forEach((e=>{e.semver===v0&&(e=new g0(">=0.0.0")),c=c||e,d=d||e,i(e.semver,c.semver,r)?c=e:a(e.semver,d.semver,r)&&(d=e)})),c.operator===s||c.operator===l)return!1;if((!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const C0=k0;var O0=(e,t,n)=>C0(e,t,">",n);const T0=k0;var A0=(e,t,n)=>T0(e,t,"<",n);const N0=vQ;var q0=(e,t,n)=>(e=new N0(e,n),t=new N0(t,n),e.intersects(t));const D0=t0,R0=eZ;const I0=vQ,_0=WQ,{ANY:P0}=_0,L0=t0,j0=eZ,z0=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===P0){if(1===t.length&&t[0].semver===P0)return!0;e=n.includePrerelease?[new _0(">=0.0.0-0")]:[new _0(">=0.0.0")]}if(1===t.length&&t[0].semver===P0){if(n.includePrerelease)return!0;t=[new _0(">=0.0.0")]}const r=new Set;let i,o,a,s,l,u,c;for(const t of e)">"===t.operator||">="===t.operator?i=F0(i,t,n):"<"===t.operator||"<="===t.operator?o=B0(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=j0(i.semver,o.semver,n),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of r){if(i&&!L0(e,String(i),n))return null;if(o&&!L0(e,String(o),n))return null;for(const r of t)if(!L0(e,String(r),n))return!1;return!0}let d=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver,f=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;d&&1===d.prerelease.length&&"<"===o.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(c=c||">"===e.operator||">="===e.operator,u=u||"<"===e.operator||"<="===e.operator,i)if(f&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===f.major&&e.semver.minor===f.minor&&e.semver.patch===f.patch&&(f=!1),">"===e.operator||">="===e.operator){if(s=F0(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!L0(i.semver,String(e),n))return!1;if(o)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=B0(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!L0(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&u&&!o&&0!==a)&&(!(o&&c&&!i&&0!==a)&&(!f&&!d))},F0=(e,t,n)=>{if(!e)return t;const r=j0(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},B0=(e,t,n)=>{if(!e)return t;const r=j0(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var V0=(e,t,n={})=>{if(e===t)return!0;e=new I0(e,n),t=new I0(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=z0(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const H0=EJ.exports;var $0={re:H0.re,src:H0.src,tokens:H0.t,SEMVER_SPEC_VERSION:kJ.SEMVER_SPEC_VERSION,SemVer:FJ,compareIdentifiers:qJ.compareIdentifiers,rcompareIdentifiers:qJ.rcompareIdentifiers,parse:WJ,valid:XJ,clean:KJ,inc:ZJ,diff:oZ,major:sZ,minor:uZ,patch:dZ,prerelease:hZ,compare:eZ,rcompare:mZ,compareLoose:gZ,compareBuild:bZ,sort:MZ,rsort:wZ,gt:kZ,lt:OZ,eq:nZ,neq:AZ,gte:qZ,lte:RZ,cmp:FZ,coerce:UZ,Comparator:WQ,Range:vQ,satisfies:t0,toComparators:r0,maxSatisfying:a0,minSatisfying:u0,minVersion:h0,validRange:m0,outside:k0,gtr:O0,ltr:A0,intersects:q0,simplifyRange:(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>R0(e,t,n)));for(const e of a){D0(e,t,n)?(o=e,i||(i=e)):(o&&r.push([i,o]),o=null,i=null)}i&&r.push([i,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push("<="+t):s.push(`${e} - ${t}`):s.push(">="+e):s.push("*");const l=s.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return l.length<u.length?l:t},subset:V0},U0="0.23.1";const W0=e=>!e||$0.lt($0.coerce(e),$0.coerce(U0)),Y0=({layoutService:e,flags:t})=>{const n=t.isEnabled("BARS_IN_SECONDARY_AXIS")&&!W0(e.getLayoutValue("version")),r=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[Ho.BAR]:0,[Ho.LINE]:0,[Ho.MARKER]:0};return({series:r=Uo},i)=>{const o=wJ(r,t),a=wh(r);return{id:i,type:a,typeIndex:n[a]++,ref:"qMeasureInfo/"+i,refIndex:i,isPrimary:o,scale:o?Vo.SCALE.MINOR.PRIMARY:Vo.SCALE.MINOR.SECONDARY,collection:o?Vo.COLLECTION.PRIMARY:Vo.COLLECTION.SECONDARY,options:SJ({series:r,layoutService:e})}}})(e,n)),i=(e,t)=>e.filter((e=>wh(e)===t)).length,o=r.filter((e=>e.isPrimary)),a=r.filter((e=>!e.isPrimary)),s=[!!o.length&&o[0],!!a.length&&a[0]].filter((e=>!!e)),l=i(r,Ho.BAR),u=i(o,Ho.BAR),c=i(a,Ho.BAR),d=e=>r.filter((t=>wh(t)===e)),f=d(Ho.LINE).map((e=>Es(Vo.COMPONENT.POINT,e))),h=d(Ho.MARKER).map((e=>({key:Es(Vo.COMPONENT.MARKER,e),type:e.options.marker}))),p=h.map((e=>e.key)),m=[];u>0&&m.push(`${Vo.COMPONENT.BAR}-${$o.PRIMARY}`),c>0&&m.push(`${Vo.COMPONENT.BAR}-${$o.SECONDARY}`);const y=[...m,...f,...p],{MINI_CHART:g}=Vo.COMPONENT,v=d(Ho.LINE).map((e=>Es(g.LINE,e))),b=d(Ho.MARKER).map((e=>Es(g.MARKER,e))),x=e.meta.isContinuous?[`${g.BAR}-${$o.PRIMARY}`,`${g.BAR}-${$o.SECONDARY}`,...v,...b]:[];return{meta:{allSeries:r,primarySeries:o,secondarySeries:a,barSeriesCount:l,primaryBarSeriesCount:u,secondaryBarSeriesCount:c,measureAxes:s,pointComponentKeys:f,markerComponentKeys:p,barComponentKeys:m,seriesComponentKeys:y,miniComponentKeys:x,markers:h},query:{all:()=>r,seriesByAxis:e=>e?o:a,series:d,isPrimary:wJ}}};function X0(e){return function({layout:t}){var n,r,i;const o=Uu(t,"qHyperCube.qMeasureInfo",[]),a=o.some((({series:e=Uo})=>wh(e)===Ho.LINE)),s=k.continuous(t,(()=>a&&x.isTime(!0,t))),l=e.isEnabled("BARS_IN_SECONDARY_AXIS")&&!W0(Uu(t,"version","")),u=o.filter((({series:e=Uo})=>wh(e)===Ho.BAR)),c=u.length,d=u.filter((e=>e.series.axis===$o.PRIMARY)).length,f=u.filter((e=>e.series.axis===$o.SECONDARY)).length,h=l?d>1||f>1:c>1,p=("grouped"!==Uu(t,"barGrouping.grouping")||s)&&h,m=!p&&c>1,y=l&&p&&(d>0&&f>1||d>1&&f>0),g=!(null==t||null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r||null===(i=r[0])||void 0===i||!i.qLocked);return{canBeContinuous:x.canBeContinuous(t),isDiscrete:!s,isContinuous:s,isTime:x.isTime(s,t),isSnapshot:k.snapshot(t),isBarSeriesStacked:p,isBarSeriesGrouped:m,isBarSeriesStackedInBothAxis:y,isGrouped:m||y,isGroupedByMeasure:m||y,isDimensionLocked:g,groupSize:y?2:c,hasLineSeries:a}}}function G0({layoutService:e}){const{dimensionCount:t,measureCount:n}=e.meta;return{qTop:0,qLeft:0,qWidth:t+n,qHeight:Math.min(2e3,1e4/(n+1))}}function K0({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(O).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize")}}}))}(e,t,{path:"/qHyperCubeDef",rect:G0({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function J0({genericObjectModel:e,layoutService:t}){const{isSnapshot:n,isContinuous:r}=t.meta;return n?function({layoutService:e}){return function(){return Promise.resolve({reducedCube:e.getLayoutValue("reducedHyperCube")||e.getHyperCube()})}}({layoutService:t}):r?function({layoutService:e}){return function(){const t=e.getHyperCube();return Promise.resolve({reducedCube:{...t,qDataPages:[...t.qDataPages]}})}}({layoutService:t}):K0({genericObjectModel:e,layoutService:t})}const Z0=e=>"number"==typeof e&&!Number.isNaN(e);function Q0({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),i=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),o=i.filter((e=>wh(e.series)===Ho.BAR)),a=i.filter((e=>wh(e.series)===Ho.LINE)),s=i.filter((e=>wh(e.series)===Ho.MARKER));return{min:Math.min(...i.filter((e=>Z0(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>Z0(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>Z0(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>Z0(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>Z0(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>Z0(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>Z0(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>Z0(e.qMax))).map((e=>e.qMax)))}}}}function e1({isPrimary:e,layoutService:t,seriesModel:n}){const r=Q0({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(Ho.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:i}=n,o={min:NaN,max:NaN};return i.forEach((e=>{let t=0,n=0;e.slice(1).filter(((e,t)=>r.some((e=>e===t))&&"NaN"!==e.qNum)).forEach((e=>{e.qNum>=0?n+=e.qNum:t+=e.qNum})),o.min=Number.isNaN(o.min)?t:Math.min(t,o.min),o.max=Number.isNaN(o.max)?n:Math.max(n,o.max)})),o}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=i({dataPage:e}),t.min=Math.min(t.bar.min,t.line.min,t.marker.min),t.max=Math.max(t.bar.max,t.line.max,t.marker.max),t}}function t1({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:i}){const o={min:NaN,max:NaN,implicit:{min:NaN,max:NaN,bar:{min:NaN,max:NaN},line:{min:NaN,max:NaN},marker:{min:NaN,max:NaN}},explicit:{min:NaN,max:NaN},meta:{hasExplicit:!1,hasExplicitMin:!1,hasExplicitMax:!1,includesZero:!1}},a=function({isPrimary:e,layoutService:t,seriesModel:n}){const{isBarSeriesStacked:r}=t.meta;return r?e1({isPrimary:e,layoutService:t,seriesModel:n}):Q0({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:i});return{query:{getExtrema:()=>o},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,i=r("measureAxes."+(e?0:1),{});if(i.autoMinMax)return n;const{minMax:o,min:a,max:s}=i;return"min"!==o&&"minMax"!==o||(n.min=a),"max"!==o&&"minMax"!==o||(n.max=s),Number.isNaN(n.min)||Number.isNaN(n.max)||(n.min=Math.min(a,s),n.max=Math.max(a,s)),n}({isPrimary:e,layoutService:n});return o.explicit.min=s,o.explicit.max=l,o.meta.hasExplicitMin=!Number.isNaN(s),o.meta.hasExplicitMax=!Number.isNaN(l),o.meta.hasExplicit=o.meta.hasExplicitMin||o.meta.hasExplicitMax,function({continuousModel:e,layoutService:t,reducedModel:n}){const{isDiscrete:r}=t.meta;if(r){const e=n.query.getCube();return Promise.resolve({dataPage:e.qDataPages[0]})}return e.fetchMinMaxData().then((e=>({dataPage:e[0]})))}({continuousModel:t,layoutService:n,reducedModel:r}).then((({dataPage:t})=>{const{min:n,max:r,bar:s,line:l,marker:u}=a({dataPage:t}),c=i.query.seriesByAxis(e).some((e=>wh(e)===Ho.BAR)),d=c?Math.min(n,0):n,f=c?Math.max(r,0):r,h=c?Math.min(s.min,0):s.min,p=c?Math.max(s.max,0):s.max,m=c?Math.min(l.min,0):l.min,y=c?Math.max(l.max,0):l.max,g=c?Math.min(u.min,0):u.min,v=c?Math.max(u.max,0):u.max;o.implicit.min=Number.isFinite(d)?d:0,o.implicit.max=Number.isFinite(f)?f:0,o.implicit.bar.min=Number.isFinite(h)?h:0,o.implicit.bar.max=Number.isFinite(p)?p:0,o.implicit.line.min=Number.isFinite(m)?m:0,o.implicit.line.max=Number.isFinite(y)?y:0,o.implicit.marker.min=Number.isFinite(g)?g:0,o.implicit.marker.max=Number.isFinite(v)?v:0,o.min=Number.isNaN(o.explicit.min)?o.implicit.min:o.explicit.min,o.max=Number.isNaN(o.explicit.max)?o.implicit.max:o.explicit.max,o.meta.hasExplicitMin&&!o.meta.hasExplicitMax&&(o.max=Math.max(o.min,o.max)),o.meta.hasExplicitMax&&!o.meta.hasExplicitMin&&(o.min=Math.min(o.min,o.max)),o.meta.includesZero=!!((0-o.min)*(0-o.max)<=0)}))}}}}function n1({extrema:e,ticks:t}){const n=e.meta.hasExplicit?2:3;return t.filter((t=>(t=>!e.meta.hasExplicitMin||t>=e.explicit.min)(t)&&(t=>!e.meta.hasExplicitMax||t<=e.explicit.max)(t))).length>=n}function r1({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=In().domain([e,t]);return r.nice(n),r}(e,t,n),a=function({min:e,max:t,threshold:n,scale:r,disable:i}){const o={start:!0,stop:!0};if(i)return o;const[a,s]=r.domain();return 0!==e&&0!==a&&(o.start=r(e)>n),0!==t&&0!==s&&(o.stop=r(t)<1-n),o}({min:e,max:t,threshold:r,scale:o,disable:i});if(!a.start||!a.stop){const[e,t]=o.domain(),r=o.ticks(n),i=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;o.domain([a.start?e:e-i,a.stop?t:t+s]),o.nice(n)}return o}const i1=50,o1=100,a1=200,s1=125;function l1({config:{measureAxesRef:e},layoutService:t,size:n}){const r=(e=>{switch(e){case.5:return i1;case 1:return o1;case 2:return a1;default:return e*s1}})(t.getLayoutValue(e+".spacing",1));return Math.max(1,Math.round(n/r))}function u1({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:o,min:a,max:s}){const l=l1({config:e,layoutService:n,size:o}),u=r1({min:a,max:s,count:l,threshold:.05,disable:!0}),c=u.domain(),d={roundedMin:c[0],roundedMax:c[1],ticks:u.ticks(l)},f="horizontal"===r.meta.major.orientation?"height":"width",h=e=>i(e)[f],p=t.formatter(e.formatter),m=()=>{const e=d.ticks.map(p);return!e.some(((t,n)=>e.indexOf(t)!==n))&&(e=>{const t=o/d.ticks.length;return Math.max(...e.map(h))<=t})(e)};for(let e=l-1;e>0&&!m();e--)u.domain([a,s]),u.nice(e),[d.roundedMin,d.roundedMax]=u.domain(),d.ticks=u.ticks(e);return d}function c1({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function d1({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}function f1({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=r1({min:r,max:i,count:10,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(10),l=function({ticks:e}){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),u=l?c1:d1;o.ticks=s.filter(((e,t,n)=>u({tick:e,index:t,ticks:n})));o.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(o.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const c=t.formatter(e.formatter),d=o.ticks.map(c);return d.some(((e,t)=>d.indexOf(e)!==t))&&(o.ticks=[o.ticks[0],o.ticks[o.ticks.length-1]]),o}function h1({ticks:e,extrema:t}){let n=[...e];return t.meta.hasExplicit&&e.length?(t.meta.hasExplicitMin&&!e.some((e=>e===t.explicit.min))&&(n.unshift(t.explicit.min),n=n.filter((e=>e>=t.explicit.min))),t.meta.hasExplicitMax&&!e.some((e=>e===t.explicit.max))&&(n.push(t.explicit.max),n=n.filter((e=>e<=t.explicit.max))),n):n}function p1({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){const{ticks:u,roundedMin:c,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){if("SPARK"===r.meta.chart.mode)return function({min:e,max:t}){return{roundedMin:e,roundedMax:t,ticks:[]}}({min:s,max:l});const u=u1({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return n1({extrema:i,ticks:u.ticks})?u:f1({config:e,chart:t,extrema:i,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}),f=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}({ticks:u,count:1});return{min:c,max:d,values:[...h1({ticks:u,extrema:i}).map((e=>({value:e,isMinor:!1}))),...f.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value))}}function m1({config:e,chart:t,layoutService:n,dockService:r,measureText:i,extrema:o,size:a}){const{min:s,max:l}=function({extrema:e}){const{min:t,max:n}=e;return t!==n?{min:t,max:n}:0===t||1===t?{min:t-1,max:n+1}:{min:t-.2*t*Math.sign(t),max:n+.2*n*Math.sign(n)}}({extrema:o});return p1({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function y1({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,u=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:i,seriesModel:o,themeService:a}){const{measureText:s}=cq.renderer("svg")();return()=>{const l=a.getStyles(),u=function({dockService:e,seriesModel:t,chart:n}){var r;const i=n.component(t.meta.seriesComponentKeys[0]),o=null!==(r=null==i?void 0:i.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?o.height:o.width}({chart:e,dockService:n,seriesModel:o}),c=r.query.getExtrema();return m1({config:t,chart:e,layoutService:i,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:c,size:u})}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}),c=()=>(s.locked&&s.resolved||(s.resolved=u()),s.resolved);return{query:{getValues:()=>c().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:c().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:c().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function g1({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return k.snapshot(e)?Promise.resolve(null):t.getEffectiveProperties().then((e=>({properties:e})))}({layout:t.getLayout(),model:e}).then((e=>{const{properties:t}=null!=e?e:{};n.properties=t}))}}}function v1({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:i,fieldType:o}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===i?"measure"===o?()=>({type:Ho.BAR}):()=>t.query.all()[0]:e=>t.query.all()[e.value];return{item:{shape:{type:({datum:e})=>{const{type:t,options:n}=s(e);switch(t){case"line":return a;case"marker":return n.marker;default:return"square"}},stroke:{},strokeWidth:({datum:e})=>{const{type:t,options:n}=s(e);return t===Ho.LINE?2:t!==Ho.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==Ho.MARKER||r.fill?t(e.value):"none"}}}}}}function b1({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function x1({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:i,flags:o,genericObjectModel:a,layoutService:s,picasso:l,seriesModel:u,viewState:c}){let d;const{theme:f,translator:h}=i,p={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=Iu({picasso:l,model:a,app:n,translator:h,layoutService:s,createConfig:()=>{let e;o.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&(e=s.getHyperCubeValue("qMeasureInfo").map((e=>e.color)));return{theme:f,colorProps:{measureOverrides:e},legendProps:s.getLayoutValue("legend"),hc:s.getHyperCube(),key:Vo.SCALE.COLOR}},config:{auto:b1,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>p.wrappedScales,legendComponents:()=>p.legendComponents,legendInteractions:()=>p.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:o}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:i,colorService:o,actions:a}){const{options:s}=i,l={eventName:"legend-c",key:Vo.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",rtl:"rtl"===s.direction,settings:v1({layoutService:n,seriesModel:r,colorService:o})},{components:u,interactions:c}=o.getLegend(l,{actions:a,navigationDisabled:!a.interact.enabled()}),d=o.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=d[Vo.SCALE.COLOR+"Range"];return!r||"right"!==n&&"left"!==n||(r.invert=!0),"legend-cat"===e.type&&(e.settings.item.shape.fill.scale=e.scale,e.settings.item.shape.stroke.scale=e.scale),e})),interactions:c,scales:d}}({viewState:c,chart:r,environment:i,colorService:d,seriesModel:u,layoutService:s,actions:e});p.wrappedScales=o,p.legendComponents=t,p.legendInteractions=n}}}),d}const M1="REJECTED",S1=()=>{},w1=1e4,E1=2,k1=20,C1=200,O1=10;var T1={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),u=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),c={qArea:{qHeight:s-a,qWidth:u-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)c.qMatrix.push(e.qMatrix[t].slice(l,u));return c},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-O1<=t.qTop,i=n.qLeft+n.qWidth+O1>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+O1>=t.qTop+t.qHeight,a=n.qLeft-O1<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var A1={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-O1<=t.qTop,i=n.qTop+n.qHeight+O1>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({layoutService:e,definitionPath:t}){const n=e.getLayoutValue("dimensionAxis.axisDisplayMode","auto");return e=>{const r={method:"getHyperCubeStackData",args:[t,[e]]};return"auto"===n&&r.args.push(600),r}}};var N1={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const q1="pages";const D1="discretePan";function R1({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:D1,pointers:1,threshold:10,enable(r,i){return this.started===D1||!i||!!t.scroll.enabled()&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{discretePanstart(e){e.preventDefault(),this.started=D1;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},discretePanmove(e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},discretePanend(e){e.preventDefault(),this.started=!1},discretePancancel(e){e.preventDefault(),this.started=!1}}}}function I1({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=100*Math.sign(-a);r.scroll(s)}}function _1({layoutService:e,areaBuffer:t}){const n=void 0===t?function({layoutService:e}){const t=Math.floor(w1/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(C1,n));return{width:e,height:Math.max(k1,Math.min(n*E1,r))}}}({layoutService:e}):function({layoutService:e}){const t=Math.floor(w1/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){return{width:e,height:Math.min(t,n)}}}({layoutService:e}),r={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:t,height:i}=n({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=t?Math.ceil((t-e.qWidth)/2):0;return{qHeight:i?Math.min(i,r.height):e.qHeight,qWidth:t?Math.min(t,r.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,r.height-i)):e.qTop,qLeft:t?Math.max(0,Math.min(e.qLeft-a,r.width-t)):e.qLeft}}}function P1(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject(M1),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(M1),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(M1),n=null)},i}const L1={command:{update:()=>{}}};function j1({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=L1,definitionPath:o,areaBuffer:a,processDataPage:s}){const{slicer:l,cacheWarden:u,request:c}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:u}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&u&&u();const c=r(l);return o(i(c)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:l,warden:u({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:_1({layoutService:r,areaBuffer:a}),request:c({layoutService:r,definitionPath:o}),process:P1(n),connectionless:r.meta.isSnapshot,processDataPage:s}),f=Gu(((e,{onProcessing:t,onData:n})=>{d(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==M1)throw e}))}),50);return function(e,{onProcessing:t=S1,onDataPage:n=S1}={}){f(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var z1={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var F1={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function B1(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function V1(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function H1(e){return V1(e.qMatrix,(e=>e[0].qElemNumber))-1}var $1={inTotal:function({layoutService:e}){const t=B1(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=B1(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=B1(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=H1(o),u=o.qArea.qHeight*i+l,c=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[c,n.inView>=n.inTotal?c+1:c+u/n.inView]}};const U1=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function W1(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return U1(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n})(t.qMatrix,n);return r.successful?r.count:U1(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return U1(e,n);return V1(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var Y1={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=W1(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:u}=n,c=W1(t).area(e(),l,a.qArea),d=H1(a),f=a.qArea.qHeight+d,h=u===o?(r.inView-f)*s/i:(u+(a.qArea.qTop+c)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function X1({rect:e,dockService:t,itemWidths:n,dimensionAxis:r,inTotal:i,isMajorVisible:o,isMajorLabelless:a,maxDataRows:s}){const{DEFAULT:l,SQUEEZE:u,LABELLESS:c}=n[t.meta.chart.mode],{axisDisplayMode:d="auto",maxVisibleItems:f=10}=r,h="horizontal"===t.meta.major.orientation?e.width:e.height,p=h/i>=u;switch(d){case"max":return Math.min(i,s);case"custom":return Math.min(f,s);case"auto":default:return!o||a?h/c:p?i:h/l}}function G1({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,areaBuffer:s,rtl:l}){const{inTotal:u,area:c,scaleRange:d}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?z1:n?r?$1:Y1:F1}({layoutService:r}),f=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,h=e=>e?f()/e:0,p=(e,t)=>-(e-t)*h(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),s=u({layoutService:r}),l=e.component(a),c=!a||!l||l.isVisible();return{inTotal:s,inView:X1({rect:t(),dockService:i,itemWidths:o(),dimensionAxis:n,inTotal:s,isMajorVisible:c,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(w1/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return h(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,p(n,r)));return{pixel:i,item:r?Math.abs(r*i/f()):0}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return p(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,o+e/i]}({viewSize:f(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>c({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:s}),getScaleRange({offsets:e,items:t}){const o=d({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:f(),upperBound:p(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&l?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=p(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*h(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(h(r)*n)}}}}function K1({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:u,areaBuffer:c,viewState:d,rtl:f}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const h=G1({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:u,areaBuffer:c,rtl:f}),p=()=>{const e=h.getItems();return n.set("items",e),e},m=({pixelOffset:e,items:t})=>{const r=h.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=p(),a=m({pixelOffset:e,items:r}),s=h.getArea({itemOffset:a.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((h.validate.offset({pixelOffset:e,items:r})||d.get("scrollOffset")!==a.item)&&(n.set("finished",t),n.set("scaleRange",h.getScaleRange({offsets:a,items:r})),d.preventSet("viewRange",h.getViewRange({pixelOffset:a.pixel,items:r})),d.set("scrollOffset",a.item)));d.preventSet("viewRange",h.getViewRange({pixelOffset:a.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",h.getScaleRange({offsets:a,items:r})),d.set("scrollOffset",a.item))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=p();n.set("itemSize",h.getItemSize({items:a}));const u=void 0===d.get("scrollOffset")?(({items:e})=>1===o.getLayoutValue("scrollStartPos")?h.getUpperBound({items:e}):0)({items:a}):h.convert.itemToPixelOffset({itemOffset:d.get("scrollOffset"),items:a}),c=m({pixelOffset:u,items:a});d.preventSet("viewRange",h.getViewRange({pixelOffset:c.pixel,items:a}));const f=h.getArea({itemOffset:c.item,items:a});return new Promise((e=>{i(f,{onDataPage:()=>{n.set("scaleRange",h.getScaleRange({offsets:c,items:a})),d.preventSet("scrollOffset",c.item),e()}})}))},scroll(e){const t=n.get("offsets").pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=h.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function J1({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:u,options:{definitionPath:c="/qHyperCubeDef",getRect:d,axisKey:f,areaBuffer:h,processDataPage:p=(()=>{})}={}}){const m=Yu(),y=function({qMode:e}){switch(e){case"S":default:return T1;case"K":return A1;case"T":return N1}}({qMode:i.getHyperCubeValue("qMode")}),g=function({state:e,contains:t}){return e.set(q1,[]),{add:t=>{const n=e.get(q1);n.length=0,n.push(t)},getCurrent:()=>e.get(q1)[0],getAll:()=>e.get(q1),contains:n=>t(e.get(q1)[0],n)}}({state:m,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:g,composition:y});const v=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:h}),b=j1({dataStore:g,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:c,areaBuffer:v,processDataPage:p}),x=K1({chart:e,componentKey:n,state:m,dataStore:g,pageData:b,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,areaBuffer:v,viewState:l,rtl:u}),M=function({layoutService:e,dataStore:t}){return function(n){const r=Uu(n,""+e.refs.dataPages);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:g});return{interactions:function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[R1({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:I1({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:u,scroller:x}),query:{getCanScroll:()=>x.enabled(),getItemSize:()=>x.itemSize(),getScaleRange:()=>x.scaleRange(),getCurrentDataPage:()=>g.getCurrent()},command:{initialize:()=>x.initialize(),scrollTo:e=>x.scrollToRelative(e),setSnapshotData:e=>M(e)}}}var Z1={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}};function Q1({appLayoutModel:e,appModel:t,chart:n,environment:r,flags:i,genericObjectModel:o,layout:a,picasso:s}){const{translator:l,embed:u}=r,c=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:ia,miniChartToken:{},embed:s}}({layout:a,app:t,model:o,picasso:s,chart:n,translator:l,localeInfo:e.qLocaleInfo,embed:u});return{query:{useCustomTooltip:()=>c.useCustomTooltip,useTooltipChart:()=>{var e,t,n,r;return i.isEnabled("CUSTOM_TOOLTIP_CHART")&&(null===(e=a.tooltip)||void 0===e||null===(t=e.chart)||void 0===t||null===(n=t.object)||void 0===n?void 0:n.refId)&&c.embed&&"function"==typeof(null===(r=c.model)||void 0===r?void 0:r.getEffectiveProperties)},hasChartLimitation:()=>{var e;return null==t||null===(e=t.isInModalSelection)||void 0===e?void 0:e.call(t)},getCustomTooltipModel:()=>c}}}function e2({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:r,defaultValue:i,index:o})=>{const a=n&&Object.hasOwnProperty.call(n,r)?n[r]:i;if(void 0===o)return a;const{style:s}=e.getHyperCubeValue((e=>`qMeasureInfo.${e}.styling`)(o),[]).filter((e=>e.key===t))[0]||{};return s&&Object.hasOwnProperty.call(s,r)?s[r]:a}}function t2({layoutService:e,dockService:t}){const{BAR:n,LINE:r,POINT:i}=Is,o=e2({layoutService:e,key:"bar"}),a=e2({layoutService:e,key:"line"}),s=()=>{const e=o({property:"strokeWidth",defaultValue:"none"});return e?n.STROKE.WIDTH[e.toUpperCase()]:0};return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>o({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!s(),getStrokeWidth:()=>s(),getStrokeColor:()=>o({property:"strokeColor",defaultValue:{index:-1,color:n.STROKE.COLOR}}).color},line:{getCurveFn:()=>(e,t)=>a({property:"lineCurve",defaultValue:r.CURVE.LINEAR,index:t}),getStrokeWidthFn:()=>(e,n)=>a({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?r.WIDTH.FULL.DEFAULT:r.WIDTH.LESS.DEFAULT,index:n}),getStrokeDasharrayFn:()=>(e,t)=>{const n=a({property:"lineType",defaultValue:r.TYPE.SOLID,index:t});return n&&r.TYPE[n.toUpperCase()]}},point:{getSize:e=>a({property:"dataPointSize",defaultValue:i.SIZE.DEFAULT,index:e})}}}}const{model:n2}=$p,r2=({picasso:t,chart:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,selectionService:l})=>{const u=e.useStaleLayout(),{width:c,height:d}=e.useRect(),[f,h]=e.useState(),[p,m]=e.useState(),y=e.useModel(),g=e.useApp(),v=e.useAppLayout(),b=e.usePlugins();e.useEffect((()=>{if(!(u&&null!=n&&n.update&&r&&o))return;const e=function(e){var t=e.source,n=e.metaAdditionsFn,r=xl(!0,{},t),i=Ju(r),o=function(){return function(e){var t=e.layout,n=e.additionsFn,r=void 0===n?function(){return{}}:n,i=e.additionsProps,o=void 0===i?{}:i,a=t.qHyperCube,s=a.qDimensionInfo,l=a.qMeasureInfo,u=a.qMode,c=s.length,d=l.length,f=al({mode:{S:"S"===u,P:"P"===u,K:"K"===u,T:"T"===u},dimensionCount:c,measureCount:d,hasMultipleDimensions:c>1,hasMultipleMeasures:d>1,isOneDimensional:1===c,isTwoDimensional:2===c},o);return al(al({},f),r({layout:t,meta:f}))}({layout:r,additionsFn:n,additionsProps:{size:i.size}})},a={refs:al({},i.refs),meta:o(),getLayout:function(){return r},getLayoutValue:function(e,t){return Uu(r,e,t)},setLayoutValue:function(e,t){Wu(r,e,t),i=Ju(r),a.meta=o()},getHyperCube:function(){return r.qHyperCube},getHyperCubeValue:function(e,t){return Uu(r.qHyperCube,e,t)},setHyperCubeValue:function(e,t){Wu(r.qHyperCube,e,t),i=Ju(r),a.meta=o()},getDataPages:function(){return Uu(r,i.refs.dataPages)},setDataPages:function(e){Wu(r,i.refs.dataPages,e),a.meta=o()}};return a}({source:u,metaAdditionsFn:X0(i)}),{viewState:f={}}=r.options,{legendScrollOffset:p,scrollOffset:m}=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):f;o.preventSet("scrollOffset",m),o.preventSet("legendScrollOffset",p),o.preventSet("title",e.getLayoutValue("title"));const x=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=J0({genericObjectModel:e,layoutService:t});return{query:{getCube:()=>n.cube,getIsReduced:()=>n.on},command:{initialize:()=>r().then((({reducedCube:e})=>{n.cube=e,n.on=!!(n.cube&&n.cube.qDataPages[0]&&n.cube.qDataPages[0].qIsReduced)})),setSnapshotData:e=>{e.reducedHyperCube=n.cube}}}}({genericObjectModel:y,layoutService:e}),M=$u({chart:n,layoutService:e,config:{logicalSize:{width:c,height:d},rtl:"rtl"===r.options.direction},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),S=t2({layoutService:e,dockService:M}),w=Y0({layoutService:e,flags:i}),E=e.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:i,viewState:o,rtl:a,actions:s}){return J1({chart:e,actions:s,componentKey:Up(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:Z1,options:{axisKey:Vo.COMPONENT.AXIS.MAJOR}})}({chart:n,genericObjectModel:y,layoutService:e,dockService:M,seriesModel:w,viewState:o,rtl:"rtl"===r.options.direction,actions:s}):void 0,k=e.meta.isContinuous?n2({model:y,layoutService:e,viewState:o,viewCache:a}):void 0,C=x1({actions:s,appLayoutModel:v,appModel:g,chart:n,environment:r,flags:i,genericObjectModel:y,layoutService:e,picasso:t,seriesModel:w,viewState:o}),O=function(e){var t=e.theme,n=e.styleMatrix,r={theme:t,styleMatrix:Sf(void 0===n?[]:n),styles:void 0};return r.styles=wf(r.styleMatrix,t),{getStyles:function(){return r.styles},getTheme:function(){return r.theme},setTheme:function(e){r.theme=e,r.styles=wf(r.styleMatrix,e)}}}({theme:r.theme,styleMatrix:vJ}),T=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=r+":numeric";return{main:{major:r,majorNumeric:i,minorsPrimary:t.meta.primarySeries.map((e=>e.ref)),minorsSecondary:t.meta.secondarySeries.map((e=>e.ref))},virtuals:n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0}}({layoutService:e,seriesModel:w}),A=t1({isPrimary:!0,layoutService:e,reducedModel:x,seriesModel:w,continuousModel:k,flags:i}),N=t1({isPrimary:!1,layoutService:e,reducedModel:x,seriesModel:w,continuousModel:k,flags:i}),q=y1({config:{measureAxesRef:"measureAxes.0",formatter:Vo.FORMATTER.PRIMARY},chart:n,layoutService:e,extremumModel:A,dockService:M,seriesModel:w,themeService:O}),D=y1({config:{measureAxesRef:"measureAxes.1",formatter:Vo.FORMATTER.SECONDARY},chart:n,layoutService:e,extremumModel:N,dockService:M,seriesModel:w,themeService:O}),R=g1({genericObjectModel:y,layoutService:e}),I=Q1({appLayoutModel:v,appModel:g,chart:n,environment:r,flags:i,genericObjectModel:y,layout:u,picasso:t}),_=Fo({layoutService:e,discreteModel:E}),P=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:Vo.SCALE.MAJOR,MAJOR_INNER:Vo.SCALE.MAJOR_INNER,MINOR:{PRIMARY:Vo.SCALE.MINOR.PRIMARY,SECONDARY:Vo.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${Vo.COMPONENT.BAR}-${$o.PRIMARY}`,BAR_SECONDARY:`${Vo.COMPONENT.BAR}-${$o.SECONDARY}`,AXIS:{MAJOR:Vo.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:Vo.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:Vo.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:Vo.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:Vo.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:Vo.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:Vo.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:Vo.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:Vo.COLLECTION.MAIN}}}}(e),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 rl(regeneratorRuntime.mark((function e(){var r,a,s,l;return regeneratorRuntime.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=rl(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.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(al({},i));case 4:if("object"===tl(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(al({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,ul(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=ll(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=xl(!0,{},n.brush);xl(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===tl(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=Zu({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=Zu({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:b,pluginArgs:P});h({selectionService:l,genericObjectModel:y,appModel:g,dockService:M,styleModel:S,layoutService:e,fieldModel:T,seriesModel:w,reducedModel:x,primaryExtremumModel:A,secondaryExtremumModel:N,primaryTickModel:q,secondaryTickModel:D,propertiesModel:R,colorService:C,themeService:O,appLayoutModel:v,tooltipModel:I,flags:i,...E&&{discreteModel:E},...k&&{continuousModel:k},refLineModel:_,pluginService:L})}),[u,y,g,v,r,null==n?void 0:n.update,o]);const[,x]=e.usePromise((()=>{if(!f)return Promise.resolve();const{layoutService:e,colorService:t,reducedModel:n,primaryExtremumModel:i,secondaryExtremumModel:a,propertiesModel:u,continuousModel:c,discreteModel:d,pluginService:h}=f,p=c?()=>{var t,n;c.update(e.getLayout());const i=c.initialFetch(),a=!e.meta.isSnapshot&&(null==r||null===(t=r.options)||void 0===t||null===(n=t.viewState)||void 0===n?void 0:n.zoom);return a&&o.preventSet("zoom",a),i}:()=>Promise.resolve(),g=t.initialize().then((()=>{const e=t.getSettings().field;l.setBrushAliases({colorField:e}),t.custom.updateLegend()}));return Promise.all([h.initialize(),n.command.initialize(),y?u.command.initialize():Promise.resolve(),g,p(),s.scroll.attachDiscreteModel(d)]).then((()=>Promise.all([i.command.initialize(),a.command.initialize()]).then((()=>m(f)))))}),[f]);if(x)throw x;return p};function i2(){const[t,n]=e.useState();return e.useEffect((()=>{n(function(e){var t=al({},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}({viewRange:[0,1],scrollOffset:void 0}))}),[]),t}const o2={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"}}]};const a2={query:{getCanScroll:()=>!0}};function s2(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState(!1),[a,s]=e.useState(!1),l=function(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState({}),[a,s]=e.useState();return e.useEffect((()=>()=>{o({})}),[]),e.useEffect((()=>{t&&r(!t.select&&!t.active)}),[t]),{enabled:()=>n,emit:(e,...t)=>i[e].forEach((e=>e(...t))),removeListener:(e,t)=>{var n;const r=null===(n=i[e])||void 0===n?void 0:n.indexOf(t);r>-1&&i[e].splice(r,1)},on:(e,t)=>{Array.isArray(i[e])?i[e].push(t):i[e]=[t]},get brushSelectionIncludeMax(){return a},set brushSelectionIncludeMax(e){s(e)},getBrushOptions:void 0}}(),u=function(){var t,n,r;const i=e.useConstraints(),[o,a]=e.useState(!1),[s,l]=e.useState(!1),u=e.useLayout(),c=!!u.qSelectionInfo.qInSelections,d=!(null===(t=u.qHyperCube)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n||null===(r=n[0])||void 0===r||!r.qIsOneAndOnlyOne);e.useEffect((()=>{i&&a(!i.select&&!i.active)}),[i]);const f=e=>{l("boolean"==typeof e?e:!s)};return e.useAction((()=>({key:"lasso",label:"Lasso",icon:o2,hidden:!o||!c||d,active:s,action:f})),[c,d,s,o]),{action:f,enabled:()=>o,active:()=>s}}();let c=a2;e.useEffect((()=>{t&&(r(!t.active),o(!t.active),s(!t.passive))}),[t]);const[d]=e.useState({});return d.scroll={enabled:()=>n&&c.query.getCanScroll(),attachDiscreteModel:e=>{c=e||a2}},d.interact={enabled:()=>i},d.tooltip={enabled:()=>a},d.lasso=u,d.select=l,d}function l2({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function u2({setSelectionInfo:e,event:t,components:n,clear:r}){const i=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:i,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&i[0]===Vo.COMPONENT.LEGEND_CATEGORICAL}),r()}var c2={exports:{}};!function(e,t){!function(t,n){e.exports=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/conversion/",n(n.s="./index.js")}({"../node_modules/extend/index.js":
64
64
  /*!***************************************!*\
65
65
  !*** ../node_modules/extend/index.js ***!
66
66
  \***************************************/
@@ -1025,4 +1025,4 @@ function(e,t,n){n.r(t),t.default={useMasterNumberFormat:function(e){e.quarantine
1025
1025
  !*** ./utils/wrap-file-name.js ***!
1026
1026
  \*********************************/
1027
1027
  /*! exports provided: default */
1028
- function(e,t,n){function r(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e}n.r(t),n.d(t,"default",(function(){return r}))}})}))}(c2);var d2=n(c2.exports);const f2={version:"1.8.9",qHyperCubeDef:{qAlwaysFullyExpanded:!0,qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},showTitles:!0,subtitle:"",title:"",footnote:"",barGrouping:{grouping:"grouped"},orientation:"vertical",scrollStartPos:0,nullMode:"gap",dataPoint:{show:!1,showLineLabels:!1,showBarLabels:!1},color:{auto:!0,mode:"primary",useBaseColors:"off",paletteColor:{index:6},useDimColVal:!0,useMeasureGradient:!0,persistent:!1,expressionIsColor:!0,expressionLabel:"",measureScheme:"sg",reverseScheme:!1,dimensionScheme:"12",autoMinMax:!0,measureMin:0,measureMax:10},legend:{dock:"auto",show:!0,showTitle:!0},components:[],dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},measureAxes:[{show:"all",dock:"near",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10},{show:"all",dock:"far",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10}],refLine:{refLines:[],refLines2:[],dimRefLines:[]},preferContinuousAxis:!0,showMiniChartForContinuousAxis:!0,tooltip:{auto:!0,hideBasic:!1,title:"",description:"",chart:void 0,imageComponents:void 0}};var h2=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let i;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)i=wh(n[e].qDef.series),i===Ho.BAR?r[0]=1:i===Ho.LINE?r[1]=1:r[2]=1;const o=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(o)},p2=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===Ho.LINE?"Visualizations.Descriptions.HeightLine":e===Ho.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function m2(e){var t,n;const r=e.qHyperCubeDef.qMeasures,i=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===i&&1===r.length&&wh(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===Ho.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function y2(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:h2(t)},measures:{min:1,max:15,description:p2(t),added({qDef:e},t){var n;m2(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:Ho.LINE,axis:$o.SECONDARY}:e.series={type:Ho.BAR,axis:$o.PRIMARY})},moved(e,t){m2(t)}}}}function g2(e){const t=y2(e);return{properties:f2,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=d2.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),o="linechart"===e.properties.visualization,a=[];i.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:o?"line":"bar",axis:0,marker:"circle",markerFill:!0}),a.indexOf(e.qDef.series.axis)<0&&a.push(e.qDef.series.axis)}));const s=a.sort().shift();return i.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&d(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>d2.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}function v2(){const e={component:"dropdown",type:"string",expression:"optional",baseRef:"style.strokeWidth",translation:"LayerStyleEditor.style.strokeWidth",show:!0,defaultValue:"none",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"}]},t={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:t=>"none"!==Uu(t,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(t,"bar")}.${e.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},n={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},r={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},i={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineType",translation:"LayerStyleEditor.style.lineType",show:!0,defaultValue:"solid",options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}]},o={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",show:!0,defaultValue:"linear",options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}]};return{component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:["bar","line"],ref:"components",defaultValue:[],defaultValues(a){const s="grouped"===a.barGrouping.grouping,l=a.qHyperCubeDef.qMeasures.filter((e=>wh(e.qDef.series)===Ho.BAR)).length,u=s&&l>1;return[{key:"bar",style:{strokeWidth:e.defaultValue,strokeColor:t.defaultValue(),width:u?.9:.7}},{key:"line",style:{dataPointSize:n.defaultValue,lineThickness:r.defaultValue,lineType:i.defaultValue,lineCurve:o.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:e,barStrokeColor:t,barWidth:{component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>wh(e.qDef.series)===Ho.LINE));return!k.continuous(n.layout,r&&x.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01}}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:n,lineThickness:r,lineType:i,lineCurve:o}}}}}}}function b2(e){const t=Uu(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=Uo})=>wh(e)===Ho.LINE));return k.continuous(e,(()=>t&&x.isTime(!0,e)))}function x2(e){var t,n;return!(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n||!n.on)}function M2(e){var t,n,r;return x2(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(r=n.color)||void 0===r?void 0:r.mode)&&void 0!==t?t:"primary")}function S2(e){var t,n;return x2(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.mode)}function w2(e){var t,n,r,i,o;if(null!=e&&null!==(t=e.color)&&void 0!==t&&t.auto||"byExpression"!==(null==e||null===(n=e.color)||void 0===n?void 0:n.mode))return[];const a=null==e||null===(r=e.color)||void 0===r?void 0:r.colorExpression,s=null!==(i=null==e||null===(o=e.color)||void 0===o?void 0:o.expressionLabel)&&void 0!==i?i:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function E2(e){return S2(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function k2(e){var t,n;(null!==(t=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qMeasures)&&void 0!==t?t:[]).forEach(((t,n)=>function(e,t,n){e.qAttributeExpressions=0===t?[...w2(n),...E2(e)]:E2(e)}(t,n,e)))}function C2(e){const{flags:t}=e,n={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||b2(e)?"stacked":"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.bar",value:"bar"},{icon:"line_chart_line",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.line",value:"line"},{icon:"shapes",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.marker",value:"marker"}],change:e=>(e.qDef.series.type!==Ho.BAR||t.isEnabled("BARS_IN_SECONDARY_AXIS")||(e.qDef.series.axis=0),e)},r={ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}],show(e){var n;return!!t.isEnabled("BARS_IN_SECONDARY_AXIS")||wh(null===(n=e.qDef)||void 0===n?void 0:n.series)!==Ho.BAR}},i={ref:"qDef.series.marker",type:"string",component:"dropdown",defaultValue:"circle",options:[{translation:"properties.marker.circle",value:"circle"},{translation:"properties.marker.rect",value:"rect"},{translation:"properties.marker.diamond",value:"diamond"},{translation:"properties.marker.triangle",value:"triangle"},{translation:"properties.marker.line",value:"line"}],show(e){var t;return wh(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ho.MARKER}},o={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return wh(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ho.MARKER&&!["line"].includes(e.qDef.series.marker)}};let a;if(t.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")){var s,l;const t={ref:"qDef.color.on",translation:"properties.colors",type:"boolean",component:"switch",defaultValue:!1,trueOption:{value:!1,translation:"Common.Auto"},falseOption:{value:!0,translation:"Common.Custom"}},u={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>x2(...e)},c=null===(s=e.anything)||void 0===s||null===(l=s.sense)||void 0===l?void 0:l.theme;a={supPanel:{translation:"properties.measure.moreProperties",title:"properties.measure.moreProperties",subTitle:(e,t,n)=>{var r;return null===(r=n.measureTitle)||void 0===r?void 0:r.call(n)},component:"sub-panel",type:"items",items:{groups:{type:"items",component:"expandable-items",items:{presentation:{type:"items",translation:"properties.presentation",items:{seriesType:n,seriesAxis:r,seriesMarker:i,seriesMarkerFill:o}},color:{type:"items",translation:"properties.color",items:{customColor:t,colorMode:u,paletteColor:{ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=c.getDataColorSpecials(),n=null===(e=c.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,r=n.indexOf(t);return{index:-1===r?Math.min(6,n.length-1):r}},show:M2},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:S2}}}}}}}}}else a={seriesType:n,seriesAxis:r,seriesMarker:i,seriesMarkerFill:o};return{items:{series:{type:"items",items:a}}}}function O2(e,t,n,r){let i;const o=n||0;var a,s;t?i=t.getMeasureLayouts():i=null!==(a=null==e||null===(s=e.qHyperCubeDef)||void 0===s?void 0:s.qMeasures)&&void 0!==a?a:[];return i.filter((e=>{const{series:t}=e||{};return 0===o?wJ(t,r):!wJ(t,r)}))}function T2(e,t){return t.getMeasures().filter((e=>wh(e.qDef.series)===Ho.LINE)).length>0}function A2(e,t,n,r){const i=t.getMeasures().filter((e=>wh(e.qDef.series)===Ho.BAR));return r?i.filter((e=>e.qDef.series.axis===$o.PRIMARY)).length>n||i.filter((e=>e.qDef.series.axis===$o.SECONDARY)).length>n:i.length>n}function N2(e){const{translator:t,flags:n}=e,r=n.isEnabled("BARS_IN_SECONDARY_AXIS"),i={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>k2(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>n.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&e.qHyperCubeDef.qMeasures.some((e=>x2(e)))}}},o={uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:v2(),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t,n)=>A2(0,t,1,r)&&!b2(n.layout)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>b2(n.layout),convertFunctions:(a="vertical",{get:(e,t,n)=>b2(n.layout)?a:e(t.type),set(e,t,n,r){t(n.type,b2(r.layout)?a:e,a)}})},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!b2(n.layout)},nullMode:{type:"string",component:"dropdown",ref:"nullMode",translation:"properties.nullMode",options:[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],defaultValue:"gap",show:(e,t)=>T2(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>T2(0,t),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t)=>A2(0,t,0,r),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:i,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,n){const r="vertical"===n.layout.orientation||b2(n.layout)?"x":"y",i=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,n).map((e=>e.qFallbackTitle||"")).join(", ");let o;return o=i?t.get(`properties.${r}AxisWithInfo`,[i]):t.get(`properties.${r}Axis`),o},items:{othersGroup:{items:{dock:{options(e,t,n){let r="Common.Bottom",i="Common.Top";return"vertical"===n.layout.orientation||b2(n.layout)||(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!b2(n.layout),items:{axisDisplayMode:{type:"string",translation:"properties.axis.displaymode",ref:"dimensionAxis.axisDisplayMode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{type:"integer",translation:"properties.axis.maxvisiblevalues",ref:"dimensionAxis.maxVisibleItems",expression:"optional",defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode,invalid(e){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;return r<0||r>1e4/(t.length+n.length)},globalChange(e){if("custom"===e.dimensionAxis.axisDisplayMode){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;r<1?e.dimensionAxis.maxVisibleItems=10:r>1e4/(t.length+n.length)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(t.length+n.length))))}}},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint.combochart",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}}}},measureAxis:{uses:"axis.measureAxis",label(e,n){const i="vertical"===n.layout.orientation||b2(n.layout)?"y":"x",o=O2(e,n,0,r).map((e=>e.qFallbackTitle));let a;return a=o.length?t.get(`properties.${i}AxisWithInfo`,[o.join(",")]):t.get(`properties.${i}Axis`),a},show:(e,t)=>O2(e,t,0,r).length>0,items:{axis:{items:{show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&wJ(null==e?void 0:e.series,r)))}}},dock:{ref:"measureAxes.0.dock",show:e=>"none"!==e.measureAxes[0].show,options(e,t,n){let r="Common.Bottom",i="Common.Top";return("vertical"===n.layout.orientation||b2(n.layout))&&(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}},spacing:{ref:"measureAxes.0.spacing",show:e=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label(e,n){const i="vertical"===n.layout.orientation||b2(n.layout)?"y":"x",o=O2(e,n,1,r).map((e=>e.qFallbackTitle));let a;return a=o.length?t.get(`properties.${i}AxisWithInfo`,[o.join(",")]):t.get(`properties.${i}Axis`),a},show:(e,t)=>O2(e,t,1,r).length>0,items:{axis:{items:{show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!wJ(null==e?void 0:e.series,r)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:e=>"none"!==e.measureAxes[1].show,options(e,t,n){let r="Common.Bottom",i="Common.Top";return("vertical"===n.layout.orientation||b2(n.layout))&&(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}},spacing:{ref:"measureAxes.1.spacing",show:e=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}}}},tooltips:{uses:"tooltip"}}};var a;n.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(o.items.dimensionAxis.items.othersGroup.items.label={options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]});return{type:"items",component:"accordion",items:{data:{uses:"data",items:{dimensions:{items:{nullSuppression:{show:(e,t,n)=>!b2(n.layout)}}},measures:C2(e)}},sorting:{uses:"sortingWithDisclaimer"},addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},primaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines",translation:"properties.primaryMeasureAxisReferenceLines",title:{translation:"properties.primaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>wJ(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,r)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!wJ(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,r)},dimRefLines:{uses:"dimReflines"}}},settings:o}}}function q2(e){return e.qHyperCubeDef.qMeasures.filter((e=>wh(e.qDef.series)===Ho.LINE)).length>0}function D2(e){const{flags:t}=e,n=e.flags.isEnabled("BARS_IN_SECONDARY_AXIS");return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer"},presentation:{uses:"presentation",type:"items",translation:"properties.presentation",grouped:!0,show:(e,t)=>q2(e)||!b2(t),items:{grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t)=>function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>wh(e.qDef.series)===Ho.BAR));return t?n.filter((e=>e.qDef.series.axis===$o.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===$o.SECONDARY)).length>1:n.length>1}(e,n)&&!b2(t)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!b2(t)},nullMode:{type:"string",component:"radio-list",ref:"nullMode",translation:"properties.nullMode",options:()=>[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],show:e=>q2(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>q2(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>t.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&e.qHyperCubeDef.qMeasures.some((e=>x2(e)))}}}}}}const R2={bar:{axis:0,icon:"bar-chart",tid:"as-bar",translation:"contextMenu.asBar"},line:{axis:1,icon:"line-chart",tid:"as-line",translation:"contextMenu.asLine"},marker:{axis:1,icon:"shapes",tid:"as-marker",translation:"contextMenu.asMarker"}};function I2(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=R2[i];t.addItem({icon:a,tid:s,translation:l,async select(){let t;t="measure"===e.type?await r.addLibraryMeasure(e.id):await r.addExpressionMeasure(e.name,""),t.qDef.series.type=i,t.qDef.series.axis=o,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path","data."+t.qDef.cId)}})}function _2(e,t,n,r,i){!function(e,t,n){const{item:r}=e,i=["contextMenu.add",r.name];if(n.canAddMeasure()){const o=e.menu.addItem({translation:i,tid:"add-as"});I2(r,o,t,n,"bar"),I2(r,o,t,n,"line"),I2(r,o,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,i),e.ColorBy(n,t,i),r()}function P2(e){const t={},{tooltip:n}=e;if(n){var r,i;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(i=r.object)||void 0===i?void 0:i.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const L2=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function j2(e){return{definition:N2(e),softDefinition:D2(e),support:{snapshot:L2,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:_2,extendMetrics:P2,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=d2.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:y2(e),defaultPropertyValues:a,hypercubePath:i});return function(e,t,n){const r="linechart"===n.properties.visualization,i=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),i.indexOf(e.qDef.series.axis)<0&&i.push(e.qDef.series.axis)}));const o=i.sort().shift();e.qProperty.measureAxes[o]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&d(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),t.flags.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&k2(e.qProperty)}(s,e,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return d2.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:function(e){return W0(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{wh(e.qDef.series)===Ho.BAR&&1===e.qDef.series.axis&&(e.qDef.series.axis=0)})),e.version=U0),e}(e)}}}return function(t){const{flags:n}=t,r=yJ();return{qae:g2(t),ext:j2(t),component(){const t=function(){const[t,n]=e.useState();return e.useEffect((()=>n(Yu())),[]),t}(),i=i2(),o=function(){const t=e.useOptions(),n=e.useTranslator(),r=e.useEmbed(),i=e.useTheme(),[o,a]=e.useState(),s=e.useDeviceType();return e.useEffect((()=>{a({options:{direction:"ltr",...t},translator:n,theme:i,embed:r,deviceType:s})}),[t.direction,t.freeResize,n.language(),i.name(),s]),o}(),a=s2(),s=function({picasso:t,environment:n}){const r=e.useElement(),[i,o]=e.useState();return e.useEffect((()=>{if(!n)return;r.style.overflow="hidden";const e=t({renderer:{prio:[n.options.renderer||"canvas"]}}).chart({element:r,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[n]),i}({picasso:r,environment:o}),l=function({chart:t,actions:n}){const r=e.useSelections(),i=e.useStaleLayout(),[o,a]=e.useState();return e.useEffect((()=>{if(null==t||!t.update||!t.scale||!r)return null;const e=t.scale(Vo.SCALE.MAJOR),o=gf({chart:t,actions:n,selections:r,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:e,selectionActions:{clear:l2},selectionEvents:{start:u2}}});o.setLayout(i);const{destroy:s}=o;return a(o),()=>{s()}}),[r,null==t?void 0:t.update,null==t?void 0:t.scale]),e.useEffect((()=>{null!=o&&o.setLayout&&i&&o.setLayout(i)}),[i]),o}({chart:s,actions:a}),u=r2({picasso:r,chart:s,environment:o,flags:n,viewState:i,viewCache:t,actions:a,selectionService:l});ym({picasso:r,chart:s,models:u,environment:o,viewState:i,viewCache:t,actions:a}),(({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s})=>{const{width:l,height:u}=e.useRect(),[,c]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&o))return;const{colorService:e,discreteModel:c,dockService:d,layoutService:f,refLineModel:h}=r;function p(){n.update({settings:cm({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s})})}d.update({width:l,height:u}),e.custom.updateLegend(),h.update({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s});const m=f.getDataPages();f.setDataPages([]),p(),f.setDataPages(m),f.meta.isContinuous||await c.command.initialize(),p()}),[l,u]);if(c)throw c})({picasso:r,chart:s,models:u,environment:o,viewState:i,viewCache:t,actions:a}),(({models:t,chart:n,viewState:r})=>{e.onTakeSnapshot((e=>{if(!t)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:u}=t,{width:c,height:d}=o.meta.chart.size;return e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:c,h:d}},i.meta.isSnapshot?Promise.resolve():(e.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:C(n,Vo.COMPONENT.LEGEND_CATEGORICAL)},i.meta.isDiscrete?(s.command.setSnapshotData(e),u.command.setSnapshotData(e)):l.setSnapshotData(e),a.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{})))})),e.useImperativeHandle((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:C(n,Vo.COMPONENT.LEGEND_CATEGORICAL)}}})),[r,n])})({models:u,chart:s,viewState:i})}}}}));
1028
+ function(e,t,n){function r(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e}n.r(t),n.d(t,"default",(function(){return r}))}})}))}(c2);var d2=n(c2.exports);const f2={version:"1.8.10",qHyperCubeDef:{qAlwaysFullyExpanded:!0,qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},showTitles:!0,subtitle:"",title:"",footnote:"",barGrouping:{grouping:"grouped"},orientation:"vertical",scrollStartPos:0,nullMode:"gap",dataPoint:{show:!1,showLineLabels:!1,showBarLabels:!1},color:{auto:!0,mode:"primary",useBaseColors:"off",paletteColor:{index:6},useDimColVal:!0,useMeasureGradient:!0,persistent:!1,expressionIsColor:!0,expressionLabel:"",measureScheme:"sg",reverseScheme:!1,dimensionScheme:"12",autoMinMax:!0,measureMin:0,measureMax:10},legend:{dock:"auto",show:!0,showTitle:!0},components:[],dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},measureAxes:[{show:"all",dock:"near",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10},{show:"all",dock:"far",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10}],refLine:{refLines:[],refLines2:[],dimRefLines:[]},preferContinuousAxis:!0,showMiniChartForContinuousAxis:!0,tooltip:{auto:!0,hideBasic:!1,title:"",description:"",chart:void 0,imageComponents:void 0}};var h2=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let i;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)i=wh(n[e].qDef.series),i===Ho.BAR?r[0]=1:i===Ho.LINE?r[1]=1:r[2]=1;const o=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(o)},p2=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===Ho.LINE?"Visualizations.Descriptions.HeightLine":e===Ho.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function m2(e){var t,n;const r=e.qHyperCubeDef.qMeasures,i=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===i&&1===r.length&&wh(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===Ho.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function y2(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:h2(t)},measures:{min:1,max:15,description:p2(t),added({qDef:e},t){var n;m2(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:Ho.LINE,axis:$o.SECONDARY}:e.series={type:Ho.BAR,axis:$o.PRIMARY})},moved(e,t){m2(t)}}}}function g2(e){const t=y2(e);return{properties:f2,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=d2.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),o="linechart"===e.properties.visualization,a=[];i.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:o?"line":"bar",axis:0,marker:"circle",markerFill:!0}),a.indexOf(e.qDef.series.axis)<0&&a.push(e.qDef.series.axis)}));const s=a.sort().shift();return i.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&d(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>d2.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}function v2(){const e={component:"dropdown",type:"string",expression:"optional",baseRef:"style.strokeWidth",translation:"LayerStyleEditor.style.strokeWidth",show:!0,defaultValue:"none",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"}]},t={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:t=>"none"!==Uu(t,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(t,"bar")}.${e.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},n={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},r={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},i={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineType",translation:"LayerStyleEditor.style.lineType",show:!0,defaultValue:"solid",options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}]},o={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",show:!0,defaultValue:"linear",options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}]};return{component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:["bar","line"],ref:"components",defaultValue:[],defaultValues(a){const s="grouped"===a.barGrouping.grouping,l=a.qHyperCubeDef.qMeasures.filter((e=>wh(e.qDef.series)===Ho.BAR)).length,u=s&&l>1;return[{key:"bar",style:{strokeWidth:e.defaultValue,strokeColor:t.defaultValue(),width:u?.9:.7}},{key:"line",style:{dataPointSize:n.defaultValue,lineThickness:r.defaultValue,lineType:i.defaultValue,lineCurve:o.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:e,barStrokeColor:t,barWidth:{component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>wh(e.qDef.series)===Ho.LINE));return!k.continuous(n.layout,r&&x.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01}}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:n,lineThickness:r,lineType:i,lineCurve:o}}}}}}}function b2(e){const t=Uu(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=Uo})=>wh(e)===Ho.LINE));return k.continuous(e,(()=>t&&x.isTime(!0,e)))}function x2(e){var t,n;return!(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n||!n.on)}function M2(e){var t,n,r;return x2(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(r=n.color)||void 0===r?void 0:r.mode)&&void 0!==t?t:"primary")}function S2(e){var t,n;return x2(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.mode)}function w2(e){var t,n,r,i,o;if(null!=e&&null!==(t=e.color)&&void 0!==t&&t.auto||"byExpression"!==(null==e||null===(n=e.color)||void 0===n?void 0:n.mode))return[];const a=null==e||null===(r=e.color)||void 0===r?void 0:r.colorExpression,s=null!==(i=null==e||null===(o=e.color)||void 0===o?void 0:o.expressionLabel)&&void 0!==i?i:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function E2(e){return S2(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function k2(e){var t,n;(null!==(t=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qMeasures)&&void 0!==t?t:[]).forEach(((t,n)=>function(e,t,n){e.qAttributeExpressions=0===t?[...w2(n),...E2(e)]:E2(e)}(t,n,e)))}function C2(e){const{flags:t}=e,n={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||b2(e)?"stacked":"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.bar",value:"bar"},{icon:"line_chart_line",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.line",value:"line"},{icon:"shapes",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.marker",value:"marker"}],change:e=>(e.qDef.series.type!==Ho.BAR||t.isEnabled("BARS_IN_SECONDARY_AXIS")||(e.qDef.series.axis=0),e)},r={ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}],show(e){var n;return!!t.isEnabled("BARS_IN_SECONDARY_AXIS")||wh(null===(n=e.qDef)||void 0===n?void 0:n.series)!==Ho.BAR}},i={ref:"qDef.series.marker",type:"string",component:"dropdown",defaultValue:"circle",options:[{translation:"properties.marker.circle",value:"circle"},{translation:"properties.marker.rect",value:"rect"},{translation:"properties.marker.diamond",value:"diamond"},{translation:"properties.marker.triangle",value:"triangle"},{translation:"properties.marker.line",value:"line"}],show(e){var t;return wh(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ho.MARKER}},o={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return wh(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ho.MARKER&&!["line"].includes(e.qDef.series.marker)}};let a;if(t.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")){var s,l;const t={ref:"qDef.color.on",translation:"properties.colors",type:"boolean",component:"switch",defaultValue:!1,trueOption:{value:!1,translation:"Common.Auto"},falseOption:{value:!0,translation:"Common.Custom"}},u={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>x2(...e)},c=null===(s=e.anything)||void 0===s||null===(l=s.sense)||void 0===l?void 0:l.theme;a={supPanel:{translation:"properties.measure.moreProperties",title:"properties.measure.moreProperties",subTitle:(e,t,n)=>{var r;return null===(r=n.measureTitle)||void 0===r?void 0:r.call(n)},component:"sub-panel",type:"items",items:{groups:{type:"items",component:"expandable-items",items:{presentation:{type:"items",translation:"properties.presentation",items:{seriesType:n,seriesAxis:r,seriesMarker:i,seriesMarkerFill:o}},color:{type:"items",translation:"properties.color",items:{customColor:t,colorMode:u,paletteColor:{ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=c.getDataColorSpecials(),n=null===(e=c.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,r=n.indexOf(t);return{index:-1===r?Math.min(6,n.length-1):r}},show:M2},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:S2}}}}}}}}}else a={seriesType:n,seriesAxis:r,seriesMarker:i,seriesMarkerFill:o};return{items:{series:{type:"items",items:a}}}}function O2(e,t,n,r){let i;const o=n||0;var a,s;t?i=t.getMeasureLayouts():i=null!==(a=null==e||null===(s=e.qHyperCubeDef)||void 0===s?void 0:s.qMeasures)&&void 0!==a?a:[];return i.filter((e=>{const{series:t}=e||{};return 0===o?wJ(t,r):!wJ(t,r)}))}function T2(e,t){return t.getMeasures().filter((e=>wh(e.qDef.series)===Ho.LINE)).length>0}function A2(e,t,n,r){const i=t.getMeasures().filter((e=>wh(e.qDef.series)===Ho.BAR));return r?i.filter((e=>e.qDef.series.axis===$o.PRIMARY)).length>n||i.filter((e=>e.qDef.series.axis===$o.SECONDARY)).length>n:i.length>n}function N2(e){const{translator:t,flags:n}=e,r=n.isEnabled("BARS_IN_SECONDARY_AXIS"),i={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>k2(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>n.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&e.qHyperCubeDef.qMeasures.some((e=>x2(e)))}}},o={uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:v2(),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t,n)=>A2(0,t,1,r)&&!b2(n.layout)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>b2(n.layout),convertFunctions:(a="vertical",{get:(e,t,n)=>b2(n.layout)?a:e(t.type),set(e,t,n,r){t(n.type,b2(r.layout)?a:e,a)}})},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!b2(n.layout)},nullMode:{type:"string",component:"dropdown",ref:"nullMode",translation:"properties.nullMode",options:[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],defaultValue:"gap",show:(e,t)=>T2(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>T2(0,t),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t)=>A2(0,t,0,r),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:i,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,n){const r="vertical"===n.layout.orientation||b2(n.layout)?"x":"y",i=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,n).map((e=>e.qFallbackTitle||"")).join(", ");let o;return o=i?t.get(`properties.${r}AxisWithInfo`,[i]):t.get(`properties.${r}Axis`),o},items:{othersGroup:{items:{dock:{options(e,t,n){let r="Common.Bottom",i="Common.Top";return"vertical"===n.layout.orientation||b2(n.layout)||(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!b2(n.layout),items:{axisDisplayMode:{type:"string",translation:"properties.axis.displaymode",ref:"dimensionAxis.axisDisplayMode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{type:"integer",translation:"properties.axis.maxvisiblevalues",ref:"dimensionAxis.maxVisibleItems",expression:"optional",defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode,invalid(e){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;return r<0||r>1e4/(t.length+n.length)},globalChange(e){if("custom"===e.dimensionAxis.axisDisplayMode){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;r<1?e.dimensionAxis.maxVisibleItems=10:r>1e4/(t.length+n.length)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(t.length+n.length))))}}},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint.combochart",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}}}},measureAxis:{uses:"axis.measureAxis",label(e,n){const i="vertical"===n.layout.orientation||b2(n.layout)?"y":"x",o=O2(e,n,0,r).map((e=>e.qFallbackTitle));let a;return a=o.length?t.get(`properties.${i}AxisWithInfo`,[o.join(",")]):t.get(`properties.${i}Axis`),a},show:(e,t)=>O2(e,t,0,r).length>0,items:{axis:{items:{show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&wJ(null==e?void 0:e.series,r)))}}},dock:{ref:"measureAxes.0.dock",show:e=>"none"!==e.measureAxes[0].show,options(e,t,n){let r="Common.Bottom",i="Common.Top";return("vertical"===n.layout.orientation||b2(n.layout))&&(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}},spacing:{ref:"measureAxes.0.spacing",show:e=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label(e,n){const i="vertical"===n.layout.orientation||b2(n.layout)?"y":"x",o=O2(e,n,1,r).map((e=>e.qFallbackTitle));let a;return a=o.length?t.get(`properties.${i}AxisWithInfo`,[o.join(",")]):t.get(`properties.${i}Axis`),a},show:(e,t)=>O2(e,t,1,r).length>0,items:{axis:{items:{show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!wJ(null==e?void 0:e.series,r)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:e=>"none"!==e.measureAxes[1].show,options(e,t,n){let r="Common.Bottom",i="Common.Top";return("vertical"===n.layout.orientation||b2(n.layout))&&(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}},spacing:{ref:"measureAxes.1.spacing",show:e=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}}}},tooltips:{uses:"tooltip"}}};var a;n.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(o.items.dimensionAxis.items.othersGroup.items.label={options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]});return{type:"items",component:"accordion",items:{data:{uses:"data",items:{dimensions:{items:{nullSuppression:{show:(e,t,n)=>!b2(n.layout)}}},measures:C2(e)}},sorting:{uses:"sortingWithDisclaimer"},addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},primaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines",translation:"properties.primaryMeasureAxisReferenceLines",title:{translation:"properties.primaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>wJ(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,r)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!wJ(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,r)},dimRefLines:{uses:"dimReflines"}}},settings:o}}}function q2(e){return e.qHyperCubeDef.qMeasures.filter((e=>wh(e.qDef.series)===Ho.LINE)).length>0}function D2(e){const{flags:t}=e,n=e.flags.isEnabled("BARS_IN_SECONDARY_AXIS");return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer"},presentation:{uses:"presentation",type:"items",translation:"properties.presentation",grouped:!0,show:(e,t)=>q2(e)||!b2(t),items:{grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t)=>function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>wh(e.qDef.series)===Ho.BAR));return t?n.filter((e=>e.qDef.series.axis===$o.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===$o.SECONDARY)).length>1:n.length>1}(e,n)&&!b2(t)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!b2(t)},nullMode:{type:"string",component:"radio-list",ref:"nullMode",translation:"properties.nullMode",options:()=>[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],show:e=>q2(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>q2(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>t.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&e.qHyperCubeDef.qMeasures.some((e=>x2(e)))}}}}}}const R2={bar:{axis:0,icon:"bar-chart",tid:"as-bar",translation:"contextMenu.asBar"},line:{axis:1,icon:"line-chart",tid:"as-line",translation:"contextMenu.asLine"},marker:{axis:1,icon:"shapes",tid:"as-marker",translation:"contextMenu.asMarker"}};function I2(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=R2[i];t.addItem({icon:a,tid:s,translation:l,async select(){let t;t="measure"===e.type?await r.addLibraryMeasure(e.id):await r.addExpressionMeasure(e.name,""),t.qDef.series.type=i,t.qDef.series.axis=o,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path","data."+t.qDef.cId)}})}function _2(e,t,n,r,i){!function(e,t,n){const{item:r}=e,i=["contextMenu.add",r.name];if(n.canAddMeasure()){const o=e.menu.addItem({translation:i,tid:"add-as"});I2(r,o,t,n,"bar"),I2(r,o,t,n,"line"),I2(r,o,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,i),e.ColorBy(n,t,i),r()}function P2(e){const t={},{tooltip:n}=e;if(n){var r,i;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(i=r.object)||void 0===i?void 0:i.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const L2=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function j2(e){return{definition:N2(e),softDefinition:D2(e),support:{snapshot:L2,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:_2,extendMetrics:P2,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=d2.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:y2(e),defaultPropertyValues:a,hypercubePath:i});return function(e,t,n){const r="linechart"===n.properties.visualization,i=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),i.indexOf(e.qDef.series.axis)<0&&i.push(e.qDef.series.axis)}));const o=i.sort().shift();e.qProperty.measureAxes[o]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&d(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),t.flags.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&k2(e.qProperty)}(s,e,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return d2.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:function(e){return W0(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{wh(e.qDef.series)===Ho.BAR&&1===e.qDef.series.axis&&(e.qDef.series.axis=0)})),e.version=U0),e}(e)}}}return function(t){const{flags:n}=t,r=yJ();return{qae:g2(t),ext:j2(t),component(){const t=function(){const[t,n]=e.useState();return e.useEffect((()=>n(Yu())),[]),t}(),i=i2(),o=function(){const t=e.useOptions(),n=e.useTranslator(),r=e.useEmbed(),i=e.useTheme(),[o,a]=e.useState(),s=e.useDeviceType();return e.useEffect((()=>{a({options:{direction:"ltr",...t},translator:n,theme:i,embed:r,deviceType:s})}),[t.direction,t.freeResize,n.language(),i.name(),s]),o}(),a=s2(),s=function({picasso:t,environment:n}){const r=e.useElement(),[i,o]=e.useState();return e.useEffect((()=>{if(!n)return;r.style.overflow="hidden";const e=t({renderer:{prio:[n.options.renderer||"canvas"]}}).chart({element:r,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[n]),i}({picasso:r,environment:o}),l=function({chart:t,actions:n}){const r=e.useSelections(),i=e.useStaleLayout(),[o,a]=e.useState();return e.useEffect((()=>{if(null==t||!t.update||!t.scale||!r)return null;const e=t.scale(Vo.SCALE.MAJOR),o=gf({chart:t,actions:n,selections:r,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:e,selectionActions:{clear:l2},selectionEvents:{start:u2}}});o.setLayout(i);const{destroy:s}=o;return a(o),()=>{s()}}),[r,null==t?void 0:t.update,null==t?void 0:t.scale]),e.useEffect((()=>{null!=o&&o.setLayout&&i&&o.setLayout(i)}),[i]),o}({chart:s,actions:a}),u=r2({picasso:r,chart:s,environment:o,flags:n,viewState:i,viewCache:t,actions:a,selectionService:l});ym({picasso:r,chart:s,models:u,environment:o,viewState:i,viewCache:t,actions:a}),(({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s})=>{const{width:l,height:u}=e.useRect(),[,c]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&o))return;const{colorService:e,discreteModel:c,dockService:d,layoutService:f,refLineModel:h}=r;function p(){n.update({settings:cm({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s})})}d.update({width:l,height:u}),e.custom.updateLegend(),h.update({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s});const m=f.getDataPages();f.setDataPages([]),p(),f.setDataPages(m),f.meta.isContinuous||await c.command.initialize(),p()}),[l,u]);if(c)throw c})({picasso:r,chart:s,models:u,environment:o,viewState:i,viewCache:t,actions:a}),(({models:t,chart:n,viewState:r})=>{e.onTakeSnapshot((e=>{if(!t)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:u}=t,{width:c,height:d}=o.meta.chart.size;return e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:c,h:d}},i.meta.isSnapshot?Promise.resolve():(e.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:C(n,Vo.COMPONENT.LEGEND_CATEGORICAL)},i.meta.isDiscrete?(s.command.setSnapshotData(e),u.command.setSnapshotData(e)):l.setSnapshotData(e),a.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{})))})),e.useImperativeHandle((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:C(n,Vo.COMPONENT.LEGEND_CATEGORICAL)}}})),[r,n])})({models:u,chart:s,viewState:i})}}}}));