@nebula.js/sn-bar-chart 1.38.1 → 1.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-bar-chart.js +4 -4
- package/dist/sn-bar-chart.systemjs.js +4 -4
- package/package.json +1 -1
- package/sn-bar-chart-ext/dist/sn-bar-chart.js +4 -4
- package/sn-bar-chart-ext/sn-bar-chart.qext +1 -1
package/dist/sn-bar-chart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-bar-chart v1.38.
|
|
2
|
+
* @nebula.js/sn-bar-chart v1.38.2
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -11,7 +11,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
11
11
|
* http://hammerjs.github.io/
|
|
12
12
|
*
|
|
13
13
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
14
|
-
* Licensed under the MIT license */!function(e){!function(t,n,r,i){var o,a=["","webkit","Moz","MS","ms","o"],s=n.createElement("div"),l=Math.round,c=Math.abs,u=Date.now;function d(e,t,n){return setTimeout(v(e,n),t)}function f(e,t,n){return!!Array.isArray(e)&&(h(e,n[t],n),!0)}function h(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==i)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function p(e,n,r){var i="DEPRECATED METHOD: "+n+"\n"+r+" AT \n";return function(){var n=new Error("get-stack-trace"),r=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,i,r),e.apply(this,arguments)}}o="function"!=typeof Object.assign?function(e){if(e===i||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==i&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var m=p((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===i)&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),g=p((function(e,t){return m(e,t,!0)}),"merge","Use `assign`.");function y(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&o(r,n)}function v(e,t){return function(){return e.apply(t,arguments)}}function b(e,t){return"function"==typeof e?e.apply(t&&t[0]||i,t):e}function x(e,t){return e===i?t:e}function w(e,t,n){h(C(t),(function(t){e.addEventListener(t,n,!1)}))}function S(e,t,n){h(C(t),(function(t){e.removeEventListener(t,n,!1)}))}function k(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function M(e,t){return e.indexOf(t)>-1}function C(e){return e.trim().split(/\s+/g)}function E(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function q(e){return Array.prototype.slice.call(e,0)}function D(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=e[o][t];E(i,a)<0&&r.push(e[o]),i[o]=a,o++}return r=r.sort((function(e,n){return e[t]>n[t]})),r}function T(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),s=0;s<a.length;){if((r=(n=a[s])?n+o:t)in e)return r;s++}return i}var N=1;function O(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var A="ontouchstart"in t,_=T(t,"PointerEvent")!==i,L=A&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),I="touch",R="mouse",P=24,z=["x","y"],F=["clientX","clientY"];function j(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){b(e.options.enable,[e])&&n.handler(t)},this.init()}function B(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,a=1&t&&r-o==0,s=12&t&&r-o==0;n.isFirst=!!a,n.isFinal=!!s,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=H(t));o>1&&!n.firstMultiple?n.firstMultiple=H(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,l=s?s.center:a.center,d=t.center=V(r);t.timeStamp=u(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=Y(l,d),t.distance=U(l,d),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=W(t.deltaX,t.deltaY);var f=$(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=f.x,t.overallVelocityY=f.y,t.overallVelocity=c(f.x)>c(f.y)?f.x:f.y,t.scale=s?function(e,t){return U(t[0],t[1],F)/U(e[0],e[1],F)}(s.pointers,r):1,t.rotation=s?function(e,t){return Y(t[1],t[0],F)+Y(e[1],e[0],F)}(s.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,a,s=e.lastInterval||t,l=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(l>25||s.velocity===i)){var u=t.deltaX-s.deltaX,d=t.deltaY-s.deltaY,f=$(l,u,d);r=f.x,o=f.y,n=c(f.x)>c(f.y)?f.x:f.y,a=W(u,d),e.lastInterval=t}else n=s.velocity,r=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=a}(n,t);var h=e.element;k(t.srcEvent.target,h)&&(h=t.srcEvent.target);t.target=h}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:l(e.pointers[n].clientX),clientY:l(e.pointers[n].clientY)},n++;return{timeStamp:u(),pointers:t,center:V(t),deltaX:e.deltaX,deltaY:e.deltaY}}function V(e){var t=e.length;if(1===t)return{x:l(e[0].clientX),y:l(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:l(n/t),y:l(r/t)}}function $(e,t,n){return{x:t/e||0,y:n/e||0}}function W(e,t){return e===t?1:c(e)>=c(t)?e<0?2:4:t<0?8:16}function U(e,t,n){n||(n=z);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function Y(e,t,n){n||(n=z);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}j.prototype={handler:function(){},init:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(O(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4},G="mousedown",X="mousemove mouseup";function J(){this.evEl=G,this.evWin=X,this.pressed=!1,j.apply(this,arguments)}y(J,j,{handler:function(e){var t=K[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:R,srcEvent:e}))}});var Z={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Q={2:I,3:"pen",4:R,5:"kinect"},ee="pointerdown",te="pointermove pointerup pointercancel";function ne(){this.evEl=ee,this.evWin=te,j.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(ee="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),y(ne,j,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=Z[r],o=Q[e.pointerType]||e.pointerType,a=o==I,s=E(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var re={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ie(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,j.apply(this,arguments)}function oe(e,t){var n=q(e.touches),r=q(e.changedTouches);return 12&t&&(n=D(n.concat(r),"identifier")),[n,r]}y(ie,j,{handler:function(e){var t=re[e.type];if(1===t&&(this.started=!0),this.started){var n=oe.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:I,srcEvent:e})}}});var ae={touchstart:1,touchmove:2,touchend:4,touchcancel:8},se="touchstart touchmove touchend touchcancel";function le(){this.evTarget=se,this.targetIds={},j.apply(this,arguments)}function ce(e,t){var n=q(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=q(e.changedTouches),s=[],l=this.target;if(o=n.filter((function(e){return k(e.target,l)})),1===t)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&t&&delete r[a[i].identifier],i++;return s.length?[D(o.concat(s),"identifier"),s]:void 0}y(le,j,{handler:function(e){var t=ae[e.type],n=ce.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:I,srcEvent:e})}});function ue(){j.apply(this,arguments);var e=v(this.handler,this);this.touch=new le(this.manager,e),this.mouse=new J(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function de(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,fe.call(this,t)):12&e&&fe.call(this,t)}function fe(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function he(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}y(ue,j,{handler:function(e,t,n){var r=n.pointerType==I,i=n.pointerType==R;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)de.call(this,t,n);else if(i&&he.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var pe=T(s.style,"touchAction"),me=pe!==i,ge="compute",ye="auto",ve="manipulation",be="none",xe="pan-x",we="pan-y",Se=function(){if(!me)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){e[r]=!n||t.CSS.supports("touch-action",r)})),e}();function ke(e,t){this.manager=e,this.set(t)}ke.prototype={set:function(e){e==ge&&(e=this.compute()),me&&this.manager.element.style&&Se[e]&&(this.manager.element.style[pe]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,(function(t){b(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(M(e,be))return be;var t=M(e,xe),n=M(e,we);if(t&&n)return be;if(t||n)return t?xe:we;if(M(e,ve))return ve;return ye}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=M(r,be)&&!Se[be],o=M(r,we)&&!Se[we],a=M(r,xe)&&!Se[xe];if(i){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!o)return i||o&&6&n||a&&n&P?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Me=32;function Ce(e){this.options=o({},this.defaults,e||{}),this.id=N++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Ee(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function qe(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function De(e,t){var n=t.manager;return n?n.get(e):e}function Te(){Ce.apply(this,arguments)}function Ne(){Te.apply(this,arguments),this.pX=null,this.pY=null}function Oe(){Te.apply(this,arguments)}function Ae(){Ce.apply(this,arguments),this._timer=null,this._input=null}function _e(){Te.apply(this,arguments)}function Le(){Te.apply(this,arguments)}function Ie(){Ce.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Re(e,t){return(t=t||{}).recognizers=x(t.recognizers,Re.defaults.preset),new Pe(e,t)}Ce.prototype={defaults:{},set:function(e){return o(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(f(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=De(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return f(e,"dropRecognizeWith",this)||(e=De(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(f(e,"requireFailure",this))return this;var t=this.requireFail;return-1===E(t,e=De(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(f(e,"dropRequireFailure",this))return this;e=De(e,this);var t=E(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Ee(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Ee(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Me},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=o({},e);if(!b(this.options.enable,[this,t]))return this.reset(),void(this.state=Me);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},y(Te,Ce,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:Me}}),y(Ne,Te,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(we),e&P&&t.push(xe),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Te.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=qe(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),y(Oe,Te,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[be]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),y(Ae,Ce,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ye]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=d((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Me},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}}),y(_e,Te,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[be]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),y(Le,Te,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Ne.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&P&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&c(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=qe(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),y(Ie,Ce,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ve]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||U(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=d((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Me},failTimeout:function(){return this._timer=d((function(){this.state=Me}),this.options.interval,this),Me},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Re.VERSION="2.0.7",Re.defaults={domEvents:!1,touchAction:ge,enable:!0,inputTarget:null,inputClass:null,preset:[[_e,{enable:!1}],[Oe,{enable:!1},["rotate"]],[Le,{direction:6}],[Ne,{direction:6},["swipe"]],[Ie],[Ie,{event:"doubletap",taps:2},["tap"]],[Ae]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Pe(e,t){var n;this.options=o({},Re.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(_?ne:L?le:A?ue:J))(n,B),this.touchAction=new ke(this,this.options.touchAction),ze(this,!0),h(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function ze(e,t){var n,r=e.element;r.style&&(h(e.options.cssProps,(function(i,o){n=T(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Pe.prototype={set:function(e){return o(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Ce)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(f(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(f(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=E(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==i&&t!==i){var n=this.handlers;return h(C(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==i){var n=this.handlers;return h(C(e),(function(e){t?n[e]&&n[e].splice(E(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var r=n.createEvent("Event");r.initEvent(e,!0,!0),r.gesture=t,t.target.dispatchEvent(r)}(e,t);var r=this.handlers[e]&&this.handlers[e].slice();if(r&&r.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<r.length;)r[i](t),i++}},destroy:function(){this.element&&ze(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Re,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Me,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:P,DIRECTION_ALL:30,Manager:Pe,Input:j,TouchAction:ke,TouchInput:le,MouseInput:J,PointerEventInput:ne,TouchMouseInput:ue,SingleTouchInput:ie,Recognizer:Ce,AttrRecognizer:Te,Tap:Ie,Pan:Ne,Swipe:Le,Pinch:Oe,Rotate:_e,Press:Ae,on:w,off:S,each:h,merge:g,extend:m,assign:o,inherit:y,bindFn:v,prefixed:T}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Re,e.exports?e.exports=Re:t.Hammer=Re}(window,document)}(sg);var lg=og(sg.exports),cg=Object.prototype.hasOwnProperty,ug=Object.prototype.toString,dg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,hg=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ug.call(e)},pg=function(e){if(!e||"[object Object]"!==ug.call(e))return!1;var t,n=cg.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&cg.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||cg.call(e,t)},mg=function(e,t){dg&&"__proto__"===t.name?dg(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},gg=function(e,t){if("__proto__"===t){if(!cg.call(e,t))return;if(fg)return fg(e,t).value}return e[t]},yg=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=gg(s,n),s!==(i=gg(t,n))&&(u&&i&&(pg(i)||(o=hg(i)))?(o?(o=!1,a=r&&hg(r)?r:[]):a=r&&pg(r)?r:{},mg(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&mg(s,{name:n,newValue:i}));return s},vg=og(yg);const bg=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],xg={};bg.forEach((([e,{width:t,height:n}])=>{xg[e]={width:t,height:n}}));const wg={getLayoutModes:()=>xg,getLayoutMode(e,t){let n;for(n=0;n<bg.length;++n)if(e>=bg[n][1].width&&t>=bg[n][1].height)return bg[n][0];return"SPARK"}};function Sg(e,t){return{layoutModes:wg.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const kg=["$date","$timestamp","$time"],Mg=["D","TS","T"],Cg={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>kg.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&Mg.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(Cg.hasTimeTag(t)&&Cg.hasUnknownFormat(t)||Cg.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&Cg.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&Cg.canBeContinuousDimension(r[0])},maxNumberOfLines:12},Eg=/^[A-Z][A-z0-9_]*$/i,qg={getChar(e){let t=e,n=-1;return t>9?(n=65+t-10,n>90&&(n+=6)):t=`${t}`.charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?this.getChar(t+1):String.fromCharCode(n)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}},Dg={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),i=r[r.length-1];let o,a=e;for(o=0;o<r.length-1;++o)void 0===a[r[o]]&&(a[r[o]]=Number.isNaN(+r[o+1])?{}:[]),a=a[r[o]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(void 0===o[r[i]])return n;o=o[r[i]]}return o},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||Eg.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>qg.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},Tg=e=>Dg.getValue(e,"qHyperCube.qDimensionInfo",[]),Ng=e=>Dg.getValue(e,"qHyperCube.qMeasureInfo",[]),Og=e=>Dg.getValue(e,"barGrouping.grouping"),Ag={continuous:(e,t=!1)=>!!Cg.canBeContinuous(e)&&(Dg.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!Tg(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===Og(e)&&(Tg(e).length>1||Ng(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&Tg(e).length>1&&1===Ng(e).length},groupedByMeasure(e){return this.grouped(e)&&1===Tg(e).length&&Ng(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==Og(e)&&"butterfly"!==Og(e)||this.continuous(e))&&(Tg(e).length>1||Ng(e).length>1)},stackedByDimension(e){return this.stacked(e)&&Tg(e).length>1&&1===Ng(e).length},stackedByMeasure(e){return this.stacked(e)&&1===Tg(e).length&&Ng(e).length>1},simple:e=>0===Tg(e).length||1===Tg(e).length&&1===Ng(e).length,snapshot:e=>!!Dg.getValue(e,"snapshotData")};function _g(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Lg=e=>{throw e.isHandled=!0,e};const Ig={getDockValue:e=>"near"===e||"left"===e||"top"===e?0:1,getOppositeDock(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";case"near":default:return"far";case"far":return"near"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?Ig.getVerticalDock(t):n?Ig.getOppositeDock(Ig.getHorizontalDock(t)):Ig.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment:(e,t)=>"vertical"===e?"near"===t||"bottom"===t?1:0:"near"===t||"left"===t?0:1,getMeasureScaleInvert:(e,t)=>"vertical"===e||t,getDimensionScaleInvert:(e,t)=>"horizontal"===e&&t,getSize:(e,{width:t,height:n})=>"vertical"===e?t:n};var Rg=(e,t)=>{if("function"==typeof t.defaultValue)return t.defaultValue();if(void 0!==t.defaultValue)return t.defaultValue;if(Array.isArray(t.options))return t.options[0].value;switch(e){case"array":return[];case"string":return"";case"integer":case"number":return 0;case"boolean":return!1;default:return null}};const Pg=166/26,zg=12/11,Fg={stringWidthOverMWidth:e=>(12*Math.min(e,3)+Math.max(e-3,0)*Pg)/11,getCharacterRatios(e){if(!e)return{latin:0,cjk:0};let t=e.match(/[\u4E00-\u9FFF]/g),n=e.match(/[\u3040-\u309F]/g),r=e.match(/[\u30A0-\u30FF]/g);t=t?t.length:0,n=n?n.length:0,r=r?r.length:0;const i=t+n+r;return{latin:e.length-i,cjk:i}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let i;void 0===t?e.forEach((e=>{i=Fg.getCharacterRatios(e[n]),r.latin+=i.latin,r.cjk+=i.cjk})):e.forEach((e=>{i=Fg.getCharacterRatios(e[t][n]),r.latin+=i.latin,r.cjk+=i.cjk}));const o=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/o,r.cjkRatio=r.cjk/o,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const i=Fg.getTotalCharacterRatios(t,n,r),o=i.latinRatio*e,a=i.cjkRatio*e;return Math.ceil(Fg.stringWidthOverMWidth(o)+a*zg)}},jg="#la-vie-tooltip";function Bg(){if(!document.querySelector(jg)){const e=document.createElement("div");e.id="la-vie-tooltip",e.setAttribute("data-qs-css",""),e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function Hg({key:e="tooltip",rtl:t}){return{show:!0,key:e,type:"tooltip",layout:{displayOrder:3},beforeMount(){Bg()},beforeUpdate(){Bg()},destroyed(){!function(){const e=document.querySelector(jg);e&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)}()},settings:{appendTo:()=>document.querySelector(jg),content:({h:e,data:t,style:n})=>t[0].map((t=>e("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{...n.cell||{},...e.style||{}},class:e.class};return e.colspan&&(r.colspan=e.colspan),t("td",r,e.content)}))}(t,{h:e,style:n})))),direction:t?"rtl":"ltr"},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',"empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}const Vg=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),$g=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Wg=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Ug={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Vg.test(e),isRtlChar:e=>$g.test(e)||Wg.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Ug.isLtrChar(r))return"ltr";if(Ug.isRtlChar(r))return"rtl"}return"ltr"}},Yg={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,i=e.resources.formatter,o=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=i("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=o(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?Yg.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=Ug.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=Ug.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:Ug.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=Ug.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=Ug.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Yg.getColorSymbol(e,t)]:[Yg.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:o,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,i=!1){const o=Ug.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Ug.detectTextDirection(e.value);let l;return l=i?r?[e.value,Yg.getColorSymbol(t,n)]:[Yg.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:o}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function Kg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Gg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Xg(){}var Jg=.7,Zg=1/Jg,Qg="\\s*([+-]?\\d+)\\s*",ey="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ty="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ny=/^#([0-9a-f]{3,8})$/,ry=new RegExp(`^rgb\\(${Qg},${Qg},${Qg}\\)$`),iy=new RegExp(`^rgb\\(${ty},${ty},${ty}\\)$`),oy=new RegExp(`^rgba\\(${Qg},${Qg},${Qg},${ey}\\)$`),ay=new RegExp(`^rgba\\(${ty},${ty},${ty},${ey}\\)$`),sy=new RegExp(`^hsl\\(${ey},${ty},${ty}\\)$`),ly=new RegExp(`^hsla\\(${ey},${ty},${ty},${ey}\\)$`),cy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function uy(){return this.rgb().formatHex()}function dy(){return this.rgb().formatRgb()}function fy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ny.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?hy(t):3===n?new gy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?py(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?py(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ry.exec(e))?new gy(t[1],t[2],t[3],1):(t=iy.exec(e))?new gy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=oy.exec(e))?py(t[1],t[2],t[3],t[4]):(t=ay.exec(e))?py(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=sy.exec(e))?Sy(t[1],t[2]/100,t[3]/100,1):(t=ly.exec(e))?Sy(t[1],t[2]/100,t[3]/100,t[4]):cy.hasOwnProperty(e)?hy(cy[e]):"transparent"===e?new gy(NaN,NaN,NaN,0):null}function hy(e){return new gy(e>>16&255,e>>8&255,255&e,1)}function py(e,t,n,r){return r<=0&&(e=t=n=NaN),new gy(e,t,n,r)}function my(e){return e instanceof Xg||(e=fy(e)),e?new gy((e=e.rgb()).r,e.g,e.b,e.opacity):new gy}function gy(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function yy(){return`#${wy(this.r)}${wy(this.g)}${wy(this.b)}`}function vy(){const e=by(this.opacity);return`${1===e?"rgb(":"rgba("}${xy(this.r)}, ${xy(this.g)}, ${xy(this.b)}${1===e?")":`, ${e})`}`}function by(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function wy(e){return((e=xy(e))<16?"0":"")+e.toString(16)}function Sy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new My(e,t,n,r)}function ky(e){if(e instanceof My)return new My(e.h,e.s,e.l,e.opacity);if(e instanceof Xg||(e=fy(e)),!e)return new My;if(e instanceof My)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new My(a,s,l,e.opacity)}function My(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Cy(e){return(e=(e||0)%360)<0?e+360:e}function Ey(e){return Math.max(0,Math.min(1,e||0))}function qy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Kg(Xg,fy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uy,formatHex:uy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ky(this).formatHsl()},formatRgb:dy,toString:dy}),Kg(gy,(function(e,t,n,r){return 1===arguments.length?my(e):new gy(e,t,n,null==r?1:r)}),Gg(Xg,{brighter(e){return e=null==e?Zg:Math.pow(Zg,e),new gy(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Jg:Math.pow(Jg,e),new gy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gy(xy(this.r),xy(this.g),xy(this.b),by(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yy,formatHex:yy,formatHex8:function(){return`#${wy(this.r)}${wy(this.g)}${wy(this.b)}${wy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:vy,toString:vy})),Kg(My,(function(e,t,n,r){return 1===arguments.length?ky(e):new My(e,t,n,null==r?1:r)}),Gg(Xg,{brighter(e){return e=null==e?Zg:Math.pow(Zg,e),new My(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Jg:Math.pow(Jg,e),new My(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new gy(qy(e>=240?e-240:e+120,i,r),qy(e,i,r),qy(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new My(Cy(this.h),Ey(this.s),Ey(this.l),by(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=by(this.opacity);return`${1===e?"hsl(":"hsla("}${Cy(this.h)}, ${100*Ey(this.s)}%, ${100*Ey(this.l)}%${1===e?")":`, ${e})`}`}}));const Dy=Math.PI/180,Ty=180/Math.PI,Ny=.96422,Oy=.82521,Ay=4/29,_y=6/29,Ly=3*_y*_y,Iy=_y*_y*_y;function Ry(e){if(e instanceof Py)return new Py(e.l,e.a,e.b,e.opacity);if(e instanceof Vy)return $y(e);e instanceof gy||(e=my(e));var t,n,r=By(e.r),i=By(e.g),o=By(e.b),a=zy((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=zy((.4360747*r+.3850649*i+.1430804*o)/Ny),n=zy((.0139322*r+.0971045*i+.7141733*o)/Oy)),new Py(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Py(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function zy(e){return e>Iy?Math.pow(e,1/3):e/Ly+Ay}function Fy(e){return e>_y?e*e*e:Ly*(e-Ay)}function jy(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function By(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Hy(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Vy)return new Vy(e.h,e.c,e.l,e.opacity);if(e instanceof Py||(e=Ry(e)),0===e.a&&0===e.b)return new Vy(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ty;return new Vy(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Vy(e,t,n,null==r?1:r)}function Vy(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function $y(e){if(isNaN(e.h))return new Py(e.l,0,0,e.opacity);var t=e.h*Dy;return new Py(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Kg(Py,(function(e,t,n,r){return 1===arguments.length?Ry(e):new Py(e,t,n,null==r?1:r)}),Gg(Xg,{brighter(e){return new Py(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Py(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new gy(jy(3.1338561*(t=Ny*Fy(t))-1.6168667*(e=1*Fy(e))-.4906146*(n=Oy*Fy(n))),jy(-.9787684*t+1.9161415*e+.033454*n),jy(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Kg(Vy,Hy,Gg(Xg,{brighter(e){return new Vy(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Vy(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return $y(this).rgb()}}));var Wy={isDark:function(e){return Hy(e).l<70}};function Uy(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Yy(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ky(e){return 1===e.length&&(e=function(e){return function(t,n){return Yy(e(t),n)}}(e)),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var Gy=Ky(Yy).right,Xy=Math.sqrt(50),Jy=Math.sqrt(10),Zy=Math.sqrt(2);function Qy(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Xy?10:o>=Jy?5:o>=Zy?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Xy?10:o>=Jy?5:o>=Zy?2:1)}function ev(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Xy?i*=10:o>=Jy?i*=5:o>=Zy&&(i*=2),t<e?-i:i}function tv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var nv="$";function rv(){}function iv(e,t){var n=new rv;if(e instanceof rv)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function ov(){}rv.prototype=iv.prototype={constructor:rv,has:function(e){return nv+e in this},get:function(e){return this[nv+e]},set:function(e,t){return this[nv+e]=t,this},remove:function(e){var t=nv+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===nv&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===nv&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===nv&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===nv&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===nv&&++e;return e},empty:function(){for(var e in this)if(e[0]===nv)return!1;return!0},each:function(e){for(var t in this)t[0]===nv&&e(this[t],t.slice(1),this)}};var av=iv.prototype;ov.prototype={constructor:ov,has:av.has,add:function(e){return this[nv+(e+="")]=e,this},remove:av.remove,clear:av.clear,values:av.keys,size:av.size,empty:av.empty,each:av.each};var sv=Array.prototype,lv=sv.map,cv=sv.slice;function uv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function dv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fv(){}var hv=.7,pv=1/hv,mv="\\s*([+-]?\\d+)\\s*",gv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",yv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vv=/^#([0-9a-f]{3,8})$/,bv=new RegExp("^rgb\\("+[mv,mv,mv]+"\\)$"),xv=new RegExp("^rgb\\("+[yv,yv,yv]+"\\)$"),wv=new RegExp("^rgba\\("+[mv,mv,mv,gv]+"\\)$"),Sv=new RegExp("^rgba\\("+[yv,yv,yv,gv]+"\\)$"),kv=new RegExp("^hsl\\("+[gv,yv,yv]+"\\)$"),Mv=new RegExp("^hsla\\("+[gv,yv,yv,gv]+"\\)$"),Cv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ev(){return this.rgb().formatHex()}function qv(){return this.rgb().formatRgb()}function Dv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=vv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Tv(t):3===n?new Av(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Nv(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Nv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=bv.exec(e))?new Av(t[1],t[2],t[3],1):(t=xv.exec(e))?new Av(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wv.exec(e))?Nv(t[1],t[2],t[3],t[4]):(t=Sv.exec(e))?Nv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=kv.exec(e))?Rv(t[1],t[2]/100,t[3]/100,1):(t=Mv.exec(e))?Rv(t[1],t[2]/100,t[3]/100,t[4]):Cv.hasOwnProperty(e)?Tv(Cv[e]):"transparent"===e?new Av(NaN,NaN,NaN,0):null}function Tv(e){return new Av(e>>16&255,e>>8&255,255&e,1)}function Nv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Av(e,t,n,r)}function Ov(e,t,n,r){return 1===arguments.length?function(e){return e instanceof fv||(e=Dv(e)),e?new Av((e=e.rgb()).r,e.g,e.b,e.opacity):new Av}(e):new Av(e,t,n,null==r?1:r)}function Av(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function _v(){return"#"+Iv(this.r)+Iv(this.g)+Iv(this.b)}function Lv(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Iv(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Rv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new zv(e,t,n,r)}function Pv(e){if(e instanceof zv)return new zv(e.h,e.s,e.l,e.opacity);if(e instanceof fv||(e=Dv(e)),!e)return new zv;if(e instanceof zv)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new zv(a,s,l,e.opacity)}function zv(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Fv(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function jv(e){return function(){return e}}function Bv(e){return 1==(e=+e)?Hv:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):jv(isNaN(t)?n:t)}}function Hv(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):jv(isNaN(e)?t:e)}uv(fv,Dv,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ev,formatHex:Ev,formatHsl:function(){return Pv(this).formatHsl()},formatRgb:qv,toString:qv}),uv(Av,Ov,dv(fv,{brighter:function(e){return e=null==e?pv:Math.pow(pv,e),new Av(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?hv:Math.pow(hv,e),new Av(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_v,formatHex:_v,formatRgb:Lv,toString:Lv})),uv(zv,(function(e,t,n,r){return 1===arguments.length?Pv(e):new zv(e,t,n,null==r?1:r)}),dv(fv,{brighter:function(e){return e=null==e?pv:Math.pow(pv,e),new zv(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?hv:Math.pow(hv,e),new zv(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Av(Fv(e>=240?e-240:e+120,i,r),Fv(e,i,r),Fv(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Vv=function e(t){var n=Bv(t);function r(e,t){var r=n((e=Ov(e)).r,(t=Ov(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Hv(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function $v(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function Wv(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Zv(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function Uv(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Yv(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Kv(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Zv(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Gv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xv=new RegExp(Gv.source,"g");function Jv(e,t){var n,r,i,o=Gv.lastIndex=Xv.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Gv.exec(e))&&(r=Xv.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Yv(n,r)})),o=Xv.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Zv(e,t){var n,r=typeof t;return null==t||"boolean"===r?jv(t):("number"===r?Yv:"string"===r?(n=Dv(t))?(t=n,Vv):Jv:t instanceof Dv?Vv:t instanceof Date?Uv:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?$v:Array.isArray(t)?Wv:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Kv:Yv)(e,t)}function Qv(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function eb(e){return+e}var tb=[0,1];function nb(e){return e}function rb(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function ib(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function ob(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=rb(i,r),o=n(a,o)):(r=rb(r,i),o=n(o,a)),function(e){return o(r(e))}}function ab(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=rb(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Gy(e,t,1,r)-1;return o[n](i[n](t))}}function sb(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lb(e,t){return function(){var e,t,n,r,i,o,a=tb,s=tb,l=Zv,c=nb;function u(){return r=Math.min(a.length,s.length)>2?ab:ob,i=o=null,d}function d(t){return isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),Yv)))(n)))},d.domain=function(e){return arguments.length?(a=lv.call(e,eb),c===nb||(c=ib(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=cv.call(e),u()):s.slice()},d.rangeRound=function(e){return s=cv.call(e),l=Qv,u()},d.clamp=function(e){return arguments.length?(c=e?ib(a):nb,d):c!==nb},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function cb(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ub(e){return(e=cb(Math.abs(e)))?e[1]:NaN}var db,fb=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hb(e){if(!(t=fb.exec(e)))throw new Error("invalid format: "+e);var t;return new pb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function pb(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function mb(e,t){var n=cb(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}hb.prototype=pb.prototype,pb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var gb={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return mb(100*e,t)},r:mb,s:function(e,t){var n=cb(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(db=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+cb(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function yb(e){return e}var vb,bb,xb,wb=Array.prototype.map,Sb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kb(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?yb:(t=wb.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=e.decimal+"",s=void 0===e.numerals?yb:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(wb.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=hb(e)).fill,n=e.align,d=e.sign,f=e.symbol,h=e.zero,p=e.width,m=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(m=!0,v="g"):gb[v]||(void 0===g&&(g=12),y=!0,v="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===f?o:/[%p]/.test(v)?l:"",w=gb[v],S=/[defgprs%]/.test(v);function k(e){var i,o,l,f=b,k=x;if("c"===v)k=w(e)+k,e="";else{var M=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),M&&0==+e&&"+"!==d&&(M=!1),f=(M?"("===d?d:c:"-"===d||"("===d?"":d)+f,k=("s"===v?Sb[8+db/3]:"")+k+(M&&"("===d?")":""),S)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){k=(46===l?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}m&&!h&&(e=r(e,1/0));var C=f.length+e.length+k.length,E=C<p?new Array(p-C+1).join(t):"";switch(m&&h&&(e=r(E+e,E.length?p-k.length:1/0),E=""),n){case"<":e=f+e+k+E;break;case"=":e=f+E+e+k;break;case"^":e=E.slice(0,C=E.length>>1)+f+e+k+E.slice(C);break;default:e=E+f+e+k}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:d,formatPrefix:function(e,t){var n=d(((e=hb(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ub(t)/3))),i=Math.pow(10,-r),o=Sb[8+r/3];return function(e){return n(i*e)+o}}}}function Mb(e,t,n,r){var i,o=ev(e,t,n);switch((r=hb(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ub(t)/3)))-ub(Math.abs(e)))}(o,a))||(r.precision=i),xb(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ub(t)-ub(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-ub(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return bb(r)}function Cb(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=Qy(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Mb(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=Qy(s,l,n))>0?r=Qy(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Qy(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function Eb(){var e=lb(nb,nb);return e.copy=function(){return sb(e,Eb())},tv.apply(e,arguments),Cb(e)}!function(e){vb=kb(e),bb=vb.format,xb=vb.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var qb=new Date,Db=new Date;function Tb(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Tb((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return qb.setTime(+t),Db.setTime(+r),e(qb),e(Db),Math.floor(n(qb,Db))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Nb=Tb((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Nb.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Tb((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Nb:null},Nb.range;var Ob=6e4,Ab=36e5,_b=864e5,Lb=6048e5,Ib=Tb((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));Ib.range;var Rb=Tb((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ob)/_b}),(function(e){return e.getDate()-1}));function Pb(e){return Tb((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ob)/Lb}))}Rb.range;var zb=Pb(0),Fb=Pb(1),jb=Pb(2),Bb=Pb(3),Hb=Pb(4),Vb=Pb(5),$b=Pb(6);zb.range,Fb.range,jb.range,Bb.range,Hb.range,Vb.range,$b.range;var Wb=Tb((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Wb.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Tb((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},Wb.range;var Ub=Tb((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Ob)}),(function(e,t){return(t-e)/Ob}),(function(e){return e.getUTCMinutes()}));Ub.range;var Yb=Tb((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Ab)}),(function(e,t){return(t-e)/Ab}),(function(e){return e.getUTCHours()}));Yb.range;var Kb=Tb((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/_b}),(function(e){return e.getUTCDate()-1}));function Gb(e){return Tb((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Lb}))}Kb.range;var Xb=Gb(0),Jb=Gb(1),Zb=Gb(2),Qb=Gb(3),ex=Gb(4),tx=Gb(5),nx=Gb(6);Xb.range,Jb.range,Zb.range,Qb.range,ex.range,tx.range,nx.range;var rx=Tb((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));rx.range;var ix=Tb((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function ox(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ax(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function sx(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}ix.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Tb((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},ix.range;var lx,cx,ux={"-":"",_:" ",0:"0"},dx=/^\s*\d+/,fx=/^%/,hx=/[\\^$*+?|[\]().{}]/g;function px(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function mx(e){return e.replace(hx,"\\$&")}function gx(e){return new RegExp("^(?:"+e.map(mx).join("|")+")","i")}function yx(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function vx(e,t,n){var r=dx.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function bx(e,t,n){var r=dx.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function xx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function wx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Sx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function kx(e,t,n){var r=dx.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Mx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Cx(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ex(e,t,n){var r=dx.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function qx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Dx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Tx(e,t,n){var r=dx.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Nx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ox(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ax(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function _x(e,t,n){var r=dx.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Lx(e,t,n){var r=dx.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ix(e,t,n){var r=fx.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Rx(e,t,n){var r=dx.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Px(e,t,n){var r=dx.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function zx(e,t){return px(e.getDate(),t,2)}function Fx(e,t){return px(e.getHours(),t,2)}function jx(e,t){return px(e.getHours()%12||12,t,2)}function Bx(e,t){return px(1+Rb.count(Wb(e),e),t,3)}function Hx(e,t){return px(e.getMilliseconds(),t,3)}function Vx(e,t){return Hx(e,t)+"000"}function $x(e,t){return px(e.getMonth()+1,t,2)}function Wx(e,t){return px(e.getMinutes(),t,2)}function Ux(e,t){return px(e.getSeconds(),t,2)}function Yx(e){var t=e.getDay();return 0===t?7:t}function Kx(e,t){return px(zb.count(Wb(e)-1,e),t,2)}function Gx(e){var t=e.getDay();return t>=4||0===t?Hb(e):Hb.ceil(e)}function Xx(e,t){return e=Gx(e),px(Hb.count(Wb(e),e)+(4===Wb(e).getDay()),t,2)}function Jx(e){return e.getDay()}function Zx(e,t){return px(Fb.count(Wb(e)-1,e),t,2)}function Qx(e,t){return px(e.getFullYear()%100,t,2)}function ew(e,t){return px((e=Gx(e)).getFullYear()%100,t,2)}function tw(e,t){return px(e.getFullYear()%1e4,t,4)}function nw(e,t){var n=e.getDay();return px((e=n>=4||0===n?Hb(e):Hb.ceil(e)).getFullYear()%1e4,t,4)}function rw(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+px(t/60|0,"0",2)+px(t%60,"0",2)}function iw(e,t){return px(e.getUTCDate(),t,2)}function ow(e,t){return px(e.getUTCHours(),t,2)}function aw(e,t){return px(e.getUTCHours()%12||12,t,2)}function sw(e,t){return px(1+Kb.count(ix(e),e),t,3)}function lw(e,t){return px(e.getUTCMilliseconds(),t,3)}function cw(e,t){return lw(e,t)+"000"}function uw(e,t){return px(e.getUTCMonth()+1,t,2)}function dw(e,t){return px(e.getUTCMinutes(),t,2)}function fw(e,t){return px(e.getUTCSeconds(),t,2)}function hw(e){var t=e.getUTCDay();return 0===t?7:t}function pw(e,t){return px(Xb.count(ix(e)-1,e),t,2)}function mw(e){var t=e.getUTCDay();return t>=4||0===t?ex(e):ex.ceil(e)}function gw(e,t){return e=mw(e),px(ex.count(ix(e),e)+(4===ix(e).getUTCDay()),t,2)}function yw(e){return e.getUTCDay()}function vw(e,t){return px(Jb.count(ix(e)-1,e),t,2)}function bw(e,t){return px(e.getUTCFullYear()%100,t,2)}function xw(e,t){return px((e=mw(e)).getUTCFullYear()%100,t,2)}function ww(e,t){return px(e.getUTCFullYear()%1e4,t,4)}function Sw(e,t){var n=e.getUTCDay();return px((e=n>=4||0===n?ex(e):ex.ceil(e)).getUTCFullYear()%1e4,t,4)}function kw(){return"+0000"}function Mw(){return"%"}function Cw(e){return+e}function Ew(e){return Math.floor(+e/1e3)}!function(e){lx=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=gx(i),u=yx(i),d=gx(o),f=yx(o),h=gx(a),p=yx(a),m=gx(s),g=yx(s),y=gx(l),v=yx(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:zx,e:zx,f:Vx,g:ew,G:nw,H:Fx,I:jx,j:Bx,L:Hx,m:$x,M:Wx,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Cw,s:Ew,S:Ux,u:Yx,U:Kx,V:Xx,w:Jx,W:Zx,x:null,X:null,y:Qx,Y:tw,Z:rw,"%":Mw},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:iw,e:iw,f:cw,g:xw,G:Sw,H:ow,I:aw,j:sw,L:lw,m:uw,M:dw,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Cw,s:Ew,S:fw,u:hw,U:pw,V:gw,w:yw,W:vw,x:null,X:null,y:bw,Y:ww,Z:kw,"%":Mw},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return M(e,t,n,r)},d:Dx,e:Dx,f:Lx,g:Mx,G:kx,H:Nx,I:Nx,j:Tx,L:_x,m:qx,M:Ox,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:Ex,Q:Rx,s:Px,S:Ax,u:bx,U:xx,V:wx,w:vx,W:Sx,x:function(e,t,r){return M(e,n,t,r)},X:function(e,t,n){return M(e,r,t,n)},y:Mx,Y:kx,Z:Cx,"%":Ix};function S(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=ux[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function k(e,t){return function(n){var r,i,o=sx(1900,void 0,1);if(M(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=ax(sx(o.y,0,1))).getUTCDay(),r=i>4||0===i?Jb.ceil(r):Jb(r),r=Kb.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=ox(sx(o.y,0,1))).getDay(),r=i>4||0===i?Fb.ceil(r):Fb(r),r=Rb.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ax(sx(o.y,0,1)).getUTCDay():ox(sx(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ax(o)):ox(o)}}function M(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in ux?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),{format:function(e){var t=S(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),lx.format,lx.parse,cx=lx.utcFormat,lx.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var qw=1e3,Dw=6e4,Tw=36e5,Nw=864e5,Ow=2592e6,Aw=31536e6;function _w(e){return new Date(e)}function Lw(e){return e instanceof Date?+e:+new Date(+e)}function Iw(e,t,n,r,i,o,a,s,l){var c=lb(nb,nb),u=c.invert,d=c.domain,f=l(".%L"),h=l(":%S"),p=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,qw],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,Dw],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Tw],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Nw],[r,2,1728e5],[n,1,6048e5],[t,1,Ow],[t,3,7776e6],[e,1,Aw]];function w(s){return(a(s)<s?f:o(s)<s?h:i(s)<s?p:r(s)<s?m:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function S(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=Ky((function(e){return e[2]})).right(x,o);a===x.length?(i=ev(n/Aw,r/Aw,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(ev(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(lv.call(e,Lw)):d().map(_w)},c.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=S(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?w:l(t)},c.nice=function(e,t){var n=d();return(e=S(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):c},c.copy=function(){return sb(c,Iw(e,t,n,r,i,o,a,s,l))},c}function Rw(){return tv.apply(Iw(ix,rx,Xb,Kb,Yb,Ub,Ib,Nb,cx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Pw={horizontal:{major:"width",minor:"height",start:"left",end:"right",shadow:{startOffset:"12px 0",endOffset:"-12px 0"}},vertical:{major:"height",minor:"width",start:"top",end:"bottom",shadow:{startOffset:"0 12px",endOffset:"0 -12px"}}},zw=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Fw={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[i,o]=t(),a=Math.abs(i)<1e-15,s=Math.abs(o-1)<1e-15,l=(e=>{const t=Pw[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:zw(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:zw(t.shadow.endOffset)}}})(n),c="horizontal"===n&&r,u=[];return a||u.push(e("div",{style:{...l.base,...c?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||u.push(e("div",{style:{...l.base,...c?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),u}};function jw({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:i}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:i,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let Bw;function Hw(){Bw=Bw||document.createElement("canvas").getContext("2d")}const Vw={measureTextWidth(e){Hw();const{width:t}=Bw.measureText(e);return t},lineWrap(e,t,n,r){let i,o;Hw();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,f=e?e.split(/\s+/):[],h=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(Bw.font=n),o=0;o<a.length;o++){for(d=a[o]||"",f=d.split(/\s+/),[h]=f,u="",i=1;i<f.length;i++)if(l=`${h} ${f[i]}`,c=Vw.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(h),h=f[i]):h=l,"number"==typeof r&&s.length>=r){u=f.slice(i+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(h):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${h} ${u}`}return s},wordWrap(e,t,n,r,i){if(Hw(),!e||!e.length)return[];n&&(Bw.font=n);let o=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c&&(c.length<=1||Vw.measureTextWidth(c)<=t?o.push(c):(s=Vw.splitWord(c,t,void 0,r-o.length),s.length<=1?o.push(s[0]):(l=s.pop(),o=o.concat(s),a[u+1]?Vw.measureTextWidth(`${l} ${a[u+1]}`)>t&&o.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return o.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),o.length>r?(o=o.splice(0,r),o[o.length-1]=Vw.truncate(o[o.length-1],t,n,i).text):(c=o[o.length-1],c&&c.length>1&&Vw.measureTextWidth(c)>t&&(o[o.length-1]=Vw.truncate(c,t,n,i).text)),o},truncate(e,t,n,r="…"){Hw();let i,o,a,s,l=e;const c=Vw.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Bw.font=n),e&&t){if(Vw.measureTextWidth(l)>t){for(i=Math.min(u,l.length);i>0;i--)if(o=l.substring(0,i-1),a=o.trim()+r,Vw.measureTextWidth(a)<=t){s=l.substring(i-1),l=a;break}i||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,n,r){let i;Hw();let o,a=e,s="",l=[];if(Vw.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(i=Math.min(e.length,c);i>0&&(a=e.substring(0,i),o=e.substring(i-1,i)," "===o?a=e.substring(0,i-1):a+="-",s=e.substring(i),!(Vw.measureTextWidth(a)<=t));i--);return(!i&&!a||Vw.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Vw.measureTextWidth(s)>t?(s=Vw.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Hw(),e&&t?(n&&(Bw.font=n),Vw.explodeWord(e,t,r,Math.max(1,Vw.measureTextWidth("i")))):[]),wrapText(e,t,n,r,i){let o;return Number.isNaN(t)?[e]:(o=r>1?Vw.lineWrap(e,t,n,r):[e],o=Vw.wordWrap(o,t,n,r,i),o)},getFontHeight:e=>(Hw(),e&&(Bw.font=e),1.5*Vw.measureTextWidth("m")),tokenize(e,t,n,r,i,o,a=1){Hw(),t&&(Bw.font=t);const s=Vw.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(o<s)return[];const f=o?Math.max(1,Math.floor(o/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{u+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{c.push(Number.isNaN(e)||e<=0?f-u:e)}))):c=[Number.isNaN(r)||r<=0?f:Math.min(f,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<f&&(d=d.concat(Vw.wrapText(e,i,t,c[n])))})):d=Vw.wrapText(e,i,t,c[0],n),d}},$w={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",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(vg({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},Ww=vg.bind(null,!0),Uw={},{isArray:Yw}=Array;function Kw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Gw(e){return void 0===e}function Xw(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Jw(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,i)=>{if(i===n.length)return;r=+t;const o=isNaN(r)?{}:[];e[r||t]=Gw(e[r||t])?o:e[t],e=e[r||t]})),e}function Zw(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function Qw(e,t,n){let r=!0;if(Kw(e)&&Kw(t))return Zw(e,n)===Zw(t,n)&&(Object.keys(e).forEach((i=>{Qw(e[i],t[i],n)||(r=!1)})),r);if(Yw(e)&&Yw(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r+=1)if(!Qw(e[r],t[r],n))return!1;return!0}return e===t}Uw.compare=Qw,Uw.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?Ww({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;Qw(o,a)||Xw(t,i)||(Gw(a)?r.push({op:"add",path:s,value:o}):Kw(o)&&Kw(a)?r=r.concat(Uw.generate(a,o,s)):Yw(o)&&Yw(a)?r=r.concat(function(e,t,n){let r=[];const i=e.slice();let o=-1;function a(e,t,n){if(e[n]&&Gw(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Qw(t,i))return r;if(!Gw(t[0])&&Gw(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=i.length-1;e>=0;e-=1)o=a(t,i[e].qInfo&&i[e].qInfo.qId,e),-1===o?(r.push({op:"remove",path:`${n}/${e}`}),i.splice(e,1)):r=r.concat(Uw.generate(i[e],t[o],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)o=a(i,t[e].qInfo&&t[e].qInfo.qId),-1===o?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),i.splice(e,0,t[e])):o!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${o}`}),i.splice(e,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:`${n}/${i}`,value:o}))})),Object.keys(e).forEach((i=>{Gw(t[i])&&!Xw(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},Uw.apply=function(e,t){t.forEach((t=>{let n=Jw(e,t.path),r=t.path.split("/").splice(-1)[0],i=r&&isNaN(+r)?n[r]:n[+r]||n;const o=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(Yw(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Yw(i)&&Yw(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(Kw(i)&&Kw(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Xw(a,e)&&delete a[e]})),Ww(i,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const i=Jw(e,t.from);Yw(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(Yw(n)?n.splice(+r,1):delete n[r]);var a}))},Uw.clone=function(e){return Ww({},e)},Uw.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Uw.updateObject=function(e,t){Object.keys(e).length?Uw.apply(e,Uw.generate(e,t)):Ww(e,t)};const eS={getValueWithOffset:(e,t=0)=>e+Math.abs(e)*t,isNumber:e=>"number"==typeof e&&!Number.isNaN(e)},tS=[[2,4,6],[2,4],[3]],nS=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function rS(e,t,n){const r=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[r-1])),e.splice(0,0,o)}function iS(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)rS(e[r],t,n)}!function(){let e,t;for(iS(tS,1,10),e=0;e<nS.length;e++)if(nS[e])for(t=0;t<nS[e].length;t++)Array.isArray(nS[e][t])&&iS(nS[e][t])}();const oS={isInside(e,t,n,r){if(!r)return!0;const i=e.position-e.radius,o=e.position+e.radius;return i>=t&&o<=n},getCenterDistance:(e,t)=>Math.abs(e.center-t.center),getGap(e,t){const n=e.position<t.position?e:t,r=e.position<t.position?t:e;return r.position-r.radius-(n.position+n.radius)},findSegmentPositionMeetMax(e,t){const n=Math.max(0,e.max-t);return e.center-n},findSegmentPositionMeetMin(e,t){const n=Math.max(0,t-e.min);return e.center+n},findSegmentPositionMeetMinThenMax(e,t,n){const r=oS.findSegmentPositionMeetMin(e,t);return oS.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=oS.findSegmentPositionMeetMax(e,n);return oS.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const i=e.length-1;let o,a,s=t;for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.position=oS.findSegmentPositionMeetMaxThenMin(o,s,(o.center+a.center-r)/2),s=o.position+o.radius+r/2;a.position=oS.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const i=e.length-1;let o,a,s;const l=Math.max(0,e[i].position+e[i].radius-n);if(0===l)return;let c,u=0;for(o=i;o>0&&(a=e[o],s=e[o-1],c=Math.max(0,oS.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));o--);for(u<l&&(c=Math.max(0,s.position-s.radius-t),c-=Math.max(0,u+c-l),u+=c,s.move=c),u=0,o=0;o<=i;o++)a=e[o],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const i=e.length-1;if(!(i<0))if(0!==i)oS.layoutPositionFromMin(e,t,n,r),oS.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=oS.findSegmentPositionMeetMaxThenMin(r,t,n)}}},aS=(e,t,n,r=1)=>{const i=e.bandwidth();return n?"start"===t?i:"end"===t?i*(1-r):i*(2-r)/2:"start"===t?0:"end"===t?i*r:i*r/2},sS=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,lS=e=>e.filter(sS),cS=(e,t)=>lS(Dg.getValue(e,t,[])),uS=e=>sS(e)&&(!1!==e.showValue||!1!==e.showLabel),dS=e=>e.filter(uS),fS=(e,t)=>dS(Dg.getValue(e,t,[])),hS=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,pS=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},mS=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},gS=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+i},yS=({value:e,qMin:t})=>"NaN"!==t&&e<t,vS=({value:e,qMax:t})=>"NaN"!==t&&e>t,bS={isRefLineVisible:sS,getVisibleRefLines:lS,getRefLines:cS,getMeasureRefLines:e=>cS(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:cS(e,"refLine.dimRefLines"),isRefLineLabelVisible:uS,getVisibleRefLineLabels:dS,getRefLineLabels:fS,getMeasureRefLineLabels:e=>fS(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:fS(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:i,invert:o=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=aS(s,i,o,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=aS(s,i,o,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:i})=>{const o=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-o*(s-i)}})({pxScale:s,value:n,innerValues:e,invert:o,minOrder:a})),(void 0===c?s(n):c)+l}return l=aS(s,i,o),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:i}=r.meta,o={},a=Dg.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():Dg.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=Dg.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),f=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+f,r=t[d];o[r]||(o[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})():i?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],i=t+f,a=n[d];o[a]?(o[a].minOrder=Math.min(o[a].minOrder,i),o[a].maxOrder=Math.max(o[a].maxOrder,i),o[a].innerValues[o[a].innerValues.length]={id:r.qElemNumber,order:i}):o[a]={id:n.qElemNumber,qText:n.qText,minOrder:i,maxOrder:i,innerValues:[{id:r.qElemNumber,order:i}],dataNode:u[t]},0===t?0===i&&(o[a].isMinOrderOk=!0):a!==e&&(o[a].isMinOrderOk=!0,o[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+f,r=t[d];o[r]||(o[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})(),o},getInputValue:hS,extractInfoFromInputValue:pS,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=hS({refLineLayout:e,layoutService:n});return pS(r,t,"id")},isDiscreteMinOutOfBounds:mS,isDiscreteMaxOutOfBounds:gS,isContinuousMinOutOfBounds:yS,isContinuousMaxOutOfBounds:vS,isOutOfRange:({value:e,qMin:t,qMax:n})=>yS({value:e,qMin:t})||vS({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&gS({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&mS({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},xS=({label:e,labelStyle:t})=>[(null==e?void 0:e.fontStyle)||(null==t?void 0:t.fontStyle),(null==e?void 0:e.fontWeight)||(null==t?void 0:t.fontWeight),(null==e?void 0:e.fontSize)||(null==t?void 0:t.fontSize),(null==e?void 0:e.fontFamily)||(null==t?void 0:t.fontFamily)].filter((e=>!!e)).join(" ");function wS(e){return e.showValue?`… ${e.valueString}`:"…"}function SS(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=xS({label:i,labelStyle:t});i.lines=Vw.tokenize(i.title,o,wS(i),3,n),i.maxNumLines=i.lines.length}}function kS({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=Vw.tokenize(e,t,n,r,i),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n${o[e]}`}return s}function MS({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=e.map((e=>kS({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:i}))),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n\n${o[e]}`}return s}function CS(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const ES=3,qS=2;function DS({inputValue:e,inputValueLabel:t,localeInfo:n}){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const r=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return t.replace(new RegExp(`[0-9e${r}]`,"g"),"").length>0||function(e){if(e.indexOf("e")>-1)return!1;const t=e.indexOf("-");return-1!==t&&(e.lastIndexOf("-")!==t||0!==t)}(t)}const TS=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(bS.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(bS.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return bS.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:bS.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},NS={hasEngineFormat:DS,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:i,rtl:o,isContinuous:a,isDimension:s}){const l=bS.getInvert({orientation:i,rtl:o,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let f,h;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");f=e.qMin,h=e.qMax}for(let i=0;i<e.length;i++){const o=e[i],{value:s,align:c,valueInfo:d}=o,p=TS({label:o,dataPages:u,qMin:f,qMax:h});o.scaledValue=1===p?l?-.1:1.1:-1===p?l?1.1:-.1:bS.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),o.center=o.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:i}){let o;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;o=DS({inputValue:s,inputValueLabel:l,localeInfo:i})?l:t?t(a):a,r.valueString=`${Ug.lrm}(${o})${Ug.lrm}`,r.title=NS.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;o=DS({inputValue:a,inputValueLabel:s,localeInfo:i})?s:r,n.valueString=`${Ug.lrm}(${o})${Ug.lrm}`,n.title=NS.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];o=n.valueText,n.valueString=`${Ug.lrm}(${o})${Ug.lrm}`,n.title=NS.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title,r).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((n=>t(n,e).width)));return n},getMaxTextWidth(e){const t=e.map((e=>e.totalWidth));return Math.max(...t)},addLabelsNeighborInfo(e,t,n,r=0){const i=e.length-1;if(i<0)return;let o,a;if([o]=e,o.cMin=t,0!==i){for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.cMax=(o.center+a.center-r)/2,a.cMin=o.cMax+r;a.cMax=n}else o.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,i=e.filter((e=>e.maxNumLines===t)),o=Math.min(n,i.length);for(let e=i.length-1;e>=i.length-o;e--)i[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let i=3;do{const t=NS.getTotalNumLines(e)-r;if(t<=0)return;NS.reduceLabelsHavingMaxNumLines(e,i,t),i--}while(i>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const i=e[r];i.maxNumLines=Math.max(1,Math.min(i.maxNumLines,Math.floor((Math.max(0,i.cMax-i.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let i=0;i<e.length;i++){const o=e[i];o.width=Math.min(t,NS.measureLabelMaxLineWidth(o,r)),o.height=o.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:i}=r,o=r[t],a=o/2;r.segment={center:i,range:o,min:i-a,max:i+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:i,gap:o,labelStyle:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:f,layoutService:h,isContinuous:p,isDimension:m}){const g=e.map((e=>e)),y=n;NS.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:h,orientation:u,rtl:f,isContinuous:p,isDimension:m}),CS(e,"center"),NS.addLabelsNeighborInfo(e,r,i,o),SS(e,a,s),NS.reduceTotalMaxNumLines(g,l,i-(g.length-1)*o),"vertical"===u&&(NS.reduceMaxNumLines(e,l,.05*o),function(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=xS({label:i,labelStyle:t});i.lines.length>i.maxNumLines&&(i.lines=Vw.tokenize(i.title,o,wS(i),i.maxNumLines,n))}}(e,a,s)),NS.addLabelsSize(e,s,l,d),NS.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:i,lineHeight:o=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=i,{fontSize:d,fontFamily:f,fontStyle:h,fontWeight:p,textDecoration:m,background:g}=t;let y=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,i=t.map(((t,i)=>{const g={type:"text",text:t,title:kS({title:e.title,font:a,ellipsis:wS(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||f,fontStyle:e.fontStyle||h,fontWeight:e.fontWeight||p,textDecoration:e.textDecoration||m,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return g[l]=u,g[s]=e.segment.position,g.y+=(i-(r-1)/2)*o,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:i,lineHeight:o,background:a}){const{lines:s}=i,{borderRadius:l=ES,padding:c={}}=a,{top:u=qS,bottom:d=qS,left:f=qS,right:h=qS}=c,p=s.length,m={type:"rect",rx:l,ry:l,fill:i.background.fill,width:i.width+(f+h),height:i.height+(u+d),value:i.value,dock:r};return m[n]=e,m[t]=i.segment.position,m.x-=i.width/2+f,m.y-=p*o/2+u,m}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:o,background:g})),y=y.concat(i)})),y}};function OS(e,t,n){let r;const i=typeof t;if("string"===i||"object"===i)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function AS(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{lineHeight:n,top:r,bottom:i,maxLabelWidth:o}=t;let a=1;return NS.getMaxTextWidth(e)>o&&(SS(e,t,o),a=Math.max(...e.map((e=>e.lines.length)))),a*n+r+i}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:i}=t;return Math.min(i,NS.getMaxTextWidth(e))+n+r}(t,n)}function _S(e,t){return t?e.domain():[0,1]}function LS(e,t,n,r="value"){let i=e.filter((e=>e[r]>=t));i=i.filter((e=>e[r]<=n));const o=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:i,minOobs:o,maxOobs:a,numMinOobs:o.length,numMaxOobs:a.length}}function IS(e){let t,n=0;for(let r=1;r<10;r++)t=e(r),n=Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height));return t=e("9+"),[n,Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height))]}function RS(e,t){return e>9?t[1]:t[0]}function PS({alignment:e,dockValue:t,oobs:n,style:r,rect:i,symbol:o,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:f,minorAxis:h,minorDimension:p,dock:m}=s,g=i[p],y=$w.createOob({oob:$w.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:i.width,rendHeight:i.height,flipXY:d,symbol:o});y.dock=m;const v=`c${f}`,b=`c${h}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:m};x[b]=g/2,x[v]=a;const w={type:"text",text:u>9?"9+":u,title:MS({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:m};return w[h]=g/2,w[f]=a,[y,x,w]}const zS=e=>{const t=xS({labelStyle:e}),n=Vw.getFontHeight(t)*(e.lineHeightMultiplicator||1),r=e.gap||12,i=e.maxWidth||75,o=e.padding.top||0,a=e.padding.bottom||0,s=e.padding.left||0,l=e.padding.right||0;return{...e,font:t,lineHeight:n,gap:r,maxLabelWidth:i,top:o,bottom:a,left:s,right:l}},FS=e=>e.map((e=>({...e,value:"function"==typeof e.value?e.value():e.value,valueText:"function"==typeof e.valueText?e.valueText():e.valueText,valueInfo:"function"==typeof e.valueInfo?e.valueInfo():e.valueInfo})));var jS={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:i}=this.settings,o=!!r||n.meta.canBeContinuous,a=FS(this.settings.labels),s=OS(this.chart,this.settings.formatter,e);NS.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:o,localeInfo:i});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:i})=>{if(n){const[r,i]=_S(t,n);return LS(e,r,i)}if(r){const t=i.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return LS(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:o,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:i,fontWeight:o}=n||{};return this.renderer.measureText({text:e,fontWeight:o||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:i||t.label.fontFamily})},u&&u.length){const e=zS(t.label),{dock:n}=this.settings.layout;return NS.measureLabelsWidth(u,this.measureText),d=AS(n,u,e),d}const f=IS(this.measureText),h=l?RS(l,f):0,p=c?RS(c,f):0;return d=Math.max(h,p),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:i,isContinuous:o,isDimension:a,localeInfo:s}=this.settings,l=!!o||r.meta.canBeContinuous,c=FS(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:f}=n.label,h=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),p=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,h,f),{orientation:m,majorDimension:g}=h,{majorSize:y}=p,v=zS(n.label),{font:b,lineHeight:x,gap:w,maxLabelWidth:S}=v,k=OS(this.chart,this.settings.formatter,e),M=y;NS.addLabelTitles({labels:c,formatter:k,isContinuous:o,canBeContinuous:l,localeInfo:s}),NS.calculateLabelPositions({labels:c,scale:e,size:M,layoutService:r,orientation:m,rtl:d,isContinuous:o,isDimension:a});const[C,E]=_S(e,o),{filteredLabels:q,lowerOobs:D,upperOobs:T,lowerCircleSize:N,upperCircleSize:O,lowerOobSpace:A,upperOobSpace:_}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:i,isContinuous:o,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:f}=LS(e,t,n,c),h="scaledValue"!==c&&bS.getInvert({orientation:r,rtl:i,isContinuous:o}),p=function(e,t,n){return n?t:e}(d,u,h),m=function(e,t,n){return n?e:t}(d,u,h),g=p.length,y=m.length,v=IS(l),b=RS(g,v),x=RS(y,v),w=function(e,t,n,r,i){return("vertical"===r?i.top:i.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),S=function(e,t,n,r,i){return("vertical"===r?i.bottom:i.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:f,lowerOobs:p,upperOobs:m,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:w,upperOobSpace:S}}({labels:c,minValue:C,maxValue:E,orientation:m,rtl:d,isContinuous:o,style:n,padding:f,measureText:this.measureText,prop:o?"value":"scaledValue"}),L=A,I=y-_;CS(D),CS(T);const R=PS({alignment:0,dockValue:0,oobs:D,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+N/2,areaProps:h,radius:N/2,font:b}),P=PS({alignment:1,dockValue:1,oobs:T,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+O/2),areaProps:h,radius:O/2,font:b});NS.addLabelsInfo({labels:q,scale:e,majorSize:y,lowerLimit:L,upperLimit:I,labelStyle:v,lineHeight:x,gap:w,maxLabelWidth:S,majorDimension:g,orientation:m,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:o,isDimension:a}),oS.layout(q.map((e=>e.segment)),L,I,n.label.gap);const z=q.filter((e=>oS.isInside(e.segment,L,I,o)));return NS.createLabels({labels:z,style:n.label,maxLabelWidth:S,areaProps:h,area:p,lineHeight:x,font:b,theme:i}).concat([...R,...P])}};function BS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HS(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function VS(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){HS(o,r,i,a,s,"next",e)}function s(e){HS(o,r,i,a,s,"throw",e)}a(void 0)}))}}function $S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function US(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WS(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YS(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function KS(){KS=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(N([])));w&&w!==n&&r.call(w,a)&&(b=w);var S=v.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(S,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(M.prototype),c(M.prototype,s,(function(){return this})),t.AsyncIterator=M,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new M(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function GS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||ZS(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XS(e){return function(e){if(Array.isArray(e))return BS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ZS(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JS(e){return JS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JS(e)}function ZS(e,t){if(e){if("string"==typeof e)return BS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BS(e,t):void 0}}var QS=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],ek=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var tk=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function nk(e){var t=e.theme,n=e.translator,r=e.defaultValue,i=e.flags,o=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?o.push.apply(o,XS(new Set([r].concat(XS(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):o.push(r),[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0}].concat(XS(o.map((function(e){return tk(e)}))),[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0}],XS(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ek:QS}(i).map((function(e){return tk(e)}))))}function rk(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=e.flags,a=function(){return t.getStyle(r,i,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return nk({theme:t,translator:n,defaultValue:a(),flags:o})}}}var ik,ok,ak=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],sk=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function lk(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=function(){return t.getStyle(r,i,"fontSize")};return{getDefaultValue:function(){return o()},getOptions:function(){return function(e){var t=e.translator,n=e.defaultValue,r=[],i=e.theme.getStyle("","","fontSizes");return Array.isArray(i)&&i.length?r.push.apply(r,XS(new Set([n].concat(XS(i))))):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(XS(r.map((function(e){return sk(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],XS(ak.map((function(e){return sk(e)}))))}({theme:t,translator:n,defaultValue:o()})}}}function ck(e){var t=e.theme,n=e.translator,r=e.id,i=e.path;return{fontFamily:rk({theme:t,translator:n,id:r,path:i,flags:e.flags}),fontSize:lk({theme:t,translator:n,id:r,path:i})}}function uk(e){return dk.apply(this,arguments)}function dk(){return(dk=VS(KS().mark((function e(t){var n,r,i,o;return KS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.app,r=t.items,n.evaluate){e.next=3;break}return e.abrupt("return",r);case 3:return e.next=5,Promise.all(r.filter((function(e){var t;return!(null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t||!t.qv)})).map((function(e){var t=e.qCalcCondition.qCond.qv;return n.evaluate(t).then((function(t){return"0"===t?e.qDef.cId:void 0})).catch((function(){return e.qDef.cId}))})));case 5:return i=e.sent,o=i.filter(Boolean),e.abrupt("return",r.filter((function(e){return!o.includes(e.qDef.cId)})));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fk(e){var t=e.app,n=e.translator,r=e.dimension,i={id:r.qDef.cId,text:n.get("Object.ErrorMessage.MissingDimension"),meta:{}},o=r.qLibraryId;if(o)return t.getDimension?t.getDimension(o).then((function(e){return e.getLayout()})).catch((function(){})).then((function(e){if(!e)return i;var t=e.qDim,n=t.qGrouping,o=t.qLabelExpression,a="C"===n,s="H"===n,l="N"===n;return{id:r.qDef.cId,text:o&&l?o:e.qDim.title,meta:{isCyclic:a,isDrillDown:s,isNormal:l}}})):i;var a=r.qDef,s=a.cId,l=a.qLabelExpression,c=a.qFieldLabels,u=a.qFieldDefs,d={isCyclic:!1,isDrillDown:!1,isNormal:!0};return l?t.evaluate?t.evaluate(l).then((function(e){return{id:s,text:e,meta:d}})):i:{id:s,text:c[0]||u[0],meta:d}}function hk(e){return pk.apply(this,arguments)}function pk(){return(pk=VS(KS().mark((function e(t){var n,r,i,o,a,s,l,c;return KS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.app,i=t.translator,o=t.properties,a=(null==o||null===(n=o.qHyperCubeDef)||void 0===n||null===(n=n.qLayoutExclude)||void 0===n?void 0:n.qHyperCubeDef)||{},s=a.qDimensions,(l=void 0===s?[]:s).length){e.next=4;break}return e.abrupt("return",Promise.resolve([]));case 4:return e.next=6,uk({app:r,items:l});case 6:return c=e.sent,e.abrupt("return",Promise.all(c.map((function(e){return fk({app:r,translator:i,dimension:e})}))));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mk(e){var t=e.app,n=e.translator,r=e.measure,i={id:r.qDef.cId,text:n.get("Object.ErrorMessage.MissingMeasure")},o=r.qLibraryId;if(o)return t.getMeasure?t.getMeasure(o).then((function(e){return e.getLayout()})).catch((function(){})).then((function(e){if(!e)return i;var t=e.qMeasure.qLabelExpression;return{id:r.qDef.cId,text:t||e.qMeasure.qLabel||e.qMeasure.qDef}})):i;var a=r.qDef,s=a.cId,l=a.qLabelExpression,c=a.qLabel,u=a.qDef;return l?t.evaluate?t.evaluate(l).then((function(e){return{id:s,text:e}})):i:{id:s,text:c||u}}function gk(e){return yk.apply(this,arguments)}function yk(){return(yk=VS(KS().mark((function e(t){var n,r,i,o,a,s,l,c;return KS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.app,i=t.translator,o=t.properties,a=(null==o||null===(n=o.qHyperCubeDef)||void 0===n||null===(n=n.qLayoutExclude)||void 0===n?void 0:n.qHyperCubeDef)||{},s=a.qMeasures,(l=void 0===s?[]:s).length){e.next=4;break}return e.abrupt("return",Promise.resolve([]));case 4:return e.next=6,uk({app:r,items:l});case 6:return c=e.sent,e.abrupt("return",Promise.all(c.map((function(e){return mk({app:r,translator:i,measure:e})}))));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var vk=function(){if(ok)return ik;ok=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return ik=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},ik}(),bk=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(vk);function xk(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.value%i.length]}))},valueAccessor:e.value}}function wk(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.row.value%i.length]}))},valueAccessor:e.value}}function Sk(e,t,n,r,i){var o,a,s=i.byRow,l=i.byElemNo;if(r&&(t.input.persistent||e.hc.qDimensionInfo.length>1||void 0===n.activeDimensionIndex&&e.hc.qSize.qcy>((null===(a=(o=e.hc).qDataPages[0]||o.qStackedDataPages[0])||void 0===a?void 0:a.qArea.qHeight)||0)))return l(r,r.raw().qCardinal);if(r){var c=t.pic.extract({field:r.key(),trackBy:r.value}).length;return s(r,c)}return{}}function kk(e,t){var n=e.hc.qDimensionInfo,r=t.input.byDimDef||{activeDimensionIndex:n.length-1};if(r.activeDimensionIndex>=0){var i=n[r.activeDimensionIndex];r=i.coloring&&i.coloring.colorMapRef?{type:"libraryItem",key:i.coloring.colorMapRef,activeDimensionIndex:r.activeDimensionIndex}:{activeDimensionIndex:r.activeDimensionIndex}}return r}function Mk(e,t){var n;return t.activeDimensionIndex>=0?n=e.pic.fields().filter((function(e){return"dimension"===e.type()}))[t.activeDimensionIndex]:"libraryItem"===t.type?!1===(n=t.key?e.pic.field((function(e){return e.raw().colorMapRef===t.key})):void 0)&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n}function Ck(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ek(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qk(){}var Dk=1/.7,Tk="\\s*([+-]?\\d+)\\s*",Nk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ok="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ak=/^#([0-9a-f]{3,8})$/,_k=new RegExp(`^rgb\\(${Tk},${Tk},${Tk}\\)$`),Lk=new RegExp(`^rgb\\(${Ok},${Ok},${Ok}\\)$`),Ik=new RegExp(`^rgba\\(${Tk},${Tk},${Tk},${Nk}\\)$`),Rk=new RegExp(`^rgba\\(${Ok},${Ok},${Ok},${Nk}\\)$`),Pk=new RegExp(`^hsl\\(${Nk},${Ok},${Ok}\\)$`),zk=new RegExp(`^hsla\\(${Nk},${Ok},${Ok},${Nk}\\)$`),Fk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function jk(){return this.rgb().formatHex()}function Bk(){return this.rgb().formatRgb()}function Hk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ak.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vk(t):3===n?new Yk(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?$k(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?$k(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=_k.exec(e))?new Yk(t[1],t[2],t[3],1):(t=Lk.exec(e))?new Yk(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ik.exec(e))?$k(t[1],t[2],t[3],t[4]):(t=Rk.exec(e))?$k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Pk.exec(e))?Qk(t[1],t[2]/100,t[3]/100,1):(t=zk.exec(e))?Qk(t[1],t[2]/100,t[3]/100,t[4]):Fk.hasOwnProperty(e)?Vk(Fk[e]):"transparent"===e?new Yk(NaN,NaN,NaN,0):null}function Vk(e){return new Yk(e>>16&255,e>>8&255,255&e,1)}function $k(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yk(e,t,n,r)}function Wk(e){return e instanceof qk||(e=Hk(e)),e?new Yk((e=e.rgb()).r,e.g,e.b,e.opacity):new Yk}function Uk(e,t,n,r){return 1===arguments.length?Wk(e):new Yk(e,t,n,null==r?1:r)}function Yk(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Kk(){return`#${Zk(this.r)}${Zk(this.g)}${Zk(this.b)}`}function Gk(){const e=Xk(this.opacity);return`${1===e?"rgb(":"rgba("}${Jk(this.r)}, ${Jk(this.g)}, ${Jk(this.b)}${1===e?")":`, ${e})`}`}function Xk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zk(e){return((e=Jk(e))<16?"0":"")+e.toString(16)}function Qk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tM(e,t,n,r)}function eM(e){if(e instanceof tM)return new tM(e.h,e.s,e.l,e.opacity);if(e instanceof qk||(e=Hk(e)),!e)return new tM;if(e instanceof tM)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new tM(a,s,l,e.opacity)}function tM(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function nM(e){return(e=(e||0)%360)<0?e+360:e}function rM(e){return Math.max(0,Math.min(1,e||0))}function iM(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ck(qk,Hk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jk,formatHex:jk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eM(this).formatHsl()},formatRgb:Bk,toString:Bk}),Ck(Yk,Uk,Ek(qk,{brighter(e){return e=null==e?Dk:Math.pow(Dk,e),new Yk(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yk(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yk(Jk(this.r),Jk(this.g),Jk(this.b),Xk(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Kk,formatHex:Kk,formatHex8:function(){return`#${Zk(this.r)}${Zk(this.g)}${Zk(this.b)}${Zk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Gk,toString:Gk})),Ck(tM,(function(e,t,n,r){return 1===arguments.length?eM(e):new tM(e,t,n,null==r?1:r)}),Ek(qk,{brighter(e){return e=null==e?Dk:Math.pow(Dk,e),new tM(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new tM(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Yk(iM(e>=240?e-240:e+120,i,r),iM(e,i,r),iM(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new tM(nM(this.h),rM(this.s),rM(this.l),Xk(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Xk(this.opacity);return`${1===e?"hsl(":"hsla("}${nM(this.h)}, ${100*rM(this.s)}%, ${100*rM(this.l)}%${1===e?")":`, ${e})`}`}}));const oM=Math.PI/180,aM=180/Math.PI,sM=4/29,lM=6/29,cM=3*lM*lM;function uM(e){if(e instanceof dM)return new dM(e.l,e.a,e.b,e.opacity);if(e instanceof gM)return yM(e);e instanceof Yk||(e=Wk(e));var t,n,r=mM(e.r),i=mM(e.g),o=mM(e.b),a=fM((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=fM((.4360747*r+.3850649*i+.1430804*o)/.96422),n=fM((.0139322*r+.0971045*i+.7141733*o)/.82521)),new dM(116*a-16,500*(t-a),200*(a-n),e.opacity)}function dM(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function fM(e){return e>.008856451679035631?Math.pow(e,1/3):e/cM+sM}function hM(e){return e>lM?e*e*e:cM*(e-sM)}function pM(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mM(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gM(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function yM(e){if(isNaN(e.h))return new dM(e.l,0,0,e.opacity);var t=e.h*oM;return new dM(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ck(dM,(function(e,t,n,r){return 1===arguments.length?uM(e):new dM(e,t,n,null==r?1:r)}),Ek(qk,{brighter(e){return new dM(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new dM(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Yk(pM(3.1338561*(t=.96422*hM(t))-1.6168667*(e=1*hM(e))-.4906146*(n=.82521*hM(n))),pM(-.9787684*t+1.9161415*e+.033454*n),pM(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ck(gM,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof gM)return new gM(e.h,e.c,e.l,e.opacity);if(e instanceof dM||(e=uM(e)),0===e.a&&0===e.b)return new gM(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*aM;return new gM(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new gM(e,t,n,null==r?1:r)}),Ek(qk,{brighter(e){return new gM(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new gM(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return yM(this).rgb()}}));var vM=e=>()=>e;function bM(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):vM(isNaN(e)?t:e)}var xM=function e(t){var n=function(e){return 1==(e=+e)?bM:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):vM(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Uk(e)).r,(t=Uk(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=bM(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),wM=/^class(-pyramid)?/,SM=function(e,t,n,r){var i=void 0!==n.min?n.min:r.min(),o=void 0!==n.max?n.max:r.max(),a=i,s=o,l=t.limits,c={},u="percent"===t.limitType?l.map((function(e){return i+(o-i)*e})):l,d=t.colors.map((function(t){return e.resolveUIColor(t)}));if(i=Math.min.apply(Math,[i].concat(XS(u))),o=Math.max.apply(Math,[o].concat(XS(u))),c.min=i,c.max=o,t.breakTypes&&-1===t.breakTypes.indexOf(!0))c.type="categorical",Object.assign(c,function(e){var t=e.min,n=e.max,r=e.limits,i=e.range,o=[],a=[];if(r.length)if(r[r.length-1]<t)a.push(t,n),o.push(i[i.length-1],i[i.length-1],i[i.length-1]);else if(r[0]>n)a.push(t,n),o.push(i[0],i[0],i[0]);else{if(r[0]>t)a.push(t),o.push(i[0]);else{a.push(t);for(var s=0;s<r.length;s++)if(t<r[s]){o.push(i[s]);break}}for(var l=0;l<r.length;l++)t<r[l]&&r[l]<n&&(a.push(r[l]),o.push(i[l]));if(r[r.length-1]<n)a.push(n),o.push(i[r.length]),o.push(i[r.length]);else{a.push(n);for(var c=0;c<r.length;c++)if(r[c]>n){o.push(i[c]),o.push(i[c]);break}}}else o.push(i[0]);return{min:t,max:n,range:o,domain:a}}({min:"percent"===t.limitType?i:a,max:"percent"===t.limitType?o:s,range:d,limits:"percent"===t.limitType?u:l}));else if(t.breakTypes){var f=t.breakTypes;c.type="continuous",c.domain=[i],c.range=[d[0]];for(var h=0;h<u.length;h+=1)if(f[h]){var p=d[h],m=d[h+1],g=xM(p,m)(.5);c.range.push(g),c.domain.push(u[h]),h<u.length-1&&f[h+1]&&(c.range.push(d[h+1]),c.domain.push((u[h]+u[h+1])/2))}else c.range.push(d[h]),c.range.push(d[h+1]),c.domain.push(u[h]),c.domain.push(u[h]+Math.min(1e-6,(o-i)/1e6));c.range.push(d[d.length-1]),c.domain.push(o)}else c.domain=u,c.range=d;return c};function kM(e,t,n,r,i){var o,a,s,l=0,c=[],u=(e-t)/(r+1);if(0===u)return 1;for(o=0;o<n.length;o+=1)a=.99*(n[o]-t),s=n[o]>e?Math.floor(e/u):n[o]<t?0:Math.floor(a/u),Number.isNaN(s)||(c[s]?c[s]+=1:c[s]=1);for(o=0;o<c.length;o+=1)c[o]&&(l+=1);return l<=r||l>=i?Math.max(l,r):kM(e,t,n,r+1,i)}var MM=function(e,t,n,r){var i,o,a=t.theme,s=t.hc,l=r.f,c={mode:"field",fieldType:"measure",field:l?l.key():void 0,reverse:n.input.reverseScheme||!1,type:"continuous",range:function(e){return e.resources.theme.palette("quant")}},u=[],d=!0;if(l){if(Number.isNaN(+l.min())||Number.isNaN(+l.max()))return{invalid:!0};(d=!("S"===(i=n.pic.raw()).qMode&&(i.qDataPages[0]&&i.qSize.qcy>i.qDataPages[0].qArea.qHeight||!i.qDataPages.length&&i.qSize.qcy>0)||"K"===i.qMode&&i.qStackedDataPages[0]&&i.qSize.qcy>i.qStackedDataPages[0].qArea.qHeight||"T"===i.qMode&&i.qSize.qcy>i.qTreeDataPages[0].qGroupSize))&&(u=n.pic.extract({field:0,props:{num:{field:l.key()},exclude:{fields:s.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return Math.min.apply(Math,XS(e))<0}}}}).filter((function(e){return e.value>=0&&!e.exclude.value})).map((function(e){return e.num.value})).filter((function(e){return"number"==typeof e})))}if(!1===n.input.autoMinMax){if(c.min=n.input.measureMin,c.max=n.input.measureMax,c.max<c.min)return{invalid:!0}}else if(l&&!d)c.min=l.min(),c.max=l.max();else if(l){if(!u.length)return{invalid:!0};c.min=Math.min.apply(Math,XS(u)),c.max=Math.max.apply(Math,XS(u))}if(n.input.measureScheme&&(c.palettes={quant:n.input.measureScheme}),a){var f=a.getDataColorScales().filter((function(e){return e.key===n.input.measureScheme}))[0];c.type=f&&wM.test(f.type)?"categorical":"continuous","categorical"===c.type&&(o=f.colors.some((function(e){return Array.isArray(e)}))?Math.max.apply(Math,XS(f.colors.map((function(e){return e?e.length:0})))):f.colors.length)}if("categorical"===c.type){for(var h=d?kM(c.max,c.min,u,1,o):o,p=(c.max-c.min)/h,m=[],g=0;g<h+1;g+=1)m.push(c.min+p*g);c.domain=m,c.range=function(e){for(var t=e.resources.theme.palette("quant",h),n=Math.max(1,Math.floor(t.length/h)),r=[],i=0;i<h;i+=1)r.push(t[i*n]);return[r[0]].concat(r,[r[r.length-1]])}}return c};function CM(e,t){var n;return t.activeMeasureIndex>=0?n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[t.activeMeasureIndex]:"libraryItem"===t.type?n=e.pic.field((function(e){return e.raw().colorMapRef===t.key&&void 0!==t.key})):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n||(n=e.pic.field((function(e){return void 0!==e.raw().matchMeasure})))&&(n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[n.raw().matchMeasure]),n}function EM(e){e.measureOverrides.every((function(e){return!e}))&&(e.measureOverrides=null)}function qM(e,t){for(var n=(null==t?void 0:t.domain)||[],r=(null==t?void 0:t.range)||[],i=[],o=0;o<e.length;++o){var a=e[o];if("constant"===(null==a?void 0:a.mode)){var s=n.indexOf(o);-1===s?(n.push(o),r.push(a.primary)):r[s]=a.primary,e[o]=null}else if(a){i.push(o);var l=n.indexOf(o);-1!==l&&(n.splice(l,1),r.splice(l,1))}}return{domain:n,range:r,exclude:i}}function DM(e,t,n,r){var i,o=function(e,t,n,r){if(t.input&&!t.input.auto){if("byMeasure"===t.input.mode)return function(e,t,n){var r=t.theme,i=t.hc,o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).getCField,a=void 0===o?CM:o,s=n.input.byMeasureDef||{activeMeasureIndex:0},l=a(n,s),c=MM(0,{theme:r,hc:i},n,{f:l});if(c.invalid)return c;"expression"===s.type&&(s.activeMeasureIndex<0||void 0===s.activeMeasureIndex)&&(c.label=s.label,l&&"color.altLabel"===l.raw().labelExpRef&&(c.label=n.input.altLabel)),!c.label&&l&&(c.label=l.title());var u=s.activeMeasureIndex>=0?l:null;if(!u&&l&&void 0!==l.raw().matchMeasure&&l.raw().matchMeasure>-1&&(u=n.pic.fields().filter((function(e){return"measure"===e.type()}))[l.raw().matchMeasure]),n.input.useMeasureGradient&&"libraryItem"===s.type)if(u){var d=u.raw().coloring;d&&d.gradient&&bk(c,SM(e,d.gradient,c,u))}else c.auxiliary=s;return c}(e,n,t);if("byDimension"===t.input.mode)return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.getCDef,o=void 0===i?kk:i,a=r.getCByField,s=void 0===a?Mk:a,l=r.getPersistence,c=void 0===l?Sk:l,u=o(t,n),d=s(n,u),f=d?d.raw():{},h=n&&n.pic?n.pic.raw():{};if(f.qError||f.qSize&&0===f.qSize.qcy&&!h.qHasOtherValues)return{invalid:!0};var p={mode:"field",fieldType:"dimension",type:"categorical",field:d?d.key():void 0,isFieldLocked:f.qLocked};return("expression"===u.type||u.activeDimensionIndex<0)&&(p.label=u.label,"color.altLabel"===f.labelExpRef&&(p.label=n.input.altLabel)),!p.label&&d&&(p.label=d.title()),n.input.dimensionScheme&&(p.palettes={categorical:n.input.dimensionScheme}),n.input.useDimColVal&&"libraryItem"===u.type&&(p.auxiliary=u),bk(p,c(t,n,u,d,{byRow:wk,byElemNo:xk})),p}(e,n,t);if("byExpression"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.pic.field((function(e){return"colorByExpression"===e.raw().id}));if(!s||!s.raw().qFallbackTitle&&!n.input.colorExpression||!(Number.isFinite(s.raw().qMin)&&Number.isFinite(s.raw().qMax)||n.input.expressionIsColor))return{mode:"constant",type:"constant",primary:r.nil};if(n.input.expressionIsColor)return{mode:"field",fieldType:"expression",field:s?s.key():void 0,type:"color"};var l=MM(0,{hc:i,theme:o},n,{f:s});return l.invalid||(l.label=n.input.expressionLabel||a.get("Object.ChartTooltip.ColorExpression")),l}(0,n,t,r);if("byMultiple"===t.input.mode||"primary"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.input.useBaseColors;if(("byMultiple"===n.input.mode||"primary"===n.input.mode&&"measure"===n.input.useBaseColors)&&i.qMeasureInfo.length>1&&(s="measure"),"measure"===s){var l=[],c=[];"measure"===n.input.useBaseColors&&i.qMeasureInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){l.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?c.push(r.primary):c.push(i)}}));var u=n.input.dimensionScheme?{categorical:n.input.dimensionScheme}:void 0,d=o?o.getDataColorPalettes()[0]:void 0;return"measure"===n.input.useBaseColors&&d&&(u={categorical:d.key}),{mode:"measure",type:"categorical",palettes:u,label:a?a.get("Common.Measures"):void 0,explicit:l.length?{domain:l,range:c}:void 0}}if("dimension"===s){var f=[],h=[];return i.qDimensionInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){f.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?h.push(r.primary):h.push(i)}})),{mode:"dimension",type:"categorical",field:f.length?f[0]:void 0,explicit:f.length?{domain:f,range:h}:void 0}}var p=r.primary;if(void 0!==n.input.paletteColor)n.input.paletteColor&&(p=e.resolveUIColor(n.input.paletteColor));else{var m=n.input.singleColor;"number"!=typeof m||Number.isNaN(m)||(p=["#b0afae","#7b7a78","#545352","#4477aa","#7db8da","#b6d7ea","#46c646","#f93f17","#ffcf02","#276e27","#ffffff","#000000"][m])}return{mode:"constant",type:"constant",primary:p}}(e,n,t,r)}return{}}(e,t,n,r);return null!==(i=t.input)&&void 0!==i&&i.measureOverrides?(o.measureOverrides=t.input.measureOverrides.map((function(n,i){return function(e){var t,n=e.cm,r=e.defaults,i=e.index,o=e.input,a=e.pic;if(!o||!o.on)return null;var s=null!==(t=o.mode)&&void 0!==t?t:"primary";return"primary"===s?function(e,t,n){var r=n.primary;return void 0!==t.paletteColor&&t.paletteColor&&(r=e.resolveUIColor(t.paletteColor)),US(US({},n),{},{mode:"constant",type:"constant",primary:r})}(n,o,r):"byExpression"===s?function(e,t,n){var r="qMeasureInfo/".concat(e,"/"),i=t.field((function(e){return e.id().startsWith(r)&&"colorByMeasureExpression"===e.raw().id})),o=i;return US(US({},n),{},o?{mode:"field",fieldType:"expression",field:i?i.key():void 0,type:"color"}:{mode:"constant",type:"constant",primary:n.nil})}(i,a,r):null}({cm:e,input:n,defaults:r,index:i,pic:t.pic})})),function(e,t){var n,r,i,o=t.translator;if(EM(e),1===(null===(n=e.measureOverrides)||void 0===n?void 0:n.length))return e.measureOverrides[0];if("measure"===e.mode&&e.measureOverrides&&(e.explicit=qM(e.measureOverrides,e.explicit),EM(e)),null!==(r=e.measureOverrides)&&void 0!==r&&r.every((function(e){return"constant"===(null==e?void 0:e.mode)}))){var a={mode:"measure",type:"categorical",label:null==o?void 0:o.get("Common.Measures")};return a.explicit=qM(e.measureOverrides),a}return null!==(i=e.measureOverrides)&&void 0!==i&&i.every((function(e){return e}))?{invalid:!0,measureOverrides:e.measureOverrides}:e}(o,n)):o}var TM=function(e,t){var n=e.fieldType,r={};if(t)if("measure"===n){var i=t.coloring;i&&(r.measureGradient=i.gradient)}else if("dimension"===n){var o=t[0],a=t[1];o&&(r.legendDataPage=o),a&&(r.dimValsData=a.colorMap)}return r},NM=function(e){throw e.isHandled=!0,e};function OM(e){return function(t){return"object"===JS(t.datum[e])?t.datum[e].value:void 0}}function AM(e){return"object"===JS(e.datum.isNull)?e.datum.isNull.value:-2===e.datum.value}function _M(e){return-3===e.datum.value}var LM={COLOR:void 0,FONT_SIZE:"16px",FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"},IM={COLOR:void 0,FONT_SIZE:void 0,FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"};function RM(e){var t=e.theme,n=e.key,r=e.styleOverrides,i={title:{color:LM.COLOR,fontSize:LM.FONT_SIZE,fontFamily:LM.FONT_FAMILY},label:{color:IM.COLOR,fontSize:IM.FONT_SIZE,fontFamily:IM.FONT_FAMILY}};if(!t&&!r)return i;var o=r||{},a=o.title,s=o.label,l=function(e){var t=e.theme,n=e.key;return function(e,r,i,o){return void 0!==e?e:t?t.getStyle(n,r,i):o}}({theme:t,key:n});return i.title.color=l(null==a?void 0:a.color,"legend.title","color",LM.COLOR),i.title.fontSize=l(null==a?void 0:a.fontSize,"legend.title","fontSize",LM.FONT_SIZE),i.title.fontFamily=l(null==a?void 0:a.fontFamily,"legend.title","fontFamily",LM.FONT_FAMILY),i.label.color=l(null==s?void 0:s.color,"legend.label","color",IM.COLOR),i.label.fontSize=l(null==s?void 0:s.fontSize,"legend.label","fontSize",IM.FONT_SIZE),i.label.fontFamily=l(null==s?void 0:s.fontFamily,"legend.label","fontFamily",IM.FONT_FAMILY),i}var PM=function(e,t,n){var r=e&&e.dock||void 0;if("auto"!==r)return r||"right";if(t){var i=t.element.getBoundingClientRect();if(i.height>i.width)return"bottom"}return n?"left":"right"},zM=function(e,t,n){return!(n.invalid||"color"===n.type||"measure"===n.mode&&t.qMeasureInfo.length<=1||"dimension"===n.mode)&&("function"==typeof e.show?e.show():!1!==e.show)};function FM(e,t){var n=e.styleReference,r=e.styleOverrides,i=e.chart,o=e.rtl,a=t.legendProps,s=t.coloring,l=t.theme,c=t.hc,u=RM({theme:l,key:n,styleOverrides:r});return{layout:{minimumLayoutMode:"MEDIUM",dock:PM(a,i,o)},show:"function"==typeof a.show?function(){return zM(a,c,s)}:zM(a,c,s),renderer:"svg",mounted:function(e){e.childNodes[0].style.pointerEvents="none",e.style.overflow="hidden"},settings:{title:{show:!1!==a.showTitle,wordBreak:"break-word",maxLines:2,lineHeight:1.2,text:s.label||"",fill:u.title.color,fontSize:u.title.fontSize,fontFamily:u.title.fontFamily}}}}function jM(e,t,n){var r=[],i=[],o=function(e,t,n){return"categorical"===t.coloring.type?function(e,t,n){var r=FM(e,t);if(!r.show)return!1;var i,o=e.key,a=e.styleReference,s=e.styleOverrides,l=e.viewState,c=e.rtl,u=e.settings,d=e.style,f=t.scaleKey,h=t.theme,p=t.scales,m=RM({theme:h,key:a,styleOverrides:s}),g=r.layout.dock,y="left"===g||"right"===g?{maxLines:2,wordBreak:"break-word"}:{},v={up:"M13.6,11 L2.4,11 C2.28954305,11 2.2,10.9104569 2.2,10.8 C2.2,10.756726 2.21403557,10.7146192 2.24,10.68 L7.84,3.21333333 C7.90627417,3.12496777 8.03163444,3.10705916 8.12,3.17333333 C8.13516113,3.18470418 8.14862915,3.1981722 8.16,3.21333333 L13.76,10.68 C13.8262742,10.7683656 13.8083656,10.8937258 13.72,10.96 C13.6853808,10.9859644 13.643274,11 13.6,11 Z",down:"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",left:"M11,2.4 L11,13.6 C11,13.7104569 10.9104569,13.8 10.8,13.8 C10.756726,13.8 10.7146192,13.7859644 10.68,13.76 L3.21333333,8.16 C3.12496777,8.09372583 3.10705916,7.96836556 3.17333333,7.88 C3.18470418,7.86483887 3.1981722,7.85137085 3.21333333,7.84 L10.68,2.24 C10.7683656,2.17372583 10.8937258,2.19163444 10.96,2.28 C10.9859644,2.31461923 11,2.35672596 11,2.4 Z",right:"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"};"dimension"===t.coloring.fieldType&&(i=function(e){return e.datum.value>=0||-3===e.datum.value});var b="".concat(f,"Legend");return bk(!0,r,{type:"legend-cat",key:"".concat(o,"-cat"),scale:b in p?b:f,settings:{layout:{scrollOffset:function(){return l?l.get("legendScrollOffset"):void 0},size:-1!==["top","bottom"].indexOf(r.layout.dock)?2:1,direction:c?"rtl":"ltr",horizontal:20},item:{show:i,label:US({fill:m.label.color,fontSize:m.label.fontSize,fontFamily:m.label.fontFamily},y)},navigation:{disabled:n,button:{content:function(e,t){var n=t.direction;return e("i",{style:{"pointer-events":"none",fontSize:"12px",display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizelegibility",margin:"0px"}},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},[e("path",{d:v[n]})])])}}}},brush:{consume:[{context:"selection",data:["",o],style:{inactive:{opacity:.3}}}]}},{settings:u,style:d})}(e,t,n):"continuous"===t.coloring.type&&function(e,t){var n,r=e.key,i=e.styleReference,o=e.styleOverrides,a=e.rtl,s=e.settings,l=e.style,c=t.scaleKey,u=t.theme,d="".concat(c,"Range"),f=FM(e,t);if(!f.show)return!1;var h=RM({theme:u,key:i,styleOverrides:o}),p=f.layout.dock,m="right"===p||"left"===p,g=null===(n=t.scales)||void 0===n?void 0:n[d];return m&&g&&(g.invert=!0),bk(!0,f,{type:"legend-seq",key:"".concat(r,"-seq"),settings:{fill:c,major:d,length:1,tick:{fill:h.label.color,fontSize:h.label.fontSize,fontFamily:h.label.fontFamily},title:{anchor:!a||"top"!==f.layout.dock&&"bottom"!==f.layout.dock?void 0:"right",padding:parseFloat(f.settings.title.fontSize)||16}}},{settings:s,style:l})}(e,t)}(e,t,n&&n.navigationDisabled);return r.push(o),o&&"legend-cat"===o.type&&(i.push(function(e){var t=e.key,n=e.requireFailure,r=e.recognizeWith,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:tap-".concat(t),type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"legendtap",interval:10,pointers:1,enable:function(e,n){var r;if(!n)return!0;if(null!=i&&null!==(r=i.interact)&&void 0!==r&&r.enabled&&!i.interact.enabled())return!1;if(!this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((function(e){return e.key==="".concat(t,"-cat")})))return!1;var o=n.srcEvent.target;return!!(o&&o.hasAttribute("data-action")&&o.hasAttribute("data-component-key"))||!(!o||!o.childNodes[0]||"BUTTON"!==o.childNodes[0].nodeName)}},events:{legendtap:function(e){e.preventDefault();var t=e.srcEvent.target;t&&t.hasAttribute("data-action")&&t.hasAttribute("data-component-key")&&this.chart.component(t.getAttribute("data-component-key")).emit(t.getAttribute("data-action"))}}}}(e,n)),i.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,n=e.key,r=e.requireFailure,i=e.recognizeWith,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:pan-".concat(n),type:"Pan",requireFailure:r,recognizeWith:i,options:{event:t,pointers:1,threshold:10,enable:function(e,r){var i;return this.started===t||!r||!(null!=o&&null!==(i=o.interact)&&void 0!==i&&i.enabled&&!o.interact.enabled())&&this.chart.componentsFromPoint({x:r.center.x,y:r.center.y}).some((function(e){return e.key==="".concat(n,"-cat")}))}},events:$S($S($S({},"".concat(t,"start"),(function(e){e.preventDefault(),this.started!==t&&(this.started=t,this.chart.component("".concat(n,"-cat")).emit("panstart",e))})),"".concat(t,"move"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panmove",e)})),"".concat(t,"end"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panend",e),this.started=!1}))}}(e,n))),{interactions:i,components:r}}function BM(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.auto,n=function(e){var t=US({hc:null,colorProps:null,layout:null,theme:null},e),n={},r={auto:function(){return{mode:"primary"}},getDimensionColorMap:function(){return Promise.reject()},getMeasure:function(){return Promise.reject()},getAttributeDimension:function(){return Promise.reject()}},i={auto:function(e){return e?(r.auto=e,i):r.auto},getDimensionColorMap:function(e){return e?(r.getDimensionColorMap=e,i):r.getDimensionColorMap},getAttributeDimension:function(e){return e?(r.getAttributeDimension=e,i):r.getAttributeDimension},getMeasure:function(e){return e?(r.getMeasure=e,i):r.getMeasure},set:function(e){var i;if(!e.colorProps)throw new Error('Missing "colorProps"');if(bk(t,e),(n={pic:t.picasso.data("q")({data:t.hc,config:{localeInfo:t.localeInfo}}),input:t.colorProps}).input.auto){var o=r.auto(e.layout);n.input=bk(!0,{},n.input,o,{auto:!1});var a=t.theme?t.theme.getDataColorPalettes():[];a[0]&&(n.input.dimensionScheme=a[0].key);var s=0;n.input.byDimDef&&+n.input.byDimDef.activeDimensionIndex>=0&&(s=+n.input.byDimDef.activeDimensionIndex),t.hc&&t.hc.qDimensionInfo[s]&&t.hc.qDimensionInfo[s].coloring&&t.hc.qDimensionInfo[s].coloring.colorMapRef&&n.input.byDimDef&&(n.input.byDimDef.type="libraryItem",n.input.byDimDef.key=t.hc.qDimensionInfo[s].coloring.colorMapRef)}null!==(i=n.input.measureOverrides)&&void 0!==i&&i.every((function(e){return!e||!e.on}))&&(n.input=bk(!1,{},n.input,{measureOverrides:null}))},palettes:function(){if(!n.palettes){var e=t.theme,r=[];(e&&e.getDataColorPickerPalettes()||[]).forEach((function(e){r.push({key:"ui",colors:e.colors})})),n.palettes=r}return n.palettes},getAuxiliaryData:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/qHyperCubeDef";if(!e.auxiliary&&!/qAttrDimInfo/.test(e.field))return Promise.resolve();var i=(e.auxiliary||{}).key;if("measure"===e.fieldType)return r.getMeasure(i,t).catch((function(){}));if("dimension"===e.fieldType){var o="".concat(n,"/").concat(e.field).replace("qDimensionInfo","qDimensions").replace("qAttrDimInfo","qAttributeDimensions");return Promise.all([/qAttrDimInfo/.test(e.field)?r.getAttributeDimension(o,t).catch((function(){})):Promise.resolve(),i?r.getDimensionColorMap(i,t).catch((function(){})):Promise.resolve()])}return Promise.resolve()},getAuxiliarySettings:function(e,r){var i=this;return e.auxiliary||/qAttrDimInfo/.test(e.field)?(this.palettes(),this.getAuxiliaryData(e,r).then((function(r){if(!r)return{};if("measure"===e.fieldType){if(r.coloring&&r.coloring.gradient){var o=n.pic.field(e.field);return SM(i,r.coloring.gradient,e,o)}return{}}if("dimension"===e.fieldType){var a={nil:e.nil,others:e.others},s=r[0],l=r[1]?r[1].colorMap:null;if(s){var c=t.picasso.data("q")({data:{qDimensionInfo:[n.pic.field(e.field).raw(),n.pic.field(e.field).raw()],qMeasureInfo:[],qDataPages:s,qInterColumnSortOrder:[0,1],qMode:"S"}});a.legendDataset=c}return l?function(e,t,n,r){var i=r.external,o=r.field,a=US({},e);bk(a,xk(o,o.raw().qCardinal));var s=i.theme?i.theme.getDataColorPalettes()[0]:null;return t.nul&&(a.nil=n.resolveUIColor(t.nul)),t.oth&&(a.others=n.resolveUIColor(t.oth)),t.usePal?(a.palettes={categorical:t.pal},s&&!t.pal&&(a.palettes.categorical=s.key,bk(a,xk(o)))):!1===t.autoFill&&t.single?a.range=[n.resolveUIColor(t.single)]:t.autoFill&&(s&&(a.palettes={categorical:s.key}),bk(a,xk(o))),t.colors&&t.colors.length&&(a.explicit=function(e,t,n){for(var r={},i=0;i<e.length;i+=1)r[e[i].value]=e[i].baseColor;var o=[];return{domain:function(e){var i=e.data,a=[];o=[];for(var s=0;s<i.items.length;s++){var l=i.items[s],c=(l.text||l).label;r[c]&&-1===a.indexOf(l.value)&&(a.push(l.value),o.push(t.resolveUIColor(r[c])))}return a.push(-3,-2),o.push(n.others),o.push(n.nil),a},range:function(){return o}}}(t.colors,n,a)),a}(a,l,i,{external:t,field:n.pic.field(e.field)}):a}return{}}))):Promise.resolve()},resolveUIColor:function(e){if(e.index<0||void 0===e.index)return e.color;if(void 0===n.uiPalette&&(n.uiPalette=this.palettes().filter((function(e){return"ui"===e.key}))[0]||!1),!n.uiPalette)return e.color;var t="none"===n.uiPalette.colors[0]?e.index:e.index-1;return void 0===n.uiPalette.colors[t]?e.color:n.uiPalette.colors[t]},settings:function(){if(this.palettes(),!n.settings){var e={primary:"steelblue",others:"#aaa",nil:"#ddd"},r=t.theme;r&&(e=US(US({},e),r.getDataColorSpecials())),n.settings=bk(e,DM(this,n,t,e))}return n.settings}};return i}(e.resources).auto(t||function(){return{mode:"byDimension",persistent:!1,useDimColVal:!0,byDimDef:{activeDimensionIndex:0,type:"expression",label:""}}}).getDimensionColorMap((function(e,t){return function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.dimValsData?Promise.resolve({colorMap:n.snapshotData.content.chartData.dimValsData}):Promise.reject():r&&r.getObject?r.getObject("ColorMapModel_".concat(e)).then((function(e){return e.getLayout()})):Promise.reject()}(e,{layout:t.layout,app:t.app})})).getMeasure((function(e,t){return function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.measureGradient?Promise.resolve({coloring:{gradient:n.snapshotData.content.chartData.measureGradient}}):Promise.reject():r&&r.getMeasure?r.getMeasure(e).then((function(e){return e.getMeasure()})):Promise.reject()}(e,{layout:t.layout,app:t.app})})).getAttributeDimension((function(e,t){return function(e,t){var n=t.layout,r=t.model,i=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.legendDataPage?Promise.resolve(n.snapshotData.content.chartData.legendDataPage):Promise.reject():r&&r.session&&i?r.getHyperCubeData(e,[{qHeight:100,qLeft:0,qTop:0,qWidth:2}]).catch(NM):Promise.reject()}(e,{layout:t.layout,model:t.model,app:t.app})}));return n.getSnapshotData=TM,n}({resources:e}),n={},r={},i=function(e){return r.settings||(e||console.warn("settings() called before auxiliarySettings()"),r.settings=t.settings()),r.settings},o={config:function(i){if(n=US({},i),r={},!n.key)throw new Error("Missing key");t.set(US(US({},e),n))},auto:function(e){return e?(t.auto(e),o):t.auto()},getAuxiliarySettings:function(e){return r.auxiliarySettings?Promise.resolve(r.auxiliarySettings):t.getAuxiliarySettings(i(!0),e).then((function(e){return r.auxiliarySettings=e||{},r.settings=US(US({},r.settings),r.auxiliarySettings),r.scales=void 0,r.color=void 0,r.auxiliarySettings}))},getAuxiliaryData:function(){return t.getAuxiliaryData(i())},getSnapshotData:function(e){var n=i();return t.getAuxiliaryData(n,e).then((function(e){return t.getSnapshotData(n,e)}))},resolveUIColor:function(e){return t.resolveUIColor(e)},settings:function(){var e=i();return{mode:e.mode,type:e.type,label:e.label,field:e.field,fieldType:e.fieldType,nil:e.nil,others:e.others,primary:e.primary}},settingsForMeasure:function(e){var t;return(null===(t=i().measureOverrides)||void 0===t?void 0:t[e])||this.settings()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return function(e,t){var n=t.isMeasureSelectionLocked;return"field"!==e.mode||("dimension"===e.fieldType?e.isFieldLocked:"measure"!==e.fieldType||n)}(i(),{isMeasureSelectionLocked:t})},palettes:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorProps,n=e.coloring,r=e.theme,i=[];if(n&&n.palettes&&r){var o=n.palettes.categorical||t.dimensionScheme,a=r.getDataColorPalettes().filter((function(e){return e.key===o}))[0]||r.getDataColorPalettes()[0];o&&a&&i.push({key:"categorical",colors:a.colors});var s=n.palettes.metric||t.measureScheme,l=r.getDataColorScales().filter((function(e){return e.key===s}))[0]||r.getDataColorScales()[0];if(l){var c=l.colors[0]?l.colors:[[]].concat(XS(l.colors.slice(1)));c=Array.isArray(c[0])?c.map((function(e){return e.slice().reverse()})):c.slice().reverse(),i.push({key:"quant",colors:c})}}return i}({coloring:i(),colorProps:n.colorProps,theme:n.theme})},scales:function(){return r.scales=r.scales||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.hc,n=e.coloring,r=e.rtl,i=e.key,o=e.source,a=e.picasso,s={},l=i;if(n){var c={override:!0,domain:n.explicit&&"function"==typeof n.explicit.domain?n.explicit.domain:[].concat(XS((n.explicit||{}).domain||[]),[-3,-2]),range:n.explicit&&"function"==typeof n.explicit.range?n.explicit.range:[].concat(XS((n.explicit||{}).range||[]),[n.others,n.nil])};if("field"===n.mode){if("dimension"===n.fieldType){var u,d=function(e){var t=e.hc,n=e.source,r=e.coloring,i={data:{extract:[{source:"dummy",field:0,filter:function(){return i.expando=t.qDataPages[0]?t.qDataPages[0].qArea.qTop:0,!1}},{source:n,field:r.field,trackBy:r.valueAccessor,reduce:"first",props:{row:{reduce:function(){return i.expando++}},text:{value:function(e){return e.qText},reduce:"first"}}}]},expando:0};return i}({hc:t,source:o,coloring:n}).data;if(n.legendDataset){var f=0,h={};a.data("q")({data:t}).extract({field:n.field,trackBy:n.valueAccessor,reduce:function(e){var t=e[0];return h[t]=f++,e[0]}}),u={source:"attrDim",extract:{field:"qDimensionInfo/0",filter:function(e){return e.qElemNumber>=0},props:{row:{value:function(e){return h[e.qElemNumber]}}}}}}var p={data:d,range:n.range,domain:n.domain,explicit:c,type:"categorical-color",label:function(e){return e.datum.text&&e.datum.text.value?e.datum.text.value:e.datum.label}};s[l]=p,u&&(s["".concat(l,"Legend")]=US(US({},p),{},{data:u})),t&&t.qHasOtherValues&&u&&((u||p.data).amend=[{label:t.qDimensionInfo[0].othersLabel,source:{key:"qHyperCube",field:"qDimensionInfo/0"},row:{value:-3},value:-3}])}else if("measure"===n.fieldType){var m={data:{field:n.field},min:n.min,max:n.max};s[l]=bk({},m,{type:"categorical"===n.type?"threshold-color":"sequential-color",range:n.range,domain:n.domain,invert:n.reverse}),"sequential-color"===s[l].type&&(s["".concat(l,"Range")]=bk({},m,{invert:!!r}))}else if("color"!==n.type)throw new Error("UNUSED FIELD")}else if("dimension"===n.mode){var g={data:t.qDimensionInfo.map((function(e,t){return t})),label:function(e){return t.qDimensionInfo[e.datum.value].qFallbackTitle},explicit:c,type:"categorical-color"};s[l]=g}else if("measure"===n.mode){var y={data:t.qMeasureInfo.map((function(e,t){return t})).filter((function(e){var t;return!(null!==(t=n.explicit)&&void 0!==t&&null!==(t=t.exclude)&&void 0!==t&&t.includes(e))})),label:function(e){return t.qMeasureInfo[e.datum.value].qFallbackTitle},explicit:c,type:"categorical-color"};s[l]=y}}return s}({hc:n.hc,coloring:i(),key:n.key,source:n.source,picasso:e.picasso}),r.scales},color:function(){return r.color=r.color||function(e){var t=e.coloring,n=e.scales,r=e.key,i=OM(r),o=OM("".concat(r,"IsAnOther")),a=function(e,t){var r=e.fieldType,a=e.invalid,s=e.mode,l=e.nil,c=e.others,u=e.primary,d=e.type;return a?function(e){return _M(e)||o(e)?c:l}:n[t]?function(e){return _M(e)?c:AM(e)||-2===i(e)&&"dimension"===r||"NaN"===i(e)?l:o(e)?c:e.resources.scale(t)(i(e))||c}:"constant"===s?function(e){return _M(e)||o(e)?c:AM(e)?l:u}:"color"===d?function(e){return _M(e)||o(e)?c:AM(e)?l:i(e)||c}:null},s=a(t,r);if(t.measureOverrides){var l=OM("".concat(r,"MeasureIdx")),c=t.measureOverrides.map((function(e){return e&&a(e)}));return function(e){var t=l(e);return c[t]?c[t](e):s(e)}}return s}({coloring:i(),scales:this.scales(),key:n.key}),r.color},datumProps:function(e){return function(e){var t,n,r=e.hc,i=e.coloring,o=e.scales,a=e.key,s=e.addMeasureIx,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=a,u=i.nil;"field"===i.mode&&i.field?t=i.field:o[a]&&"field"===i.mode&&(t=o[a].data.field||i.field),t?(n={field:t,reduce:"first"},"color"===i.type&&(n.value=function(e){return"NaN"!==e.qNum?function(e){return"rgba(".concat([(16711680&e)>>16,(65280&e)>>8,255&e,((4278190080&e)>>>24)/255].join(","),")")}(e.qNum):e.qText&&Hk(e.qText)?e.qText:u})):"dimension"===i.mode?n=void 0!==i.field?i.field:r.qDimensionInfo.length-1:"measure"===i.mode&&(n=l);var d=$S({},c,n);return r.qDimensionInfo.length>1&&(d["".concat(c,"IsAnOther")]={fields:r.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return-1!==e.indexOf(-3)}}),s&&(d["".concat(c,"MeasureIdx")]=l),d}({coloring:this.settingsForMeasure(e),scales:this.scales(),key:n.key,hc:n.hc,addMeasureIx:i().measureOverrides},e)},data:function(){var e=i(),t={key:"dummy",data:[["field"],["a"]]};return e.legendDataset?[t,{type:"q",key:"attrDim",data:e.legendDataset.raw(),config:{localeInfo:n.localeInfo}}]:[t]},legend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,r=e.key,o=e.viewState,a=e.chart,s=e.rtl,l=e.styleReference,c=void 0===l?"object.legend":l,u=e.styleOverrides,d=e.settings,f=void 0===d?{}:d,h=e.style,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return jM({eventName:t,key:r,rtl:s,viewState:o,chart:a,styleReference:c,styleOverrides:u,settings:f,style:void 0===h?{}:h},{legendProps:n.legendProps,scaleKey:n.key,coloring:i(),theme:n.theme,hc:n.hc,scales:this.scales()},p)}};return o}var HM=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function VM(e){var t=e.qHyperCube,n=t.qDimensionInfo,r=t.qMeasureInfo,i=n.some(HM),o=r.some(HM),a=e.color.useBaseColors;return"measure"===a&&!o||"dimension"===a&&!i?"off":a}var $M=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function WM(e){var t,n=e.qHyperCube.qDimensionInfo.some($M),r=e.qHyperCube.qMeasureInfo.some($M),i=n?"dimension":void 0;return{mode:"primary",useBaseColors:null!==(t=null!=i?i:r?"measure":void 0)&&void 0!==t?t:"off",paletteColor:null}}var UM=function(){};function YM(e){var t,n,r,i,o=e.picasso,a=e.model,s=e.app,l=e.translator,c=e.layoutService,u=void 0===c?void 0:c,d=e.createConfig,f=void 0===d?UM:d,h=e.config,p=void 0===h?{}:h,m=e.custom,g=void 0===m?{}:m,y=p.localeInfo,v=p.key,b=p.theme,x=void 0===b?void 0:b,w=p.auto,S=void 0===w?void 0:w,k=p.definitionPath,M=null==u||null===(t=u.getLayout)||void 0===t?void 0:t.call(u),C={theme:x,key:v,localeInfo:y,layout:M,hc:null==u||null===(n=u.getHyperCube)||void 0===n?void 0:n.call(u),legendProps:null==u||null===(r=u.getLayoutValue)||void 0===r?void 0:r.call(u,"legend"),colorProps:US(US({},null==u||null===(i=u.getLayoutValue)||void 0===i?void 0:i.call(u,"color")),{},{useBaseColors:M?VM(M):void 0})},E=BM({picasso:o,model:a,app:s,translator:l,auto:S});!1!==S&&E.auto((function(e){return S?S({layout:e,defaultAuto:WM}):WM(e)}));var q=!1,D={getColor:function(){return E.color()},getPaletteColor:function(e){var t=e.index,n=e.color;return E.resolveUIColor({index:t,color:n})},getData:function(){return E.data()},getDatumProps:function(e){return E.datumProps(e)},getSnapshotData:function(){return E.getSnapshotData(k)},getSettingsForMeasure:function(e){return E.settingsForMeasure(e)},getSettings:function(){return E.settings()},getLegend:function(e,t){return E.legend(e,t)},getScales:function(){return E.scales()},getPalettes:function(){return E.palettes()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return E.isSelectionLocked({isMeasureSelectionLocked:t})},isInitialized:function(){return q},custom:US({},g),initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).createConfig,t=(void 0===e?f:e)({getUseBaseColors:VM}),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return US(US(US({},e),t),{},{colorProps:US(US({},e.colorProps),t.colorProps||{})})}(C,t);return E.config(n),E.getAuxiliarySettings(k).then((function(){q=!0}))}};return D}var KM="center",GM="bottom",XM=[{key:"NoDataExist",alignment:KM,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:KM,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:KM,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:KM},{key:"DataRangeIncludingZero",alignment:GM},{key:"LimitedData",alignment:GM},{key:"NegativeOrZeroValues",alignment:GM}].reduce((function(e,t){return e[t.key]=t,e}),{}),JM=function(){return!1};function ZM(e){var t,n=e.layout,r=e.config,i=void 0===r?{}:r,o={disclaimer:void 0,isSuppressing:!1,showDisclaimer:null!==(t=i.args)&&void 0!==t&&t.layoutService?i.args.layoutService.getLayoutValue("showDisclaimer"):null==n?void 0:n.showDisclaimer};return{initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).args;o.disclaimer=function(e){var t=e.args,n=e.disclaimers,r=[];return Object.keys(n).forEach((function(e){var i=XM[e],o=n[e];o&&(o.condition||(null==i?void 0:i.condition)||JM)(t)&&r.push({key:(null==i?void 0:i.translationKey)||(null==i?void 0:i.key)||e,alignment:o.alignment||(null==i?void 0:i.alignment)||GM})})),r.find((function(e){return e.alignment===KM}))||r[0]}({args:US(US({layout:n},i.args),e),disclaimers:i.disclaimers||{}}),o.isSuppressing=!(!o.disclaimer||o.disclaimer.alignment!==KM)},getDisclaimer:function(){return o.isSuppressing?o.disclaimer:!1===o.showDisclaimer?void 0:o.disclaimer},getHasSuppressingDisclaimer:function(){return o.isSuppressing}}}function QM(e){var t=e.chart,n=e.logicalSize;if(n)return n;var r=t?t.element.getBoundingClientRect():{};return{width:r.width,height:r.height}}var eC=[{key:"FULL",size:{width:550,height:450}},{key:"MEDIUM",size:{width:400,height:220}},{key:"SMALL",size:{width:300,height:150}},{key:"XSMALL",size:{width:150,height:75}}];function tC(e){var t=e.width,n=e.height,r=eC.filter((function(e){return t>=e.size.width&&n>=e.size.height})).shift();return r?r.key:"SPARK"}var nC={left:"right",right:"left",top:"bottom",bottom:"top",near:"far",far:"near"};function rC(e){var t=e.orientation,n=e.dock,r=e.btt,i=e.rtl,o="horizontal"===t?function(e){return"bottom"===e||"near"===e?"bottom":"top"}(n):function(e,t){var n="left"===e||"near"===e?"left":"right";return t?nC[n]:n}(n,i),a=function(e,t,n){return"vertical"===e?t?"bottom":"top":n?"right":"left"}(t,r,i);return{current:o,opposite:nC[o],start:a,end:nC[a]}}function iC(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=i.logicalSize,a=void 0!==o&&o,s=i.rtl,l=void 0!==s&&s,c={chart:{size:void 0,mode:void 0},x:{dock:void 0,opposite:void 0,size:void 0},y:{dock:void 0,opposite:void 0,size:void 0}},u={type:"x-y",config:US({},i),meta:c,update:function(e){c.chart.size={width:e.width,height:e.height},c.chart.mode=tC(e);var t=rC({orientation:"horizontal",dock:n.getLayoutValue("xAxis.dock"),btt:!1,rtl:l}),r=t.current,i=t.opposite;c.x.dock=r,c.x.opposite=i,c.x.size=e.width;var o=rC({orientation:"vertical",dock:n.getLayoutValue("yAxis.dock"),btt:!0,rtl:l}),a=o.current,s=o.opposite;c.y.dock=a,c.y.opposite=s,c.y.size=e.height}};return u.update(QM({chart:t,logicalSize:a})),u}var oC="vertical",aC="horizontal";function sC(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o,s=i.logicalSize,l=void 0!==s&&s,c=i.rtl,u=void 0!==c&&c,d=a.fallback===oC?oC:aC,f=!!a.invert,h=a.measureAxes||[{ref:"measureAxis",name:"minor"}],p={chart:{orientation:void 0,size:void 0,mode:void 0},major:{orientation:void 0,dock:void 0,opposite:void 0,size:void 0}},m={type:"major-minor",config:US({},i),meta:p,update:function(e){p.chart.orientation=n.getLayoutValue("orientation",d),p.chart.size={width:e.width,height:e.height},p.chart.mode=tC(e),p.major.orientation=function(e){var t=e.chartOrientation,n=e.invert;return e.layoutService.meta.isContinuous?aC:n?t===oC?aC:oC:t}({layoutService:n,chartOrientation:p.chart.orientation,invert:f});var t=rC({orientation:p.major.orientation,dock:n.getLayoutValue("dimensionAxis.dock"),btt:!1,rtl:u}),r=t.current,i=t.opposite;p.major.dock=r,p.major.opposite=i,p.major.size=p.major.orientation===oC?e.height:e.width,h.forEach((function(t){var r={};r.orientation=p.major.orientation===oC?aC:oC;var i=rC({orientation:r.orientation,dock:n.getLayoutValue("".concat(t.ref,".dock")),btt:!0,rtl:u}),o=i.current,a=i.opposite,s=i.start,l=i.end;r.dock=o,r.opposite=a,r.start=s,r.end=l,r.size=r.orientation===oC?e.height:e.width,p[t.name]=r}))}};return m.update(QM({chart:t,logicalSize:l})),m}function lC(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o;return("x-y"===a.type?iC:sC)({chart:t,layoutService:n,config:i,typeConfig:a})}function cC(e,t,n){if(void 0===e||void 0===t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(void 0===i[a])return n;i=i[a]}return i}var uC=["__proto__","constructor"];function dC(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),i=r[r.length-1];if(!uC.some((function(e){return r.includes(e)}))){for(var o=e,a=0;a<r.length-1;++a){var s=r[a];void 0===o[s]&&(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}}}function fC(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}function hC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=fC();return function(r){var i=t(r);return n.has(i)?n.get(i):n.set(i,e(r))}}function pC(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,o)}),n)}}function mC(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s;var c=Date.now()-o,u=function(){o=Date.now(),r=0,e.apply(t,n)};r||(c>=i?u():r=setTimeout(u,i-c))}}var gC={ERROR_CODES:[7005],DIMENSION:"qDimensionInfo",MEASURE:"qMeasureInfo"},yC=function(e,t){return e[t].reduce((function(e,t,n){var r;return r=t,gC.ERROR_CODES.some((function(e){var t;return e===(null===(t=r.qError)||void 0===t?void 0:t.qErrorCode)}))?e.filtered.push(n):e.reduced.push(t),e}),{reduced:[],filtered:[]})};function vC(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[]).map((function(e){var t,n=null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal;if(n)return n;var r=e.qStateCounts||{},i=r.qLocked,o=void 0===i?0:i,a=r.qOption,s=void 0===a?0:a,l=r.qSelected;return o+s+(void 0===l?0:l)}))}function bC(e){switch(e.qHyperCube.qMode){case"S":return function(e){var t=e.qHyperCube.qSize;return{refs:{dataPages:"qHyperCube.qDataPages"},size:{x:t.qcx,y:t.qcy,dimensions:vC(e)}}}(e);case"K":return function(e){var t=vC(e);return{refs:{dataPages:"qHyperCube.qStackedDataPages"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);case"T":return function(e){var t=vC(e);return{refs:{dataPages:"qHyperCube.qTreeDataPages"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);default:throw new Error("Mode not supported")}}function xC(e){var t=e.source,n=e.metaAdditionsFn,r=e.experimental,i=void 0===r?{filter:!1}:r,o=bk(!0,{},t),a=i.filter?function(e){var t=e.qHyperCube,n=yC(t,gC.DIMENSION),r=n.reduced,i=n.filtered;t[gC.DIMENSION]=r;var o=yC(t,gC.MEASURE),a=o.reduced,s=o.filtered;return t[gC.MEASURE]=a,{dimensions:i,measures:s}}(o):{dimensions:[],measures:[]},s=bC(o),l=function(){var e=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,c=a.qMode,u=s.length,d=l.length,f=US({mode:{S:"S"===c,P:"P"===c,K:"K"===c,T:"T"===c},dimensionCount:u,measureCount:d,hasMultipleDimensions:u>1,hasMultipleMeasures:d>1,isOneDimensional:1===u,isTwoDimensional:2===u},o);return US(US({},f),r({layout:t,meta:f}))}({layout:o,additionsFn:n,additionsProps:{size:s.size}});return e.filteredFields=a,e},c={refs:US({},s.refs),meta:l(),getLayout:function(){return o},getLayoutValue:function(e,t){return cC(o,e,t)},setLayoutValue:function(e,t){dC(o,e,t),s=bC(o),c.meta=l()},getHyperCube:function(){return o.qHyperCube},getHyperCubeValue:function(e,t){return cC(o.qHyperCube,e,t)},setHyperCubeValue:function(e,t){dC(o.qHyperCube,e,t),s=bC(o),c.meta=l()},getDataPages:function(){return cC(o,s.refs.dataPages)},setDataPages:function(e){dC(o,s.refs.dataPages,e),c.meta=l()}};return c}function wC(e){var t=e.originalArray,n=e.newArray,r=e.matchKey;return Array.isArray(t)&&t.length?(n.forEach((function(e){var n=-1;t.some((function(t,i){return t[r]&&t[r]===e[r]&&(n=i),n})),n>-1?t[n]=e:t.push(e)})),t):n}function SC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kC(Object(n),!0).forEach((function(t){SC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var CC=Object.prototype.hasOwnProperty,EC=Object.prototype.toString,qC=Object.defineProperty,DC=Object.getOwnPropertyDescriptor,TC=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===EC.call(e)},NC=function(e){if(!e||"[object Object]"!==EC.call(e))return!1;var t,n=CC.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&CC.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||CC.call(e,t)},OC=function(e,t){qC&&"__proto__"===t.name?qC(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},AC=function(e,t){if("__proto__"===t){if(!CC.call(e,t))return;if(DC)return DC(e,t).value}return e[t]},_C=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=AC(s,n),s!==(i=AC(t,n))&&(u&&i&&(NC(i)||(o=TC(i)))?(o?(o=!1,a=r&&TC(r)?r:[]):a=r&&NC(r)?r:{},OC(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&OC(s,{name:n,newValue:i}));return s};function LC(e,t,n,r){if(!e)return-1;const i=n.cache,o=e.origin?e.origin():null;o&&(e=o);let a=i.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<i.wrappedFields.length;t++)if(l=i.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),s=i.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(r)&&r.some(((e,t)=>e!==t))){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function IC(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function RC(e){let{cache:t,f:n,mainCell:r,p:i,page:o,rowIdx:a,row:s,sourceKey:l,target:c,targetProp:u,columnOrder:d}=e,f=r;if(i.field&&i.field!==n){const e=LC(i.field,o,{cache:t},d);if(-1===e)return;f=_C({qRow:a},e(s))}c[u]=IC(i,f,{key:l})}function PC(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let e=0;e<i.length;e++)if(void 0!==i[e].field){const a=t.raw(),s=t.key(),l="object"==typeof i[e].field?i[e].field:t.field(i[e].field),{props:c,main:u}=r.normalizeConfig(i[e],t),d=Object.keys(c),f=!!i[e].trackBy,h=typeof i[e].trackBy,p={},m=[],g=[];for(let t=0;t<a.qDataPages.length;t++){const o=LC(l,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==o)for(let y=0;y<a.qDataPages[t].qMatrix.length;y++){const v=a.qDataPages[t].qArea.qTop+y,b=_C({qRow:v},o(a.qDataPages[t].qMatrix[y])),x=IC(u,b,{key:s});if(!u.filter||u.filter(b)){for(let e=0;e<d.length;e++){const r=c[d[e]];let i=r.fields||[r];r.fields&&(x[d[e]]=[]);for(let o=0;o<i.length;o++)RC({cache:n,f:l,mainCell:b,p:i[o],prop:d[e],page:a.qDataPages[t],rowIdx:v,row:a.qDataPages[t].qMatrix[y],sourceKey:s,target:r.fields?x[d[e]]:x,targetProp:r.fields?o:d[e],columnOrder:a.qColumnOrder});if(r.fields){const t=x[d[e]].map((e=>e.value)),n=x[d[e]].map((e=>e.label));x[d[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(x[d[e]].value)}}}f&&r.track({cfg:i[e],itemData:b,obj:x,target:m,tracker:p,trackType:h}),g.push(x)}}}const y=f?r.collect(m,{main:u,propsArr:d,props:c}):g;o=[...o,...y]}return o}function zC(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function FC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=BC)):void 0===t&&(t=jC);for(var n,r,i,o,a,s=new $C(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new $C(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(VC)}function jC(e){return e.children}function BC(e){return Array.isArray(e)?e[1]:null}function HC(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function VC(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function $C(e){this.data=e,this.depth=this.height=0,this.parent=null}function WC(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}$C.prototype=FC.prototype={constructor:$C,count:function(){return this.eachAfter(zC)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return FC(this).eachBefore(HC)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};var UC={depth:-1},YC={},KC={};function GC(e){return e.id}function XC(e){return e.parentId}function JC(e){let t=e.length;if(t<2)return"";for(;--t>1&&!ZC(e,t););return e.slice(0,t)}function ZC(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function QC(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,i=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(i)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++){let n=QC(r,i[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(i)){const t=new Array(i.length);r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++)t[e]=QC(r,i[e]);return t}n[e]in i&&(i=i[n[e]])}return i}function eE(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let i=0;i<e.length;i++)e[i].children&&e[i].children.length&&(r=[...r,...eE(e[i].children,t-1,n)]);return r}function tE(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const r=Math.max(0,Math.min(100,t-e));return e=>eE(e.children,r-1,n)}return!1}const nE=/^qDimensionInfo(?:\/(\d+))?/,rE=/^\/?qMeasureInfo\/(\d+)/,iE=/\/qAttrExprInfo\/(\d+)/,oE=/\/qAttrDimInfo\/(\d+)/;function aE(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function sE(e,t){let{cube:n}=t;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),i=!1,o=-1,a=-1,s=-1,l=-1,c=-1,u=-1,d=r;const f=n.qEffectiveInterColumnSortOrder,h=aE(n);return nE.test(d)&&(i=!0,o=+nE.exec(d)[1],d=r.replace(nE,"")),rE.test(d)&&("K"===n.qMode?c=+rE.exec(d)[1]:f&&-1!==f.indexOf(-1)?(c=+rE.exec(d)[1],u=0):u=+rE.exec(d)[1],d=d.replace(rE,"")),d&&(oE.exec(d)?s=+oE.exec(d)[1]:iE.exec(d)&&(a=+iE.exec(d)[1])),l=i?"S"===n.qMode?h[o]:f?f.indexOf(o):o:f&&-1!==f.indexOf(-1)?f.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:u,attrDimIdx:s,attrIdx:a}}function lE(e,t){let n,r,i=tE(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:i,attrFn:r,valueFn:n}}function cE(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function uE(e){let{propsArr:t,props:n,item:r,itemData:i,ret:o,sourceKey:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields||[s];let c,u;s.fields&&(c=[],u=[]);for(let n=0;n<l.length;n++){const d=l[n];let f,h,p,m,g,y;if("primitive"===d.type?(p=d.value,y=String(d.value)):("function"==typeof d.value&&(f=e=>d.value(e,r)),"function"==typeof d.label&&(h=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),f&&(p=g.map(f),f=null),h&&(y=g.map(h),h=null),p=d.reduce?d.reduce(p):p,y=d.reduceLabel?d.reduceLabel(y,p):String(p)):(p=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),y=p)):(p=i,y=i)),s.fields){const e=f?f(p):p;c.push(e),u.push(h&&null!=y?h(y):null!=y?y:String(e))}else{const n=f?f(p):p;o[t[e]]={value:n,label:h?h(y):null!=y?y:String(n)},d.field&&(o[t[e]].source={field:d.field.key(),key:a})}}c&&(o[t[e]]={value:"function"==typeof s.value?s.value(c,r):c,label:"function"==typeof s.label?s.label(u,r):u})}}const dE=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",i="K"===e.qMode?"qSubNodes":"qNodes",o=QC(r,e);return o&&o[0]?(t.tree=FC(o[0],n.children||(e=>e[i])),t.tree):null};function fE(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map(((e,t)=>t))}(e),r=e.fields(),i=e.fields().filter((e=>"dimension"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),o=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),a={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r="__root",l=!1;for(let e=0;e<i.length;e++){var s;const t=n[i[e]],o="".concat(r,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);a[o]||(a[o]=MC({__id:o,__parent:r,qValues:[]},t),l=!0),r=o}if(l)for(let e=0;e<o.length;e++){const t=n[o[e]];a[r].qValues.push(t)}}const l=Object.keys(a).map((e=>a[e]));return function(){var e,t=GC,n=XC;function r(r){var i,o,a,s,l,c,u,d,f=Array.from(r),h=t,p=n,m=new Map;if(null!=e){const t=f.map(((t,n)=>function(e){let t=(e=`${e}`).length;return ZC(e,t-1)&&!ZC(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(JC),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(JC(e)),f.push(KC));h=(e,n)=>t[n],p=(e,t)=>n[t]}for(a=0,i=f.length;a<i;++a)o=f[a],c=f[a]=new $C(o),null!=(u=h(o,a,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?YC:c)),null!=(u=p(o,a,r))&&(u+="")&&(c.parent=u);for(a=0;a<i;++a)if(u=(c=f[a]).parent){if(!(l=m.get(u)))throw new Error("missing: "+u);if(l===YC)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(s)throw new Error("multiple roots");s=c}if(!s)throw new Error("no root");if(null!=e){for(;s.data===KC&&1===s.children.length;)s=s.children[0],--i;for(let e=f.length-1;e>=0&&(c=f[e]).data===KC;--e)c.data=null}if(s.parent=UC,s.eachBefore((function(e){e.depth=e.parent.depth+1,--i})).eachBefore(VC),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=WC(e),r):t},r.parentId=function(e){return arguments.length?(n=WC(e),r):n},r.path=function(t){return arguments.length?(e=WC(t),r):e},r}().id((e=>e.__id)).parentId((e=>e.__parent))(l)}const hE=e=>{let{propsArr:t,props:n,cube:r,cache:i,itemDepthObject:o,f:a}=e;for(let e=0;e<t.length;e++){const i=n[t[e]],s=i.fields?i.fields:[i];for(let e=0;e<s.length;e++){const t=s[e];if(t.field!==a){const e=lE(o,sE(t.field,{cube:r}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function pE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=t.raw(),o=t.key(),a="S"===i.qMode?fE(t):dE(i,n,e);if(!a)return null;const s=a.height,l=[];for(let o=0;o<=s;o++){let a=null;if(o>0)if("S"===i.qMode){let e=aE(i)[o-1];a=n.fields[e]}else{let e=i.qEffectiveInterColumnSortOrder[o-1];o>i.qEffectiveInterColumnSortOrder.length&&(e=i.qDimensionInfo.length),a=n.fields[e]}const{props:s,main:c}=r.normalizeConfig(MC(MC({},e),{},{field:a?a.key():void 0}),t),u=Object.keys(s);l[o]={propsArr:u,props:s,main:c};const d=a?sE(a,{cube:i}):{fieldDepth:0};hE({propsArr:u,props:s,cube:i,cache:n,itemDepthObject:d,f:a})}const c=a.copy().descendants(),u=a.descendants();for(let e=0;e<u.length;e++){const t=l[u[e].depth].propsArr,n=l[u[e].depth].props,r=l[u[e].depth].main,i=c[e],a=i.data,s=cE(r,a,{key:o});uE({propsArr:t,props:n,item:i,itemData:a,ret:s,sourceKey:o}),u[e].data=s}return a}function mE(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let a=0;a<i.length;a++)if(void 0!==i[a].field){const s=t.raw(),l=t.key();if(!dE(s,n,e))continue;const c="object"==typeof i[a].field?i[a].field:t.field(i[a].field),{props:u,main:d}=r.normalizeConfig(i[a],t),f=Object.keys(u),h=sE(c,{cube:s}),{nodeFn:p,attrFn:m,valueFn:g}=lE({fieldDepth:0},h);hE({propsArr:f,props:u,cube:s,cache:n,itemDepthObject:h,f:c});const y=!!i[a].trackBy,v=typeof i[a].trackBy,b={},x=[],w=p(n.tree),S=[];for(let e=0;e<w.length;e++){const t=w[e],n=m?m(g(t)):g(t);if(d.filter&&!d.filter(n))continue;const o=cE(d,n,{key:l});uE({propsArr:f,props:u,item:t,itemData:n,ret:o,sourceKey:l}),y&&r.track({cfg:i[a],itemData:n,obj:o,target:x,tracker:b,trackType:v}),S.push(o)}const k=y?r.collect(x,{main:d,propsArr:f,props:u}):S;o=[...o,...k]}return o}var gE,yE,vE=(gE=function(e){
|
|
14
|
+
* Licensed under the MIT license */!function(e){!function(t,n,r,i){var o,a=["","webkit","Moz","MS","ms","o"],s=n.createElement("div"),l=Math.round,c=Math.abs,u=Date.now;function d(e,t,n){return setTimeout(v(e,n),t)}function f(e,t,n){return!!Array.isArray(e)&&(h(e,n[t],n),!0)}function h(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==i)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function p(e,n,r){var i="DEPRECATED METHOD: "+n+"\n"+r+" AT \n";return function(){var n=new Error("get-stack-trace"),r=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,i,r),e.apply(this,arguments)}}o="function"!=typeof Object.assign?function(e){if(e===i||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==i&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var m=p((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===i)&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),g=p((function(e,t){return m(e,t,!0)}),"merge","Use `assign`.");function y(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&o(r,n)}function v(e,t){return function(){return e.apply(t,arguments)}}function b(e,t){return"function"==typeof e?e.apply(t&&t[0]||i,t):e}function x(e,t){return e===i?t:e}function w(e,t,n){h(C(t),(function(t){e.addEventListener(t,n,!1)}))}function S(e,t,n){h(C(t),(function(t){e.removeEventListener(t,n,!1)}))}function k(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function M(e,t){return e.indexOf(t)>-1}function C(e){return e.trim().split(/\s+/g)}function E(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function q(e){return Array.prototype.slice.call(e,0)}function D(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=e[o][t];E(i,a)<0&&r.push(e[o]),i[o]=a,o++}return r=r.sort((function(e,n){return e[t]>n[t]})),r}function T(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),s=0;s<a.length;){if((r=(n=a[s])?n+o:t)in e)return r;s++}return i}var N=1;function O(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var A="ontouchstart"in t,_=T(t,"PointerEvent")!==i,L=A&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),I="touch",R="mouse",P=24,z=["x","y"],F=["clientX","clientY"];function j(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){b(e.options.enable,[e])&&n.handler(t)},this.init()}function B(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,a=1&t&&r-o==0,s=12&t&&r-o==0;n.isFirst=!!a,n.isFinal=!!s,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=H(t));o>1&&!n.firstMultiple?n.firstMultiple=H(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,l=s?s.center:a.center,d=t.center=V(r);t.timeStamp=u(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=Y(l,d),t.distance=U(l,d),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=W(t.deltaX,t.deltaY);var f=$(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=f.x,t.overallVelocityY=f.y,t.overallVelocity=c(f.x)>c(f.y)?f.x:f.y,t.scale=s?function(e,t){return U(t[0],t[1],F)/U(e[0],e[1],F)}(s.pointers,r):1,t.rotation=s?function(e,t){return Y(t[1],t[0],F)+Y(e[1],e[0],F)}(s.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,a,s=e.lastInterval||t,l=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(l>25||s.velocity===i)){var u=t.deltaX-s.deltaX,d=t.deltaY-s.deltaY,f=$(l,u,d);r=f.x,o=f.y,n=c(f.x)>c(f.y)?f.x:f.y,a=W(u,d),e.lastInterval=t}else n=s.velocity,r=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=a}(n,t);var h=e.element;k(t.srcEvent.target,h)&&(h=t.srcEvent.target);t.target=h}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:l(e.pointers[n].clientX),clientY:l(e.pointers[n].clientY)},n++;return{timeStamp:u(),pointers:t,center:V(t),deltaX:e.deltaX,deltaY:e.deltaY}}function V(e){var t=e.length;if(1===t)return{x:l(e[0].clientX),y:l(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:l(n/t),y:l(r/t)}}function $(e,t,n){return{x:t/e||0,y:n/e||0}}function W(e,t){return e===t?1:c(e)>=c(t)?e<0?2:4:t<0?8:16}function U(e,t,n){n||(n=z);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function Y(e,t,n){n||(n=z);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}j.prototype={handler:function(){},init:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(O(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4},G="mousedown",X="mousemove mouseup";function J(){this.evEl=G,this.evWin=X,this.pressed=!1,j.apply(this,arguments)}y(J,j,{handler:function(e){var t=K[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:R,srcEvent:e}))}});var Z={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Q={2:I,3:"pen",4:R,5:"kinect"},ee="pointerdown",te="pointermove pointerup pointercancel";function ne(){this.evEl=ee,this.evWin=te,j.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(ee="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),y(ne,j,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=Z[r],o=Q[e.pointerType]||e.pointerType,a=o==I,s=E(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var re={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ie(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,j.apply(this,arguments)}function oe(e,t){var n=q(e.touches),r=q(e.changedTouches);return 12&t&&(n=D(n.concat(r),"identifier")),[n,r]}y(ie,j,{handler:function(e){var t=re[e.type];if(1===t&&(this.started=!0),this.started){var n=oe.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:I,srcEvent:e})}}});var ae={touchstart:1,touchmove:2,touchend:4,touchcancel:8},se="touchstart touchmove touchend touchcancel";function le(){this.evTarget=se,this.targetIds={},j.apply(this,arguments)}function ce(e,t){var n=q(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=q(e.changedTouches),s=[],l=this.target;if(o=n.filter((function(e){return k(e.target,l)})),1===t)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&t&&delete r[a[i].identifier],i++;return s.length?[D(o.concat(s),"identifier"),s]:void 0}y(le,j,{handler:function(e){var t=ae[e.type],n=ce.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:I,srcEvent:e})}});function ue(){j.apply(this,arguments);var e=v(this.handler,this);this.touch=new le(this.manager,e),this.mouse=new J(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function de(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,fe.call(this,t)):12&e&&fe.call(this,t)}function fe(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function he(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}y(ue,j,{handler:function(e,t,n){var r=n.pointerType==I,i=n.pointerType==R;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)de.call(this,t,n);else if(i&&he.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var pe=T(s.style,"touchAction"),me=pe!==i,ge="compute",ye="auto",ve="manipulation",be="none",xe="pan-x",we="pan-y",Se=function(){if(!me)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){e[r]=!n||t.CSS.supports("touch-action",r)})),e}();function ke(e,t){this.manager=e,this.set(t)}ke.prototype={set:function(e){e==ge&&(e=this.compute()),me&&this.manager.element.style&&Se[e]&&(this.manager.element.style[pe]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,(function(t){b(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(M(e,be))return be;var t=M(e,xe),n=M(e,we);if(t&&n)return be;if(t||n)return t?xe:we;if(M(e,ve))return ve;return ye}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=M(r,be)&&!Se[be],o=M(r,we)&&!Se[we],a=M(r,xe)&&!Se[xe];if(i){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!o)return i||o&&6&n||a&&n&P?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Me=32;function Ce(e){this.options=o({},this.defaults,e||{}),this.id=N++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Ee(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function qe(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function De(e,t){var n=t.manager;return n?n.get(e):e}function Te(){Ce.apply(this,arguments)}function Ne(){Te.apply(this,arguments),this.pX=null,this.pY=null}function Oe(){Te.apply(this,arguments)}function Ae(){Ce.apply(this,arguments),this._timer=null,this._input=null}function _e(){Te.apply(this,arguments)}function Le(){Te.apply(this,arguments)}function Ie(){Ce.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Re(e,t){return(t=t||{}).recognizers=x(t.recognizers,Re.defaults.preset),new Pe(e,t)}Ce.prototype={defaults:{},set:function(e){return o(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(f(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=De(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return f(e,"dropRecognizeWith",this)||(e=De(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(f(e,"requireFailure",this))return this;var t=this.requireFail;return-1===E(t,e=De(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(f(e,"dropRequireFailure",this))return this;e=De(e,this);var t=E(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Ee(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Ee(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Me},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=o({},e);if(!b(this.options.enable,[this,t]))return this.reset(),void(this.state=Me);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},y(Te,Ce,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:Me}}),y(Ne,Te,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(we),e&P&&t.push(xe),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Te.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=qe(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),y(Oe,Te,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[be]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),y(Ae,Ce,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ye]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=d((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Me},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}}),y(_e,Te,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[be]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),y(Le,Te,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Ne.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&P&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&c(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=qe(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),y(Ie,Ce,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ve]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||U(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=d((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Me},failTimeout:function(){return this._timer=d((function(){this.state=Me}),this.options.interval,this),Me},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Re.VERSION="2.0.7",Re.defaults={domEvents:!1,touchAction:ge,enable:!0,inputTarget:null,inputClass:null,preset:[[_e,{enable:!1}],[Oe,{enable:!1},["rotate"]],[Le,{direction:6}],[Ne,{direction:6},["swipe"]],[Ie],[Ie,{event:"doubletap",taps:2},["tap"]],[Ae]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Pe(e,t){var n;this.options=o({},Re.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(_?ne:L?le:A?ue:J))(n,B),this.touchAction=new ke(this,this.options.touchAction),ze(this,!0),h(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function ze(e,t){var n,r=e.element;r.style&&(h(e.options.cssProps,(function(i,o){n=T(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Pe.prototype={set:function(e){return o(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Ce)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(f(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(f(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=E(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==i&&t!==i){var n=this.handlers;return h(C(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==i){var n=this.handlers;return h(C(e),(function(e){t?n[e]&&n[e].splice(E(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var r=n.createEvent("Event");r.initEvent(e,!0,!0),r.gesture=t,t.target.dispatchEvent(r)}(e,t);var r=this.handlers[e]&&this.handlers[e].slice();if(r&&r.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<r.length;)r[i](t),i++}},destroy:function(){this.element&&ze(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Re,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Me,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:P,DIRECTION_ALL:30,Manager:Pe,Input:j,TouchAction:ke,TouchInput:le,MouseInput:J,PointerEventInput:ne,TouchMouseInput:ue,SingleTouchInput:ie,Recognizer:Ce,AttrRecognizer:Te,Tap:Ie,Pan:Ne,Swipe:Le,Pinch:Oe,Rotate:_e,Press:Ae,on:w,off:S,each:h,merge:g,extend:m,assign:o,inherit:y,bindFn:v,prefixed:T}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Re,e.exports?e.exports=Re:t.Hammer=Re}(window,document)}(sg);var lg=og(sg.exports),cg=Object.prototype.hasOwnProperty,ug=Object.prototype.toString,dg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,hg=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ug.call(e)},pg=function(e){if(!e||"[object Object]"!==ug.call(e))return!1;var t,n=cg.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&cg.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||cg.call(e,t)},mg=function(e,t){dg&&"__proto__"===t.name?dg(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},gg=function(e,t){if("__proto__"===t){if(!cg.call(e,t))return;if(fg)return fg(e,t).value}return e[t]},yg=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=gg(s,n),s!==(i=gg(t,n))&&(u&&i&&(pg(i)||(o=hg(i)))?(o?(o=!1,a=r&&hg(r)?r:[]):a=r&&pg(r)?r:{},mg(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&mg(s,{name:n,newValue:i}));return s},vg=og(yg);const bg=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],xg={};bg.forEach((([e,{width:t,height:n}])=>{xg[e]={width:t,height:n}}));const wg={getLayoutModes:()=>xg,getLayoutMode(e,t){let n;for(n=0;n<bg.length;++n)if(e>=bg[n][1].width&&t>=bg[n][1].height)return bg[n][0];return"SPARK"}};function Sg(e,t){return{layoutModes:wg.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const kg=["$date","$timestamp","$time"],Mg=["D","TS","T"],Cg={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>kg.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&Mg.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(Cg.hasTimeTag(t)&&Cg.hasUnknownFormat(t)||Cg.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&Cg.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&Cg.canBeContinuousDimension(r[0])},maxNumberOfLines:12},Eg=/^[A-Z][A-z0-9_]*$/i,qg={getChar(e){let t=e,n=-1;return t>9?(n=65+t-10,n>90&&(n+=6)):t=`${t}`.charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?this.getChar(t+1):String.fromCharCode(n)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}},Dg={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),i=r[r.length-1];let o,a=e;for(o=0;o<r.length-1;++o)void 0===a[r[o]]&&(a[r[o]]=Number.isNaN(+r[o+1])?{}:[]),a=a[r[o]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(void 0===o[r[i]])return n;o=o[r[i]]}return o},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||Eg.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>qg.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},Tg=e=>Dg.getValue(e,"qHyperCube.qDimensionInfo",[]),Ng=e=>Dg.getValue(e,"qHyperCube.qMeasureInfo",[]),Og=e=>Dg.getValue(e,"barGrouping.grouping"),Ag={continuous:(e,t=!1)=>!!Cg.canBeContinuous(e)&&(Dg.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!Tg(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===Og(e)&&(Tg(e).length>1||Ng(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&Tg(e).length>1&&1===Ng(e).length},groupedByMeasure(e){return this.grouped(e)&&1===Tg(e).length&&Ng(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==Og(e)&&"butterfly"!==Og(e)||this.continuous(e))&&(Tg(e).length>1||Ng(e).length>1)},stackedByDimension(e){return this.stacked(e)&&Tg(e).length>1&&1===Ng(e).length},stackedByMeasure(e){return this.stacked(e)&&1===Tg(e).length&&Ng(e).length>1},simple:e=>0===Tg(e).length||1===Tg(e).length&&1===Ng(e).length,snapshot:e=>!!Dg.getValue(e,"snapshotData")};function _g(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Lg=e=>{throw e.isHandled=!0,e};const Ig={getDockValue:e=>"near"===e||"left"===e||"top"===e?0:1,getOppositeDock(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";case"near":default:return"far";case"far":return"near"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?Ig.getVerticalDock(t):n?Ig.getOppositeDock(Ig.getHorizontalDock(t)):Ig.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment:(e,t)=>"vertical"===e?"near"===t||"bottom"===t?1:0:"near"===t||"left"===t?0:1,getMeasureScaleInvert:(e,t)=>"vertical"===e||t,getDimensionScaleInvert:(e,t)=>"horizontal"===e&&t,getSize:(e,{width:t,height:n})=>"vertical"===e?t:n};var Rg=(e,t)=>{if("function"==typeof t.defaultValue)return t.defaultValue();if(void 0!==t.defaultValue)return t.defaultValue;if(Array.isArray(t.options))return t.options[0].value;switch(e){case"array":return[];case"string":return"";case"integer":case"number":return 0;case"boolean":return!1;default:return null}};const Pg=166/26,zg=12/11,Fg={stringWidthOverMWidth:e=>(12*Math.min(e,3)+Math.max(e-3,0)*Pg)/11,getCharacterRatios(e){if(!e)return{latin:0,cjk:0};let t=e.match(/[\u4E00-\u9FFF]/g),n=e.match(/[\u3040-\u309F]/g),r=e.match(/[\u30A0-\u30FF]/g);t=t?t.length:0,n=n?n.length:0,r=r?r.length:0;const i=t+n+r;return{latin:e.length-i,cjk:i}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let i;void 0===t?e.forEach((e=>{i=Fg.getCharacterRatios(e[n]),r.latin+=i.latin,r.cjk+=i.cjk})):e.forEach((e=>{i=Fg.getCharacterRatios(e[t][n]),r.latin+=i.latin,r.cjk+=i.cjk}));const o=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/o,r.cjkRatio=r.cjk/o,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const i=Fg.getTotalCharacterRatios(t,n,r),o=i.latinRatio*e,a=i.cjkRatio*e;return Math.ceil(Fg.stringWidthOverMWidth(o)+a*zg)}},jg="#la-vie-tooltip";function Bg(){if(!document.querySelector(jg)){const e=document.createElement("div");e.id="la-vie-tooltip",e.setAttribute("data-qs-css",""),e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function Hg({key:e="tooltip",rtl:t}){return{show:!0,key:e,type:"tooltip",layout:{displayOrder:3},beforeMount(){Bg()},beforeUpdate(){Bg()},destroyed(){!function(){const e=document.querySelector(jg);e&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)}()},settings:{appendTo:()=>document.querySelector(jg),content:({h:e,data:t,style:n})=>t[0].map((t=>e("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{...n.cell||{},...e.style||{}},class:e.class};return e.colspan&&(r.colspan=e.colspan),t("td",r,e.content)}))}(t,{h:e,style:n})))),direction:t?"rtl":"ltr"},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',"empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}const Vg=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),$g=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Wg=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Ug={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Vg.test(e),isRtlChar:e=>$g.test(e)||Wg.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Ug.isLtrChar(r))return"ltr";if(Ug.isRtlChar(r))return"rtl"}return"ltr"}},Yg={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,i=e.resources.formatter,o=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=i("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=o(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?Yg.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=Ug.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},colspan:2},{}]},getDescriptionRow(e,t){const n=Ug.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:Ug.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=Ug.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=Ug.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Yg.getColorSymbol(e,t)]:[Yg.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:o,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,i=!1){const o=Ug.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Ug.detectTextDirection(e.value);let l;return l=i?r?[e.value,Yg.getColorSymbol(t,n)]:[Yg.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:o}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function Kg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Gg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Xg(){}var Jg=.7,Zg=1/Jg,Qg="\\s*([+-]?\\d+)\\s*",ey="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ty="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ny=/^#([0-9a-f]{3,8})$/,ry=new RegExp(`^rgb\\(${Qg},${Qg},${Qg}\\)$`),iy=new RegExp(`^rgb\\(${ty},${ty},${ty}\\)$`),oy=new RegExp(`^rgba\\(${Qg},${Qg},${Qg},${ey}\\)$`),ay=new RegExp(`^rgba\\(${ty},${ty},${ty},${ey}\\)$`),sy=new RegExp(`^hsl\\(${ey},${ty},${ty}\\)$`),ly=new RegExp(`^hsla\\(${ey},${ty},${ty},${ey}\\)$`),cy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function uy(){return this.rgb().formatHex()}function dy(){return this.rgb().formatRgb()}function fy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ny.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?hy(t):3===n?new gy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?py(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?py(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ry.exec(e))?new gy(t[1],t[2],t[3],1):(t=iy.exec(e))?new gy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=oy.exec(e))?py(t[1],t[2],t[3],t[4]):(t=ay.exec(e))?py(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=sy.exec(e))?Sy(t[1],t[2]/100,t[3]/100,1):(t=ly.exec(e))?Sy(t[1],t[2]/100,t[3]/100,t[4]):cy.hasOwnProperty(e)?hy(cy[e]):"transparent"===e?new gy(NaN,NaN,NaN,0):null}function hy(e){return new gy(e>>16&255,e>>8&255,255&e,1)}function py(e,t,n,r){return r<=0&&(e=t=n=NaN),new gy(e,t,n,r)}function my(e){return e instanceof Xg||(e=fy(e)),e?new gy((e=e.rgb()).r,e.g,e.b,e.opacity):new gy}function gy(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function yy(){return`#${wy(this.r)}${wy(this.g)}${wy(this.b)}`}function vy(){const e=by(this.opacity);return`${1===e?"rgb(":"rgba("}${xy(this.r)}, ${xy(this.g)}, ${xy(this.b)}${1===e?")":`, ${e})`}`}function by(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function wy(e){return((e=xy(e))<16?"0":"")+e.toString(16)}function Sy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new My(e,t,n,r)}function ky(e){if(e instanceof My)return new My(e.h,e.s,e.l,e.opacity);if(e instanceof Xg||(e=fy(e)),!e)return new My;if(e instanceof My)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new My(a,s,l,e.opacity)}function My(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Cy(e){return(e=(e||0)%360)<0?e+360:e}function Ey(e){return Math.max(0,Math.min(1,e||0))}function qy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Kg(Xg,fy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uy,formatHex:uy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ky(this).formatHsl()},formatRgb:dy,toString:dy}),Kg(gy,(function(e,t,n,r){return 1===arguments.length?my(e):new gy(e,t,n,null==r?1:r)}),Gg(Xg,{brighter(e){return e=null==e?Zg:Math.pow(Zg,e),new gy(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Jg:Math.pow(Jg,e),new gy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gy(xy(this.r),xy(this.g),xy(this.b),by(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yy,formatHex:yy,formatHex8:function(){return`#${wy(this.r)}${wy(this.g)}${wy(this.b)}${wy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:vy,toString:vy})),Kg(My,(function(e,t,n,r){return 1===arguments.length?ky(e):new My(e,t,n,null==r?1:r)}),Gg(Xg,{brighter(e){return e=null==e?Zg:Math.pow(Zg,e),new My(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Jg:Math.pow(Jg,e),new My(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new gy(qy(e>=240?e-240:e+120,i,r),qy(e,i,r),qy(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new My(Cy(this.h),Ey(this.s),Ey(this.l),by(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=by(this.opacity);return`${1===e?"hsl(":"hsla("}${Cy(this.h)}, ${100*Ey(this.s)}%, ${100*Ey(this.l)}%${1===e?")":`, ${e})`}`}}));const Dy=Math.PI/180,Ty=180/Math.PI,Ny=.96422,Oy=.82521,Ay=4/29,_y=6/29,Ly=3*_y*_y,Iy=_y*_y*_y;function Ry(e){if(e instanceof Py)return new Py(e.l,e.a,e.b,e.opacity);if(e instanceof Vy)return $y(e);e instanceof gy||(e=my(e));var t,n,r=By(e.r),i=By(e.g),o=By(e.b),a=zy((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=zy((.4360747*r+.3850649*i+.1430804*o)/Ny),n=zy((.0139322*r+.0971045*i+.7141733*o)/Oy)),new Py(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Py(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function zy(e){return e>Iy?Math.pow(e,1/3):e/Ly+Ay}function Fy(e){return e>_y?e*e*e:Ly*(e-Ay)}function jy(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function By(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Hy(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Vy)return new Vy(e.h,e.c,e.l,e.opacity);if(e instanceof Py||(e=Ry(e)),0===e.a&&0===e.b)return new Vy(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ty;return new Vy(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Vy(e,t,n,null==r?1:r)}function Vy(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function $y(e){if(isNaN(e.h))return new Py(e.l,0,0,e.opacity);var t=e.h*Dy;return new Py(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Kg(Py,(function(e,t,n,r){return 1===arguments.length?Ry(e):new Py(e,t,n,null==r?1:r)}),Gg(Xg,{brighter(e){return new Py(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Py(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new gy(jy(3.1338561*(t=Ny*Fy(t))-1.6168667*(e=1*Fy(e))-.4906146*(n=Oy*Fy(n))),jy(-.9787684*t+1.9161415*e+.033454*n),jy(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Kg(Vy,Hy,Gg(Xg,{brighter(e){return new Vy(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Vy(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return $y(this).rgb()}}));var Wy={isDark:function(e){return Hy(e).l<70}};function Uy(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Yy(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ky(e){return 1===e.length&&(e=function(e){return function(t,n){return Yy(e(t),n)}}(e)),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var Gy=Ky(Yy).right,Xy=Math.sqrt(50),Jy=Math.sqrt(10),Zy=Math.sqrt(2);function Qy(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Xy?10:o>=Jy?5:o>=Zy?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Xy?10:o>=Jy?5:o>=Zy?2:1)}function ev(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Xy?i*=10:o>=Jy?i*=5:o>=Zy&&(i*=2),t<e?-i:i}function tv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var nv="$";function rv(){}function iv(e,t){var n=new rv;if(e instanceof rv)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function ov(){}rv.prototype=iv.prototype={constructor:rv,has:function(e){return nv+e in this},get:function(e){return this[nv+e]},set:function(e,t){return this[nv+e]=t,this},remove:function(e){var t=nv+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===nv&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===nv&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===nv&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===nv&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===nv&&++e;return e},empty:function(){for(var e in this)if(e[0]===nv)return!1;return!0},each:function(e){for(var t in this)t[0]===nv&&e(this[t],t.slice(1),this)}};var av=iv.prototype;ov.prototype={constructor:ov,has:av.has,add:function(e){return this[nv+(e+="")]=e,this},remove:av.remove,clear:av.clear,values:av.keys,size:av.size,empty:av.empty,each:av.each};var sv=Array.prototype,lv=sv.map,cv=sv.slice;function uv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function dv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fv(){}var hv=.7,pv=1/hv,mv="\\s*([+-]?\\d+)\\s*",gv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",yv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vv=/^#([0-9a-f]{3,8})$/,bv=new RegExp("^rgb\\("+[mv,mv,mv]+"\\)$"),xv=new RegExp("^rgb\\("+[yv,yv,yv]+"\\)$"),wv=new RegExp("^rgba\\("+[mv,mv,mv,gv]+"\\)$"),Sv=new RegExp("^rgba\\("+[yv,yv,yv,gv]+"\\)$"),kv=new RegExp("^hsl\\("+[gv,yv,yv]+"\\)$"),Mv=new RegExp("^hsla\\("+[gv,yv,yv,gv]+"\\)$"),Cv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ev(){return this.rgb().formatHex()}function qv(){return this.rgb().formatRgb()}function Dv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=vv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Tv(t):3===n?new Av(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Nv(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Nv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=bv.exec(e))?new Av(t[1],t[2],t[3],1):(t=xv.exec(e))?new Av(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wv.exec(e))?Nv(t[1],t[2],t[3],t[4]):(t=Sv.exec(e))?Nv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=kv.exec(e))?Rv(t[1],t[2]/100,t[3]/100,1):(t=Mv.exec(e))?Rv(t[1],t[2]/100,t[3]/100,t[4]):Cv.hasOwnProperty(e)?Tv(Cv[e]):"transparent"===e?new Av(NaN,NaN,NaN,0):null}function Tv(e){return new Av(e>>16&255,e>>8&255,255&e,1)}function Nv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Av(e,t,n,r)}function Ov(e,t,n,r){return 1===arguments.length?function(e){return e instanceof fv||(e=Dv(e)),e?new Av((e=e.rgb()).r,e.g,e.b,e.opacity):new Av}(e):new Av(e,t,n,null==r?1:r)}function Av(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function _v(){return"#"+Iv(this.r)+Iv(this.g)+Iv(this.b)}function Lv(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Iv(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Rv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new zv(e,t,n,r)}function Pv(e){if(e instanceof zv)return new zv(e.h,e.s,e.l,e.opacity);if(e instanceof fv||(e=Dv(e)),!e)return new zv;if(e instanceof zv)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new zv(a,s,l,e.opacity)}function zv(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Fv(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function jv(e){return function(){return e}}function Bv(e){return 1==(e=+e)?Hv:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):jv(isNaN(t)?n:t)}}function Hv(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):jv(isNaN(e)?t:e)}uv(fv,Dv,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ev,formatHex:Ev,formatHsl:function(){return Pv(this).formatHsl()},formatRgb:qv,toString:qv}),uv(Av,Ov,dv(fv,{brighter:function(e){return e=null==e?pv:Math.pow(pv,e),new Av(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?hv:Math.pow(hv,e),new Av(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_v,formatHex:_v,formatRgb:Lv,toString:Lv})),uv(zv,(function(e,t,n,r){return 1===arguments.length?Pv(e):new zv(e,t,n,null==r?1:r)}),dv(fv,{brighter:function(e){return e=null==e?pv:Math.pow(pv,e),new zv(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?hv:Math.pow(hv,e),new zv(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Av(Fv(e>=240?e-240:e+120,i,r),Fv(e,i,r),Fv(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Vv=function e(t){var n=Bv(t);function r(e,t){var r=n((e=Ov(e)).r,(t=Ov(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Hv(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function $v(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function Wv(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Zv(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function Uv(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Yv(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Kv(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Zv(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Gv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xv=new RegExp(Gv.source,"g");function Jv(e,t){var n,r,i,o=Gv.lastIndex=Xv.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Gv.exec(e))&&(r=Xv.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Yv(n,r)})),o=Xv.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Zv(e,t){var n,r=typeof t;return null==t||"boolean"===r?jv(t):("number"===r?Yv:"string"===r?(n=Dv(t))?(t=n,Vv):Jv:t instanceof Dv?Vv:t instanceof Date?Uv:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?$v:Array.isArray(t)?Wv:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Kv:Yv)(e,t)}function Qv(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function eb(e){return+e}var tb=[0,1];function nb(e){return e}function rb(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function ib(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function ob(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=rb(i,r),o=n(a,o)):(r=rb(r,i),o=n(o,a)),function(e){return o(r(e))}}function ab(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=rb(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Gy(e,t,1,r)-1;return o[n](i[n](t))}}function sb(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lb(e,t){return function(){var e,t,n,r,i,o,a=tb,s=tb,l=Zv,c=nb;function u(){return r=Math.min(a.length,s.length)>2?ab:ob,i=o=null,d}function d(t){return isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),Yv)))(n)))},d.domain=function(e){return arguments.length?(a=lv.call(e,eb),c===nb||(c=ib(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=cv.call(e),u()):s.slice()},d.rangeRound=function(e){return s=cv.call(e),l=Qv,u()},d.clamp=function(e){return arguments.length?(c=e?ib(a):nb,d):c!==nb},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function cb(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ub(e){return(e=cb(Math.abs(e)))?e[1]:NaN}var db,fb=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hb(e){if(!(t=fb.exec(e)))throw new Error("invalid format: "+e);var t;return new pb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function pb(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function mb(e,t){var n=cb(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}hb.prototype=pb.prototype,pb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var gb={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return mb(100*e,t)},r:mb,s:function(e,t){var n=cb(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(db=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+cb(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function yb(e){return e}var vb,bb,xb,wb=Array.prototype.map,Sb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kb(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?yb:(t=wb.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=e.decimal+"",s=void 0===e.numerals?yb:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(wb.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=hb(e)).fill,n=e.align,d=e.sign,f=e.symbol,h=e.zero,p=e.width,m=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(m=!0,v="g"):gb[v]||(void 0===g&&(g=12),y=!0,v="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===f?o:/[%p]/.test(v)?l:"",w=gb[v],S=/[defgprs%]/.test(v);function k(e){var i,o,l,f=b,k=x;if("c"===v)k=w(e)+k,e="";else{var M=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),M&&0==+e&&"+"!==d&&(M=!1),f=(M?"("===d?d:c:"-"===d||"("===d?"":d)+f,k=("s"===v?Sb[8+db/3]:"")+k+(M&&"("===d?")":""),S)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){k=(46===l?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}m&&!h&&(e=r(e,1/0));var C=f.length+e.length+k.length,E=C<p?new Array(p-C+1).join(t):"";switch(m&&h&&(e=r(E+e,E.length?p-k.length:1/0),E=""),n){case"<":e=f+e+k+E;break;case"=":e=f+E+e+k;break;case"^":e=E.slice(0,C=E.length>>1)+f+e+k+E.slice(C);break;default:e=E+f+e+k}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:d,formatPrefix:function(e,t){var n=d(((e=hb(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ub(t)/3))),i=Math.pow(10,-r),o=Sb[8+r/3];return function(e){return n(i*e)+o}}}}function Mb(e,t,n,r){var i,o=ev(e,t,n);switch((r=hb(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ub(t)/3)))-ub(Math.abs(e)))}(o,a))||(r.precision=i),xb(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ub(t)-ub(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-ub(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return bb(r)}function Cb(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=Qy(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Mb(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=Qy(s,l,n))>0?r=Qy(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Qy(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function Eb(){var e=lb(nb,nb);return e.copy=function(){return sb(e,Eb())},tv.apply(e,arguments),Cb(e)}!function(e){vb=kb(e),bb=vb.format,xb=vb.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var qb=new Date,Db=new Date;function Tb(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Tb((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return qb.setTime(+t),Db.setTime(+r),e(qb),e(Db),Math.floor(n(qb,Db))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Nb=Tb((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Nb.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Tb((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Nb:null},Nb.range;var Ob=6e4,Ab=36e5,_b=864e5,Lb=6048e5,Ib=Tb((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));Ib.range;var Rb=Tb((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ob)/_b}),(function(e){return e.getDate()-1}));function Pb(e){return Tb((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ob)/Lb}))}Rb.range;var zb=Pb(0),Fb=Pb(1),jb=Pb(2),Bb=Pb(3),Hb=Pb(4),Vb=Pb(5),$b=Pb(6);zb.range,Fb.range,jb.range,Bb.range,Hb.range,Vb.range,$b.range;var Wb=Tb((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Wb.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Tb((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},Wb.range;var Ub=Tb((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Ob)}),(function(e,t){return(t-e)/Ob}),(function(e){return e.getUTCMinutes()}));Ub.range;var Yb=Tb((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Ab)}),(function(e,t){return(t-e)/Ab}),(function(e){return e.getUTCHours()}));Yb.range;var Kb=Tb((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/_b}),(function(e){return e.getUTCDate()-1}));function Gb(e){return Tb((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Lb}))}Kb.range;var Xb=Gb(0),Jb=Gb(1),Zb=Gb(2),Qb=Gb(3),ex=Gb(4),tx=Gb(5),nx=Gb(6);Xb.range,Jb.range,Zb.range,Qb.range,ex.range,tx.range,nx.range;var rx=Tb((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));rx.range;var ix=Tb((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function ox(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ax(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function sx(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}ix.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Tb((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},ix.range;var lx,cx,ux={"-":"",_:" ",0:"0"},dx=/^\s*\d+/,fx=/^%/,hx=/[\\^$*+?|[\]().{}]/g;function px(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function mx(e){return e.replace(hx,"\\$&")}function gx(e){return new RegExp("^(?:"+e.map(mx).join("|")+")","i")}function yx(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function vx(e,t,n){var r=dx.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function bx(e,t,n){var r=dx.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function xx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function wx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Sx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function kx(e,t,n){var r=dx.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Mx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Cx(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ex(e,t,n){var r=dx.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function qx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Dx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Tx(e,t,n){var r=dx.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Nx(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ox(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ax(e,t,n){var r=dx.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function _x(e,t,n){var r=dx.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Lx(e,t,n){var r=dx.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ix(e,t,n){var r=fx.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Rx(e,t,n){var r=dx.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Px(e,t,n){var r=dx.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function zx(e,t){return px(e.getDate(),t,2)}function Fx(e,t){return px(e.getHours(),t,2)}function jx(e,t){return px(e.getHours()%12||12,t,2)}function Bx(e,t){return px(1+Rb.count(Wb(e),e),t,3)}function Hx(e,t){return px(e.getMilliseconds(),t,3)}function Vx(e,t){return Hx(e,t)+"000"}function $x(e,t){return px(e.getMonth()+1,t,2)}function Wx(e,t){return px(e.getMinutes(),t,2)}function Ux(e,t){return px(e.getSeconds(),t,2)}function Yx(e){var t=e.getDay();return 0===t?7:t}function Kx(e,t){return px(zb.count(Wb(e)-1,e),t,2)}function Gx(e){var t=e.getDay();return t>=4||0===t?Hb(e):Hb.ceil(e)}function Xx(e,t){return e=Gx(e),px(Hb.count(Wb(e),e)+(4===Wb(e).getDay()),t,2)}function Jx(e){return e.getDay()}function Zx(e,t){return px(Fb.count(Wb(e)-1,e),t,2)}function Qx(e,t){return px(e.getFullYear()%100,t,2)}function ew(e,t){return px((e=Gx(e)).getFullYear()%100,t,2)}function tw(e,t){return px(e.getFullYear()%1e4,t,4)}function nw(e,t){var n=e.getDay();return px((e=n>=4||0===n?Hb(e):Hb.ceil(e)).getFullYear()%1e4,t,4)}function rw(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+px(t/60|0,"0",2)+px(t%60,"0",2)}function iw(e,t){return px(e.getUTCDate(),t,2)}function ow(e,t){return px(e.getUTCHours(),t,2)}function aw(e,t){return px(e.getUTCHours()%12||12,t,2)}function sw(e,t){return px(1+Kb.count(ix(e),e),t,3)}function lw(e,t){return px(e.getUTCMilliseconds(),t,3)}function cw(e,t){return lw(e,t)+"000"}function uw(e,t){return px(e.getUTCMonth()+1,t,2)}function dw(e,t){return px(e.getUTCMinutes(),t,2)}function fw(e,t){return px(e.getUTCSeconds(),t,2)}function hw(e){var t=e.getUTCDay();return 0===t?7:t}function pw(e,t){return px(Xb.count(ix(e)-1,e),t,2)}function mw(e){var t=e.getUTCDay();return t>=4||0===t?ex(e):ex.ceil(e)}function gw(e,t){return e=mw(e),px(ex.count(ix(e),e)+(4===ix(e).getUTCDay()),t,2)}function yw(e){return e.getUTCDay()}function vw(e,t){return px(Jb.count(ix(e)-1,e),t,2)}function bw(e,t){return px(e.getUTCFullYear()%100,t,2)}function xw(e,t){return px((e=mw(e)).getUTCFullYear()%100,t,2)}function ww(e,t){return px(e.getUTCFullYear()%1e4,t,4)}function Sw(e,t){var n=e.getUTCDay();return px((e=n>=4||0===n?ex(e):ex.ceil(e)).getUTCFullYear()%1e4,t,4)}function kw(){return"+0000"}function Mw(){return"%"}function Cw(e){return+e}function Ew(e){return Math.floor(+e/1e3)}!function(e){lx=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=gx(i),u=yx(i),d=gx(o),f=yx(o),h=gx(a),p=yx(a),m=gx(s),g=yx(s),y=gx(l),v=yx(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:zx,e:zx,f:Vx,g:ew,G:nw,H:Fx,I:jx,j:Bx,L:Hx,m:$x,M:Wx,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Cw,s:Ew,S:Ux,u:Yx,U:Kx,V:Xx,w:Jx,W:Zx,x:null,X:null,y:Qx,Y:tw,Z:rw,"%":Mw},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:iw,e:iw,f:cw,g:xw,G:Sw,H:ow,I:aw,j:sw,L:lw,m:uw,M:dw,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Cw,s:Ew,S:fw,u:hw,U:pw,V:gw,w:yw,W:vw,x:null,X:null,y:bw,Y:ww,Z:kw,"%":Mw},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return M(e,t,n,r)},d:Dx,e:Dx,f:Lx,g:Mx,G:kx,H:Nx,I:Nx,j:Tx,L:_x,m:qx,M:Ox,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:Ex,Q:Rx,s:Px,S:Ax,u:bx,U:xx,V:wx,w:vx,W:Sx,x:function(e,t,r){return M(e,n,t,r)},X:function(e,t,n){return M(e,r,t,n)},y:Mx,Y:kx,Z:Cx,"%":Ix};function S(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=ux[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function k(e,t){return function(n){var r,i,o=sx(1900,void 0,1);if(M(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=ax(sx(o.y,0,1))).getUTCDay(),r=i>4||0===i?Jb.ceil(r):Jb(r),r=Kb.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=ox(sx(o.y,0,1))).getDay(),r=i>4||0===i?Fb.ceil(r):Fb(r),r=Rb.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ax(sx(o.y,0,1)).getUTCDay():ox(sx(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ax(o)):ox(o)}}function M(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in ux?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),{format:function(e){var t=S(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),lx.format,lx.parse,cx=lx.utcFormat,lx.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var qw=1e3,Dw=6e4,Tw=36e5,Nw=864e5,Ow=2592e6,Aw=31536e6;function _w(e){return new Date(e)}function Lw(e){return e instanceof Date?+e:+new Date(+e)}function Iw(e,t,n,r,i,o,a,s,l){var c=lb(nb,nb),u=c.invert,d=c.domain,f=l(".%L"),h=l(":%S"),p=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,qw],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,Dw],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Tw],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Nw],[r,2,1728e5],[n,1,6048e5],[t,1,Ow],[t,3,7776e6],[e,1,Aw]];function w(s){return(a(s)<s?f:o(s)<s?h:i(s)<s?p:r(s)<s?m:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function S(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=Ky((function(e){return e[2]})).right(x,o);a===x.length?(i=ev(n/Aw,r/Aw,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(ev(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(lv.call(e,Lw)):d().map(_w)},c.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=S(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?w:l(t)},c.nice=function(e,t){var n=d();return(e=S(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):c},c.copy=function(){return sb(c,Iw(e,t,n,r,i,o,a,s,l))},c}function Rw(){return tv.apply(Iw(ix,rx,Xb,Kb,Yb,Ub,Ib,Nb,cx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Pw={horizontal:{major:"width",minor:"height",start:"left",end:"right",shadow:{startOffset:"12px 0",endOffset:"-12px 0"}},vertical:{major:"height",minor:"width",start:"top",end:"bottom",shadow:{startOffset:"0 12px",endOffset:"0 -12px"}}},zw=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Fw={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[i,o]=t(),a=Math.abs(i)<1e-15,s=Math.abs(o-1)<1e-15,l=(e=>{const t=Pw[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:zw(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:zw(t.shadow.endOffset)}}})(n),c="horizontal"===n&&r,u=[];return a||u.push(e("div",{style:{...l.base,...c?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||u.push(e("div",{style:{...l.base,...c?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),u}};function jw({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:i}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:i,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let Bw;function Hw(){Bw=Bw||document.createElement("canvas").getContext("2d")}const Vw={measureTextWidth(e){Hw();const{width:t}=Bw.measureText(e);return t},lineWrap(e,t,n,r){let i,o;Hw();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,f=e?e.split(/\s+/):[],h=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(Bw.font=n),o=0;o<a.length;o++){for(d=a[o]||"",f=d.split(/\s+/),[h]=f,u="",i=1;i<f.length;i++)if(l=`${h} ${f[i]}`,c=Vw.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(h),h=f[i]):h=l,"number"==typeof r&&s.length>=r){u=f.slice(i+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(h):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${h} ${u}`}return s},wordWrap(e,t,n,r,i){if(Hw(),!e||!e.length)return[];n&&(Bw.font=n);let o=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c&&(c.length<=1||Vw.measureTextWidth(c)<=t?o.push(c):(s=Vw.splitWord(c,t,void 0,r-o.length),s.length<=1?o.push(s[0]):(l=s.pop(),o=o.concat(s),a[u+1]?Vw.measureTextWidth(`${l} ${a[u+1]}`)>t&&o.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return o.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),o.length>r?(o=o.splice(0,r),o[o.length-1]=Vw.truncate(o[o.length-1],t,n,i).text):(c=o[o.length-1],c&&c.length>1&&Vw.measureTextWidth(c)>t&&(o[o.length-1]=Vw.truncate(c,t,n,i).text)),o},truncate(e,t,n,r="…"){Hw();let i,o,a,s,l=e;const c=Vw.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Bw.font=n),e&&t){if(Vw.measureTextWidth(l)>t){for(i=Math.min(u,l.length);i>0;i--)if(o=l.substring(0,i-1),a=o.trim()+r,Vw.measureTextWidth(a)<=t){s=l.substring(i-1),l=a;break}i||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,n,r){let i;Hw();let o,a=e,s="",l=[];if(Vw.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(i=Math.min(e.length,c);i>0&&(a=e.substring(0,i),o=e.substring(i-1,i)," "===o?a=e.substring(0,i-1):a+="-",s=e.substring(i),!(Vw.measureTextWidth(a)<=t));i--);return(!i&&!a||Vw.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Vw.measureTextWidth(s)>t?(s=Vw.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Hw(),e&&t?(n&&(Bw.font=n),Vw.explodeWord(e,t,r,Math.max(1,Vw.measureTextWidth("i")))):[]),wrapText(e,t,n,r,i){let o;return Number.isNaN(t)?[e]:(o=r>1?Vw.lineWrap(e,t,n,r):[e],o=Vw.wordWrap(o,t,n,r,i),o)},getFontHeight:e=>(Hw(),e&&(Bw.font=e),1.5*Vw.measureTextWidth("m")),tokenize(e,t,n,r,i,o,a=1){Hw(),t&&(Bw.font=t);const s=Vw.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(o<s)return[];const f=o?Math.max(1,Math.floor(o/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{u+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{c.push(Number.isNaN(e)||e<=0?f-u:e)}))):c=[Number.isNaN(r)||r<=0?f:Math.min(f,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<f&&(d=d.concat(Vw.wrapText(e,i,t,c[n])))})):d=Vw.wrapText(e,i,t,c[0],n),d}},$w={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",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(vg({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},Ww=vg.bind(null,!0),Uw={},{isArray:Yw}=Array;function Kw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Gw(e){return void 0===e}function Xw(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Jw(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,i)=>{if(i===n.length)return;r=+t;const o=isNaN(r)?{}:[];e[r||t]=Gw(e[r||t])?o:e[t],e=e[r||t]})),e}function Zw(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function Qw(e,t,n){let r=!0;if(Kw(e)&&Kw(t))return Zw(e,n)===Zw(t,n)&&(Object.keys(e).forEach((i=>{Qw(e[i],t[i],n)||(r=!1)})),r);if(Yw(e)&&Yw(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r+=1)if(!Qw(e[r],t[r],n))return!1;return!0}return e===t}Uw.compare=Qw,Uw.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?Ww({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;Qw(o,a)||Xw(t,i)||(Gw(a)?r.push({op:"add",path:s,value:o}):Kw(o)&&Kw(a)?r=r.concat(Uw.generate(a,o,s)):Yw(o)&&Yw(a)?r=r.concat(function(e,t,n){let r=[];const i=e.slice();let o=-1;function a(e,t,n){if(e[n]&&Gw(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Qw(t,i))return r;if(!Gw(t[0])&&Gw(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=i.length-1;e>=0;e-=1)o=a(t,i[e].qInfo&&i[e].qInfo.qId,e),-1===o?(r.push({op:"remove",path:`${n}/${e}`}),i.splice(e,1)):r=r.concat(Uw.generate(i[e],t[o],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)o=a(i,t[e].qInfo&&t[e].qInfo.qId),-1===o?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),i.splice(e,0,t[e])):o!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${o}`}),i.splice(e,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:`${n}/${i}`,value:o}))})),Object.keys(e).forEach((i=>{Gw(t[i])&&!Xw(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},Uw.apply=function(e,t){t.forEach((t=>{let n=Jw(e,t.path),r=t.path.split("/").splice(-1)[0],i=r&&isNaN(+r)?n[r]:n[+r]||n;const o=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(Yw(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Yw(i)&&Yw(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(Kw(i)&&Kw(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Xw(a,e)&&delete a[e]})),Ww(i,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const i=Jw(e,t.from);Yw(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(Yw(n)?n.splice(+r,1):delete n[r]);var a}))},Uw.clone=function(e){return Ww({},e)},Uw.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Uw.updateObject=function(e,t){Object.keys(e).length?Uw.apply(e,Uw.generate(e,t)):Ww(e,t)};const eS={getValueWithOffset:(e,t=0)=>e+Math.abs(e)*t,isNumber:e=>"number"==typeof e&&!Number.isNaN(e)},tS=[[2,4,6],[2,4],[3]],nS=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function rS(e,t,n){const r=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[r-1])),e.splice(0,0,o)}function iS(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)rS(e[r],t,n)}!function(){let e,t;for(iS(tS,1,10),e=0;e<nS.length;e++)if(nS[e])for(t=0;t<nS[e].length;t++)Array.isArray(nS[e][t])&&iS(nS[e][t])}();const oS={isInside(e,t,n,r){if(!r)return!0;const i=e.position-e.radius,o=e.position+e.radius;return i>=t&&o<=n},getCenterDistance:(e,t)=>Math.abs(e.center-t.center),getGap(e,t){const n=e.position<t.position?e:t,r=e.position<t.position?t:e;return r.position-r.radius-(n.position+n.radius)},findSegmentPositionMeetMax(e,t){const n=Math.max(0,e.max-t);return e.center-n},findSegmentPositionMeetMin(e,t){const n=Math.max(0,t-e.min);return e.center+n},findSegmentPositionMeetMinThenMax(e,t,n){const r=oS.findSegmentPositionMeetMin(e,t);return oS.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=oS.findSegmentPositionMeetMax(e,n);return oS.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const i=e.length-1;let o,a,s=t;for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.position=oS.findSegmentPositionMeetMaxThenMin(o,s,(o.center+a.center-r)/2),s=o.position+o.radius+r/2;a.position=oS.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const i=e.length-1;let o,a,s;const l=Math.max(0,e[i].position+e[i].radius-n);if(0===l)return;let c,u=0;for(o=i;o>0&&(a=e[o],s=e[o-1],c=Math.max(0,oS.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));o--);for(u<l&&(c=Math.max(0,s.position-s.radius-t),c-=Math.max(0,u+c-l),u+=c,s.move=c),u=0,o=0;o<=i;o++)a=e[o],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const i=e.length-1;if(!(i<0))if(0!==i)oS.layoutPositionFromMin(e,t,n,r),oS.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=oS.findSegmentPositionMeetMaxThenMin(r,t,n)}}},aS=(e,t,n,r=1)=>{const i=e.bandwidth();return n?"start"===t?i:"end"===t?i*(1-r):i*(2-r)/2:"start"===t?0:"end"===t?i*r:i*r/2},sS=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,lS=e=>e.filter(sS),cS=(e,t)=>lS(Dg.getValue(e,t,[])),uS=e=>sS(e)&&(!1!==e.showValue||!1!==e.showLabel),dS=e=>e.filter(uS),fS=(e,t)=>dS(Dg.getValue(e,t,[])),hS=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,pS=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},mS=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},gS=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+i},yS=({value:e,qMin:t})=>"NaN"!==t&&e<t,vS=({value:e,qMax:t})=>"NaN"!==t&&e>t,bS={isRefLineVisible:sS,getVisibleRefLines:lS,getRefLines:cS,getMeasureRefLines:e=>cS(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:cS(e,"refLine.dimRefLines"),isRefLineLabelVisible:uS,getVisibleRefLineLabels:dS,getRefLineLabels:fS,getMeasureRefLineLabels:e=>fS(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:fS(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:i,invert:o=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=aS(s,i,o,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=aS(s,i,o,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:i})=>{const o=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-o*(s-i)}})({pxScale:s,value:n,innerValues:e,invert:o,minOrder:a})),(void 0===c?s(n):c)+l}return l=aS(s,i,o),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:i}=r.meta,o={},a=Dg.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():Dg.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=Dg.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),f=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+f,r=t[d];o[r]||(o[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})():i?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],i=t+f,a=n[d];o[a]?(o[a].minOrder=Math.min(o[a].minOrder,i),o[a].maxOrder=Math.max(o[a].maxOrder,i),o[a].innerValues[o[a].innerValues.length]={id:r.qElemNumber,order:i}):o[a]={id:n.qElemNumber,qText:n.qText,minOrder:i,maxOrder:i,innerValues:[{id:r.qElemNumber,order:i}],dataNode:u[t]},0===t?0===i&&(o[a].isMinOrderOk=!0):a!==e&&(o[a].isMinOrderOk=!0,o[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+f,r=t[d];o[r]||(o[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})(),o},getInputValue:hS,extractInfoFromInputValue:pS,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=hS({refLineLayout:e,layoutService:n});return pS(r,t,"id")},isDiscreteMinOutOfBounds:mS,isDiscreteMaxOutOfBounds:gS,isContinuousMinOutOfBounds:yS,isContinuousMaxOutOfBounds:vS,isOutOfRange:({value:e,qMin:t,qMax:n})=>yS({value:e,qMin:t})||vS({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&gS({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&mS({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},xS=({label:e,labelStyle:t})=>[(null==e?void 0:e.fontStyle)||(null==t?void 0:t.fontStyle),(null==e?void 0:e.fontWeight)||(null==t?void 0:t.fontWeight),(null==e?void 0:e.fontSize)||(null==t?void 0:t.fontSize),(null==e?void 0:e.fontFamily)||(null==t?void 0:t.fontFamily)].filter((e=>!!e)).join(" ");function wS(e){return e.showValue?`… ${e.valueString}`:"…"}function SS(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=xS({label:i,labelStyle:t});i.lines=Vw.tokenize(i.title,o,wS(i),3,n),i.maxNumLines=i.lines.length}}function kS({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=Vw.tokenize(e,t,n,r,i),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n${o[e]}`}return s}function MS({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=e.map((e=>kS({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:i}))),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n\n${o[e]}`}return s}function CS(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const ES=3,qS=2;function DS({inputValue:e,inputValueLabel:t,localeInfo:n}){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const r=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return t.replace(new RegExp(`[0-9e${r}]`,"g"),"").length>0||function(e){if(e.indexOf("e")>-1)return!1;const t=e.indexOf("-");return-1!==t&&(e.lastIndexOf("-")!==t||0!==t)}(t)}const TS=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(bS.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(bS.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return bS.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:bS.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},NS={hasEngineFormat:DS,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:i,rtl:o,isContinuous:a,isDimension:s}){const l=bS.getInvert({orientation:i,rtl:o,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let f,h;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");f=e.qMin,h=e.qMax}for(let i=0;i<e.length;i++){const o=e[i],{value:s,align:c,valueInfo:d}=o,p=TS({label:o,dataPages:u,qMin:f,qMax:h});o.scaledValue=1===p?l?-.1:1.1:-1===p?l?1.1:-.1:bS.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),o.center=o.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:i}){let o;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;o=DS({inputValue:s,inputValueLabel:l,localeInfo:i})?l:t?t(a):a,r.valueString=`${Ug.lrm}(${o})${Ug.lrm}`,r.title=NS.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;o=DS({inputValue:a,inputValueLabel:s,localeInfo:i})?s:r,n.valueString=`${Ug.lrm}(${o})${Ug.lrm}`,n.title=NS.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];o=n.valueText,n.valueString=`${Ug.lrm}(${o})${Ug.lrm}`,n.title=NS.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title,r).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((n=>t(n,e).width)));return n},getMaxTextWidth(e){const t=e.map((e=>e.totalWidth));return Math.max(...t)},addLabelsNeighborInfo(e,t,n,r=0){const i=e.length-1;if(i<0)return;let o,a;if([o]=e,o.cMin=t,0!==i){for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.cMax=(o.center+a.center-r)/2,a.cMin=o.cMax+r;a.cMax=n}else o.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,i=e.filter((e=>e.maxNumLines===t)),o=Math.min(n,i.length);for(let e=i.length-1;e>=i.length-o;e--)i[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let i=3;do{const t=NS.getTotalNumLines(e)-r;if(t<=0)return;NS.reduceLabelsHavingMaxNumLines(e,i,t),i--}while(i>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const i=e[r];i.maxNumLines=Math.max(1,Math.min(i.maxNumLines,Math.floor((Math.max(0,i.cMax-i.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let i=0;i<e.length;i++){const o=e[i];o.width=Math.min(t,NS.measureLabelMaxLineWidth(o,r)),o.height=o.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:i}=r,o=r[t],a=o/2;r.segment={center:i,range:o,min:i-a,max:i+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:i,gap:o,labelStyle:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:f,layoutService:h,isContinuous:p,isDimension:m}){const g=e.map((e=>e)),y=n;NS.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:h,orientation:u,rtl:f,isContinuous:p,isDimension:m}),CS(e,"center"),NS.addLabelsNeighborInfo(e,r,i,o),SS(e,a,s),NS.reduceTotalMaxNumLines(g,l,i-(g.length-1)*o),"vertical"===u&&(NS.reduceMaxNumLines(e,l,.05*o),function(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=xS({label:i,labelStyle:t});i.lines.length>i.maxNumLines&&(i.lines=Vw.tokenize(i.title,o,wS(i),i.maxNumLines,n))}}(e,a,s)),NS.addLabelsSize(e,s,l,d),NS.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:i,lineHeight:o=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=i,{fontSize:d,fontFamily:f,fontStyle:h,fontWeight:p,textDecoration:m,background:g}=t;let y=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,i=t.map(((t,i)=>{const g={type:"text",text:t,title:kS({title:e.title,font:a,ellipsis:wS(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||f,fontStyle:e.fontStyle||h,fontWeight:e.fontWeight||p,textDecoration:e.textDecoration||m,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return g[l]=u,g[s]=e.segment.position,g.y+=(i-(r-1)/2)*o,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:i,lineHeight:o,background:a}){const{lines:s}=i,{borderRadius:l=ES,padding:c={}}=a,{top:u=qS,bottom:d=qS,left:f=qS,right:h=qS}=c,p=s.length,m={type:"rect",rx:l,ry:l,fill:i.background.fill,width:i.width+(f+h),height:i.height+(u+d),value:i.value,dock:r};return m[n]=e,m[t]=i.segment.position,m.x-=i.width/2+f,m.y-=p*o/2+u,m}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:o,background:g})),y=y.concat(i)})),y}};function OS(e,t,n){let r;const i=typeof t;if("string"===i||"object"===i)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function AS(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{lineHeight:n,top:r,bottom:i,maxLabelWidth:o}=t;let a=1;return NS.getMaxTextWidth(e)>o&&(SS(e,t,o),a=Math.max(...e.map((e=>e.lines.length)))),a*n+r+i}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:i}=t;return Math.min(i,NS.getMaxTextWidth(e))+n+r}(t,n)}function _S(e,t){return t?e.domain():[0,1]}function LS(e,t,n,r="value"){let i=e.filter((e=>e[r]>=t));i=i.filter((e=>e[r]<=n));const o=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:i,minOobs:o,maxOobs:a,numMinOobs:o.length,numMaxOobs:a.length}}function IS(e){let t,n=0;for(let r=1;r<10;r++)t=e(r),n=Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height));return t=e("9+"),[n,Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height))]}function RS(e,t){return e>9?t[1]:t[0]}function PS({alignment:e,dockValue:t,oobs:n,style:r,rect:i,symbol:o,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:f,minorAxis:h,minorDimension:p,dock:m}=s,g=i[p],y=$w.createOob({oob:$w.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:i.width,rendHeight:i.height,flipXY:d,symbol:o});y.dock=m;const v=`c${f}`,b=`c${h}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:m};x[b]=g/2,x[v]=a;const w={type:"text",text:u>9?"9+":u,title:MS({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:m};return w[h]=g/2,w[f]=a,[y,x,w]}const zS=e=>{const t=xS({labelStyle:e}),n=Vw.getFontHeight(t)*(e.lineHeightMultiplicator||1),r=e.gap||12,i=e.maxWidth||75,o=e.padding.top||0,a=e.padding.bottom||0,s=e.padding.left||0,l=e.padding.right||0;return{...e,font:t,lineHeight:n,gap:r,maxLabelWidth:i,top:o,bottom:a,left:s,right:l}},FS=e=>e.map((e=>({...e,value:"function"==typeof e.value?e.value():e.value,valueText:"function"==typeof e.valueText?e.valueText():e.valueText,valueInfo:"function"==typeof e.valueInfo?e.valueInfo():e.valueInfo})));var jS={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:i}=this.settings,o=!!r||n.meta.canBeContinuous,a=FS(this.settings.labels),s=OS(this.chart,this.settings.formatter,e);NS.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:o,localeInfo:i});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:i})=>{if(n){const[r,i]=_S(t,n);return LS(e,r,i)}if(r){const t=i.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return LS(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:o,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:i,fontWeight:o}=n||{};return this.renderer.measureText({text:e,fontWeight:o||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:i||t.label.fontFamily})},u&&u.length){const e=zS(t.label),{dock:n}=this.settings.layout;return NS.measureLabelsWidth(u,this.measureText),d=AS(n,u,e),d}const f=IS(this.measureText),h=l?RS(l,f):0,p=c?RS(c,f):0;return d=Math.max(h,p),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:i,isContinuous:o,isDimension:a,localeInfo:s}=this.settings,l=!!o||r.meta.canBeContinuous,c=FS(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:f}=n.label,h=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),p=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,h,f),{orientation:m,majorDimension:g}=h,{majorSize:y}=p,v=zS(n.label),{font:b,lineHeight:x,gap:w,maxLabelWidth:S}=v,k=OS(this.chart,this.settings.formatter,e),M=y;NS.addLabelTitles({labels:c,formatter:k,isContinuous:o,canBeContinuous:l,localeInfo:s}),NS.calculateLabelPositions({labels:c,scale:e,size:M,layoutService:r,orientation:m,rtl:d,isContinuous:o,isDimension:a});const[C,E]=_S(e,o),{filteredLabels:q,lowerOobs:D,upperOobs:T,lowerCircleSize:N,upperCircleSize:O,lowerOobSpace:A,upperOobSpace:_}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:i,isContinuous:o,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:f}=LS(e,t,n,c),h="scaledValue"!==c&&bS.getInvert({orientation:r,rtl:i,isContinuous:o}),p=function(e,t,n){return n?t:e}(d,u,h),m=function(e,t,n){return n?e:t}(d,u,h),g=p.length,y=m.length,v=IS(l),b=RS(g,v),x=RS(y,v),w=function(e,t,n,r,i){return("vertical"===r?i.top:i.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),S=function(e,t,n,r,i){return("vertical"===r?i.bottom:i.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:f,lowerOobs:p,upperOobs:m,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:w,upperOobSpace:S}}({labels:c,minValue:C,maxValue:E,orientation:m,rtl:d,isContinuous:o,style:n,padding:f,measureText:this.measureText,prop:o?"value":"scaledValue"}),L=A,I=y-_;CS(D),CS(T);const R=PS({alignment:0,dockValue:0,oobs:D,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+N/2,areaProps:h,radius:N/2,font:b}),P=PS({alignment:1,dockValue:1,oobs:T,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+O/2),areaProps:h,radius:O/2,font:b});NS.addLabelsInfo({labels:q,scale:e,majorSize:y,lowerLimit:L,upperLimit:I,labelStyle:v,lineHeight:x,gap:w,maxLabelWidth:S,majorDimension:g,orientation:m,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:o,isDimension:a}),oS.layout(q.map((e=>e.segment)),L,I,n.label.gap);const z=q.filter((e=>oS.isInside(e.segment,L,I,o)));return NS.createLabels({labels:z,style:n.label,maxLabelWidth:S,areaProps:h,area:p,lineHeight:x,font:b,theme:i}).concat([...R,...P])}};function BS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HS(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function VS(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){HS(o,r,i,a,s,"next",e)}function s(e){HS(o,r,i,a,s,"throw",e)}a(void 0)}))}}function $S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function US(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WS(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YS(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function KS(){KS=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(N([])));w&&w!==n&&r.call(w,a)&&(b=w);var S=v.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(S,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(M.prototype),c(M.prototype,s,(function(){return this})),t.AsyncIterator=M,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new M(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function GS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||ZS(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XS(e){return function(e){if(Array.isArray(e))return BS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ZS(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JS(e){return JS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JS(e)}function ZS(e,t){if(e){if("string"==typeof e)return BS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BS(e,t):void 0}}var QS=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],ek=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var tk=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function nk(e){var t=e.theme,n=e.translator,r=e.defaultValue,i=e.flags,o=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?o.push.apply(o,XS(new Set([r].concat(XS(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):o.push(r),[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0}].concat(XS(o.map((function(e){return tk(e)}))),[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0}],XS(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ek:QS}(i).map((function(e){return tk(e)}))))}function rk(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=e.flags,a=function(){return t.getStyle(r,i,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return nk({theme:t,translator:n,defaultValue:a(),flags:o})}}}var ik,ok,ak=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],sk=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function lk(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=function(){return t.getStyle(r,i,"fontSize")};return{getDefaultValue:function(){return o()},getOptions:function(){return function(e){var t=e.translator,n=e.defaultValue,r=[],i=e.theme.getStyle("","","fontSizes");return Array.isArray(i)&&i.length?r.push.apply(r,XS(new Set([n].concat(XS(i))))):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(XS(r.map((function(e){return sk(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],XS(ak.map((function(e){return sk(e)}))))}({theme:t,translator:n,defaultValue:o()})}}}function ck(e){var t=e.theme,n=e.translator,r=e.id,i=e.path;return{fontFamily:rk({theme:t,translator:n,id:r,path:i,flags:e.flags}),fontSize:lk({theme:t,translator:n,id:r,path:i})}}function uk(e){return dk.apply(this,arguments)}function dk(){return(dk=VS(KS().mark((function e(t){var n,r,i,o;return KS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.app,r=t.items,n.evaluate){e.next=3;break}return e.abrupt("return",r);case 3:return e.next=5,Promise.all(r.filter((function(e){var t;return!(null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t||!t.qv)})).map((function(e){var t=e.qCalcCondition.qCond.qv;return n.evaluate(t).then((function(t){return"0"===t?e.qDef.cId:void 0})).catch((function(){return e.qDef.cId}))})));case 5:return i=e.sent,o=i.filter(Boolean),e.abrupt("return",r.filter((function(e){return!o.includes(e.qDef.cId)})));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fk(e){var t=e.app,n=e.translator,r=e.dimension,i={id:r.qDef.cId,text:n.get("Object.ErrorMessage.MissingDimension"),meta:{}},o=r.qLibraryId;if(o)return t.getDimension?t.getDimension(o).then((function(e){return e.getLayout()})).catch((function(){})).then((function(e){if(!e)return i;var t=e.qDim,n=t.qGrouping,o=t.qLabelExpression,a="C"===n,s="H"===n,l="N"===n;return{id:r.qDef.cId,text:o&&l?o:e.qDim.title,meta:{isCyclic:a,isDrillDown:s,isNormal:l}}})):i;var a=r.qDef,s=a.cId,l=a.qLabelExpression,c=a.qFieldLabels,u=a.qFieldDefs,d={isCyclic:!1,isDrillDown:!1,isNormal:!0};return l?t.evaluate?t.evaluate(l).then((function(e){return{id:s,text:e,meta:d}})):i:{id:s,text:c[0]||u[0],meta:d}}function hk(e){return pk.apply(this,arguments)}function pk(){return(pk=VS(KS().mark((function e(t){var n,r,i,o,a,s,l,c;return KS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.app,i=t.translator,o=t.properties,a=(null==o||null===(n=o.qHyperCubeDef)||void 0===n||null===(n=n.qLayoutExclude)||void 0===n?void 0:n.qHyperCubeDef)||{},s=a.qDimensions,(l=void 0===s?[]:s).length){e.next=4;break}return e.abrupt("return",Promise.resolve([]));case 4:return e.next=6,uk({app:r,items:l});case 6:return c=e.sent,e.abrupt("return",Promise.all(c.map((function(e){return fk({app:r,translator:i,dimension:e})}))));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mk(e){var t=e.app,n=e.translator,r=e.measure,i={id:r.qDef.cId,text:n.get("Object.ErrorMessage.MissingMeasure")},o=r.qLibraryId;if(o)return t.getMeasure?t.getMeasure(o).then((function(e){return e.getLayout()})).catch((function(){})).then((function(e){if(!e)return i;var t=e.qMeasure.qLabelExpression;return{id:r.qDef.cId,text:t||e.qMeasure.qLabel||e.qMeasure.qDef}})):i;var a=r.qDef,s=a.cId,l=a.qLabelExpression,c=a.qLabel,u=a.qDef;return l?t.evaluate?t.evaluate(l).then((function(e){return{id:s,text:e}})):i:{id:s,text:c||u}}function gk(e){return yk.apply(this,arguments)}function yk(){return(yk=VS(KS().mark((function e(t){var n,r,i,o,a,s,l,c;return KS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.app,i=t.translator,o=t.properties,a=(null==o||null===(n=o.qHyperCubeDef)||void 0===n||null===(n=n.qLayoutExclude)||void 0===n?void 0:n.qHyperCubeDef)||{},s=a.qMeasures,(l=void 0===s?[]:s).length){e.next=4;break}return e.abrupt("return",Promise.resolve([]));case 4:return e.next=6,uk({app:r,items:l});case 6:return c=e.sent,e.abrupt("return",Promise.all(c.map((function(e){return mk({app:r,translator:i,measure:e})}))));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var vk=function(){if(ok)return ik;ok=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return ik=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},ik}(),bk=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(vk);function xk(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.value%i.length]}))},valueAccessor:e.value}}function wk(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.row.value%i.length]}))},valueAccessor:e.value}}function Sk(e,t,n,r,i){var o,a,s=i.byRow,l=i.byElemNo;if(r&&(t.input.persistent||e.hc.qDimensionInfo.length>1||void 0===n.activeDimensionIndex&&e.hc.qSize.qcy>((null===(a=(o=e.hc).qDataPages[0]||o.qStackedDataPages[0])||void 0===a?void 0:a.qArea.qHeight)||0)))return l(r,r.raw().qCardinal);if(r){var c=t.pic.extract({field:r.key(),trackBy:r.value}).length;return s(r,c)}return{}}function kk(e,t){var n=e.hc.qDimensionInfo,r=t.input.byDimDef||{activeDimensionIndex:n.length-1};if(r.activeDimensionIndex>=0){var i=n[r.activeDimensionIndex];r=i.coloring&&i.coloring.colorMapRef?{type:"libraryItem",key:i.coloring.colorMapRef,activeDimensionIndex:r.activeDimensionIndex}:{activeDimensionIndex:r.activeDimensionIndex}}return r}function Mk(e,t){var n;return t.activeDimensionIndex>=0?n=e.pic.fields().filter((function(e){return"dimension"===e.type()}))[t.activeDimensionIndex]:"libraryItem"===t.type?!1===(n=t.key?e.pic.field((function(e){return e.raw().colorMapRef===t.key})):void 0)&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n}function Ck(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ek(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qk(){}var Dk=1/.7,Tk="\\s*([+-]?\\d+)\\s*",Nk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ok="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ak=/^#([0-9a-f]{3,8})$/,_k=new RegExp(`^rgb\\(${Tk},${Tk},${Tk}\\)$`),Lk=new RegExp(`^rgb\\(${Ok},${Ok},${Ok}\\)$`),Ik=new RegExp(`^rgba\\(${Tk},${Tk},${Tk},${Nk}\\)$`),Rk=new RegExp(`^rgba\\(${Ok},${Ok},${Ok},${Nk}\\)$`),Pk=new RegExp(`^hsl\\(${Nk},${Ok},${Ok}\\)$`),zk=new RegExp(`^hsla\\(${Nk},${Ok},${Ok},${Nk}\\)$`),Fk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function jk(){return this.rgb().formatHex()}function Bk(){return this.rgb().formatRgb()}function Hk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ak.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vk(t):3===n?new Yk(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?$k(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?$k(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=_k.exec(e))?new Yk(t[1],t[2],t[3],1):(t=Lk.exec(e))?new Yk(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ik.exec(e))?$k(t[1],t[2],t[3],t[4]):(t=Rk.exec(e))?$k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Pk.exec(e))?Qk(t[1],t[2]/100,t[3]/100,1):(t=zk.exec(e))?Qk(t[1],t[2]/100,t[3]/100,t[4]):Fk.hasOwnProperty(e)?Vk(Fk[e]):"transparent"===e?new Yk(NaN,NaN,NaN,0):null}function Vk(e){return new Yk(e>>16&255,e>>8&255,255&e,1)}function $k(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yk(e,t,n,r)}function Wk(e){return e instanceof qk||(e=Hk(e)),e?new Yk((e=e.rgb()).r,e.g,e.b,e.opacity):new Yk}function Uk(e,t,n,r){return 1===arguments.length?Wk(e):new Yk(e,t,n,null==r?1:r)}function Yk(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Kk(){return`#${Zk(this.r)}${Zk(this.g)}${Zk(this.b)}`}function Gk(){const e=Xk(this.opacity);return`${1===e?"rgb(":"rgba("}${Jk(this.r)}, ${Jk(this.g)}, ${Jk(this.b)}${1===e?")":`, ${e})`}`}function Xk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zk(e){return((e=Jk(e))<16?"0":"")+e.toString(16)}function Qk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tM(e,t,n,r)}function eM(e){if(e instanceof tM)return new tM(e.h,e.s,e.l,e.opacity);if(e instanceof qk||(e=Hk(e)),!e)return new tM;if(e instanceof tM)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new tM(a,s,l,e.opacity)}function tM(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function nM(e){return(e=(e||0)%360)<0?e+360:e}function rM(e){return Math.max(0,Math.min(1,e||0))}function iM(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ck(qk,Hk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jk,formatHex:jk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eM(this).formatHsl()},formatRgb:Bk,toString:Bk}),Ck(Yk,Uk,Ek(qk,{brighter(e){return e=null==e?Dk:Math.pow(Dk,e),new Yk(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yk(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yk(Jk(this.r),Jk(this.g),Jk(this.b),Xk(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Kk,formatHex:Kk,formatHex8:function(){return`#${Zk(this.r)}${Zk(this.g)}${Zk(this.b)}${Zk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Gk,toString:Gk})),Ck(tM,(function(e,t,n,r){return 1===arguments.length?eM(e):new tM(e,t,n,null==r?1:r)}),Ek(qk,{brighter(e){return e=null==e?Dk:Math.pow(Dk,e),new tM(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new tM(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Yk(iM(e>=240?e-240:e+120,i,r),iM(e,i,r),iM(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new tM(nM(this.h),rM(this.s),rM(this.l),Xk(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Xk(this.opacity);return`${1===e?"hsl(":"hsla("}${nM(this.h)}, ${100*rM(this.s)}%, ${100*rM(this.l)}%${1===e?")":`, ${e})`}`}}));const oM=Math.PI/180,aM=180/Math.PI,sM=4/29,lM=6/29,cM=3*lM*lM;function uM(e){if(e instanceof dM)return new dM(e.l,e.a,e.b,e.opacity);if(e instanceof gM)return yM(e);e instanceof Yk||(e=Wk(e));var t,n,r=mM(e.r),i=mM(e.g),o=mM(e.b),a=fM((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=fM((.4360747*r+.3850649*i+.1430804*o)/.96422),n=fM((.0139322*r+.0971045*i+.7141733*o)/.82521)),new dM(116*a-16,500*(t-a),200*(a-n),e.opacity)}function dM(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function fM(e){return e>.008856451679035631?Math.pow(e,1/3):e/cM+sM}function hM(e){return e>lM?e*e*e:cM*(e-sM)}function pM(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mM(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gM(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function yM(e){if(isNaN(e.h))return new dM(e.l,0,0,e.opacity);var t=e.h*oM;return new dM(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ck(dM,(function(e,t,n,r){return 1===arguments.length?uM(e):new dM(e,t,n,null==r?1:r)}),Ek(qk,{brighter(e){return new dM(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new dM(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Yk(pM(3.1338561*(t=.96422*hM(t))-1.6168667*(e=1*hM(e))-.4906146*(n=.82521*hM(n))),pM(-.9787684*t+1.9161415*e+.033454*n),pM(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ck(gM,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof gM)return new gM(e.h,e.c,e.l,e.opacity);if(e instanceof dM||(e=uM(e)),0===e.a&&0===e.b)return new gM(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*aM;return new gM(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new gM(e,t,n,null==r?1:r)}),Ek(qk,{brighter(e){return new gM(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new gM(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return yM(this).rgb()}}));var vM=e=>()=>e;function bM(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):vM(isNaN(e)?t:e)}var xM=function e(t){var n=function(e){return 1==(e=+e)?bM:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):vM(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Uk(e)).r,(t=Uk(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=bM(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),wM=/^class(-pyramid)?/,SM=function(e,t,n,r){var i=void 0!==n.min?n.min:r.min(),o=void 0!==n.max?n.max:r.max(),a=i,s=o,l=t.limits,c={},u="percent"===t.limitType?l.map((function(e){return i+(o-i)*e})):l,d=t.colors.map((function(t){return e.resolveUIColor(t)}));if(i=Math.min.apply(Math,[i].concat(XS(u))),o=Math.max.apply(Math,[o].concat(XS(u))),c.min=i,c.max=o,t.breakTypes&&-1===t.breakTypes.indexOf(!0))c.type="categorical",Object.assign(c,function(e){var t=e.min,n=e.max,r=e.limits,i=e.range,o=[],a=[];if(r.length)if(r[r.length-1]<t)a.push(t,n),o.push(i[i.length-1],i[i.length-1],i[i.length-1]);else if(r[0]>n)a.push(t,n),o.push(i[0],i[0],i[0]);else{if(r[0]>t)a.push(t),o.push(i[0]);else{a.push(t);for(var s=0;s<r.length;s++)if(t<r[s]){o.push(i[s]);break}}for(var l=0;l<r.length;l++)t<r[l]&&r[l]<n&&(a.push(r[l]),o.push(i[l]));if(r[r.length-1]<n)a.push(n),o.push(i[r.length]),o.push(i[r.length]);else{a.push(n);for(var c=0;c<r.length;c++)if(r[c]>n){o.push(i[c]),o.push(i[c]);break}}}else o.push(i[0]);return{min:t,max:n,range:o,domain:a}}({min:"percent"===t.limitType?i:a,max:"percent"===t.limitType?o:s,range:d,limits:"percent"===t.limitType?u:l}));else if(t.breakTypes){var f=t.breakTypes;c.type="continuous",c.domain=[i],c.range=[d[0]];for(var h=0;h<u.length;h+=1)if(f[h]){var p=d[h],m=d[h+1],g=xM(p,m)(.5);c.range.push(g),c.domain.push(u[h]),h<u.length-1&&f[h+1]&&(c.range.push(d[h+1]),c.domain.push((u[h]+u[h+1])/2))}else c.range.push(d[h]),c.range.push(d[h+1]),c.domain.push(u[h]),c.domain.push(u[h]+Math.min(1e-6,(o-i)/1e6));c.range.push(d[d.length-1]),c.domain.push(o)}else c.domain=u,c.range=d;return c};function kM(e,t,n,r,i){var o,a,s,l=0,c=[],u=(e-t)/(r+1);if(0===u)return 1;for(o=0;o<n.length;o+=1)a=.99*(n[o]-t),s=n[o]>e?Math.floor(e/u):n[o]<t?0:Math.floor(a/u),Number.isNaN(s)||(c[s]?c[s]+=1:c[s]=1);for(o=0;o<c.length;o+=1)c[o]&&(l+=1);return l<=r||l>=i?Math.max(l,r):kM(e,t,n,r+1,i)}var MM=function(e,t,n,r){var i,o,a=t.theme,s=t.hc,l=r.f,c={mode:"field",fieldType:"measure",field:l?l.key():void 0,reverse:n.input.reverseScheme||!1,type:"continuous",range:function(e){return e.resources.theme.palette("quant")}},u=[],d=!0;if(l){if(Number.isNaN(+l.min())||Number.isNaN(+l.max()))return{invalid:!0};(d=!("S"===(i=n.pic.raw()).qMode&&(i.qDataPages[0]&&i.qSize.qcy>i.qDataPages[0].qArea.qHeight||!i.qDataPages.length&&i.qSize.qcy>0)||"K"===i.qMode&&i.qStackedDataPages[0]&&i.qSize.qcy>i.qStackedDataPages[0].qArea.qHeight||"T"===i.qMode&&i.qSize.qcy>i.qTreeDataPages[0].qGroupSize))&&(u=n.pic.extract({field:0,props:{num:{field:l.key()},exclude:{fields:s.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return Math.min.apply(Math,XS(e))<0}}}}).filter((function(e){return e.value>=0&&!e.exclude.value})).map((function(e){return e.num.value})).filter((function(e){return"number"==typeof e})))}if(!1===n.input.autoMinMax){if(c.min=n.input.measureMin,c.max=n.input.measureMax,c.max<c.min)return{invalid:!0}}else if(l&&!d)c.min=l.min(),c.max=l.max();else if(l){if(!u.length)return{invalid:!0};c.min=Math.min.apply(Math,XS(u)),c.max=Math.max.apply(Math,XS(u))}if(n.input.measureScheme&&(c.palettes={quant:n.input.measureScheme}),a){var f=a.getDataColorScales().filter((function(e){return e.key===n.input.measureScheme}))[0];c.type=f&&wM.test(f.type)?"categorical":"continuous","categorical"===c.type&&(o=f.colors.some((function(e){return Array.isArray(e)}))?Math.max.apply(Math,XS(f.colors.map((function(e){return e?e.length:0})))):f.colors.length)}if("categorical"===c.type){for(var h=d?kM(c.max,c.min,u,1,o):o,p=(c.max-c.min)/h,m=[],g=0;g<h+1;g+=1)m.push(c.min+p*g);c.domain=m,c.range=function(e){for(var t=e.resources.theme.palette("quant",h),n=Math.max(1,Math.floor(t.length/h)),r=[],i=0;i<h;i+=1)r.push(t[i*n]);return[r[0]].concat(r,[r[r.length-1]])}}return c};function CM(e,t){var n;return t.activeMeasureIndex>=0?n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[t.activeMeasureIndex]:"libraryItem"===t.type?n=e.pic.field((function(e){return e.raw().colorMapRef===t.key&&void 0!==t.key})):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n||(n=e.pic.field((function(e){return void 0!==e.raw().matchMeasure})))&&(n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[n.raw().matchMeasure]),n}function EM(e){e.measureOverrides.every((function(e){return!e}))&&(e.measureOverrides=null)}function qM(e,t){for(var n=(null==t?void 0:t.domain)||[],r=(null==t?void 0:t.range)||[],i=[],o=0;o<e.length;++o){var a=e[o];if("constant"===(null==a?void 0:a.mode)){var s=n.indexOf(o);-1===s?(n.push(o),r.push(a.primary)):r[s]=a.primary,e[o]=null}else if(a){i.push(o);var l=n.indexOf(o);-1!==l&&(n.splice(l,1),r.splice(l,1))}}return{domain:n,range:r,exclude:i}}function DM(e,t,n,r){var i,o=function(e,t,n,r){if(t.input&&!t.input.auto){if("byMeasure"===t.input.mode)return function(e,t,n){var r=t.theme,i=t.hc,o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).getCField,a=void 0===o?CM:o,s=n.input.byMeasureDef||{activeMeasureIndex:0},l=a(n,s),c=MM(0,{theme:r,hc:i},n,{f:l});if(c.invalid)return c;"expression"===s.type&&(s.activeMeasureIndex<0||void 0===s.activeMeasureIndex)&&(c.label=s.label,l&&"color.altLabel"===l.raw().labelExpRef&&(c.label=n.input.altLabel)),!c.label&&l&&(c.label=l.title());var u=s.activeMeasureIndex>=0?l:null;if(!u&&l&&void 0!==l.raw().matchMeasure&&l.raw().matchMeasure>-1&&(u=n.pic.fields().filter((function(e){return"measure"===e.type()}))[l.raw().matchMeasure]),n.input.useMeasureGradient&&"libraryItem"===s.type)if(u){var d=u.raw().coloring;d&&d.gradient&&bk(c,SM(e,d.gradient,c,u))}else c.auxiliary=s;return c}(e,n,t);if("byDimension"===t.input.mode)return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.getCDef,o=void 0===i?kk:i,a=r.getCByField,s=void 0===a?Mk:a,l=r.getPersistence,c=void 0===l?Sk:l,u=o(t,n),d=s(n,u),f=d?d.raw():{},h=n&&n.pic?n.pic.raw():{};if(f.qError||f.qSize&&0===f.qSize.qcy&&!h.qHasOtherValues)return{invalid:!0};var p={mode:"field",fieldType:"dimension",type:"categorical",field:d?d.key():void 0,isFieldLocked:f.qLocked};return("expression"===u.type||u.activeDimensionIndex<0)&&(p.label=u.label,"color.altLabel"===f.labelExpRef&&(p.label=n.input.altLabel)),!p.label&&d&&(p.label=d.title()),n.input.dimensionScheme&&(p.palettes={categorical:n.input.dimensionScheme}),n.input.useDimColVal&&"libraryItem"===u.type&&(p.auxiliary=u),bk(p,c(t,n,u,d,{byRow:wk,byElemNo:xk})),p}(e,n,t);if("byExpression"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.pic.field((function(e){return"colorByExpression"===e.raw().id}));if(!s||!s.raw().qFallbackTitle&&!n.input.colorExpression||!(Number.isFinite(s.raw().qMin)&&Number.isFinite(s.raw().qMax)||n.input.expressionIsColor))return{mode:"constant",type:"constant",primary:r.nil};if(n.input.expressionIsColor)return{mode:"field",fieldType:"expression",field:s?s.key():void 0,type:"color"};var l=MM(0,{hc:i,theme:o},n,{f:s});return l.invalid||(l.label=n.input.expressionLabel||a.get("Object.ChartTooltip.ColorExpression")),l}(0,n,t,r);if("byMultiple"===t.input.mode||"primary"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.input.useBaseColors;if(("byMultiple"===n.input.mode||"primary"===n.input.mode&&"measure"===n.input.useBaseColors)&&i.qMeasureInfo.length>1&&(s="measure"),"measure"===s){var l=[],c=[];"measure"===n.input.useBaseColors&&i.qMeasureInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){l.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?c.push(r.primary):c.push(i)}}));var u=n.input.dimensionScheme?{categorical:n.input.dimensionScheme}:void 0,d=o?o.getDataColorPalettes()[0]:void 0;return"measure"===n.input.useBaseColors&&d&&(u={categorical:d.key}),{mode:"measure",type:"categorical",palettes:u,label:a?a.get("Common.Measures"):void 0,explicit:l.length?{domain:l,range:c}:void 0}}if("dimension"===s){var f=[],h=[];return i.qDimensionInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){f.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?h.push(r.primary):h.push(i)}})),{mode:"dimension",type:"categorical",field:f.length?f[0]:void 0,explicit:f.length?{domain:f,range:h}:void 0}}var p=r.primary;if(void 0!==n.input.paletteColor)n.input.paletteColor&&(p=e.resolveUIColor(n.input.paletteColor));else{var m=n.input.singleColor;"number"!=typeof m||Number.isNaN(m)||(p=["#b0afae","#7b7a78","#545352","#4477aa","#7db8da","#b6d7ea","#46c646","#f93f17","#ffcf02","#276e27","#ffffff","#000000"][m])}return{mode:"constant",type:"constant",primary:p}}(e,n,t,r)}return{}}(e,t,n,r);return null!==(i=t.input)&&void 0!==i&&i.measureOverrides?(o.measureOverrides=t.input.measureOverrides.map((function(n,i){return function(e){var t,n=e.cm,r=e.defaults,i=e.index,o=e.input,a=e.pic;if(!o||!o.on)return null;var s=null!==(t=o.mode)&&void 0!==t?t:"primary";return"primary"===s?function(e,t,n){var r=n.primary;return void 0!==t.paletteColor&&t.paletteColor&&(r=e.resolveUIColor(t.paletteColor)),US(US({},n),{},{mode:"constant",type:"constant",primary:r})}(n,o,r):"byExpression"===s?function(e,t,n){var r="qMeasureInfo/".concat(e,"/"),i=t.field((function(e){return e.id().startsWith(r)&&"colorByMeasureExpression"===e.raw().id})),o=i;return US(US({},n),{},o?{mode:"field",fieldType:"expression",field:i?i.key():void 0,type:"color"}:{mode:"constant",type:"constant",primary:n.nil})}(i,a,r):null}({cm:e,input:n,defaults:r,index:i,pic:t.pic})})),function(e,t){var n,r,i,o=t.translator;if(EM(e),1===(null===(n=e.measureOverrides)||void 0===n?void 0:n.length))return e.measureOverrides[0];if("measure"===e.mode&&e.measureOverrides&&(e.explicit=qM(e.measureOverrides,e.explicit),EM(e)),null!==(r=e.measureOverrides)&&void 0!==r&&r.every((function(e){return"constant"===(null==e?void 0:e.mode)}))){var a={mode:"measure",type:"categorical",label:null==o?void 0:o.get("Common.Measures")};return a.explicit=qM(e.measureOverrides),a}return null!==(i=e.measureOverrides)&&void 0!==i&&i.every((function(e){return e}))?{invalid:!0,measureOverrides:e.measureOverrides}:e}(o,n)):o}var TM=function(e,t){var n=e.fieldType,r={};if(t)if("measure"===n){var i=t.coloring;i&&(r.measureGradient=i.gradient)}else if("dimension"===n){var o=t[0],a=t[1];o&&(r.legendDataPage=o),a&&(r.dimValsData=a.colorMap)}return r},NM=function(e){throw e.isHandled=!0,e};function OM(e){return function(t){return"object"===JS(t.datum[e])?t.datum[e].value:void 0}}function AM(e){return"object"===JS(e.datum.isNull)?e.datum.isNull.value:-2===e.datum.value}function _M(e){return-3===e.datum.value}var LM={COLOR:void 0,FONT_SIZE:"16px",FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"},IM={COLOR:void 0,FONT_SIZE:void 0,FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"};function RM(e){var t=e.theme,n=e.key,r=e.styleOverrides,i={title:{color:LM.COLOR,fontSize:LM.FONT_SIZE,fontFamily:LM.FONT_FAMILY},label:{color:IM.COLOR,fontSize:IM.FONT_SIZE,fontFamily:IM.FONT_FAMILY}};if(!t&&!r)return i;var o=r||{},a=o.title,s=o.label,l=function(e){var t=e.theme,n=e.key;return function(e,r,i,o){return void 0!==e?e:t?t.getStyle(n,r,i):o}}({theme:t,key:n});return i.title.color=l(null==a?void 0:a.color,"legend.title","color",LM.COLOR),i.title.fontSize=l(null==a?void 0:a.fontSize,"legend.title","fontSize",LM.FONT_SIZE),i.title.fontFamily=l(null==a?void 0:a.fontFamily,"legend.title","fontFamily",LM.FONT_FAMILY),i.label.color=l(null==s?void 0:s.color,"legend.label","color",IM.COLOR),i.label.fontSize=l(null==s?void 0:s.fontSize,"legend.label","fontSize",IM.FONT_SIZE),i.label.fontFamily=l(null==s?void 0:s.fontFamily,"legend.label","fontFamily",IM.FONT_FAMILY),i}var PM=function(e,t,n){var r=e&&e.dock||void 0;if("auto"!==r)return r||"right";if(t){var i=t.element.getBoundingClientRect();if(i.height>i.width)return"bottom"}return n?"left":"right"},zM=function(e,t,n){return!(n.invalid||"color"===n.type||"measure"===n.mode&&t.qMeasureInfo.length<=1||"dimension"===n.mode)&&("function"==typeof e.show?e.show():!1!==e.show)};function FM(e,t){var n=e.styleReference,r=e.styleOverrides,i=e.chart,o=e.rtl,a=t.legendProps,s=t.coloring,l=t.theme,c=t.hc,u=RM({theme:l,key:n,styleOverrides:r});return{layout:{minimumLayoutMode:"MEDIUM",dock:PM(a,i,o)},show:"function"==typeof a.show?function(){return zM(a,c,s)}:zM(a,c,s),renderer:"svg",mounted:function(e){e.childNodes[0].style.pointerEvents="none",e.style.overflow="hidden"},settings:{title:{show:!1!==a.showTitle,wordBreak:"break-word",maxLines:2,lineHeight:1.2,text:s.label||"",fill:u.title.color,fontSize:u.title.fontSize,fontFamily:u.title.fontFamily}}}}function jM(e,t,n){var r=[],i=[],o=function(e,t,n){return"categorical"===t.coloring.type?function(e,t,n){var r=FM(e,t);if(!r.show)return!1;var i,o=e.key,a=e.styleReference,s=e.styleOverrides,l=e.viewState,c=e.rtl,u=e.settings,d=e.style,f=t.scaleKey,h=t.theme,p=t.scales,m=RM({theme:h,key:a,styleOverrides:s}),g=r.layout.dock,y="left"===g||"right"===g?{maxLines:2,wordBreak:"break-word"}:{},v={up:"M13.6,11 L2.4,11 C2.28954305,11 2.2,10.9104569 2.2,10.8 C2.2,10.756726 2.21403557,10.7146192 2.24,10.68 L7.84,3.21333333 C7.90627417,3.12496777 8.03163444,3.10705916 8.12,3.17333333 C8.13516113,3.18470418 8.14862915,3.1981722 8.16,3.21333333 L13.76,10.68 C13.8262742,10.7683656 13.8083656,10.8937258 13.72,10.96 C13.6853808,10.9859644 13.643274,11 13.6,11 Z",down:"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",left:"M11,2.4 L11,13.6 C11,13.7104569 10.9104569,13.8 10.8,13.8 C10.756726,13.8 10.7146192,13.7859644 10.68,13.76 L3.21333333,8.16 C3.12496777,8.09372583 3.10705916,7.96836556 3.17333333,7.88 C3.18470418,7.86483887 3.1981722,7.85137085 3.21333333,7.84 L10.68,2.24 C10.7683656,2.17372583 10.8937258,2.19163444 10.96,2.28 C10.9859644,2.31461923 11,2.35672596 11,2.4 Z",right:"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"};"dimension"===t.coloring.fieldType&&(i=function(e){return e.datum.value>=0||-3===e.datum.value});var b="".concat(f,"Legend");return bk(!0,r,{type:"legend-cat",key:"".concat(o,"-cat"),scale:b in p?b:f,settings:{layout:{scrollOffset:function(){return l?l.get("legendScrollOffset"):void 0},size:-1!==["top","bottom"].indexOf(r.layout.dock)?2:1,direction:c?"rtl":"ltr",horizontal:20},item:{show:i,label:US({fill:m.label.color,fontSize:m.label.fontSize,fontFamily:m.label.fontFamily},y)},navigation:{disabled:n,button:{content:function(e,t){var n=t.direction;return e("i",{style:{"pointer-events":"none",fontSize:"12px",display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizelegibility",margin:"0px"}},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},[e("path",{d:v[n]})])])}}}},brush:{consume:[{context:"selection",data:["",o],style:{inactive:{opacity:.3}}}]}},{settings:u,style:d})}(e,t,n):"continuous"===t.coloring.type&&function(e,t){var n,r=e.key,i=e.styleReference,o=e.styleOverrides,a=e.rtl,s=e.settings,l=e.style,c=t.scaleKey,u=t.theme,d="".concat(c,"Range"),f=FM(e,t);if(!f.show)return!1;var h=RM({theme:u,key:i,styleOverrides:o}),p=f.layout.dock,m="right"===p||"left"===p,g=null===(n=t.scales)||void 0===n?void 0:n[d];return m&&g&&(g.invert=!0),bk(!0,f,{type:"legend-seq",key:"".concat(r,"-seq"),settings:{fill:c,major:d,length:1,tick:{fill:h.label.color,fontSize:h.label.fontSize,fontFamily:h.label.fontFamily},title:{anchor:!a||"top"!==f.layout.dock&&"bottom"!==f.layout.dock?void 0:"right",padding:parseFloat(f.settings.title.fontSize)||16}}},{settings:s,style:l})}(e,t)}(e,t,n&&n.navigationDisabled);return r.push(o),o&&"legend-cat"===o.type&&(i.push(function(e){var t=e.key,n=e.requireFailure,r=e.recognizeWith,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:tap-".concat(t),type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"legendtap",interval:10,pointers:1,enable:function(e,n){var r;if(!n)return!0;if(null!=i&&null!==(r=i.interact)&&void 0!==r&&r.enabled&&!i.interact.enabled())return!1;if(!this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((function(e){return e.key==="".concat(t,"-cat")})))return!1;var o=n.srcEvent.target;return!!(o&&o.hasAttribute("data-action")&&o.hasAttribute("data-component-key"))||!(!o||!o.childNodes[0]||"BUTTON"!==o.childNodes[0].nodeName)}},events:{legendtap:function(e){e.preventDefault();var t=e.srcEvent.target;t&&t.hasAttribute("data-action")&&t.hasAttribute("data-component-key")&&this.chart.component(t.getAttribute("data-component-key")).emit(t.getAttribute("data-action"))}}}}(e,n)),i.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,n=e.key,r=e.requireFailure,i=e.recognizeWith,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:pan-".concat(n),type:"Pan",requireFailure:r,recognizeWith:i,options:{event:t,pointers:1,threshold:10,enable:function(e,r){var i;return this.started===t||!r||!(null!=o&&null!==(i=o.interact)&&void 0!==i&&i.enabled&&!o.interact.enabled())&&this.chart.componentsFromPoint({x:r.center.x,y:r.center.y}).some((function(e){return e.key==="".concat(n,"-cat")}))}},events:$S($S($S({},"".concat(t,"start"),(function(e){e.preventDefault(),this.started!==t&&(this.started=t,this.chart.component("".concat(n,"-cat")).emit("panstart",e))})),"".concat(t,"move"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panmove",e)})),"".concat(t,"end"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panend",e),this.started=!1}))}}(e,n))),{interactions:i,components:r}}function BM(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.auto,n=function(e){var t=US({hc:null,colorProps:null,layout:null,theme:null},e),n={},r={auto:function(){return{mode:"primary"}},getDimensionColorMap:function(){return Promise.reject()},getMeasure:function(){return Promise.reject()},getAttributeDimension:function(){return Promise.reject()}},i={auto:function(e){return e?(r.auto=e,i):r.auto},getDimensionColorMap:function(e){return e?(r.getDimensionColorMap=e,i):r.getDimensionColorMap},getAttributeDimension:function(e){return e?(r.getAttributeDimension=e,i):r.getAttributeDimension},getMeasure:function(e){return e?(r.getMeasure=e,i):r.getMeasure},set:function(e){var i;if(!e.colorProps)throw new Error('Missing "colorProps"');if(bk(t,e),(n={pic:t.picasso.data("q")({data:t.hc,config:{localeInfo:t.localeInfo}}),input:t.colorProps}).input.auto){var o=r.auto(e.layout);n.input=bk(!0,{},n.input,o,{auto:!1});var a=t.theme?t.theme.getDataColorPalettes():[];a[0]&&(n.input.dimensionScheme=a[0].key);var s=0;n.input.byDimDef&&+n.input.byDimDef.activeDimensionIndex>=0&&(s=+n.input.byDimDef.activeDimensionIndex),t.hc&&t.hc.qDimensionInfo[s]&&t.hc.qDimensionInfo[s].coloring&&t.hc.qDimensionInfo[s].coloring.colorMapRef&&n.input.byDimDef&&(n.input.byDimDef.type="libraryItem",n.input.byDimDef.key=t.hc.qDimensionInfo[s].coloring.colorMapRef)}null!==(i=n.input.measureOverrides)&&void 0!==i&&i.every((function(e){return!e||!e.on}))&&(n.input=bk(!1,{},n.input,{measureOverrides:null}))},palettes:function(){if(!n.palettes){var e=t.theme,r=[];(e&&e.getDataColorPickerPalettes()||[]).forEach((function(e){r.push({key:"ui",colors:e.colors})})),n.palettes=r}return n.palettes},getAuxiliaryData:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/qHyperCubeDef";if(!e.auxiliary&&!/qAttrDimInfo/.test(e.field))return Promise.resolve();var i=(e.auxiliary||{}).key;if("measure"===e.fieldType)return r.getMeasure(i,t).catch((function(){}));if("dimension"===e.fieldType){var o="".concat(n,"/").concat(e.field).replace("qDimensionInfo","qDimensions").replace("qAttrDimInfo","qAttributeDimensions");return Promise.all([/qAttrDimInfo/.test(e.field)?r.getAttributeDimension(o,t).catch((function(){})):Promise.resolve(),i?r.getDimensionColorMap(i,t).catch((function(){})):Promise.resolve()])}return Promise.resolve()},getAuxiliarySettings:function(e,r){var i=this;return e.auxiliary||/qAttrDimInfo/.test(e.field)?(this.palettes(),this.getAuxiliaryData(e,r).then((function(r){if(!r)return{};if("measure"===e.fieldType){if(r.coloring&&r.coloring.gradient){var o=n.pic.field(e.field);return SM(i,r.coloring.gradient,e,o)}return{}}if("dimension"===e.fieldType){var a={nil:e.nil,others:e.others},s=r[0],l=r[1]?r[1].colorMap:null;if(s){var c=t.picasso.data("q")({data:{qDimensionInfo:[n.pic.field(e.field).raw(),n.pic.field(e.field).raw()],qMeasureInfo:[],qDataPages:s,qInterColumnSortOrder:[0,1],qMode:"S"}});a.legendDataset=c}return l?function(e,t,n,r){var i=r.external,o=r.field,a=US({},e);bk(a,xk(o,o.raw().qCardinal));var s=i.theme?i.theme.getDataColorPalettes()[0]:null;return t.nul&&(a.nil=n.resolveUIColor(t.nul)),t.oth&&(a.others=n.resolveUIColor(t.oth)),t.usePal?(a.palettes={categorical:t.pal},s&&!t.pal&&(a.palettes.categorical=s.key,bk(a,xk(o)))):!1===t.autoFill&&t.single?a.range=[n.resolveUIColor(t.single)]:t.autoFill&&(s&&(a.palettes={categorical:s.key}),bk(a,xk(o))),t.colors&&t.colors.length&&(a.explicit=function(e,t,n){for(var r={},i=0;i<e.length;i+=1)r[e[i].value]=e[i].baseColor;var o=[];return{domain:function(e){var i=e.data,a=[];o=[];for(var s=0;s<i.items.length;s++){var l=i.items[s],c=(l.text||l).label;r[c]&&-1===a.indexOf(l.value)&&(a.push(l.value),o.push(t.resolveUIColor(r[c])))}return a.push(-3,-2),o.push(n.others),o.push(n.nil),a},range:function(){return o}}}(t.colors,n,a)),a}(a,l,i,{external:t,field:n.pic.field(e.field)}):a}return{}}))):Promise.resolve()},resolveUIColor:function(e){if(e.index<0||void 0===e.index)return e.color;if(void 0===n.uiPalette&&(n.uiPalette=this.palettes().filter((function(e){return"ui"===e.key}))[0]||!1),!n.uiPalette)return e.color;var t="none"===n.uiPalette.colors[0]?e.index:e.index-1;return void 0===n.uiPalette.colors[t]?e.color:n.uiPalette.colors[t]},settings:function(){if(this.palettes(),!n.settings){var e={primary:"steelblue",others:"#aaa",nil:"#ddd"},r=t.theme;r&&(e=US(US({},e),r.getDataColorSpecials())),n.settings=bk(e,DM(this,n,t,e))}return n.settings}};return i}(e.resources).auto(t||function(){return{mode:"byDimension",persistent:!1,useDimColVal:!0,byDimDef:{activeDimensionIndex:0,type:"expression",label:""}}}).getDimensionColorMap((function(e,t){return function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.dimValsData?Promise.resolve({colorMap:n.snapshotData.content.chartData.dimValsData}):Promise.reject():r&&r.getObject?r.getObject("ColorMapModel_".concat(e)).then((function(e){return e.getLayout()})):Promise.reject()}(e,{layout:t.layout,app:t.app})})).getMeasure((function(e,t){return function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.measureGradient?Promise.resolve({coloring:{gradient:n.snapshotData.content.chartData.measureGradient}}):Promise.reject():r&&r.getMeasure?r.getMeasure(e).then((function(e){return e.getMeasure()})):Promise.reject()}(e,{layout:t.layout,app:t.app})})).getAttributeDimension((function(e,t){return function(e,t){var n=t.layout,r=t.model,i=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.legendDataPage?Promise.resolve(n.snapshotData.content.chartData.legendDataPage):Promise.reject():r&&r.session&&i?r.getHyperCubeData(e,[{qHeight:100,qLeft:0,qTop:0,qWidth:2}]).catch(NM):Promise.reject()}(e,{layout:t.layout,model:t.model,app:t.app})}));return n.getSnapshotData=TM,n}({resources:e}),n={},r={},i=function(e){return r.settings||(e||console.warn("settings() called before auxiliarySettings()"),r.settings=t.settings()),r.settings},o={config:function(i){if(n=US({},i),r={},!n.key)throw new Error("Missing key");t.set(US(US({},e),n))},auto:function(e){return e?(t.auto(e),o):t.auto()},getAuxiliarySettings:function(e){return r.auxiliarySettings?Promise.resolve(r.auxiliarySettings):t.getAuxiliarySettings(i(!0),e).then((function(e){return r.auxiliarySettings=e||{},r.settings=US(US({},r.settings),r.auxiliarySettings),r.scales=void 0,r.color=void 0,r.auxiliarySettings}))},getAuxiliaryData:function(){return t.getAuxiliaryData(i())},getSnapshotData:function(e){var n=i();return t.getAuxiliaryData(n,e).then((function(e){return t.getSnapshotData(n,e)}))},resolveUIColor:function(e){return t.resolveUIColor(e)},settings:function(){var e=i();return{mode:e.mode,type:e.type,label:e.label,field:e.field,fieldType:e.fieldType,nil:e.nil,others:e.others,primary:e.primary}},settingsForMeasure:function(e){var t;return(null===(t=i().measureOverrides)||void 0===t?void 0:t[e])||this.settings()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return function(e,t){var n=t.isMeasureSelectionLocked;return"field"!==e.mode||("dimension"===e.fieldType?e.isFieldLocked:"measure"!==e.fieldType||n)}(i(),{isMeasureSelectionLocked:t})},palettes:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorProps,n=e.coloring,r=e.theme,i=[];if(n&&n.palettes&&r){var o=n.palettes.categorical||t.dimensionScheme,a=r.getDataColorPalettes().filter((function(e){return e.key===o}))[0]||r.getDataColorPalettes()[0];o&&a&&i.push({key:"categorical",colors:a.colors});var s=n.palettes.metric||t.measureScheme,l=r.getDataColorScales().filter((function(e){return e.key===s}))[0]||r.getDataColorScales()[0];if(l){var c=l.colors[0]?l.colors:[[]].concat(XS(l.colors.slice(1)));c=Array.isArray(c[0])?c.map((function(e){return e.slice().reverse()})):c.slice().reverse(),i.push({key:"quant",colors:c})}}return i}({coloring:i(),colorProps:n.colorProps,theme:n.theme})},scales:function(){return r.scales=r.scales||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.hc,n=e.coloring,r=e.rtl,i=e.key,o=e.source,a=e.picasso,s={},l=i;if(n){var c={override:!0,domain:n.explicit&&"function"==typeof n.explicit.domain?n.explicit.domain:[].concat(XS((n.explicit||{}).domain||[]),[-3,-2]),range:n.explicit&&"function"==typeof n.explicit.range?n.explicit.range:[].concat(XS((n.explicit||{}).range||[]),[n.others,n.nil])};if("field"===n.mode){if("dimension"===n.fieldType){var u,d=function(e){var t=e.hc,n=e.source,r=e.coloring,i={data:{extract:[{source:"dummy",field:0,filter:function(){return i.expando=t.qDataPages[0]?t.qDataPages[0].qArea.qTop:0,!1}},{source:n,field:r.field,trackBy:r.valueAccessor,reduce:"first",props:{row:{reduce:function(){return i.expando++}},text:{value:function(e){return e.qText},reduce:"first"}}}]},expando:0};return i}({hc:t,source:o,coloring:n}).data;if(n.legendDataset){var f=0,h={};a.data("q")({data:t}).extract({field:n.field,trackBy:n.valueAccessor,reduce:function(e){var t=e[0];return h[t]=f++,e[0]}}),u={source:"attrDim",extract:{field:"qDimensionInfo/0",filter:function(e){return e.qElemNumber>=0},props:{row:{value:function(e){return h[e.qElemNumber]}}}}}}var p={data:d,range:n.range,domain:n.domain,explicit:c,type:"categorical-color",label:function(e){return e.datum.text&&e.datum.text.value?e.datum.text.value:e.datum.label}};s[l]=p,u&&(s["".concat(l,"Legend")]=US(US({},p),{},{data:u})),t&&t.qHasOtherValues&&u&&((u||p.data).amend=[{label:t.qDimensionInfo[0].othersLabel,source:{key:"qHyperCube",field:"qDimensionInfo/0"},row:{value:-3},value:-3}])}else if("measure"===n.fieldType){var m={data:{field:n.field},min:n.min,max:n.max};s[l]=bk({},m,{type:"categorical"===n.type?"threshold-color":"sequential-color",range:n.range,domain:n.domain,invert:n.reverse}),"sequential-color"===s[l].type&&(s["".concat(l,"Range")]=bk({},m,{invert:!!r}))}else if("color"!==n.type)throw new Error("UNUSED FIELD")}else if("dimension"===n.mode){var g={data:t.qDimensionInfo.map((function(e,t){return t})),label:function(e){return t.qDimensionInfo[e.datum.value].qFallbackTitle},explicit:c,type:"categorical-color"};s[l]=g}else if("measure"===n.mode){var y={data:t.qMeasureInfo.map((function(e,t){return t})).filter((function(e){var t;return!(null!==(t=n.explicit)&&void 0!==t&&null!==(t=t.exclude)&&void 0!==t&&t.includes(e))})),label:function(e){return t.qMeasureInfo[e.datum.value].qFallbackTitle},explicit:c,type:"categorical-color"};s[l]=y}}return s}({hc:n.hc,coloring:i(),key:n.key,source:n.source,picasso:e.picasso}),r.scales},color:function(){return r.color=r.color||function(e){var t=e.coloring,n=e.scales,r=e.key,i=OM(r),o=OM("".concat(r,"IsAnOther")),a=function(e,t){var r=e.fieldType,a=e.invalid,s=e.mode,l=e.nil,c=e.others,u=e.primary,d=e.type;return a?function(e){return _M(e)||o(e)?c:l}:n[t]?function(e){return _M(e)?c:AM(e)||-2===i(e)&&"dimension"===r||"NaN"===i(e)?l:o(e)?c:e.resources.scale(t)(i(e))||c}:"constant"===s?function(e){return _M(e)||o(e)?c:AM(e)?l:u}:"color"===d?function(e){return _M(e)||o(e)?c:AM(e)?l:i(e)||c}:null},s=a(t,r);if(t.measureOverrides){var l=OM("".concat(r,"MeasureIdx")),c=t.measureOverrides.map((function(e){return e&&a(e)}));return function(e){var t=l(e);return c[t]?c[t](e):s(e)}}return s}({coloring:i(),scales:this.scales(),key:n.key}),r.color},datumProps:function(e){return function(e){var t,n,r=e.hc,i=e.coloring,o=e.scales,a=e.key,s=e.addMeasureIx,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=a,u=i.nil;"field"===i.mode&&i.field?t=i.field:o[a]&&"field"===i.mode&&(t=o[a].data.field||i.field),t?(n={field:t,reduce:"first"},"color"===i.type&&(n.value=function(e){return"NaN"!==e.qNum?function(e){return"rgba(".concat([(16711680&e)>>16,(65280&e)>>8,255&e,((4278190080&e)>>>24)/255].join(","),")")}(e.qNum):e.qText&&Hk(e.qText)?e.qText:u})):"dimension"===i.mode?n=void 0!==i.field?i.field:r.qDimensionInfo.length-1:"measure"===i.mode&&(n=l);var d=$S({},c,n);return r.qDimensionInfo.length>1&&(d["".concat(c,"IsAnOther")]={fields:r.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return-1!==e.indexOf(-3)}}),s&&(d["".concat(c,"MeasureIdx")]=l),d}({coloring:this.settingsForMeasure(e),scales:this.scales(),key:n.key,hc:n.hc,addMeasureIx:i().measureOverrides},e)},data:function(){var e=i(),t={key:"dummy",data:[["field"],["a"]]};return e.legendDataset?[t,{type:"q",key:"attrDim",data:e.legendDataset.raw(),config:{localeInfo:n.localeInfo}}]:[t]},legend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,r=e.key,o=e.viewState,a=e.chart,s=e.rtl,l=e.styleReference,c=void 0===l?"object.legend":l,u=e.styleOverrides,d=e.settings,f=void 0===d?{}:d,h=e.style,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return jM({eventName:t,key:r,rtl:s,viewState:o,chart:a,styleReference:c,styleOverrides:u,settings:f,style:void 0===h?{}:h},{legendProps:n.legendProps,scaleKey:n.key,coloring:i(),theme:n.theme,hc:n.hc,scales:this.scales()},p)}};return o}var HM=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function VM(e){var t=e.qHyperCube,n=t.qDimensionInfo,r=t.qMeasureInfo,i=n.some(HM),o=r.some(HM),a=e.color.useBaseColors;return"measure"===a&&!o||"dimension"===a&&!i?"off":a}var $M=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function WM(e){var t,n=e.qHyperCube.qDimensionInfo.some($M),r=e.qHyperCube.qMeasureInfo.some($M),i=n?"dimension":void 0;return{mode:"primary",useBaseColors:null!==(t=null!=i?i:r?"measure":void 0)&&void 0!==t?t:"off",paletteColor:null}}var UM=function(){};function YM(e){var t,n,r,i,o=e.picasso,a=e.model,s=e.app,l=e.translator,c=e.layoutService,u=void 0===c?void 0:c,d=e.createConfig,f=void 0===d?UM:d,h=e.config,p=void 0===h?{}:h,m=e.custom,g=void 0===m?{}:m,y=p.localeInfo,v=p.key,b=p.theme,x=void 0===b?void 0:b,w=p.auto,S=void 0===w?void 0:w,k=p.definitionPath,M=null==u||null===(t=u.getLayout)||void 0===t?void 0:t.call(u),C={theme:x,key:v,localeInfo:y,layout:M,hc:null==u||null===(n=u.getHyperCube)||void 0===n?void 0:n.call(u),legendProps:null==u||null===(r=u.getLayoutValue)||void 0===r?void 0:r.call(u,"legend"),colorProps:US(US({},null==u||null===(i=u.getLayoutValue)||void 0===i?void 0:i.call(u,"color")),{},{useBaseColors:M?VM(M):void 0})},E=BM({picasso:o,model:a,app:s,translator:l,auto:S});!1!==S&&E.auto((function(e){return S?S({layout:e,defaultAuto:WM}):WM(e)}));var q=!1,D={getColor:function(){return E.color()},getPaletteColor:function(e){var t=e.index,n=e.color;return E.resolveUIColor({index:t,color:n})},getData:function(){return E.data()},getDatumProps:function(e){return E.datumProps(e)},getSnapshotData:function(){return E.getSnapshotData(k)},getSettingsForMeasure:function(e){return E.settingsForMeasure(e)},getSettings:function(){return E.settings()},getLegend:function(e,t){return E.legend(e,t)},getScales:function(){return E.scales()},getPalettes:function(){return E.palettes()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return E.isSelectionLocked({isMeasureSelectionLocked:t})},isInitialized:function(){return q},custom:US({},g),initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).createConfig,t=(void 0===e?f:e)({getUseBaseColors:VM}),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return US(US(US({},e),t),{},{colorProps:US(US({},e.colorProps),t.colorProps||{})})}(C,t);return E.config(n),E.getAuxiliarySettings(k).then((function(){q=!0}))}};return D}var KM="center",GM="bottom",XM=[{key:"NoDataExist",alignment:KM,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:KM,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:KM,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:KM},{key:"DataRangeIncludingZero",alignment:GM},{key:"LimitedData",alignment:GM},{key:"NegativeOrZeroValues",alignment:GM}].reduce((function(e,t){return e[t.key]=t,e}),{}),JM=function(){return!1};function ZM(e){var t,n=e.layout,r=e.config,i=void 0===r?{}:r,o={disclaimer:void 0,isSuppressing:!1,showDisclaimer:null!==(t=i.args)&&void 0!==t&&t.layoutService?i.args.layoutService.getLayoutValue("showDisclaimer"):null==n?void 0:n.showDisclaimer};return{initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).args;o.disclaimer=function(e){var t=e.args,n=e.disclaimers,r=[];return Object.keys(n).forEach((function(e){var i=XM[e],o=n[e];o&&(o.condition||(null==i?void 0:i.condition)||JM)(t)&&r.push({key:(null==i?void 0:i.translationKey)||(null==i?void 0:i.key)||e,alignment:o.alignment||(null==i?void 0:i.alignment)||GM})})),r.find((function(e){return e.alignment===KM}))||r[0]}({args:US(US({layout:n},i.args),e),disclaimers:i.disclaimers||{}}),o.isSuppressing=!(!o.disclaimer||o.disclaimer.alignment!==KM)},getDisclaimer:function(){return o.isSuppressing?o.disclaimer:!1===o.showDisclaimer?void 0:o.disclaimer},getHasSuppressingDisclaimer:function(){return o.isSuppressing}}}function QM(e){var t=e.chart,n=e.logicalSize;if(n)return n;var r=t?t.element.getBoundingClientRect():{};return{width:r.width,height:r.height}}var eC=[{key:"FULL",size:{width:550,height:450}},{key:"MEDIUM",size:{width:400,height:220}},{key:"SMALL",size:{width:300,height:150}},{key:"XSMALL",size:{width:150,height:75}}];function tC(e){var t=e.width,n=e.height,r=eC.filter((function(e){return t>=e.size.width&&n>=e.size.height})).shift();return r?r.key:"SPARK"}var nC={left:"right",right:"left",top:"bottom",bottom:"top",near:"far",far:"near"};function rC(e){var t=e.orientation,n=e.dock,r=e.btt,i=e.rtl,o="horizontal"===t?function(e){return"bottom"===e||"near"===e?"bottom":"top"}(n):function(e,t){var n="left"===e||"near"===e?"left":"right";return t?nC[n]:n}(n,i),a=function(e,t,n){return"vertical"===e?t?"bottom":"top":n?"right":"left"}(t,r,i);return{current:o,opposite:nC[o],start:a,end:nC[a]}}function iC(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=i.logicalSize,a=void 0!==o&&o,s=i.rtl,l=void 0!==s&&s,c={chart:{size:void 0,mode:void 0},x:{dock:void 0,opposite:void 0,size:void 0},y:{dock:void 0,opposite:void 0,size:void 0}},u={type:"x-y",config:US({},i),meta:c,update:function(e){c.chart.size={width:e.width,height:e.height},c.chart.mode=tC(e);var t=rC({orientation:"horizontal",dock:n.getLayoutValue("xAxis.dock"),btt:!1,rtl:l}),r=t.current,i=t.opposite;c.x.dock=r,c.x.opposite=i,c.x.size=e.width;var o=rC({orientation:"vertical",dock:n.getLayoutValue("yAxis.dock"),btt:!0,rtl:l}),a=o.current,s=o.opposite;c.y.dock=a,c.y.opposite=s,c.y.size=e.height}};return u.update(QM({chart:t,logicalSize:a})),u}var oC="vertical",aC="horizontal";function sC(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o,s=i.logicalSize,l=void 0!==s&&s,c=i.rtl,u=void 0!==c&&c,d=a.fallback===oC?oC:aC,f=!!a.invert,h=a.measureAxes||[{ref:"measureAxis",name:"minor"}],p={chart:{orientation:void 0,size:void 0,mode:void 0},major:{orientation:void 0,dock:void 0,opposite:void 0,size:void 0}},m={type:"major-minor",config:US({},i),meta:p,update:function(e){p.chart.orientation=n.getLayoutValue("orientation",d),p.chart.size={width:e.width,height:e.height},p.chart.mode=tC(e),p.major.orientation=function(e){var t=e.chartOrientation,n=e.invert;return e.layoutService.meta.isContinuous?aC:n?t===oC?aC:oC:t}({layoutService:n,chartOrientation:p.chart.orientation,invert:f});var t=rC({orientation:p.major.orientation,dock:n.getLayoutValue("dimensionAxis.dock"),btt:!1,rtl:u}),r=t.current,i=t.opposite;p.major.dock=r,p.major.opposite=i,p.major.size=p.major.orientation===oC?e.height:e.width,h.forEach((function(t){var r={};r.orientation=p.major.orientation===oC?aC:oC;var i=rC({orientation:r.orientation,dock:n.getLayoutValue("".concat(t.ref,".dock")),btt:!0,rtl:u}),o=i.current,a=i.opposite,s=i.start,l=i.end;r.dock=o,r.opposite=a,r.start=s,r.end=l,r.size=r.orientation===oC?e.height:e.width,p[t.name]=r}))}};return m.update(QM({chart:t,logicalSize:l})),m}function lC(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o;return("x-y"===a.type?iC:sC)({chart:t,layoutService:n,config:i,typeConfig:a})}function cC(e,t,n){if(void 0===e||void 0===t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(void 0===i[a])return n;i=i[a]}return i}var uC=["__proto__","constructor"];function dC(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),i=r[r.length-1];if(!uC.some((function(e){return r.includes(e)}))){for(var o=e,a=0;a<r.length-1;++a){var s=r[a];void 0===o[s]&&(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}}}function fC(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}function hC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=fC();return function(r){var i=t(r);return n.has(i)?n.get(i):n.set(i,e(r))}}function pC(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,o)}),n)}}function mC(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s;var c=Date.now()-o,u=function(){o=Date.now(),r=0,e.apply(t,n)};r||(c>=i?u():r=setTimeout(u,i-c))}}var gC={ERROR_CODES:[7005],DIMENSION:"qDimensionInfo",MEASURE:"qMeasureInfo"},yC=function(e,t){return e[t].reduce((function(e,t,n){var r;return r=t,gC.ERROR_CODES.some((function(e){var t;return e===(null===(t=r.qError)||void 0===t?void 0:t.qErrorCode)}))?e.filtered.push(n):e.reduced.push(t),e}),{reduced:[],filtered:[]})};function vC(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[]).map((function(e){var t,n=null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal;if(n)return n;var r=e.qStateCounts||{},i=r.qLocked,o=void 0===i?0:i,a=r.qOption,s=void 0===a?0:a,l=r.qSelected;return o+s+(void 0===l?0:l)}))}function bC(e){switch(e.qHyperCube.qMode){case"S":return function(e){var t=e.qHyperCube.qSize;return{refs:{dataPages:"qHyperCube.qDataPages"},size:{x:t.qcx,y:t.qcy,dimensions:vC(e)}}}(e);case"K":return function(e){var t=vC(e);return{refs:{dataPages:"qHyperCube.qStackedDataPages"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);case"T":return function(e){var t=vC(e);return{refs:{dataPages:"qHyperCube.qTreeDataPages"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);default:throw new Error("Mode not supported")}}function xC(e){var t=e.source,n=e.metaAdditionsFn,r=e.experimental,i=void 0===r?{filter:!1}:r,o=bk(!0,{},t),a=i.filter?function(e){var t=e.qHyperCube,n=yC(t,gC.DIMENSION),r=n.reduced,i=n.filtered;t[gC.DIMENSION]=r;var o=yC(t,gC.MEASURE),a=o.reduced,s=o.filtered;return t[gC.MEASURE]=a,{dimensions:i,measures:s}}(o):{dimensions:[],measures:[]},s=bC(o),l=function(){var e=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,c=a.qMode,u=s.length,d=l.length,f=US({mode:{S:"S"===c,P:"P"===c,K:"K"===c,T:"T"===c},dimensionCount:u,measureCount:d,hasMultipleDimensions:u>1,hasMultipleMeasures:d>1,isOneDimensional:1===u,isTwoDimensional:2===u},o);return US(US({},f),r({layout:t,meta:f}))}({layout:o,additionsFn:n,additionsProps:{size:s.size}});return e.filteredFields=a,e},c={refs:US({},s.refs),meta:l(),getLayout:function(){return o},getLayoutValue:function(e,t){return cC(o,e,t)},setLayoutValue:function(e,t){dC(o,e,t),s=bC(o),c.meta=l()},getHyperCube:function(){return o.qHyperCube},getHyperCubeValue:function(e,t){return cC(o.qHyperCube,e,t)},setHyperCubeValue:function(e,t){dC(o.qHyperCube,e,t),s=bC(o),c.meta=l()},getDataPages:function(){return cC(o,s.refs.dataPages)},setDataPages:function(e){dC(o,s.refs.dataPages,e),c.meta=l()}};return c}function wC(e){var t=e.originalArray,n=e.newArray,r=e.matchKey;return Array.isArray(t)&&t.length?(n.forEach((function(e){var n=-1;t.some((function(t,i){return t[r]&&t[r]===e[r]&&(n=i),n})),n>-1?t[n]=e:t.push(e)})),t):n}function SC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kC(Object(n),!0).forEach((function(t){SC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var CC=Object.prototype.hasOwnProperty,EC=Object.prototype.toString,qC=Object.defineProperty,DC=Object.getOwnPropertyDescriptor,TC=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===EC.call(e)},NC=function(e){if(!e||"[object Object]"!==EC.call(e))return!1;var t,n=CC.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&CC.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||CC.call(e,t)},OC=function(e,t){qC&&"__proto__"===t.name?qC(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},AC=function(e,t){if("__proto__"===t){if(!CC.call(e,t))return;if(DC)return DC(e,t).value}return e[t]},_C=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=AC(s,n),s!==(i=AC(t,n))&&(u&&i&&(NC(i)||(o=TC(i)))?(o?(o=!1,a=r&&TC(r)?r:[]):a=r&&NC(r)?r:{},OC(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&OC(s,{name:n,newValue:i}));return s};function LC(e,t,n,r){if(!e)return-1;const i=n.cache,o=e.origin?e.origin():null;o&&(e=o);let a=i.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<i.wrappedFields.length;t++)if(l=i.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),s=i.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(r)&&r.some(((e,t)=>e!==t))){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function IC(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function RC(e){let{cache:t,f:n,mainCell:r,p:i,page:o,rowIdx:a,row:s,sourceKey:l,target:c,targetProp:u,columnOrder:d}=e,f=r;if(i.field&&i.field!==n){const e=LC(i.field,o,{cache:t},d);if(-1===e)return;f=_C({qRow:a},e(s))}c[u]=IC(i,f,{key:l})}function PC(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let e=0;e<i.length;e++)if(void 0!==i[e].field){const a=t.raw(),s=t.key(),l="object"==typeof i[e].field?i[e].field:t.field(i[e].field),{props:c,main:u}=r.normalizeConfig(i[e],t),d=Object.keys(c),f=!!i[e].trackBy,h=typeof i[e].trackBy,p={},m=[],g=[];for(let t=0;t<a.qDataPages.length;t++){const o=LC(l,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==o)for(let y=0;y<a.qDataPages[t].qMatrix.length;y++){const v=a.qDataPages[t].qArea.qTop+y,b=_C({qRow:v},o(a.qDataPages[t].qMatrix[y])),x=IC(u,b,{key:s});if(!u.filter||u.filter(b)){for(let e=0;e<d.length;e++){const r=c[d[e]];let i=r.fields||[r];r.fields&&(x[d[e]]=[]);for(let o=0;o<i.length;o++)RC({cache:n,f:l,mainCell:b,p:i[o],prop:d[e],page:a.qDataPages[t],rowIdx:v,row:a.qDataPages[t].qMatrix[y],sourceKey:s,target:r.fields?x[d[e]]:x,targetProp:r.fields?o:d[e],columnOrder:a.qColumnOrder});if(r.fields){const t=x[d[e]].map((e=>e.value)),n=x[d[e]].map((e=>e.label));x[d[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(x[d[e]].value)}}}f&&r.track({cfg:i[e],itemData:b,obj:x,target:m,tracker:p,trackType:h}),g.push(x)}}}const y=f?r.collect(m,{main:u,propsArr:d,props:c}):g;o=[...o,...y]}return o}function zC(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function FC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=BC)):void 0===t&&(t=jC);for(var n,r,i,o,a,s=new $C(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new $C(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(VC)}function jC(e){return e.children}function BC(e){return Array.isArray(e)?e[1]:null}function HC(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function VC(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function $C(e){this.data=e,this.depth=this.height=0,this.parent=null}function WC(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}$C.prototype=FC.prototype={constructor:$C,count:function(){return this.eachAfter(zC)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return FC(this).eachBefore(HC)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};var UC={depth:-1},YC={},KC={};function GC(e){return e.id}function XC(e){return e.parentId}function JC(e){let t=e.length;if(t<2)return"";for(;--t>1&&!ZC(e,t););return e.slice(0,t)}function ZC(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function QC(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,i=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(i)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++){let n=QC(r,i[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(i)){const t=new Array(i.length);r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++)t[e]=QC(r,i[e]);return t}n[e]in i&&(i=i[n[e]])}return i}function eE(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let i=0;i<e.length;i++)e[i].children&&e[i].children.length&&(r=[...r,...eE(e[i].children,t-1,n)]);return r}function tE(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const r=Math.max(0,Math.min(100,t-e));return e=>eE(e.children,r-1,n)}return!1}const nE=/^qDimensionInfo(?:\/(\d+))?/,rE=/^\/?qMeasureInfo\/(\d+)/,iE=/\/qAttrExprInfo\/(\d+)/,oE=/\/qAttrDimInfo\/(\d+)/;function aE(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function sE(e,t){let{cube:n}=t;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),i=!1,o=-1,a=-1,s=-1,l=-1,c=-1,u=-1,d=r;const f=n.qEffectiveInterColumnSortOrder,h=aE(n);return nE.test(d)&&(i=!0,o=+nE.exec(d)[1],d=r.replace(nE,"")),rE.test(d)&&("K"===n.qMode?c=+rE.exec(d)[1]:f&&-1!==f.indexOf(-1)?(c=+rE.exec(d)[1],u=0):u=+rE.exec(d)[1],d=d.replace(rE,"")),d&&(oE.exec(d)?s=+oE.exec(d)[1]:iE.exec(d)&&(a=+iE.exec(d)[1])),l=i?"S"===n.qMode?h[o]:f?f.indexOf(o):o:f&&-1!==f.indexOf(-1)?f.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:u,attrDimIdx:s,attrIdx:a}}function lE(e,t){let n,r,i=tE(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:i,attrFn:r,valueFn:n}}function cE(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function uE(e){let{propsArr:t,props:n,item:r,itemData:i,ret:o,sourceKey:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields||[s];let c,u;s.fields&&(c=[],u=[]);for(let n=0;n<l.length;n++){const d=l[n];let f,h,p,m,g,y;if("primitive"===d.type?(p=d.value,y=String(d.value)):("function"==typeof d.value&&(f=e=>d.value(e,r)),"function"==typeof d.label&&(h=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),f&&(p=g.map(f),f=null),h&&(y=g.map(h),h=null),p=d.reduce?d.reduce(p):p,y=d.reduceLabel?d.reduceLabel(y,p):String(p)):(p=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),y=p)):(p=i,y=i)),s.fields){const e=f?f(p):p;c.push(e),u.push(h&&null!=y?h(y):null!=y?y:String(e))}else{const n=f?f(p):p;o[t[e]]={value:n,label:h?h(y):null!=y?y:String(n)},d.field&&(o[t[e]].source={field:d.field.key(),key:a})}}c&&(o[t[e]]={value:"function"==typeof s.value?s.value(c,r):c,label:"function"==typeof s.label?s.label(u,r):u})}}const dE=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",i="K"===e.qMode?"qSubNodes":"qNodes",o=QC(r,e);return o&&o[0]?(t.tree=FC(o[0],n.children||(e=>e[i])),t.tree):null};function fE(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map(((e,t)=>t))}(e),r=e.fields(),i=e.fields().filter((e=>"dimension"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),o=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),a={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r="__root",l=!1;for(let e=0;e<i.length;e++){var s;const t=n[i[e]],o="".concat(r,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);a[o]||(a[o]=MC({__id:o,__parent:r,qValues:[]},t),l=!0),r=o}if(l)for(let e=0;e<o.length;e++){const t=n[o[e]];a[r].qValues.push(t)}}const l=Object.keys(a).map((e=>a[e]));return function(){var e,t=GC,n=XC;function r(r){var i,o,a,s,l,c,u,d,f=Array.from(r),h=t,p=n,m=new Map;if(null!=e){const t=f.map(((t,n)=>function(e){let t=(e=`${e}`).length;return ZC(e,t-1)&&!ZC(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(JC),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(JC(e)),f.push(KC));h=(e,n)=>t[n],p=(e,t)=>n[t]}for(a=0,i=f.length;a<i;++a)o=f[a],c=f[a]=new $C(o),null!=(u=h(o,a,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?YC:c)),null!=(u=p(o,a,r))&&(u+="")&&(c.parent=u);for(a=0;a<i;++a)if(u=(c=f[a]).parent){if(!(l=m.get(u)))throw new Error("missing: "+u);if(l===YC)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(s)throw new Error("multiple roots");s=c}if(!s)throw new Error("no root");if(null!=e){for(;s.data===KC&&1===s.children.length;)s=s.children[0],--i;for(let e=f.length-1;e>=0&&(c=f[e]).data===KC;--e)c.data=null}if(s.parent=UC,s.eachBefore((function(e){e.depth=e.parent.depth+1,--i})).eachBefore(VC),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=WC(e),r):t},r.parentId=function(e){return arguments.length?(n=WC(e),r):n},r.path=function(t){return arguments.length?(e=WC(t),r):e},r}().id((e=>e.__id)).parentId((e=>e.__parent))(l)}const hE=e=>{let{propsArr:t,props:n,cube:r,cache:i,itemDepthObject:o,f:a}=e;for(let e=0;e<t.length;e++){const i=n[t[e]],s=i.fields?i.fields:[i];for(let e=0;e<s.length;e++){const t=s[e];if(t.field!==a){const e=lE(o,sE(t.field,{cube:r}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function pE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=t.raw(),o=t.key(),a="S"===i.qMode?fE(t):dE(i,n,e);if(!a)return null;const s=a.height,l=[];for(let o=0;o<=s;o++){let a=null;if(o>0)if("S"===i.qMode){let e=aE(i)[o-1];a=n.fields[e]}else{let e=i.qEffectiveInterColumnSortOrder[o-1];o>i.qEffectiveInterColumnSortOrder.length&&(e=i.qDimensionInfo.length),a=n.fields[e]}const{props:s,main:c}=r.normalizeConfig(MC(MC({},e),{},{field:a?a.key():void 0}),t),u=Object.keys(s);l[o]={propsArr:u,props:s,main:c};const d=a?sE(a,{cube:i}):{fieldDepth:0};hE({propsArr:u,props:s,cube:i,cache:n,itemDepthObject:d,f:a})}const c=a.copy().descendants(),u=a.descendants();for(let e=0;e<u.length;e++){const t=l[u[e].depth].propsArr,n=l[u[e].depth].props,r=l[u[e].depth].main,i=c[e],a=i.data,s=cE(r,a,{key:o});uE({propsArr:t,props:n,item:i,itemData:a,ret:s,sourceKey:o}),u[e].data=s}return a}function mE(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let a=0;a<i.length;a++)if(void 0!==i[a].field){const s=t.raw(),l=t.key();if(!dE(s,n,e))continue;const c="object"==typeof i[a].field?i[a].field:t.field(i[a].field),{props:u,main:d}=r.normalizeConfig(i[a],t),f=Object.keys(u),h=sE(c,{cube:s}),{nodeFn:p,attrFn:m,valueFn:g}=lE({fieldDepth:0},h);hE({propsArr:f,props:u,cube:s,cache:n,itemDepthObject:h,f:c});const y=!!i[a].trackBy,v=typeof i[a].trackBy,b={},x=[],w=p(n.tree),S=[];for(let e=0;e<w.length;e++){const t=w[e],n=m?m(g(t)):g(t);if(d.filter&&!d.filter(n))continue;const o=cE(d,n,{key:l});uE({propsArr:f,props:u,item:t,itemData:n,ret:o,sourceKey:l}),y&&r.track({cfg:i[a],itemData:n,obj:o,target:x,tracker:b,trackType:v}),S.push(o)}const k=y?r.collect(x,{main:d,propsArr:f,props:u}):S;o=[...o,...k]}return o}var gE,yE,vE=(gE=function(e){
|
|
15
15
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
16
16
|
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.length,h=e.search(/[0-9\-\+#]/),p=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=f-g,v=e.substring(y,y+1),b=y+("."===v||","===v?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(h,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",y=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-y+1)%l)&&b<f-l&&(m+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),p+(n?"-":"")+r+x}},gE(yE={exports:{}}),yE.exports);function bE(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const xE={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},wE=/%\)?$/,SE=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,kE=/^\(oct\)/i,ME=/^\(dec\)/i,CE=/^\(hex\)/i,EE=/^\(bin\)/i,qE=/^\(rom\)/i,DE=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,TE=/#|0/g;function NE(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function OE(e,t,n){const r=bE(e);return n?r:new RegExp(r||"",t)}function AE(e,t,n,r){let i,o,a,s,l,c,u,d,f,h=e.pattern;var p,m;r&&(e.abbreviate=!0),p=t,(m=n)&&(m=bE(m)),p&&(p=bE(p)),f=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),a=h.match(f),a=a?a[0]:"",s=a?h.substr(0,h.indexOf(a)):h,l=a?h.substring(h.indexOf(a)+a.length):"",a||(a=h?"#":"##########"),t&&t===n&&(i=a.split(n),o=i.pop(),a=i.join("")+n+o,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(a=a.replace(OE(c,"g"),t)),u=n,n=".",u&&(a=a.replace(OE(u,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=h.split(u);let y;g[1]&&(y=g[1].match(TE)),e.prefix=s||"",e.postfix=l||"",e.pattern=h,e.maxPrecision=y?y.length:2,e.percentage=wE.test(h),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(OE(t,null,!0),"|").concat(OE(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=u,e.t=t,e.d=n,e.temp=d}class _E{constructor(e,t,n,r,i){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=i||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return xE;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new _E(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],DE.test(e[0])&&(r.positive.isFunctional=!0),e[1]?DE.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?DE.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const i="U"===this.type;r.positive.isFunctional||AE(r.positive,t,n,i),r.negative&&!r.negative.isFunctional&&AE(r.negative,t,n,i),r.zero&&!r.zero.isFunctional&&AE(r.zero,t,n,i)}formatValue(e){let t,n,r,i,o,a,s,l,c,u=this._prepared,d="",f="",h=e;if(isNaN(e))return"".concat(h);if(e=+e,!1===u.pattern)return e.toString();if(0===e&&u.zero)return u=u.zero,u.pattern;if(e<0&&u.negative?(u=u.negative,e=-e):u=u.positive,o=u.d,a=u.t,u.isFunctional)e=function(e,t,n){let r;return SE.test(t)?e=NE(e,Number(/\d{2}/.exec(t)[0]),t,n):kE.test(t)?e=NE(e,8,t,n):ME.test(t)?e=NE(e,10,t,n):CE.test(t)?e=NE(e,16,t,n):EE.test(t)?e=NE(e,2,t,n):qE.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;i>0;)for(n=0;n<a.length;n++)if(a[n]<=i){r+=s[n],i-=a[n];break}for(n=0;n<o;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}(e,u.pattern,o);else{if(u.percentage&&(e*=100),u.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,i,o=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);o<=n&&s<t.length;)s++,o=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?i=r:(n<0&&r<0||!r)&&(o<0&&o-n<=u.maxPrecision?i=o:r<=n&&!(o>0&&-n<=u.maxPrecision)&&(i=r)),i&&(d=this.abbreviations[i],e/=10**i)}if(r=Math.abs(e),t=u.temp,l=u.numericPattern,c=l.split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,c||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=l.split(o)[0];if(n+=o,e=vE(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let i=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=i.length;s<n;s++)i+="0";i&&(e+=o+i)}else 0===t&&(i=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),f=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=vE(l,e)}e=e.replace(u.numericRegex,(e=>e===a?u.groupTemp:e===o?u.decTemp:"")),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return u.prefix+e+f+d+u.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function LE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:i=e=>e}=t;let o,a,s=Object.create(null),l=Object.create(null),c=0,u=0;return o=r?function(){return a=i(...arguments),o.has(a)?o.get(a):o.set(a,e(...arguments))}:t=>(a=i(t),o.has(a)?o.get(a):o.set(a,e(t))),o.set=(e,t)=>(c>=n&&(delete s[l[u]],delete l[u],c--,u++),s[e]=t,l[c]=e,c++,t),o.get=e=>s[e],o.has=e=>e in s,o.clear=()=>{s=Object.create(null),l=Object.create(null),c=0,u=0},o.size=()=>c,o}function IE(e,t,n,r,i){const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new _E(...t)}(i,e,t,n,r),a=LE(o.formatValue.bind(o),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),o.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),o.pattern=e,o.prepare()),o.pattern},s}const RE="D",PE="T",zE="TS",FE=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],jE=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],BE=["January","February","March","April","May","June","July","August","September","October","November","December"],HE=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function VE(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function $E(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class WE{constructor(e,t,n){const r=e||{};r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:FE,qDayNames:jE,qLongMonthNames:BE,qMonthNames:HE}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),t||(t={[PE]:r.qTimeFmt||"hh:mm:ss",[RE]:r.qDateFmt||"YYYY-MM-DD",[zE]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new WE(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=function(e,t){let n,r=function(e){const t=e,n=24*$E(t),r=60*$E(n),i=60*$E(r),o=1e3*$E(i);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(i),f:Math.round(o)}}(e),i=r.d,o=r.h,a=r.m,s=r.s,l=r.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let u="";return n&&(u=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:i,h:o,m:a,s:s,f:l,t:u}}(e,t));const i=(o=this,a=r,{"Y+|y+":{Y:"".concat(Number("".concat(a.year).slice(-2))),YY:VE("".concat(a.year).slice(-2),2),YYY:VE("".concat(a.year).slice(-3),3),def:e=>VE("".concat(a.year),e.length)},"M+":{M:a.month+1,MM:VE("".concat(a.month+1),2),MMM:o.locale_months_abbr[a.month],def:o.locale_months[a.month]},"W+|w+":{W:a.day,WW:VE("".concat(a.day),2),WWW:o.locale_days_abbr[a.day],def:o.locale_days[a.day]},"D+|d+":{D:a.date,def:e=>VE("".concat(a.date),e.length)},"h+|H+":{h:a.h,def:e=>VE("".concat(a.h),e.length)},"m+":{m:a.m,def:e=>VE("".concat(a.m),e.length)},"s+|S+":{s:a.s,def:e=>VE("".concat(a.s),e.length)},"f+|F+":{def(e){let t="".concat(a.f),n=e.length-t.length;if(n>0)for(let e=0;e<n;e++)t+="0";else n<0&&(t=t.slice(0,e.length));return t}},"t{1,2}|T{1,2}":{def(e){let t=a.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var o,a;const s=[];for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&s.push(e);const l=new RegExp(s.join("|"),"g");return t.replace(l,(e=>{let t,n,r;for(n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in i[n])if(t===e||t.toLowerCase()===e){r=i[n][t],void 0===r&&(r=i[n][t.toLowerCase()]);break}return void 0===r&&(r=i[n].def),"function"==typeof r&&(r=r(e)),r}))}}function UE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new WE(...t)}function YE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=UE(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=LE(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function i(e){return"IV"!==t?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function o(e){return e=i(e),r(e)}return o.format=function(e,t){return r.clear(),t=i(t),n.format(t,e)},o.locale=function(i){return n=UE(i,e,t),r=LE(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},o.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},o}function KE(){let e,{meta:t,id:n,key:r,localeInfo:i,fieldExtractor:o,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),u="dimension"===s?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return YE(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",i=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",o="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,i=e.qNumFormat.qDec||i,o=e.qNumFormat.qType||o,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===o)&&(n="#".concat(i,"##"),o="U"),IE(n,r,i,o,t)}(t,i),f="dimension"===s?"first":(e,t)=>d(t),h={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=o(h)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:u,reduceLabel:f,formatter:()=>d,tags:()=>t.qTags};return h}function GE(e,t,n,r,i){return(t[e]||[]).map(((t,o)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(o),s={instance:KE(_C({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},i))};return s.attrDims=GE("qAttrDimInfo",t,n,a,_C({},i,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=GE("qAttrExprInfo",t,n,a,_C({},i,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=GE("qMeasureInfo",t,n,a,_C({},i,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function XE(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const o=XE.util,a={cache:r,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,o),hierarchy:e=>a.hierarchy(e,s,r,o),_cache:()=>r};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(a.extractor=mE,a.hierarchy=pE,a.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(a.extractor=PC,a.pages=i.qDataPages,a.hierarchy=pE):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,o);const l="S"===i.qMode?e=>e.qElemNumber:void 0,c="S"===i.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...GE("qDimensionInfo",i,e,"",_C({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...GE("qMeasureInfo",i,e,"",_C({},a,{value:c,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const u=e=>{e.forEach((e=>{r.allFields.push(e.instance),u(e.measures),u(e.attrDims),u(e.attrExps)}))};return u(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),i=KE(MC({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,o),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(i)})),r.allFields.push(...r.virtualFields),s}const JE=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],ZE=/\/qDimensionInfo(?:\/(\d+))?/,QE=/\/qMeasureInfo\/(\d+)/,eq=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,tq=/\/qAttrExprInfo\/(\d+)/,nq=/\/?qHyperCube/,rq=/\/?qTreeData/,iq=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),oq=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function aq(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,i=t.primarySource,o=[],a={},s=e.isActive();let l=!1;return e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,i=-1,o="",a=e=>e;nq.test(e)?(o="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=iq):rq.test(e)&&(o="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=oq);let s=!0;if(ZE.test(e)&&(r=+ZE.exec(e)[1]),QE.test(e)&&(i=+QE.exec(e)[1]),eq.test(e)){i=-1,r=0;const e=+eq.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(tq.test(e)){const e=i;if(t){i=0;const a=QC(o,t);i+=(a.qMeasureInfo||[]).length,r>-1?(i=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),i),r=-1):(i=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),i),i=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),i)),i+=+tq.exec(n)[1]}else r>-1?(r=-1,i=+tq.exec(n)[1]):i+=+tq.exec(n)[1]+1}return JE.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:i,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,o=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===i||!i){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===o||s>=o)&&o>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-o})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==i&&(i||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,o.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s?[{method:"resetMadeSelections",params:[]}]:(a.rangeSelectHyperCubeValues&&o.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),a.selectHyperCubeContinuousRange&&o.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&o.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&o.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&o.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),o);var c}function sq(e){XE.util=e.data("matrix").util,e.data("q",XE),e.formatter("q-number",IE),e.formatter("q-time",YE)}function lq(e){var t=cC(e.layout||{},e.path.split("/").join("."));if(!t)return!1;var n=t.qIsOneAndOnlyOne;return void 0!==n&&n}function cq(e){var t=e.brush,n=e.colorField,r=e.legendAlias,i=e.useLegendCube,o=void 0!==i&&i;!n||/qAttrDimInfo/.test(n)?(t.removeKeyAlias("attrDim/qDimensionInfo/0"),r&&t.removeKeyAlias(r),t.addKeyAlias("attrDim/qDimensionInfo/0","qHyperCube/".concat(n))):o&&t.addKeyAlias(r,"qHyperCube/".concat(n))}sq.qBrushHelper=aq,sq.selections=aq;var uq="Shift";var dq=function(e,t){return t[e]?dq(e+1,t):e},fq=function(e,t){var n=t.reduce((function(e,t){return e[t]=!0,e}),{});return e.reduce((function(e,t,r){var i=dq(r,n);return n[i]=!0,e[r]=i,e}),{})};function hq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layout,n=e.filtered,r=void 0===n?{}:n,i=(null==t?void 0:t.qHyperCube)||{},o=i.qDimensionInfo,a=void 0===o?[]:o,s=i.qMeasureInfo,l=void 0===s?[]:s;return{dimensions:fq(a,r.dimensions||[]),measures:fq(l,r.measures||[])}}function pq(e){var t=e.selection,n=e.fieldMap,r=t.method,i=t.params;if("selectHyperCubeValues"===r){var o=n.dimensions[i[1]];void 0!==o&&(i[1]=o)}return"selectHyperCubeContinuousRange"===r&&i[1].forEach((function(e){var t=n.dimensions[e.qDimIx];void 0!==t&&(e.qDimIx=t)})),t}var mq=[],gq=0,yq=function(e){var t=mq.filter((function(e){var t;return null===(t=e.selections)||void 0===t?void 0:t.isActive()}));t.length&&("Enter"===e.key?t.forEach((function(e){return e.selections.confirm()})):"Escape"!==e.key&&"Esc"!==e.key||t.forEach((function(e){return e.selections.cancel()})))};function vq(e){var t=e.chart,n=e.document,r=e.selectionInfo,i=e.eventName,o=e.componentName,a=e.brushName,s=void 0===a?"selection":a,l=e.emit,c=void 0===l?"rangeClear":l,u=r.event===i,d=n.querySelector("[data-key='".concat(o,"-edge-0']"));if(u||!d)return!1;var f=t.component(o);return!!f&&(f.emit(c),"string"==typeof s&&t.brush(s).clear(),f)}var bq=["chart","document","selections","selectionInfo"],xq=function(e){e.chart,e.document,e.selections,e.selectionInfo;var t=YS(e,bq);t.clearDiscrete(),t.clearContinuous(),t.clearMinor(),t.clearRange(),t.clearTap(),t.clearLegend()};function wq(e){var t,n=e.lasso;null!=n&&null!==(t=n.active)&&void 0!==t&&t.call(n)&&(null==n||n.action(!1))}function Sq(e){var t,n=e.chart,r=e.selectionInfo,i=e.selectionActions,o=e.actions,a=void 0===o?{}:o,s=e.selections,l=e.selectionEvents;if(!1===i||!1===l)return function(){};var c=i.reset,u=void 0===c?wq:c,d=i.clear,f=!1!==d&&function(e){var t=e.clear,n=void 0===t?xq:t,r=e.selections,i=e.selectionInfo,o=e.chart;return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cleared,t={selections:r,selectionInfo:i,chart:o,document:document,cleared:e};return n(US({clearDiscrete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"discreteRange":i,a=e.componentName,s=void 0===a?"discrete-range-brush":a,l=e.cleared;return vq({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,emit:"areaClear",brushName:e.brushName})}(US(US({},t),e))},clearContinuous:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"continuousRange":i,a=e.componentName,s=void 0===a?"continuous-range-brush":a,l=e.cleared;return vq({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,brushName:e.brushName})}(US(US({},t),e))},clearMinor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.componentName,o=void 0===i?"minor-range-brush":i,a=e.eventName,s=void 0===a?"minorRange":a,l=e.cleared,c=void 0!==l&&l,u=e.brushName,d=vq({selectionInfo:t,chart:n,document:r,eventName:c?void 0:s,componentName:o,brushName:void 0!==u&&u});if(d){var f=d.settings.settings,h=f.scale,p=f.brush,m=n.scale(h).data().fields.map((function(e){return e.id()})),g=n.brush(p),y=g.brushes().filter((function(e){return"range"===e.type&&m.some((function(t){return t===e.id}))}));g&&y.length&&y.forEach((function(e){g.removeRanges(e.brush.ranges().map((function(t){return{key:e.id,range:t}})))}))}}(US(US({},t),e))},clearRange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"xAxis":o,s=e.cleared;vq({selectionInfo:t,chart:n,document:r,eventName:void 0!==s&&s?void 0:a,componentName:"".concat(a,"-range-brush"),emit:"areaClear",brushName:!1})&&i.clear()}(US(US({},t),e))},clearTap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.chart,n=e.selectionInfo,r=e.selections,i=e.events,o=void 0===i?["tap"]:i,a=e.brushNames,s=void 0===a?[]:a;if(n&&o.includes(n.event)){var l=n.currentComponent;n.previousComponent!==l&&(r.clear(),s.forEach((function(e){return t.brush(e).end()})))}}(US(US({},t),e))},clearLegend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"legendRange":o,s=e.componentName,l=void 0===s?"legend-range-brush":s,c=e.cleared,u=void 0!==c&&c,d=e.brushName;vq({selectionInfo:t,chart:n,document:r,eventName:u?void 0:a,componentName:l,brushName:void 0!==d&&d})&&i.clear()}(US(US({},t),e))}},t))}}({clear:d,selections:s,selectionInfo:r,chart:n}),h=function(e){var t=e.chart,n=e.actions,r=e.reset,i=e.clear,o=!1,a={deactivated:function(e){var t=(n||{}).lasso;r({e:e,lasso:void 0!==t&&t})},canceled:function(e){var o=(n||{}).lasso;r({e:e,lasso:void 0!==o&&o}),i({e:e,chart:t,document:document})},cleared:function(e){o||(o=!0,i({e:e,chart:t,document:document,cleared:!0}),o=!1)}};return!1===r&&delete a.deactivated,!1===i&&delete a.cleared,!1===r&&!1===i&&delete a.canceled,a}({chart:n,clear:f,reset:u,actions:a}),p={};Object.entries(h).forEach((function(e){var t=GS(e,2),n=t[0],r=t[1];p[n]=function(e,t){return t?function(n){return t({event:n,defaultFunc:e})}:e}(r,l[n])}));var m=function(e){var t=e.selectionEvents,n=e.selections,r=e.selectionInfo,i=e.clear,o=e.chart,a=e.document,s=t.start,l={selections:n,selectionInfo:r,chart:o,document:a},c=function(e){return Object.assign(r,e||{})},u=function(e){var t=e.event,n=e.components;return function(){return function(e){var t=e.selectionInfo,n=e.clear,r=e.event,i=e.components,o=void 0===i?[]:i;(0,e.setSelectionInfo)(US(US({},void 0===t?{}:t),{},{event:r,components:o.map((function(e){return e.key})).filter(Boolean)})),n()}({event:t,components:n,clear:i,selectionInfo:r,setSelectionInfo:c})}};return"function"==typeof s?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];s(US(US({defaultFunc:u({event:e,components:t}),setSelectionInfo:c,clear:i},l),{},{event:e,components:t}))}:function(e){u({event:e,components:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]})()}}({selectionEvents:l,selections:s,selectionInfo:r,clear:f,chart:n,document:document});return null==a||null===(t=a.select)||void 0===t||t.on("start",m),Object.entries(p).forEach((function(e){var t=GS(e,2),n=t[0],r=t[1];null==s||s.on(n,r)})),function(){var e;null==a||null===(e=a.select)||void 0===e||e.removeListener("start",m),Object.entries(p).forEach((function(e){var t=GS(e,2),n=t[0],r=t[1];null==s||s.removeListener(n,r)}))}}var kq=[{key:"qHyperCube/qDimensionInfo/0:numeric",includeMax:!1}];function Mq(e){var t=e.chart,n=e.actions,r=e.selections,i=e.picassoQ,o=e.config,a=o.allowSimultaneous,s=void 0!==a&&a,l=o.majorScale,c=void 0===l?void 0:l,u=o.selectionActions,d=void 0===u?{}:u,f=d.clear,h=d.reset,p=o.selectionEvents,m=void 0===p?{deactivated:void 0,canceled:void 0,cleared:void 0,start:void 0}:p,g=o.brushEvents,y=void 0===g?{}:g,v=o.brushName,b=void 0===v?"selection":v,x=o.brushMaxListeners,w=void 0===x?20:x,S=o.brushRanges,k=void 0!==S&&S,M=o.interceptors,C=void 0===M?{}:M,E=o.selectionsFn,q=void 0===E?i.selections:E,D=t.brush(b);if("number"==typeof w&&D.setMaxListeners(w),k){var T=!0===k?kq:k;D.configure({ranges:T})}var N={canSelect:!0,getIsSelectionLocked:!1,isInnerDimensionLocked:!1,lockedDimensions:[],singleSelectIndex:0,selectionInfo:{colorField:void 0,components:[],event:void 0,currentComponent:void 0,previousComponent:void 0}},O=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.selections,r=t.brush,i=t.majorScale,o=t.actions,a=t.selectionsFn,s=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).path,l=void 0===s?"/qHyperCubeDef":s;if(!n)return{layout:function(){},filteredFields:function(){},allowSimultaneous:function(){},release:function(){}};var c=++gq,u=null,d={dimensions:[],measures:[]},f=[],h={};n.on=n.on.bind(n),n.isActive=n.isActive.bind(n),n.addListener=n.addListener.bind(n),n.removeListener=n.removeListener.bind(n);var p=function(e){var t=e.brush,n=e.getConfig;return{interceptor:function(e){var r=t.brushes(),i=n(),o=i.allowSimultaneous,a=i.layout,s=void 0===a?{}:a;r.forEach((function(n){var r,i,a;("range"===n.type||null!==(r=e[0])&&void 0!==r&&r.key&&(null===(i=e[0])||void 0===i?void 0:i.key)!==n.id&&0!==o.indexOf(null===(a=e[0])||void 0===a?void 0:a.key))&&t.clear([])}));var l=e.filter((function(e){return-2!==e.value}));if(l.length>1){var c=function(e){var t=e.layout,n=void 0===t?{}:t,r=e.values,i=void 0===r?[]:r;if(null==i||!i.length)return[];var o=Array.from(new Set(i.map((function(e){return e.key})))),a=[];return o.forEach((function(e){var t=lq({layout:n,path:e}),r=i.filter((function(t){return t.key===e})),o=t?[r.pop()]:r;a.push.apply(a,XS(o))})),a.filter(Boolean)}({layout:s,values:l});return c}return l},rangeInterceptor:function(e){var r=t.brushes(),i=n().allowSimultaneous;return r.filter((function(e){return"value"===e.type})).length?(t.clear([]),e):(r.forEach((function(n){var r=n.id===e[0].key||i.includes(n.id)&&i.includes(e[0].key);"range"!==n.type||r||t.clear([])})),e)}}}({brush:r,getConfig:function(){return{layout:u,allowSimultaneous:f}}}),m=p.rangeInterceptor,g=p.interceptor;r.intercept("set-ranges",m),r.intercept("toggle-ranges",m),r.intercept("toggle-values",g),r.intercept("set-values",g),r.intercept("add-values",g),r.on("start",(function(){return n.begin(l)}));var y={activate:function(){},deactivated:function(){return r.end()},cleared:function(){return r.clear()},canceled:function(){return r.end()}};!function(e,t){Object.keys(t).forEach((function(n){e.on(n,t[n])}))}(n,y);var v=null==i||null===(e=i.max)||void 0===e?void 0:e.call(i);return null!=o&&o.select?(o.select.on("start",(function(){var e;r.start(),"function"==typeof o.select.getBrushOptions&&(h=(e=o.select).getBrushOptions.apply(e,arguments))})),o.select.on("end",(function(){var e=a(r,h,u),t=hq({layout:u,filtered:d});e.forEach((function(e){var r=pq({selection:e,fieldMap:t});(function(e,t,n){if(t&&void 0!==n&&"selectHyperCubeContinuousRange"===e.method){var r=e.params;if(r&&r[1]&&r[1][0]){var i=r[1][0],o=i.qDimIx,a=i.qRange;"undefined"!==o&&a&&!1===a.qMaxInclEq&&a.qMax>=n&&(a.qMaxInclEq=!0)}}})(r,o.select.brushSelectionIncludeMax,v),n.select(r)}))}))):r.on("update",(function(){var e=a(r,h,u),t=hq({layout:u,filtered:d});e.forEach((function(e){n.select(pq({selection:e,fieldMap:t}))}))})),0===mq.length&&document.addEventListener("keyup",yq),mq.push({key:c,selections:n}),{layout:function(e){u=e},filteredFields:function(e){d=e},allowSimultaneous:function(e){f=e},release:function(){u=null;var e=mq.indexOf(mq.filter((function(e){return e.key===c}))[0]);-1!==e&&mq.splice(e,1),mq.length||document.removeEventListener("keyup",yq),function(e,t){Object.keys(t).forEach((function(n){e.removeListener(n,t[n])}))}(n,y)}}}({brush:D,majorScale:c,actions:n,selections:r,picassoQ:i,selectionsFn:q});!function(e){var t=e.brush,n=e.interceptors,r=void 0===n?{}:n;Object.entries(r).forEach((function(e){var n=GS(e,2),r=n[0],i=n[1];(Array.isArray(i)?i:[i]).forEach((function(e){t.intercept(r,e)}))}))}({brush:D,interceptors:C});var A=function(e){var t=e.chart,n=e.selectionActions,r=e.brush,i=e.actions,o=e.selectionInfo,a=e.selections,s=e.selectionEvents,l=function(e){var t=e.brush,n=e.chart,r=e.selectionInfo,i=e.brushEvents,o=void 0===i?{}:i,a=Object.entries(o).map((function(e){var i=GS(e,2),o=i[0],a=i[1],s=function(){return a({chart:n,selectionInfo:r})};return t.on(o,s),[o,s]}));return function(){a.forEach((function(e){var n=GS(e,2),r=n[0],i=n[1];t.removeListener(r,i)}))}}({brush:r,chart:t,selectionInfo:o,brushEvents:e.brushEvents}),c=Sq({chart:t,selectionInfo:o,selectionActions:n,actions:i,selections:a,selectionEvents:s}),u=function(e){var t=e.actions;if(null==t||!t.lasso)return function(){};var n=!1,r=function(e){n||e.key!==uq||(t.lasso.action(!0),n=!0)},i=function(e){e.key===uq&&(t.lasso.action(!1),n=!1)};return document.addEventListener("keydown",r),document.addEventListener("keyup",i),function(){document.removeEventListener("keydown",r),document.removeEventListener("keyup",i)}}({actions:i});return function(){l(),c(),u()}}({chart:t,brush:D,actions:n,selections:r,selectionInfo:N.selectionInfo,selectionActions:{clear:f,reset:h},selectionEvents:m,brushEvents:y});if(s){var _=!0===s?XS(Array(15)).map((function(e,t){return"qHyperCube/qMeasureInfo/".concat(t)})):s;O.allowSimultaneous(_)}return{unbindEvents:A,state:N,picassoSelections:O,brush:D}}var Cq=["colorField","useLegendCube"];function Eq(e){var t=e.chart,n=e.selections,r=e.actions,i=void 0!==r&&r,o=e.config,a=void 0===o?{}:o,s=Mq({chart:t,actions:i,selections:n,picassoQ:sq,config:a}),l=s.unbindEvents,c=s.state,u=s.picassoSelections,d=s.brush,f=a.custom,h=void 0===f?{}:f,p=a.legendAlias,m=void 0===p?void 0:p,g=a.setBrushAliases,y=void 0===g?cq:g;return{getIsDimensionLocked:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return c.lockedDimensions[e]},getIsSelectionLocked:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null!==(e=null==n||null===(t=n.isLocked)||void 0===t?void 0:t.call(n))&&void 0!==e?e:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(null==e||!e.length)return!1;var t=e.filter((function(e){return"object"===JS(e.data)&&Array.isArray(e.data.fields)})).every((function(e){return e.data.fields.every((function(e){var t=e.raw();return!(!t.qLocked&&t.qCardinal)}))}));return t}(r)},getIsSingleSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.singleSelectIndex;return c.singleSelectDimensions[e]},getCanSelect:function(){return c.canSelect},getSelectionsObject:function(){return n},getSelectionInfo:function(){return c.selectionInfo},setLayout:function(e){var t=function(e){var t,n,r,i=e.selections,o=e.picassoSelections,a=e.layout,s={lockedDimensions:[],singleSelectDimensions:[]};null!=i&&null!==(t=i.isModal)&&void 0!==t&&t.call(i)&&i.confirm(),o.layout(a);var l=(null!==(n=null==a?void 0:a.qHyperCube)&&void 0!==n?n:{}).qDimensionInfo,c=void 0===l?[]:l;return s.lockedDimensions=c.map((function(e){return!!e.qLocked})),s.singleSelectDimensions=c.map((function(e,t){return lq({layout:a,path:"qHyperCube/qDimensionInfo/".concat(t)})})),s.singleSelectIndex=function(e){var t,n=((null==e?void 0:e.qHyperCube)||{}).qDimensionInfo,r=void 0===n?[]:n;return null!==(t=r.map((function(e,t){var n;return!(e.qLocked||(null===(n=e.qCardinalities)||void 0===n?void 0:n.qHypercubeCardinal)<=1)&&t})).filter((function(e){return"number"==typeof e}))[0])&&void 0!==t?t:Math.max(r.length-1,0)}(a),s.canSelect=0===c.length||c.some((function(e){return!e.qLocked})),s.dimensionLocked=!(null===(r=c[0])||void 0===r||!r.qLocked),s}({selections:n,picassoSelections:u,layout:e});Object.assign(c,t)},setFilteredFields:function(e){u.filteredFields(e)},setBrushAliases:function(e){var t=e.colorField,n=e.useLegendCube,r=void 0!==n&&n,i=YS(e,Cq),o=US({useLegendCube:r,colorField:t,brush:d,legendAlias:m},i);y(US(US({},o),{},{defaultFunc:function(){return cq(o)}}))},destroy:function(){l(),u.release()},custom:US({},h)}}var qq="'Source Sans Pro', 'Arial', 'sans-serif'",Dq="#333333",Tq="#595959",Nq="#737373",Oq="#cccccc",Aq="#e6e6e6";function _q(e){var t={};return[].concat(XS(e),XS([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",Tq],["object","axis.label.name","fontFamily",qq],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",Oq],["object","axis.line.minor","color",Aq],["object","axis.title","color"],["object","axis.title","fontFamily",qq],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Aq],["object","grid.line.major","color",Oq],["object","grid.line.minor","color",Aq],["object","label.value","color",Tq],["object","label.value","fontFamily",qq],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",Tq],[!1,"label.value","lightColor",Aq],["object","outOfRange","color","#999"],["object","legend.title","color",Dq],["object","legend.title","fontFamily",qq],["object","legend.title","fontSize","15px"],["object","legend.label","color",Tq],["object","legend.label","fontFamily",qq],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",Dq],["object","referenceLine.label.name","fontFamily",qq],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Aq],["object","referenceLine.outOfBounds","fontFamily",qq],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",Nq,function(e){return"transparent"===e?Nq:e}]])).reduce((function(e,n){var r="".concat(n[0],"-").concat(n[1],"-").concat(n[2],"}");return t[r]||(t[r]=!0,e.push(n)),e}),[]).sort((function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)}))}var Lq=function(e){return e};function Iq(e){var t=e.theme,n=e.id,r=e.transform,i=e.extend,o=e.matrix,a={},s=r.reduce((function(e,t){var n=GS(t,2),r=n[0],i=n[1];return e[r]=i,e}),{});return o.forEach((function(e){var r=GS(e,5),i=r[0],o=r[1],l=r[2],c=r[3],u=r[4],d=void 0===u?function(e){return e}:u,f=function(e){var t=e.theme,n=e.base,r=e.path,i=e.attribute,o=e.defaultValue,a=void 0===o?void 0:o;if(!t||!1===n)return a;var s=t.getStyle(n,r,i);return void 0===s?a:s}({theme:t,base:"object"===i&&n?"".concat("object",".").concat(n):i,path:o,attribute:l,defaultValue:c}),h=(s["".concat(o,".").concat(l)]||Lq)(d(f));dC(a,[o,l].filter(Boolean).join("."),h)})),i.forEach((function(e){var t=GS(e,2),n=t[0],r=t[1];dC(a,n,r)})),a}var Rq={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qAttrExprInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function Pq(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=vg(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=Rq;return c.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==cC(l,e)&&dC(l,e,null);else{const e=t[0],n=t[1].split("].")[1];cC(l,e,[]).forEach((e=>{void 0!==cC(e,n)&&dC(e,n,null)}))}})),l}var zq={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:i}){return({currentNodes:o,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==i&&"right"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==i&&"bottom"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=i;break;case"rect":e.x-=r,e.y-=i;break;case"path":e.transform=`translate(${-r}, ${-i})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=Pq(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Pq(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:Fq,extractInfoFromInputValue:jq,resolveValue:Bq}=bS;var Hq={resolveValue:Bq,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Fq({refLineLayout:e,layoutService:n});return jq(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Fq({refLineLayout:e,layoutService:n});return jq(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:i}=n.meta,o=Fq({refLineLayout:e,layoutService:n});return r[o]&&i?r[o].qText:o},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Fq({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:i}=t;return i[r]}};function Vq({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:i,animationsEnabled:o,chart:a,scale:s,axis:l,rtl:c,key:u,mainComponentKey:d,path:f,minimumLayoutMode:h}){const p=e?t.dimensionRefLines:f?t.query.getRefLines(f):t.measureRefLines;if(!p.length)return!1;const m={key:u,type:"ref-line",layout:{minimumLayoutMode:h},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:o,trackBy:zq.lines.trackBy,compensateForLayoutChanges:zq.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==i.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return p.forEach((o=>{m.lines[l].push((({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:i,dockService:o,chart:a,scale:s,axis:l,invert:c,component:u,isContinuous:d})=>{var f,h;const p={dir:l,line:{strokeWidth:(null==t||null===(f=t.style)||void 0===f?void 0:f.lineThickness)||2,strokeDasharray:null==t||null===(h=t.style)||void 0===h?void 0:h.lineType,stroke:i.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(p.scale=s,p.value=t.refLineExpr.value):(p.valueInfo=Hq.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),p.value=()=>{var e;const i=bS.getScaledPosition({scale:a.scale(s),value:Hq.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:p.valueInfo,size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===o.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(i)?void 0:i}),p})({isDimension:e,refLineLayout:o,refLineModel:t,layoutService:n,colorModel:r,dockService:i,chart:a,scale:s,axis:l,invert:g,component:d,isContinuous:y}))})),m}const $q={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}};function Wq({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:i,dock:o,scale:a,style:s,formatter:l,theme:c,localeInfo:u,rtl:d,key:f,path:h}){const p=e?t.dimensionRefLineLabels:h?t.query.getRefLineLabels(h):t.measureRefLineLabels;if(!p.length)return[];const m=[],g=!e||n.meta.isContinuous,y=p.map((e=>(({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:o,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),{align:l,style:c}=e,{fontSize:u,fontFamily:d,fontStyle:f,fontWeight:h,textDecoration:p}=c||{},m={align:l,text:e.label,fill:e.coloredBackground?o.getContrastingColorTo(s):s,fontSize:u,fontFamily:d,fontStyle:f,fontWeight:h,textDecoration:p,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(m.background={fill:s}),a?(m.scale=i,m.value=e.refLineExpr.value):(m.value=()=>Hq.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),m.valueText=()=>Hq.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),m.valueInfo=()=>Hq.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),m})({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return m.push((({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:i,scale:o,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:f})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:i,formatter:a,scale:o,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:f,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,fontStyle:r.referenceLine.label.name.fontStyle,fontWeight:r.referenceLine.label.name.fontWeight,textDecoration:r.referenceLine.label.name.textDecoration,padding:{top:2,bottom:2,left:c?2:4,right:c?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:zq.refLineLabels.trackBy,compensateForLayoutChanges:zq.refLineLabels.compensateForLayoutChanges}}))({isDimension:e,rtl:d,style:vg(!0,$q,s),dock:o,key:f,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:i,theme:c,isContinuous:g,localeInfo:u})),m}function Uq({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:i}=e.meta,o=e.getLayout(),a="K"===o.qHyperCube.qMode,s=Ag.dimensionless(o),l=bS.getMeasureRefLines(o),c=bS.getDimensionRefLines(o,s),u=bS.getMeasureRefLineLabels(o),d=bS.getDimensionRefLineLabels(o,s);let f={},h={};const p=()=>!(!c||!c.length)&&!c.every((t=>{const o=bS.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:i}=n;return bS.isOutOfRange({value:t,qMin:r,qMax:i})}return!1})(o)||(t=>{if(!h[t])return!1;if(!n&&i){const n={valueInfo:h[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",i=e.getHyperCubeValue(r);return bS.isOutOfDataPages({label:n,dataPages:i})}return!0})(o)})),m={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:h,dimensionValuesInfo:f,query:{getRefLines:e=>bS.getRefLines(o,e),getRefLineLabels:e=>bS.getRefLineLabels(o,e)},update:()=>{h=m.dimensionRefLineInfo,p()&&(f=bS.getDimensionValuesInfo({layout:o,canBeContinuous:r,discreteModel:t,layoutService:e}),m.dimensionValuesInfo=f,c.forEach((t=>{const n=bS.getInputValue({refLineLayout:t,layoutService:e});f[n]&&(h[n]?(h[n].innerValues=f[n].innerValues,h[n].minOrder=Math.min(h[n].minOrder,f[n].minOrder),h[n].maxOrder=Math.max(h[n].maxOrder,f[n].maxOrder),h[n].isMinOrderOk=h[n].isMinOrderOk||f[n].isMinOrderOk,h[n].isMaxOrderOk=h[n].isMaxOrderOk||f[n].isMaxOrderOk):h[n]={id:f[n].id,qText:f[n].qText,innerValues:f[n].innerValues,minOrder:f[n].minOrder,maxOrder:f[n].maxOrder,isMinOrderOk:f[n].isMinOrderOk,isMaxOrderOk:f[n].isMaxOrderOk},h[n].numInnerValues=(h[n].maxOrder||0)-(h[n].minOrder||0)+1)})))}};return m.update(),m}const Yq={combineBounds(e){let t=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=Number.MAX_VALUE,i=-Number.MAX_VALUE;return e.forEach((e=>{e&&(t=Math.min(t,e.x,e.x+e.width),n=Math.max(n,e.x,e.x+e.width),r=Math.min(r,e.y,e.y+e.height),i=Math.max(i,e.y,e.y+e.height))})),{x:t,y:r,width:n-t,height:i-r}}};function Kq(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const Gq={ref:null,refFn:e=>{var t;const n=null===(t=e.qHyperCubeDef.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)}));return`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0.qExpression`},change(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)})),r=Dg.getValue(e,`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0`),i=Dg.getValue(e,"color");r&&(r.id="colorByExpression",i&&(i.colorExpression=r.qExpression))}};var Xq={exports:{}},Jq={},Zq=Symbol.for("react.element"),Qq=Symbol.for("react.portal"),eD=Symbol.for("react.fragment"),tD=Symbol.for("react.strict_mode"),nD=Symbol.for("react.profiler"),rD=Symbol.for("react.provider"),iD=Symbol.for("react.context"),oD=Symbol.for("react.forward_ref"),aD=Symbol.for("react.suspense"),sD=Symbol.for("react.memo"),lD=Symbol.for("react.lazy"),cD=Symbol.iterator;var uD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dD=Object.assign,fD={};function hD(e,t,n){this.props=e,this.context=t,this.refs=fD,this.updater=n||uD}function pD(){}function mD(e,t,n){this.props=e,this.context=t,this.refs=fD,this.updater=n||uD}hD.prototype.isReactComponent={},hD.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},hD.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},pD.prototype=hD.prototype;var gD=mD.prototype=new pD;gD.constructor=mD,dD(gD,hD.prototype),gD.isPureReactComponent=!0;var yD=Array.isArray,vD=Object.prototype.hasOwnProperty,bD={current:null},xD={key:!0,ref:!0,__self:!0,__source:!0};function wD(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)vD.call(t,r)&&!xD.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:Zq,type:e,key:o,ref:a,props:i,_owner:bD.current}}function SD(e){return"object"==typeof e&&null!==e&&e.$$typeof===Zq}var kD=/\/+/g;function MD(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function CD(e,t,n,r,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Zq:case Qq:a=!0}}if(a)return i=i(a=e),e=""===r?"."+MD(a,0):r,yD(i)?(n="",null!=e&&(n=e.replace(kD,"$&/")+"/"),CD(i,t,n,"",(function(e){return e}))):null!=i&&(SD(i)&&(i=function(e,t){return{$$typeof:Zq,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(kD,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=""===r?".":r+":",yD(e))for(var s=0;s<e.length;s++){var l=r+MD(o=e[s],s);a+=CD(o,t,n,l,i)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=cD&&e[cD]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(o=e.next()).done;)a+=CD(o=o.value,t,n,l=r+MD(o,s++),i);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function ED(e,t,n){if(null==e)return e;var r=[],i=0;return CD(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function qD(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var DD={current:null},TD={transition:null},ND={ReactCurrentDispatcher:DD,ReactCurrentBatchConfig:TD,ReactCurrentOwner:bD};function OD(){throw Error("act(...) is not supported in production builds of React.")}Jq.Children={map:ED,forEach:function(e,t,n){ED(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return ED(e,(function(){t++})),t},toArray:function(e){return ED(e,(function(e){return e}))||[]},only:function(e){if(!SD(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Jq.Component=hD,Jq.Fragment=eD,Jq.Profiler=nD,Jq.PureComponent=mD,Jq.StrictMode=tD,Jq.Suspense=aD,Jq.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ND,Jq.act=OD,Jq.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=dD({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,a=bD.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)vD.call(t,l)&&!xD.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:Zq,type:e.type,key:i,ref:o,props:r,_owner:a}},Jq.createContext=function(e){return(e={$$typeof:iD,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:rD,_context:e},e.Consumer=e},Jq.createElement=wD,Jq.createFactory=function(e){var t=wD.bind(null,e);return t.type=e,t},Jq.createRef=function(){return{current:null}},Jq.forwardRef=function(e){return{$$typeof:oD,render:e}},Jq.isValidElement=SD,Jq.lazy=function(e){return{$$typeof:lD,_payload:{_status:-1,_result:e},_init:qD}},Jq.memo=function(e,t){return{$$typeof:sD,type:e,compare:void 0===t?null:t}},Jq.startTransition=function(e){var t=TD.transition;TD.transition={};try{e()}finally{TD.transition=t}},Jq.unstable_act=OD,Jq.useCallback=function(e,t){return DD.current.useCallback(e,t)},Jq.useContext=function(e){return DD.current.useContext(e)},Jq.useDebugValue=function(){},Jq.useDeferredValue=function(e){return DD.current.useDeferredValue(e)},Jq.useEffect=function(e,t){return DD.current.useEffect(e,t)},Jq.useId=function(){return DD.current.useId()},Jq.useImperativeHandle=function(e,t,n){return DD.current.useImperativeHandle(e,t,n)},Jq.useInsertionEffect=function(e,t){return DD.current.useInsertionEffect(e,t)},Jq.useLayoutEffect=function(e,t){return DD.current.useLayoutEffect(e,t)},Jq.useMemo=function(e,t){return DD.current.useMemo(e,t)},Jq.useReducer=function(e,t,n){return DD.current.useReducer(e,t,n)},Jq.useRef=function(e){return DD.current.useRef(e)},Jq.useState=function(e){return DD.current.useState(e)},Jq.useSyncExternalStore=function(e,t,n){return DD.current.useSyncExternalStore(e,t,n)},Jq.useTransition=function(){return DD.current.useTransition()},Jq.version="18.3.1",Xq.exports=Jq;var AD=Xq.exports,_D=og(AD),LD=t({__proto__:null,default:_D},[AD]);const ID={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},RD={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},PD={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},zD={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"},FD="m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z",jD={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"},BD={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"},HD="N",VD="H",$D="C",WD={N:void 0,H:ID,C:PD},UD=(e,t)=>{switch(e.qGrouping){case HD:return;case VD:return{path:ID,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case $D:return{path:t?RD:PD,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function YD(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=Uw.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 KD(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=vg(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],o||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,i&&i({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),YD(e,a,c)}))}function GD(e){return e.qGrouping===HD?e.qFallbackTitle||"":e.title||""}const XD=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))},JD=async(e,t,n,r,i)=>{const o=await XD(e,n),a=n.filter((e=>!o.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const o=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===HD&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const i=e.qDef.qLabelExpression;if(i)return t.evaluate(i);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(n,e,r,o),s=(null==o?void 0:o.qDim.qGrouping)||n.qDef.qGrouping,l=WD[s],c=s!==HD;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){KD(t,e,n.qDef.cId,"qDimensions",i)}}})));return s};function ZD({column:e,dir:t,dock:n,altList:r,model:i,translator:o,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===HD,d=l.qGrouping===VD;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await(async(e,t,n,r,i="/qHyperCubeDef")=>{switch(e.qGrouping){case VD:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,o)=>({id:`${e.cId}-${o}`,title:n,selected:e.qGroupPos===o,onSelect:()=>{t.drillUp(i,r,e.qGroupPos-o)}})));return{id:e.cId,icon:ID,groupItem:!0,title:e.title,selected:!1,children:n}}case $D:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=null!=t&&t.setActiveField?e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}}))):[];return{id:e.cId,icon:PD,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:GD(e)}}})(l,i,a,e),n=c?await JD(a,i,r,o,s):[];return(u||d||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function QD(e,t,n,r,i="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===VD?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:UD(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===HD?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:GD(e),...n&&{drillUp(e){n.drillUp(i,t,e)}},id:e.cId}}function eT({activeInfo:e,altList:t,app:n,dir:r,dock:i,model:o,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:i,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],i=await XD(n,t),u=t.filter((e=>!i.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await 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,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){KD(o,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function tT(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function nT(){return nT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nT.apply(null,arguments)}var rT={exports:{}};function iT(){}function oT(){}oT.resetWarningCache=iT;rT.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:oT,resetWarningCache:iT};return n.PropTypes=n,n}();var aT=og(rT.exports),sT={black:"#000",white:"#fff"},lT="#e57373",cT="#f44336",uT="#d32f2f",dT="#ff4081",fT="#f50057",hT="#c51162",pT="#7986cb",mT="#3f51b5",gT="#303f9f",yT="#64b5f6",vT="#2196f3",bT="#1976d2",xT="#81c784",wT="#4caf50",ST="#388e3c",kT="#ffb74d",MT="#ff9800",CT="#f57c00",ET={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function qT(){return qT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qT.apply(null,arguments)}function DT(e){return DT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DT(e)}function TT(e){return e&&"object"===DT(e)&&e.constructor===Object}function NT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?qT({},e):e;return TT(e)&&TT(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(TT(t[i])&&i in e?r[i]=NT(e[i],t[i],n):r[i]=t[i])})),r}function OT(e){var t=function(e,t){if("object"!=DT(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=DT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==DT(t)?t:t+""}function AT(e,t,n){return(t=OT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _T(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function LT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function IT(e){if(e.type)return e;if("#"===e.charAt(0))return IT(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(_T(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function RT(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function PT(e){var t="hsl"===(e=IT(e)).type?IT(function(e){var t=(e=IT(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),RT({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function zT(e,t){return e=IT(e),t=LT(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,RT(e)}function FT(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function jT(e,t){if(null==e)return{};var n,r,i=FT(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var BT=["xs","sm","md","lg","xl"];function HT(e,t,n){var r;return qT({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),qT({paddingLeft:t(2),paddingRight:t(2)},n,AT({},e.up("sm"),qT({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},AT(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),AT(r,e.up("sm"),{minHeight:64}),r)},n)}var VT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:sT.white,default:ET[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},$T={text:{primary:sT.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:ET[800],default:"#303030"},action:{active:sT.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function WT(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=IT(e),t=LT(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return RT(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=IT(e),t=LT(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return RT(e)}(e.main,o)))}function UT(e){var t=e.primary,n=void 0===t?{light:pT,main:mT,dark:gT}:t,r=e.secondary,i=void 0===r?{light:dT,main:fT,dark:hT}:r,o=e.error,a=void 0===o?{light:lT,main:cT,dark:uT}:o,s=e.warning,l=void 0===s?{light:kT,main:MT,dark:CT}:s,c=e.info,u=void 0===c?{light:yT,main:vT,dark:bT}:c,d=e.success,f=void 0===d?{light:xT,main:wT,dark:ST}:d,h=e.type,p=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=jT(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=PT(e),r=PT(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,$T.text.primary)>=g?$T.text.primary:VT.text.primary;return t}var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=qT({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(_T(4,t));if("string"!=typeof e.main)throw new Error(_T(5,JSON.stringify(e.main)));return WT(e,"light",n,v),WT(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},S={dark:$T,light:VT};return NT(qT({common:sT,type:p,primary:w(n),secondary:w(i,"A400","A200","A700"),error:w(a),warning:w(l),info:w(u),success:w(f),grey:ET,contrastThreshold:g,getContrastText:x,augmentColor:w,tonalOffset:v},S[p]),b)}function YT(e){return Math.round(1e5*e)/1e5}function KT(e){return YT(e)}var GT={textTransform:"uppercase"},XT='"Roboto", "Helvetica", "Arial", sans-serif';function JT(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?XT:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,f=void 0===d?500:d,h=n.fontWeightBold,p=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=jT(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=v||function(e){return"".concat(e/g*x,"rem")},S=function(e,t,n,r,o){return qT({fontFamily:i,fontWeight:e,fontSize:w(t),lineHeight:n},i===XT?{letterSpacing:"".concat(YT(r/t),"em")}:{},o,y)},k={h1:S(l,96,1.167,-1.5),h2:S(l,60,1.2,-.5),h3:S(u,48,1.167,0),h4:S(u,34,1.235,.25),h5:S(u,24,1.334,0),h6:S(f,20,1.6,.15),subtitle1:S(u,16,1.75,.15),subtitle2:S(f,14,1.57,.1),body1:S(u,16,1.5,.15),body2:S(u,14,1.43,.15),button:S(f,14,1.75,.4,GT),caption:S(u,12,1.66,.4),overline:S(u,12,2.66,1,GT)};return NT(qT({htmlFontSize:g,pxToRem:w,round:KT,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:f,fontWeightBold:p},k),b,{clone:!1})}function ZT(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var QT=["none",ZT(0,2,1,-1,0,1,1,0,0,1,3,0),ZT(0,3,1,-2,0,2,2,0,0,1,5,0),ZT(0,3,3,-2,0,3,4,0,0,1,8,0),ZT(0,2,4,-1,0,4,5,0,0,1,10,0),ZT(0,3,5,-1,0,5,8,0,0,1,14,0),ZT(0,3,5,-1,0,6,10,0,0,1,18,0),ZT(0,4,5,-2,0,7,10,1,0,2,16,1),ZT(0,5,5,-3,0,8,10,1,0,3,14,2),ZT(0,5,6,-3,0,9,12,1,0,3,16,2),ZT(0,6,6,-3,0,10,14,1,0,4,18,3),ZT(0,6,7,-4,0,11,15,1,0,4,20,3),ZT(0,7,8,-4,0,12,17,2,0,5,22,4),ZT(0,7,8,-4,0,13,19,2,0,5,24,4),ZT(0,7,9,-4,0,14,21,2,0,5,26,4),ZT(0,8,9,-5,0,15,22,2,0,6,28,5),ZT(0,8,10,-5,0,16,24,2,0,6,30,5),ZT(0,8,11,-5,0,17,26,2,0,6,32,5),ZT(0,9,11,-5,0,18,28,2,0,7,34,6),ZT(0,9,12,-6,0,19,29,2,0,7,36,6),ZT(0,10,13,-6,0,20,31,3,0,8,38,7),ZT(0,10,13,-6,0,21,33,3,0,8,40,7),ZT(0,10,14,-6,0,22,35,3,0,8,42,7),ZT(0,11,14,-7,0,23,36,3,0,9,44,8),ZT(0,11,15,-7,0,24,38,3,0,9,46,8)],eN={borderRadius:4};function tN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nN(e,t){if(e){if("string"==typeof e)return tN(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tN(e,t):void 0}}function rN(e){return function(e){if(Array.isArray(e))return tN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nN(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||nN(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var aN={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},sN={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lN(e){return"".concat(Math.round(e),"ms")}var cN={easing:aN,duration:sN,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?sN.standard:n,i=t.easing,o=void 0===i?aN.easeInOut:i,a=t.delay,s=void 0===a?0:a;return jT(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:lN(r)," ").concat(o," ").concat("string"==typeof s?s:lN(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},uN={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function dN(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=jT(e,["breakpoints","mixins","palette","spacing","typography"]),d=UT(a),f=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=jT(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function c(e,t){var r=BT.indexOf(t);return r===BT.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[BT[r+1]]?n[BT[r+1]]:t)-a/100).concat(i,")")}return qT({keys:BT,values:n,up:l,down:function(e){var t=BT.indexOf(e)+1,r=n[BT[t]];return t===BT.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),h=oN(s),p=NT({breakpoints:f,direction:"ltr",mixins:HT(f,h,i),overrides:{},palette:d,props:{},shadows:QT,typography:JT(d,c),spacing:h,shape:eN,transitions:cN,zIndex:uN},u),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return p=g.reduce((function(e,t){return NT(e,t)}),p)}var fN="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",hN=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function pN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==hN.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[fN]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}function mN(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var gN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yN="object"===("undefined"==typeof window?"undefined":gN(window))&&"object"===("undefined"==typeof document?"undefined":gN(document))&&9===document.nodeType;function vN(e,t,n){return t&&function(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,OT(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bN(e,t){return bN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bN(e,t)}function xN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bN(e,t)}function wN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var SN={}.constructor;function kN(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(kN);if(e.constructor!==SN)return e;var t={};for(var n in e)t[n]=kN(e[n]);return t}function MN(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=kN(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var CN=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},EN=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=CN(e[n]," ");else t=CN(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function qN(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function DN(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function TN(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=qN(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=DN(f+":"+c+EN(h)+";",o))}}else for(var p in a){var m=a[p];null!=m&&(r&&(r+=l),r+=DN(p+":"+c+EN(m)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=DN(g+":"+c+EN(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),DN(""+e+c+"{"+r,--o)+DN("}",o)):r}var NN=/([[\].#*$><+~=|^:(),"'`\s])/g,ON="undefined"!=typeof CSS&&CSS.escape,AN=function(e){return ON?ON(e):e.replace(NN,"\\$1")},_N=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),LN=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(wN(wN(i)),s),i.selectorText="."+AN(i.id)),i}xN(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=EN(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?qT({},e,{allowEmpty:!0}):e;return TN(this.selectorText,this.style,n)},vN(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(_N),IN={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new LN(e,t,n)}},RN={indent:1,children:!0},PN=/@([\w-]+)/,zN=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(PN);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new lO(qT({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=RN);var t=qN(e).linebreak;if(null==e.indent&&(e.indent=RN.indent),null==e.children&&(e.children=RN.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),FN=/@container|@media|@supports\s+/,jN={onCreateRule:function(e,t,n){return FN.test(e)?new zN(e,t,n):null}},BN={indent:1,children:!0},HN=/@keyframes\s+([\w-]+)/,VN=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(HN);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:AN(a(this,o)),this.rules=new lO(qT({},n,{parent:this})),t)this.rules.add(s,t[s],qT({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=BN);var t=qN(e).linebreak;if(null==e.indent&&(e.indent=BN.indent),null==e.children&&(e.children=BN.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),$N=/@keyframes\s+/,WN=/\$([\w-]+)/g,UN=function(e,t){return"string"==typeof e?e.replace(WN,(function(e,n){return n in t?t[n]:e})):e},YN=function(e,t,n){var r=e[t],i=UN(r,n);i!==r&&(e[t]=i)},KN={onCreateRule:function(e,t,n){return"string"==typeof e&&$N.test(e)?new VN(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&YN(e,"animation-name",n.keyframes),"animation"in e&&YN(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return UN(e,r.keyframes);default:return e}}},GN=function(e){function t(){return e.apply(this,arguments)||this}return xN(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?qT({},e,{allowEmpty:!0}):e;return TN(this.key,this.style,n)},t}(_N),XN={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new GN(e,t,n):null}},JN=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=qN(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=TN(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return TN(this.at,this.style,e)},e}(),ZN=/@font-face/,QN={onCreateRule:function(e,t,n){return ZN.test(e)?new JN(e,t,n):null}},eO=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return TN(this.key,this.style,e)},e}(),tO={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new eO(e,t,n):null}},nO=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),rO={"@charset":!0,"@import":!0,"@namespace":!0},iO={onCreateRule:function(e,t,n){return e in rO?new nO(e,t,n):null}},oO=[IN,jN,KN,XN,QN,tO,iO],aO={process:!0},sO={force:!0,process:!0},lO=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=qT({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+AN(this.classes[d]));var f=MN(d,t,u);if(!f)return null;this.register(f);var h=void 0===u.index?this.index.length:u.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=qT({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof LN?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof VN&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof LN?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof VN&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=aO);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,sO)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,sO)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=qN(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),cO=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=qT({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new lO(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),uO=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),dO=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=FT(t,["attached"]),i=qN(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},vN(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),fO=new dO,hO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),pO="2f1acc6c3a606b082e5eef5e54414ffb";null==hO[pO]&&(hO[pO]=0);var mO=hO[pO]++,gO=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+mO+i+t:o+n.key+"-"+mO+(i?"-"+i:"")+"-"+t}},yO=function(e){var t;return function(){return t||(t=e()),t}},vO=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},bO=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=EN(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},xO=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},wO=function(e,t){return e.selectorText=t,e.selectorText===t},SO=yO((function(){return document.querySelector("head")}));function kO(e){var t=fO.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=SO(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var MO=yO((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),CO=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},EO=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},qO=function(){function e(e){this.getPropertyValue=vO,this.setProperty=bO,this.removeProperty=xO,this.setSelector=wO,this.hasInsertedRules=!1,this.cssRules=[],e&&fO.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=MO();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=kO(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else SO().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=EO(n,t);if(!1===(i=CO(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=EO(n,t),l=CO(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof cO&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),DO=0,TO=function(){function e(e){this.id=DO++,this.version="10.10.0",this.plugins=new uO,this.options={id:{minify:!1},createGenerateId:gO,Renderer:yN?qO:null,plugins:[]},this.generateId=gO({minify:!1});for(var t=0;t<oO.length;t++)this.plugins.use(oO[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=qT({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===fO.index?0:fO.index+1);var r=new cO(e,qT({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),fO.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=qT({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=MN(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),NO=function(e){return new TO(e)},OO="object"==typeof CSS&&null!=CSS&&"number"in CSS;function AO(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=AO(r);o&&(t||(t={}),t[n]=o)}}return t}
|
|
17
17
|
/**
|
|
@@ -39,7 +39,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/function DL(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var TL=new Set,NL={};function OL(e,t){AL(e,t),AL(e+"Capture",t)}function AL(e,t){for(NL[e]=t,e=0;e<t.length;e++)TL.add(t[e])}var _L=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),LL=Object.prototype.hasOwnProperty,IL=/^[: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]*$/,RL={},PL={};function zL(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var FL={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){FL[e]=new zL(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];FL[t]=new zL(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){FL[e]=new zL(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){FL[e]=new zL(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){FL[e]=new zL(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){FL[e]=new zL(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){FL[e]=new zL(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){FL[e]=new zL(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){FL[e]=new zL(e,5,!1,e.toLowerCase(),null,!1,!1)}));var jL=/[\-:]([a-z])/g;function BL(e){return e[1].toUpperCase()}function HL(e,t,n,r){var i=FL.hasOwnProperty(t)?FL[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!!LL.call(PL,e)||!LL.call(RL,e)&&(IL.test(e)?PL[e]=!0:(RL[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(jL,BL);FL[t]=new zL(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(jL,BL);FL[t]=new zL(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(jL,BL);FL[t]=new zL(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){FL[e]=new zL(e,1,!1,e.toLowerCase(),null,!1,!1)})),FL.xlinkHref=new zL("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){FL[e]=new zL(e,1,!1,e.toLowerCase(),null,!0,!0)}));var VL=EL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$L=Symbol.for("react.element"),WL=Symbol.for("react.portal"),UL=Symbol.for("react.fragment"),YL=Symbol.for("react.strict_mode"),KL=Symbol.for("react.profiler"),GL=Symbol.for("react.provider"),XL=Symbol.for("react.context"),JL=Symbol.for("react.forward_ref"),ZL=Symbol.for("react.suspense"),QL=Symbol.for("react.suspense_list"),eI=Symbol.for("react.memo"),tI=Symbol.for("react.lazy"),nI=Symbol.for("react.offscreen"),rI=Symbol.iterator;function iI(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=rI&&e[rI]||e["@@iterator"])?e:null}var oI,aI=Object.assign;function sI(e){if(void 0===oI)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);oI=t&&t[1]||""}return"\n"+oI+e}var lI=!1;function cI(e,t){if(!e||lI)return"";lI=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{lI=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sI(e):""}function uI(e){switch(e.tag){case 5:return sI(e.type);case 16:return sI("Lazy");case 13:return sI("Suspense");case 19:return sI("SuspenseList");case 0:case 2:case 15:return e=cI(e.type,!1);case 11:return e=cI(e.type.render,!1);case 1:return e=cI(e.type,!0);default:return""}}function dI(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 UL:return"Fragment";case WL:return"Portal";case KL:return"Profiler";case YL:return"StrictMode";case ZL:return"Suspense";case QL:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case XL:return(e.displayName||"Context")+".Consumer";case GL:return(e._context.displayName||"Context")+".Provider";case JL:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case eI:return null!==(t=e.displayName||null)?t:dI(e.type)||"Memo";case tI:t=e._payload,e=e._init;try{return dI(e(t))}catch(e){}}return null}function fI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dI(t);case 8:return t===YL?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function hI(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function pI(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function mI(e){e._valueTracker||(e._valueTracker=function(e){var t=pI(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 gI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pI(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function yI(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 vI(e,t){var n=t.checked;return aI({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function bI(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=hI(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 xI(e,t){null!=(t=t.checked)&&HL(e,"checked",t,!1)}function wI(e,t){xI(e,t);var n=hI(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")?kI(e,t.type,n):t.hasOwnProperty("defaultValue")&&kI(e,t.type,hI(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function SI(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function kI(e,t,n){"number"===t&&yI(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var MI=Array.isArray;function CI(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=""+hI(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 EI(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(DL(91));return aI({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qI(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(DL(92));if(MI(n)){if(1<n.length)throw Error(DL(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:hI(n)}}function DI(e,t){var n=hI(t.value),r=hI(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 TI(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function NI(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 OI(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?NI(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var AI,_I=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((AI=AI||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=AI.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function LI(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 II={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RI=["Webkit","ms","Moz","O"];function PI(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||II.hasOwnProperty(e)&&II[e]?(""+t).trim():t+"px"}function zI(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=PI(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(II).forEach((function(e){RI.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),II[t]=II[e]}))}));var FI=aI({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 jI(e,t){if(t){if(FI[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(DL(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(DL(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(DL(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(DL(62))}}function BI(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var HI=null;function VI(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var $I=null,WI=null,UI=null;function YI(e){if(e=jF(e)){if("function"!=typeof $I)throw Error(DL(280));var t=e.stateNode;t&&(t=HF(t),$I(e.stateNode,e.type,t))}}function KI(e){WI?UI?UI.push(e):UI=[e]:WI=e}function GI(){if(WI){var e=WI,t=UI;if(UI=WI=null,YI(e),t)for(e=0;e<t.length;e++)YI(t[e])}}function XI(e,t){return e(t)}function JI(){}var ZI=!1;function QI(e,t,n){if(ZI)return e(t,n);ZI=!0;try{return XI(e,t,n)}finally{ZI=!1,(null!==WI||null!==UI)&&(JI(),GI())}}function eR(e,t){var n=e.stateNode;if(null===n)return null;var r=HF(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(DL(231,t,typeof n));return n}var tR=!1;if(_L)try{var nR={};Object.defineProperty(nR,"passive",{get:function(){tR=!0}}),window.addEventListener("test",nR,nR),window.removeEventListener("test",nR,nR)}catch(jh){tR=!1}function rR(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var iR=!1,oR=null,aR=!1,sR=null,lR={onError:function(e){iR=!0,oR=e}};function cR(e,t,n,r,i,o,a,s,l){iR=!1,oR=null,rR.apply(lR,arguments)}function uR(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function dR(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function fR(e){if(uR(e)!==e)throw Error(DL(188))}function hR(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=uR(e)))throw Error(DL(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return fR(i),e;if(o===r)return fR(i),t;o=o.sibling}throw Error(DL(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(DL(189))}}if(n.alternate!==r)throw Error(DL(190))}if(3!==n.tag)throw Error(DL(188));return n.stateNode.current===n?e:t}(e),null!==e?pR(e):null}function pR(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=pR(e);if(null!==t)return t;e=e.sibling}return null}var mR=qL.unstable_scheduleCallback,gR=qL.unstable_cancelCallback,yR=qL.unstable_shouldYield,vR=qL.unstable_requestPaint,bR=qL.unstable_now,xR=qL.unstable_getCurrentPriorityLevel,wR=qL.unstable_ImmediatePriority,SR=qL.unstable_UserBlockingPriority,kR=qL.unstable_NormalPriority,MR=qL.unstable_LowPriority,CR=qL.unstable_IdlePriority,ER=null,qR=null;var DR=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(TR(e)/NR|0)|0},TR=Math.log,NR=Math.LN2;var OR=64,AR=4194304;function _R(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function LR(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=_R(s):0!==(o&=a)&&(r=_R(o))}else 0!==(a=n&~i)?r=_R(a):0!==o&&(r=_R(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-DR(t)),r|=e[n],t&=~i;return r}function IR(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function RR(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function PR(){var e=OR;return!(4194240&(OR<<=1))&&(OR=64),e}function zR(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function FR(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-DR(t)]=n}function jR(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-DR(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var BR=0;function HR(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var VR,$R,WR,UR,YR,KR=!1,GR=[],XR=null,JR=null,ZR=null,QR=new Map,eP=new Map,tP=[],nP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rP(e,t){switch(e){case"focusin":case"focusout":XR=null;break;case"dragenter":case"dragleave":JR=null;break;case"mouseover":case"mouseout":ZR=null;break;case"pointerover":case"pointerout":QR.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":eP.delete(t.pointerId)}}function iP(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=jF(t))&&$R(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function oP(e){var t=FF(e.target);if(null!==t){var n=uR(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=dR(n)))return e.blockedOn=t,void YR(e.priority,(function(){WR(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function aP(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=yP(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=jF(n))&&$R(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);HI=r,n.target.dispatchEvent(r),HI=null,t.shift()}return!0}function sP(e,t,n){aP(e)&&n.delete(t)}function lP(){KR=!1,null!==XR&&aP(XR)&&(XR=null),null!==JR&&aP(JR)&&(JR=null),null!==ZR&&aP(ZR)&&(ZR=null),QR.forEach(sP),eP.forEach(sP)}function cP(e,t){e.blockedOn===t&&(e.blockedOn=null,KR||(KR=!0,qL.unstable_scheduleCallback(qL.unstable_NormalPriority,lP)))}function uP(e){function t(t){return cP(t,e)}if(0<GR.length){cP(GR[0],e);for(var n=1;n<GR.length;n++){var r=GR[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==XR&&cP(XR,e),null!==JR&&cP(JR,e),null!==ZR&&cP(ZR,e),QR.forEach(t),eP.forEach(t),n=0;n<tP.length;n++)(r=tP[n]).blockedOn===e&&(r.blockedOn=null);for(;0<tP.length&&null===(n=tP[0]).blockedOn;)oP(n),null===n.blockedOn&&tP.shift()}var dP=VL.ReactCurrentBatchConfig,fP=!0;function hP(e,t,n,r){var i=BR,o=dP.transition;dP.transition=null;try{BR=1,mP(e,t,n,r)}finally{BR=i,dP.transition=o}}function pP(e,t,n,r){var i=BR,o=dP.transition;dP.transition=null;try{BR=4,mP(e,t,n,r)}finally{BR=i,dP.transition=o}}function mP(e,t,n,r){if(fP){var i=yP(e,t,n,r);if(null===i)dF(e,t,r,gP,n),rP(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return XR=iP(XR,e,t,n,r,i),!0;case"dragenter":return JR=iP(JR,e,t,n,r,i),!0;case"mouseover":return ZR=iP(ZR,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return QR.set(o,iP(QR.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,eP.set(o,iP(eP.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(rP(e,r),4&t&&-1<nP.indexOf(e)){for(;null!==i;){var o=jF(i);if(null!==o&&VR(o),null===(o=yP(e,t,n,r))&&dF(e,t,r,gP,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else dF(e,t,r,null,n)}}var gP=null;function yP(e,t,n,r){if(gP=null,null!==(e=FF(e=VI(r))))if(null===(t=uR(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=dR(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return gP=e,null}function vP(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(xR()){case wR:return 1;case SR:return 4;case kR:case MR:return 16;case CR:return 536870912;default:return 16}default:return 16}}var bP=null,xP=null,wP=null;function SP(){if(wP)return wP;var e,t,n=xP,r=n.length,i="value"in bP?bP.value:bP.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 wP=i.slice(e,1<t?1-t:void 0)}function kP(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function MP(){return!0}function CP(){return!1}function EP(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?MP:CP,this.isPropagationStopped=CP,this}return aI(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=MP)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=MP)},persist:function(){},isPersistent:MP}),t}var qP,DP,TP,NP={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},OP=EP(NP),AP=aI({},NP,{view:0,detail:0}),_P=EP(AP),LP=aI({},AP,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:UP,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==TP&&(TP&&"mousemove"===e.type?(qP=e.screenX-TP.screenX,DP=e.screenY-TP.screenY):DP=qP=0,TP=e),qP)},movementY:function(e){return"movementY"in e?e.movementY:DP}}),IP=EP(LP),RP=EP(aI({},LP,{dataTransfer:0})),PP=EP(aI({},AP,{relatedTarget:0})),zP=EP(aI({},NP,{animationName:0,elapsedTime:0,pseudoElement:0})),FP=aI({},NP,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jP=EP(FP),BP=EP(aI({},NP,{data:0})),HP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VP={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"},$P={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function WP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=$P[e])&&!!t[e]}function UP(){return WP}var YP=aI({},AP,{key:function(e){if(e.key){var t=HP[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=kP(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?VP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:UP,charCode:function(e){return"keypress"===e.type?kP(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?kP(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),KP=EP(YP),GP=EP(aI({},LP,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),XP=EP(aI({},AP,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:UP})),JP=EP(aI({},NP,{propertyName:0,elapsedTime:0,pseudoElement:0})),ZP=aI({},LP,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),QP=EP(ZP),ez=[9,13,27,32],tz=_L&&"CompositionEvent"in window,nz=null;_L&&"documentMode"in document&&(nz=document.documentMode);var rz=_L&&"TextEvent"in window&&!nz,iz=_L&&(!tz||nz&&8<nz&&11>=nz),oz=String.fromCharCode(32),az=!1;function sz(e,t){switch(e){case"keyup":return-1!==ez.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lz(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var cz=!1;var uz={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 dz(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!uz[e.type]:"textarea"===t}function fz(e,t,n,r){KI(r),0<(t=hF(t,"onChange")).length&&(n=new OP("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hz=null,pz=null;function mz(e){oF(e,0)}function gz(e){if(gI(BF(e)))return e}function yz(e,t){if("change"===e)return t}var vz=!1;if(_L){var bz;if(_L){var xz="oninput"in document;if(!xz){var wz=document.createElement("div");wz.setAttribute("oninput","return;"),xz="function"==typeof wz.oninput}bz=xz}else bz=!1;vz=bz&&(!document.documentMode||9<document.documentMode)}function Sz(){hz&&(hz.detachEvent("onpropertychange",kz),pz=hz=null)}function kz(e){if("value"===e.propertyName&&gz(pz)){var t=[];fz(t,pz,e,VI(e)),QI(mz,t)}}function Mz(e,t,n){"focusin"===e?(Sz(),pz=n,(hz=t).attachEvent("onpropertychange",kz)):"focusout"===e&&Sz()}function Cz(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return gz(pz)}function Ez(e,t){if("click"===e)return gz(t)}function qz(e,t){if("input"===e||"change"===e)return gz(t)}var Dz="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Tz(e,t){if(Dz(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!LL.call(t,i)||!Dz(e[i],t[i]))return!1}return!0}function Nz(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oz(e,t){var n,r=Nz(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=Nz(r)}}function Az(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Az(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function _z(){for(var e=window,t=yI();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=yI((e=t.contentWindow).document)}return t}function Lz(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 Iz(e){var t=_z(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Az(n.ownerDocument.documentElement,n)){if(null!==r&&Lz(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=Oz(n,o);var a=Oz(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 Rz=_L&&"documentMode"in document&&11>=document.documentMode,Pz=null,zz=null,Fz=null,jz=!1;function Bz(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;jz||null==Pz||Pz!==yI(r)||("selectionStart"in(r=Pz)&&Lz(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Fz&&Tz(Fz,r)||(Fz=r,0<(r=hF(zz,"onSelect")).length&&(t=new OP("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pz)))}function Hz(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vz={animationend:Hz("Animation","AnimationEnd"),animationiteration:Hz("Animation","AnimationIteration"),animationstart:Hz("Animation","AnimationStart"),transitionend:Hz("Transition","TransitionEnd")},$z={},Wz={};function Uz(e){if($z[e])return $z[e];if(!Vz[e])return e;var t,n=Vz[e];for(t in n)if(n.hasOwnProperty(t)&&t in Wz)return $z[e]=n[t];return e}_L&&(Wz=document.createElement("div").style,"AnimationEvent"in window||(delete Vz.animationend.animation,delete Vz.animationiteration.animation,delete Vz.animationstart.animation),"TransitionEvent"in window||delete Vz.transitionend.transition);var Yz=Uz("animationend"),Kz=Uz("animationiteration"),Gz=Uz("animationstart"),Xz=Uz("transitionend"),Jz=new Map,Zz="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Qz(e,t){Jz.set(e,t),OL(t,[e])}for(var eF=0;eF<Zz.length;eF++){var tF=Zz[eF];Qz(tF.toLowerCase(),"on"+(tF[0].toUpperCase()+tF.slice(1)))}Qz(Yz,"onAnimationEnd"),Qz(Kz,"onAnimationIteration"),Qz(Gz,"onAnimationStart"),Qz("dblclick","onDoubleClick"),Qz("focusin","onFocus"),Qz("focusout","onBlur"),Qz(Xz,"onTransitionEnd"),AL("onMouseEnter",["mouseout","mouseover"]),AL("onMouseLeave",["mouseout","mouseover"]),AL("onPointerEnter",["pointerout","pointerover"]),AL("onPointerLeave",["pointerout","pointerover"]),OL("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),OL("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),OL("onBeforeInput",["compositionend","keypress","textInput","paste"]),OL("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),OL("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),OL("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nF="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rF=new Set("cancel close invalid load scroll toggle".split(" ").concat(nF));function iF(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(cR.apply(this,arguments),iR){if(!iR)throw Error(DL(198));var c=oR;iR=!1,oR=null,aR||(aR=!0,sR=c)}}(r,t,void 0,e),e.currentTarget=null}function oF(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;iF(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;iF(i,s,c),o=l}}}if(aR)throw e=sR,aR=!1,sR=null,e}function aF(e,t){var n=t[RF];void 0===n&&(n=t[RF]=new Set);var r=e+"__bubble";n.has(r)||(uF(t,e,2,!1),n.add(r))}function sF(e,t,n){var r=0;t&&(r|=4),uF(n,e,r,t)}var lF="_reactListening"+Math.random().toString(36).slice(2);function cF(e){if(!e[lF]){e[lF]=!0,TL.forEach((function(t){"selectionchange"!==t&&(rF.has(t)||sF(t,!1,e),sF(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[lF]||(t[lF]=!0,sF("selectionchange",!1,t))}}function uF(e,t,n,r){switch(vP(t)){case 1:var i=hP;break;case 4:i=pP;break;default:i=mP}n=i.bind(null,t,n,e),i=void 0,!tR||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function dF(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=FF(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}QI((function(){var r=o,i=VI(n),a=[];e:{var s=Jz.get(e);if(void 0!==s){var l=OP,c=e;switch(e){case"keypress":if(0===kP(n))break e;case"keydown":case"keyup":l=KP;break;case"focusin":c="focus",l=PP;break;case"focusout":c="blur",l=PP;break;case"beforeblur":case"afterblur":l=PP;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=IP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=RP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=XP;break;case Yz:case Kz:case Gz:l=zP;break;case Xz:l=JP;break;case"scroll":l=_P;break;case"wheel":l=QP;break;case"copy":case"cut":case"paste":l=jP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=GP}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=eR(p,f))&&u.push(fF(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===HI||!(c=n.relatedTarget||n.fromElement)||!FF(c)&&!c[IF])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?FF(c):null)&&(c!==(d=uR(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=IP,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=GP,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:BF(l),h=null==c?s:BF(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,FF(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=pF(h))p++;for(h=0,m=f;m;m=pF(m))h++;for(;0<p-h;)u=pF(u),p--;for(;0<h-p;)f=pF(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=pF(u),f=pF(f)}u=null}else u=null;null!==l&&mF(a,s,l,u,!1),null!==c&&null!==d&&mF(a,d,c,u,!0)}if("select"===(l=(s=r?BF(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=yz;else if(dz(s))if(vz)g=qz;else{g=Cz;var y=Mz}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=Ez);switch(g&&(g=g(e,r))?fz(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&kI(s,"number",s.value)),y=r?BF(r):window,e){case"focusin":(dz(y)||"true"===y.contentEditable)&&(Pz=y,zz=r,Fz=null);break;case"focusout":Fz=zz=Pz=null;break;case"mousedown":jz=!0;break;case"contextmenu":case"mouseup":case"dragend":jz=!1,Bz(a,n,i);break;case"selectionchange":if(Rz)break;case"keydown":case"keyup":Bz(a,n,i)}var v;if(tz)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else cz?sz(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(iz&&"ko"!==n.locale&&(cz||"onCompositionStart"!==b?"onCompositionEnd"===b&&cz&&(v=SP()):(xP="value"in(bP=i)?bP.value:bP.textContent,cz=!0)),0<(y=hF(r,b)).length&&(b=new BP(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=lz(n))&&(b.data=v))),(v=rz?function(e,t){switch(e){case"compositionend":return lz(t);case"keypress":return 32!==t.which?null:(az=!0,oz);case"textInput":return(e=t.data)===oz&&az?null:e;default:return null}}(e,n):function(e,t){if(cz)return"compositionend"===e||!tz&&sz(e,t)?(e=SP(),wP=xP=bP=null,cz=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return iz&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=hF(r,"onBeforeInput")).length&&(i=new BP("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}oF(a,t)}))}function fF(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hF(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=eR(e,n))&&r.unshift(fF(e,o,i)),null!=(o=eR(e,t))&&r.push(fF(e,o,i))),e=e.return}return r}function pF(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function mF(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=eR(n,o))&&a.unshift(fF(n,l,s)):i||null!=(l=eR(n,o))&&a.push(fF(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var gF=/\r\n?/g,yF=/\u0000|\uFFFD/g;function vF(e){return("string"==typeof e?e:""+e).replace(gF,"\n").replace(yF,"")}function bF(e,t,n){if(t=vF(t),vF(e)!==t&&n)throw Error(DL(425))}function xF(){}var wF=null,SF=null;function kF(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var MF="function"==typeof setTimeout?setTimeout:void 0,CF="function"==typeof clearTimeout?clearTimeout:void 0,EF="function"==typeof Promise?Promise:void 0,qF="function"==typeof queueMicrotask?queueMicrotask:void 0!==EF?function(e){return EF.resolve(null).then(e).catch(DF)}:MF;function DF(e){setTimeout((function(){throw e}))}function TF(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void uP(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);uP(t)}function NF(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function OF(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var AF=Math.random().toString(36).slice(2),_F="__reactFiber$"+AF,LF="__reactProps$"+AF,IF="__reactContainer$"+AF,RF="__reactEvents$"+AF,PF="__reactListeners$"+AF,zF="__reactHandles$"+AF;function FF(e){var t=e[_F];if(t)return t;for(var n=e.parentNode;n;){if(t=n[IF]||n[_F]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=OF(e);null!==e;){if(n=e[_F])return n;e=OF(e)}return t}n=(e=n).parentNode}return null}function jF(e){return!(e=e[_F]||e[IF])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function BF(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(DL(33))}function HF(e){return e[LF]||null}var VF=[],$F=-1;function WF(e){return{current:e}}function UF(e){0>$F||(e.current=VF[$F],VF[$F]=null,$F--)}function YF(e,t){$F++,VF[$F]=e.current,e.current=t}var KF={},GF=WF(KF),XF=WF(!1),JF=KF;function ZF(e,t){var n=e.type.contextTypes;if(!n)return KF;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 QF(e){return null!=(e=e.childContextTypes)}function ej(){UF(XF),UF(GF)}function tj(e,t,n){if(GF.current!==KF)throw Error(DL(168));YF(GF,t),YF(XF,n)}function nj(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(DL(108,fI(e)||"Unknown",i));return aI({},n,r)}function rj(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||KF,JF=GF.current,YF(GF,e),YF(XF,XF.current),!0}function ij(e,t,n){var r=e.stateNode;if(!r)throw Error(DL(169));n?(e=nj(e,t,JF),r.__reactInternalMemoizedMergedChildContext=e,UF(XF),UF(GF),YF(GF,e)):UF(XF),YF(XF,n)}var oj=null,aj=!1,sj=!1;function lj(e){null===oj?oj=[e]:oj.push(e)}function cj(){if(!sj&&null!==oj){sj=!0;var e=0,t=BR;try{var n=oj;for(BR=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}oj=null,aj=!1}catch(t){throw null!==oj&&(oj=oj.slice(e+1)),mR(wR,cj),t}finally{BR=t,sj=!1}}return null}var uj=[],dj=0,fj=null,hj=0,pj=[],mj=0,gj=null,yj=1,vj="";function bj(e,t){uj[dj++]=hj,uj[dj++]=fj,fj=e,hj=t}function xj(e,t,n){pj[mj++]=yj,pj[mj++]=vj,pj[mj++]=gj,gj=e;var r=yj;e=vj;var i=32-DR(r)-1;r&=~(1<<i),n+=1;var o=32-DR(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,yj=1<<32-DR(t)+i|n<<i|r,vj=o+e}else yj=1<<o|n<<i|r,vj=e}function wj(e){null!==e.return&&(bj(e,1),xj(e,1,0))}function Sj(e){for(;e===fj;)fj=uj[--dj],uj[dj]=null,hj=uj[--dj],uj[dj]=null;for(;e===gj;)gj=pj[--mj],pj[mj]=null,vj=pj[--mj],pj[mj]=null,yj=pj[--mj],pj[mj]=null}var kj=null,Mj=null,Cj=!1,Ej=null;function qj(e,t){var n=J$(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Dj(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,kj=e,Mj=NF(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,kj=e,Mj=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==gj?{id:yj,overflow:vj}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=J$(18,null,null,0)).stateNode=t,n.return=e,e.child=n,kj=e,Mj=null,!0);default:return!1}}function Tj(e){return!(!(1&e.mode)||128&e.flags)}function Nj(e){if(Cj){var t=Mj;if(t){var n=t;if(!Dj(e,t)){if(Tj(e))throw Error(DL(418));t=NF(n.nextSibling);var r=kj;t&&Dj(e,t)?qj(r,n):(e.flags=-4097&e.flags|2,Cj=!1,kj=e)}}else{if(Tj(e))throw Error(DL(418));e.flags=-4097&e.flags|2,Cj=!1,kj=e}}}function Oj(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;kj=e}function Aj(e){if(e!==kj)return!1;if(!Cj)return Oj(e),Cj=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!kF(e.type,e.memoizedProps)),t&&(t=Mj)){if(Tj(e))throw _j(),Error(DL(418));for(;t;)qj(e,t),t=NF(t.nextSibling)}if(Oj(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(DL(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Mj=NF(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Mj=null}}else Mj=kj?NF(e.stateNode.nextSibling):null;return!0}function _j(){for(var e=Mj;e;)e=NF(e.nextSibling)}function Lj(){Mj=kj=null,Cj=!1}function Ij(e){null===Ej?Ej=[e]:Ej.push(e)}var Rj=VL.ReactCurrentBatchConfig;function Pj(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(DL(309));var r=n.stateNode}if(!r)throw Error(DL(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(DL(284));if(!n._owner)throw Error(DL(290,e))}return e}function zj(e,t){throw e=Object.prototype.toString.call(t),Error(DL(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fj(e){return(0,e._init)(e._payload)}function jj(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Q$(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=rW(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===UL?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===tI&&Fj(o)===t.type)?((r=i(t,n.props)).ref=Pj(e,t,n),r.return=e,r):((r=eW(n.type,n.key,n.props,null,e.mode,r)).ref=Pj(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=iW(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=tW(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=rW(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case $L:return(n=eW(t.type,t.key,t.props,null,e.mode,n)).ref=Pj(e,null,t),n.return=e,n;case WL:return(t=iW(t,e.mode,n)).return=e,t;case tI:return d(e,(0,t._init)(t._payload),n)}if(MI(t)||iI(t))return(t=tW(t,e.mode,n,null)).return=e,t;zj(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case $L:return n.key===i?l(e,t,n,r):null;case WL:return n.key===i?c(e,t,n,r):null;case tI:return f(e,t,(i=n._init)(n._payload),r)}if(MI(n)||iI(n))return null!==i?null:u(e,t,n,r,null);zj(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case $L:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case WL:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case tI:return h(e,t,n,(0,r._init)(r._payload),i)}if(MI(r)||iI(r))return u(t,e=e.get(n)||null,r,i,null);zj(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),Cj&&bj(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return Cj&&bj(i,m),c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),Cj&&bj(i,m),c}function m(i,a,s,l){var c=iI(s);if("function"!=typeof c)throw Error(DL(150));if(null==(s=c.call(s)))throw Error(DL(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),Cj&&bj(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return Cj&&bj(i,m),c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),Cj&&bj(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===UL&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case $L:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===UL){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===tI&&Fj(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=Pj(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===UL?((o=tW(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=eW(s.type,s.key,s.props,null,r.mode,l)).ref=Pj(r,o,s),l.return=r,r=l)}return a(r);case WL:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=iW(s,r.mode,l)).return=r,r=o}return a(r);case tI:return e(r,o,(u=s._init)(s._payload),l)}if(MI(s))return p(r,o,s,l);if(iI(s))return m(r,o,s,l);zj(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=rW(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var Bj=jj(!0),Hj=jj(!1),Vj=WF(null),$j=null,Wj=null,Uj=null;function Yj(){Uj=Wj=$j=null}function Kj(e){var t=Vj.current;UF(Vj),e._currentValue=t}function Gj(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Xj(e,t){$j=e,Uj=Wj=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(FH=!0),e.firstContext=null)}function Jj(e){var t=e._currentValue;if(Uj!==e)if(e={context:e,memoizedValue:t,next:null},null===Wj){if(null===$j)throw Error(DL(308));Wj=e,$j.dependencies={lanes:0,firstContext:e}}else Wj=Wj.next=e;return t}var Zj=null;function Qj(e){null===Zj?Zj=[e]:Zj.push(e)}function eB(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Qj(t)):(n.next=i.next,i.next=n),t.interleaved=n,tB(e,r)}function tB(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var nB=!1;function rB(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iB(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oB(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function aB(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&KV){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,tB(e,n)}return null===(i=r.interleaved)?(t.next=t,Qj(r)):(t.next=i.next,i.next=t),r.interleaved=t,tB(e,n)}function sB(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,jR(e,n)}}function lB(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cB(e,t,n,r){var i=e.updateQueue;nB=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=aI({},d,f);break e;case 2:nB=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);n$|=a,e.lanes=a,e.memoizedState=d}}function uB(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(DL(191,i));i.call(r)}}}var dB={},fB=WF(dB),hB=WF(dB),pB=WF(dB);function mB(e){if(e===dB)throw Error(DL(174));return e}function gB(e,t){switch(YF(pB,t),YF(hB,e),YF(fB,dB),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:OI(null,"");break;default:t=OI(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}UF(fB),YF(fB,t)}function yB(){UF(fB),UF(hB),UF(pB)}function vB(e){mB(pB.current);var t=mB(fB.current),n=OI(t,e.type);t!==n&&(YF(hB,e),YF(fB,n))}function bB(e){hB.current===e&&(UF(fB),UF(hB))}var xB=WF(0);function wB(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var SB=[];function kB(){for(var e=0;e<SB.length;e++)SB[e]._workInProgressVersionPrimary=null;SB.length=0}var MB=VL.ReactCurrentDispatcher,CB=VL.ReactCurrentBatchConfig,EB=0,qB=null,DB=null,TB=null,NB=!1,OB=!1,AB=0,_B=0;function LB(){throw Error(DL(321))}function IB(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dz(e[n],t[n]))return!1;return!0}function RB(e,t,n,r,i,o){if(EB=o,qB=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,MB.current=null===e||null===e.memoizedState?bH:xH,e=n(r,i),OB){o=0;do{if(OB=!1,AB=0,25<=o)throw Error(DL(301));o+=1,TB=DB=null,t.updateQueue=null,MB.current=wH,e=n(r,i)}while(OB)}if(MB.current=vH,t=null!==DB&&null!==DB.next,EB=0,TB=DB=qB=null,NB=!1,t)throw Error(DL(300));return e}function PB(){var e=0!==AB;return AB=0,e}function zB(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===TB?qB.memoizedState=TB=e:TB=TB.next=e,TB}function FB(){if(null===DB){var e=qB.alternate;e=null!==e?e.memoizedState:null}else e=DB.next;var t=null===TB?qB.memoizedState:TB.next;if(null!==t)TB=t,DB=e;else{if(null===e)throw Error(DL(310));e={memoizedState:(DB=e).memoizedState,baseState:DB.baseState,baseQueue:DB.baseQueue,queue:DB.queue,next:null},null===TB?qB.memoizedState=TB=e:TB=TB.next=e}return TB}function jB(e,t){return"function"==typeof t?t(e):t}function BB(e){var t=FB(),n=t.queue;if(null===n)throw Error(DL(311));n.lastRenderedReducer=e;var r=DB,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((EB&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,qB.lanes|=u,n$|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,Dz(r,t.memoizedState)||(FH=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,qB.lanes|=o,n$|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function HB(e){var t=FB(),n=t.queue;if(null===n)throw Error(DL(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);Dz(o,t.memoizedState)||(FH=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function VB(){}function $B(e,t){var n=qB,r=FB(),i=t(),o=!Dz(r.memoizedState,i);if(o&&(r.memoizedState=i,FH=!0),r=r.queue,nH(YB.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==TB&&1&TB.memoizedState.tag){if(n.flags|=2048,JB(9,UB.bind(null,n,r,i,t),void 0,null),null===GV)throw Error(DL(349));30&EB||WB(n,t,i)}return i}function WB(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=qB.updateQueue)?(t={lastEffect:null,stores:null},qB.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function UB(e,t,n,r){t.value=n,t.getSnapshot=r,KB(t)&&GB(e)}function YB(e,t,n){return n((function(){KB(t)&&GB(e)}))}function KB(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dz(e,n)}catch(e){return!0}}function GB(e){var t=tB(e,1);null!==t&&S$(t,e,1,-1)}function XB(e){var t=zB();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jB,lastRenderedState:e},t.queue=e,e=e.dispatch=pH.bind(null,qB,e),[t.memoizedState,e]}function JB(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=qB.updateQueue)?(t={lastEffect:null,stores:null},qB.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ZB(){return FB().memoizedState}function QB(e,t,n,r){var i=zB();qB.flags|=e,i.memoizedState=JB(1|t,n,void 0,void 0===r?null:r)}function eH(e,t,n,r){var i=FB();r=void 0===r?null:r;var o=void 0;if(null!==DB){var a=DB.memoizedState;if(o=a.destroy,null!==r&&IB(r,a.deps))return void(i.memoizedState=JB(t,n,o,r))}qB.flags|=e,i.memoizedState=JB(1|t,n,o,r)}function tH(e,t){return QB(8390656,8,e,t)}function nH(e,t){return eH(2048,8,e,t)}function rH(e,t){return eH(4,2,e,t)}function iH(e,t){return eH(4,4,e,t)}function oH(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 aH(e,t,n){return n=null!=n?n.concat([e]):null,eH(4,4,oH.bind(null,t,e),n)}function sH(){}function lH(e,t){var n=FB();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&IB(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function cH(e,t){var n=FB();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&IB(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function uH(e,t,n){return 21&EB?(Dz(n,t)||(n=PR(),qB.lanes|=n,n$|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,FH=!0),e.memoizedState=n)}function dH(e,t){var n=BR;BR=0!==n&&4>n?n:4,e(!0);var r=CB.transition;CB.transition={};try{e(!1),t()}finally{BR=n,CB.transition=r}}function fH(){return FB().memoizedState}function hH(e,t,n){var r=w$(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mH(e))gH(t,n);else if(null!==(n=eB(e,t,n,r))){S$(n,e,r,x$()),yH(n,t,r)}}function pH(e,t,n){var r=w$(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mH(e))gH(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Dz(s,a)){var l=t.interleaved;return null===l?(i.next=i,Qj(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=eB(e,t,i,r))&&(S$(n,e,r,i=x$()),yH(n,t,r))}}function mH(e){var t=e.alternate;return e===qB||null!==t&&t===qB}function gH(e,t){OB=NB=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yH(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,jR(e,n)}}var vH={readContext:Jj,useCallback:LB,useContext:LB,useEffect:LB,useImperativeHandle:LB,useInsertionEffect:LB,useLayoutEffect:LB,useMemo:LB,useReducer:LB,useRef:LB,useState:LB,useDebugValue:LB,useDeferredValue:LB,useTransition:LB,useMutableSource:LB,useSyncExternalStore:LB,useId:LB,unstable_isNewReconciler:!1},bH={readContext:Jj,useCallback:function(e,t){return zB().memoizedState=[e,void 0===t?null:t],e},useContext:Jj,useEffect:tH,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,QB(4194308,4,oH.bind(null,t,e),n)},useLayoutEffect:function(e,t){return QB(4194308,4,e,t)},useInsertionEffect:function(e,t){return QB(4,2,e,t)},useMemo:function(e,t){var n=zB();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zB();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hH.bind(null,qB,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},zB().memoizedState=e},useState:XB,useDebugValue:sH,useDeferredValue:function(e){return zB().memoizedState=e},useTransition:function(){var e=XB(!1),t=e[0];return e=dH.bind(null,e[1]),zB().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qB,i=zB();if(Cj){if(void 0===n)throw Error(DL(407));n=n()}else{if(n=t(),null===GV)throw Error(DL(349));30&EB||WB(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,tH(YB.bind(null,r,o,e),[e]),r.flags|=2048,JB(9,UB.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=zB(),t=GV.identifierPrefix;if(Cj){var n=vj;t=":"+t+"R"+(n=(yj&~(1<<32-DR(yj)-1)).toString(32)+n),0<(n=AB++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_B++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xH={readContext:Jj,useCallback:lH,useContext:Jj,useEffect:nH,useImperativeHandle:aH,useInsertionEffect:rH,useLayoutEffect:iH,useMemo:cH,useReducer:BB,useRef:ZB,useState:function(){return BB(jB)},useDebugValue:sH,useDeferredValue:function(e){return uH(FB(),DB.memoizedState,e)},useTransition:function(){return[BB(jB)[0],FB().memoizedState]},useMutableSource:VB,useSyncExternalStore:$B,useId:fH,unstable_isNewReconciler:!1},wH={readContext:Jj,useCallback:lH,useContext:Jj,useEffect:nH,useImperativeHandle:aH,useInsertionEffect:rH,useLayoutEffect:iH,useMemo:cH,useReducer:HB,useRef:ZB,useState:function(){return HB(jB)},useDebugValue:sH,useDeferredValue:function(e){var t=FB();return null===DB?t.memoizedState=e:uH(t,DB.memoizedState,e)},useTransition:function(){return[HB(jB)[0],FB().memoizedState]},useMutableSource:VB,useSyncExternalStore:$B,useId:fH,unstable_isNewReconciler:!1};function SH(e,t){if(e&&e.defaultProps){for(var n in t=aI({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function kH(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:aI({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var MH={isMounted:function(e){return!!(e=e._reactInternals)&&uR(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=x$(),i=w$(e),o=oB(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=aB(e,o,i))&&(S$(t,e,i,r),sB(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=x$(),i=w$(e),o=oB(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=aB(e,o,i))&&(S$(t,e,i,r),sB(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=x$(),r=w$(e),i=oB(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=aB(e,i,r))&&(S$(t,e,r,n),sB(t,e,r))}};function CH(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Tz(n,r)||!Tz(i,o))}function EH(e,t,n){var r=!1,i=KF,o=t.contextType;return"object"==typeof o&&null!==o?o=Jj(o):(i=QF(t)?JF:GF.current,o=(r=null!=(r=t.contextTypes))?ZF(e,i):KF),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=MH,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function qH(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&&MH.enqueueReplaceState(t,t.state,null)}function DH(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},rB(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Jj(o):(o=QF(t)?JF:GF.current,i.context=ZF(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(kH(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&&MH.enqueueReplaceState(i,i.state,null),cB(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function TH(e,t){try{var n="",r=t;do{n+=uI(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function NH(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function OH(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var AH="function"==typeof WeakMap?WeakMap:Map;function _H(e,t,n){(n=oB(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){u$||(u$=!0,d$=r),OH(0,t)},n}function LH(e,t,n){(n=oB(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){OH(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){OH(0,t),"function"!=typeof r&&(null===f$?f$=new Set([this]):f$.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function IH(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new AH;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=W$.bind(null,e,t,n),t.then(e,e))}function RH(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function PH(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=oB(-1,1)).tag=2,aB(n,t,1))),n.lanes|=1),e)}var zH=VL.ReactCurrentOwner,FH=!1;function jH(e,t,n,r){t.child=null===e?Hj(t,null,n,r):Bj(t,e.child,n,r)}function BH(e,t,n,r,i){n=n.render;var o=t.ref;return Xj(t,i),r=RB(e,t,n,r,o,i),n=PB(),null===e||FH?(Cj&&n&&wj(t),t.flags|=1,jH(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uV(e,t,i))}function HH(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Z$(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=eW(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,VH(e,t,o,r,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:Tz)(a,r)&&e.ref===t.ref)return uV(e,t,i)}return t.flags|=1,(e=Q$(o,r)).ref=t.ref,e.return=t,t.child=e}function VH(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Tz(o,r)&&e.ref===t.ref){if(FH=!1,t.pendingProps=r=o,!(e.lanes&i))return t.lanes=e.lanes,uV(e,t,i);131072&e.flags&&(FH=!0)}}return UH(e,t,n,r,i)}function $H(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,YF(QV,ZV),ZV|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,YF(QV,ZV),ZV|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},YF(QV,ZV),ZV|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,YF(QV,ZV),ZV|=r;return jH(e,t,i,n),t.child}function WH(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function UH(e,t,n,r,i){var o=QF(n)?JF:GF.current;return o=ZF(t,o),Xj(t,i),n=RB(e,t,n,r,o,i),r=PB(),null===e||FH?(Cj&&r&&wj(t),t.flags|=1,jH(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uV(e,t,i))}function YH(e,t,n,r,i){if(QF(n)){var o=!0;rj(t)}else o=!1;if(Xj(t,i),null===t.stateNode)cV(e,t),EH(t,n,r),DH(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Jj(c):c=ZF(t,c=QF(n)?JF:GF.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&qH(t,a,r,c),nB=!1;var f=t.memoizedState;a.state=f,cB(t,r,a,i),l=t.memoizedState,s!==r||f!==l||XF.current||nB?("function"==typeof u&&(kH(t,n,u,r),l=t.memoizedState),(s=nB||CH(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,iB(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:SH(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Jj(l):l=ZF(t,l=QF(n)?JF:GF.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&qH(t,a,r,l),nB=!1,f=t.memoizedState,a.state=f,cB(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||XF.current||nB?("function"==typeof h&&(kH(t,n,h,r),p=t.memoizedState),(c=nB||CH(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return KH(e,t,n,r,o,i)}function KH(e,t,n,r,i,o){WH(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&ij(t,n,!1),uV(e,t,o);r=t.stateNode,zH.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Bj(t,e.child,null,o),t.child=Bj(t,null,s,o)):jH(e,t,s,o),t.memoizedState=r.state,i&&ij(t,n,!0),t.child}function GH(e){var t=e.stateNode;t.pendingContext?tj(0,t.pendingContext,t.pendingContext!==t.context):t.context&&tj(0,t.context,!1),gB(e,t.containerInfo)}function XH(e,t,n,r,i){return Lj(),Ij(i),t.flags|=256,jH(e,t,n,r),t.child}var JH,ZH,QH,eV,tV={dehydrated:null,treeContext:null,retryLane:0};function nV(e){return{baseLanes:e,cachePool:null,transitions:null}}function rV(e,t,n){var r,i=t.pendingProps,o=xB.current,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),YF(xB,1&o),null===e)return Nj(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},1&i||null===a?a=nW(s,i,0,null):(a.childLanes=0,a.pendingProps=s),e=tW(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=nV(n),t.memoizedState=tV,e):iV(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,oV(e,t,a,r=NH(Error(DL(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=nW({mode:"visible",children:r.children},i,0,null),(o=tW(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&Bj(t,e.child,null,a),t.child.memoizedState=nV(a),t.memoizedState=tV,o);if(!(1&t.mode))return oV(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,oV(e,t,a,r=NH(o=Error(DL(419)),r,void 0))}if(s=!!(a&e.childLanes),FH||s){if(null!==(r=GV)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(r.suspendedLanes|a)?0:i)&&i!==o.retryLane&&(o.retryLane=i,tB(e,i),S$(r,e,i,-1))}return I$(),oV(e,t,a,r=NH(Error(DL(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Y$.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Mj=NF(i.nextSibling),kj=t,Cj=!0,Ej=null,null!==e&&(pj[mj++]=yj,pj[mj++]=vj,pj[mj++]=gj,yj=e.id,vj=e.overflow,gj=t),t=iV(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 1&s||t.child===o?(i=Q$(o,l)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null),null!==r?a=Q$(r,a):(a=tW(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?nV(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=tV,i}return e=(a=e.child).sibling,i=Q$(a,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function iV(e,t){return(t=nW({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function oV(e,t,n,r){return null!==r&&Ij(r),Bj(t,e.child,null,n),(e=iV(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function aV(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Gj(e.return,t,n)}function sV(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function lV(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(jH(e,t,r.children,n),2&(r=xB.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&aV(e,n,t);else if(19===e.tag)aV(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(YF(xB,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===wB(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sV(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===wB(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sV(t,!0,n,null,o);break;case"together":sV(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function cV(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function uV(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),n$|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(DL(153));if(null!==t.child){for(n=Q$(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Q$(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function dV(e,t){if(!Cj)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fV(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hV(e,t,n){var r=t.pendingProps;switch(Sj(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fV(t),null;case 1:case 17:return QF(t.type)&&ej(),fV(t),null;case 3:return r=t.stateNode,yB(),UF(XF),UF(GF),kB(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Aj(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Ej&&(E$(Ej),Ej=null))),ZH(e,t),fV(t),null;case 5:bB(t);var i=mB(pB.current);if(n=t.type,null!==e&&null!=t.stateNode)QH(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(DL(166));return fV(t),null}if(e=mB(fB.current),Aj(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[_F]=t,r[LF]=o,e=!!(1&t.mode),n){case"dialog":aF("cancel",r),aF("close",r);break;case"iframe":case"object":case"embed":aF("load",r);break;case"video":case"audio":for(i=0;i<nF.length;i++)aF(nF[i],r);break;case"source":aF("error",r);break;case"img":case"image":case"link":aF("error",r),aF("load",r);break;case"details":aF("toggle",r);break;case"input":bI(r,o),aF("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},aF("invalid",r);break;case"textarea":qI(r,o),aF("invalid",r)}for(var a in jI(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&bF(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&bF(r.textContent,s,e),i=["children",""+s]):NL.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&aF("scroll",r)}switch(n){case"input":mI(r),SI(r,o,!0);break;case"textarea":mI(r),TI(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=xF)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=NI(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[_F]=t,e[LF]=r,JH(e,t,!1,!1),t.stateNode=e;e:{switch(a=BI(n,r),n){case"dialog":aF("cancel",e),aF("close",e),i=r;break;case"iframe":case"object":case"embed":aF("load",e),i=r;break;case"video":case"audio":for(i=0;i<nF.length;i++)aF(nF[i],e);i=r;break;case"source":aF("error",e),i=r;break;case"img":case"image":case"link":aF("error",e),aF("load",e),i=r;break;case"details":aF("toggle",e),i=r;break;case"input":bI(e,r),i=vI(e,r),aF("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=aI({},r,{value:void 0}),aF("invalid",e);break;case"textarea":qI(e,r),i=EI(e,r),aF("invalid",e)}for(o in jI(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?zI(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&_I(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&LI(e,l):"number"==typeof l&&LI(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(NL.hasOwnProperty(o)?null!=l&&"onScroll"===o&&aF("scroll",e):null!=l&&HL(e,o,l,a))}switch(n){case"input":mI(e),SI(e,r,!1);break;case"textarea":mI(e),TI(e);break;case"option":null!=r.value&&e.setAttribute("value",""+hI(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?CI(e,!!r.multiple,o,!1):null!=r.defaultValue&&CI(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=xF)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return fV(t),null;case 6:if(e&&null!=t.stateNode)eV(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(DL(166));if(n=mB(pB.current),mB(fB.current),Aj(t)){if(r=t.stateNode,n=t.memoizedProps,r[_F]=t,(o=r.nodeValue!==n)&&null!==(e=kj))switch(e.tag){case 3:bF(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&bF(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[_F]=t,t.stateNode=r}return fV(t),null;case 13:if(UF(xB),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Cj&&null!==Mj&&1&t.mode&&!(128&t.flags))_j(),Lj(),t.flags|=98560,o=!1;else if(o=Aj(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(DL(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(DL(317));o[_F]=t}else Lj(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fV(t),o=!1}else null!==Ej&&(E$(Ej),Ej=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&xB.current?0===e$&&(e$=3):I$())),null!==t.updateQueue&&(t.flags|=4),fV(t),null);case 4:return yB(),ZH(e,t),null===e&&cF(t.stateNode.containerInfo),fV(t),null;case 10:return Kj(t.type._context),fV(t),null;case 19:if(UF(xB),null===(o=t.memoizedState))return fV(t),null;if(r=!!(128&t.flags),null===(a=o.rendering))if(r)dV(o,!1);else{if(0!==e$||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=wB(e))){for(t.flags|=128,dV(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return YF(xB,1&xB.current|2),t.child}e=e.sibling}null!==o.tail&&bR()>l$&&(t.flags|=128,r=!0,dV(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=wB(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),dV(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!Cj)return fV(t),null}else 2*bR()-o.renderingStartTime>l$&&1073741824!==n&&(t.flags|=128,r=!0,dV(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=bR(),t.sibling=null,n=xB.current,YF(xB,r?1&n|2:1&n),t):(fV(t),null);case 22:case 23:return O$(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&ZV)&&(fV(t),6&t.subtreeFlags&&(t.flags|=8192)):fV(t),null;case 24:case 25:return null}throw Error(DL(156,t.tag))}function pV(e,t){switch(Sj(t),t.tag){case 1:return QF(t.type)&&ej(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return yB(),UF(XF),UF(GF),kB(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return bB(t),null;case 13:if(UF(xB),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(DL(340));Lj()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return UF(xB),null;case 4:return yB(),null;case 10:return Kj(t.type._context),null;case 22:case 23:return O$(),null;default:return null}}JH=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}},ZH=function(){},QH=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,mB(fB.current);var o,a=null;switch(n){case"input":i=vI(e,i),r=vI(e,r),a=[];break;case"select":i=aI({},i,{value:void 0}),r=aI({},r,{value:void 0}),a=[];break;case"textarea":i=EI(e,i),r=EI(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=xF)}for(c in jI(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(NL.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(NL.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&aF("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},eV=function(e,t,n,r){n!==r&&(t.flags|=4)};var mV=!1,gV=!1,yV="function"==typeof WeakSet?WeakSet:Set,vV=null;function bV(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){$$(e,t,n)}else n.current=null}function xV(e,t,n){try{n()}catch(n){$$(e,t,n)}}var wV=!1;function SV(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&xV(t,n,o)}i=i.next}while(i!==r)}}function kV(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function MV(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function CV(e){var t=e.alternate;null!==t&&(e.alternate=null,CV(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[_F],delete t[LF],delete t[RF],delete t[PF],delete t[zF])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function EV(e){return 5===e.tag||3===e.tag||4===e.tag}function qV(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||EV(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function DV(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=xF));else if(4!==r&&null!==(e=e.child))for(DV(e,t,n),e=e.sibling;null!==e;)DV(e,t,n),e=e.sibling}function TV(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(TV(e,t,n),e=e.sibling;null!==e;)TV(e,t,n),e=e.sibling}var NV=null,OV=!1;function AV(e,t,n){for(n=n.child;null!==n;)_V(e,t,n),n=n.sibling}function _V(e,t,n){if(qR&&"function"==typeof qR.onCommitFiberUnmount)try{qR.onCommitFiberUnmount(ER,n)}catch(e){}switch(n.tag){case 5:gV||bV(n,t);case 6:var r=NV,i=OV;NV=null,AV(e,t,n),OV=i,null!==(NV=r)&&(OV?(e=NV,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):NV.removeChild(n.stateNode));break;case 18:null!==NV&&(OV?(e=NV,n=n.stateNode,8===e.nodeType?TF(e.parentNode,n):1===e.nodeType&&TF(e,n),uP(e)):TF(NV,n.stateNode));break;case 4:r=NV,i=OV,NV=n.stateNode.containerInfo,OV=!0,AV(e,t,n),NV=r,OV=i;break;case 0:case 11:case 14:case 15:if(!gV&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&xV(n,t,a),i=i.next}while(i!==r)}AV(e,t,n);break;case 1:if(!gV&&(bV(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){$$(n,t,e)}AV(e,t,n);break;case 21:AV(e,t,n);break;case 22:1&n.mode?(gV=(r=gV)||null!==n.memoizedState,AV(e,t,n),gV=r):AV(e,t,n);break;default:AV(e,t,n)}}function LV(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new yV),t.forEach((function(t){var r=K$.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function IV(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:NV=s.stateNode,OV=!1;break e;case 3:case 4:NV=s.stateNode.containerInfo,OV=!0;break e}s=s.return}if(null===NV)throw Error(DL(160));_V(o,a,i),NV=null,OV=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){$$(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)RV(t,e),t=t.sibling}function RV(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(IV(t,e),PV(e),4&r){try{SV(3,e,e.return),kV(3,e)}catch(t){$$(e,e.return,t)}try{SV(5,e,e.return)}catch(t){$$(e,e.return,t)}}break;case 1:IV(t,e),PV(e),512&r&&null!==n&&bV(n,n.return);break;case 5:if(IV(t,e),PV(e),512&r&&null!==n&&bV(n,n.return),32&e.flags){var i=e.stateNode;try{LI(i,"")}catch(t){$$(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&xI(i,o),BI(s,a);var c=BI(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?zI(i,d):"dangerouslySetInnerHTML"===u?_I(i,d):"children"===u?LI(i,d):HL(i,u,d,c)}switch(s){case"input":wI(i,o);break;case"textarea":DI(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?CI(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?CI(i,!!o.multiple,o.defaultValue,!0):CI(i,!!o.multiple,o.multiple?[]:"",!1))}i[LF]=o}catch(t){$$(e,e.return,t)}}break;case 6:if(IV(t,e),PV(e),4&r){if(null===e.stateNode)throw Error(DL(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){$$(e,e.return,t)}}break;case 3:if(IV(t,e),PV(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{uP(t.containerInfo)}catch(t){$$(e,e.return,t)}break;case 4:default:IV(t,e),PV(e);break;case 13:IV(t,e),PV(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(s$=bR())),4&r&&LV(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(gV=(c=gV)||u,IV(t,e),gV=c):IV(t,e),PV(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(vV=e,u=e.child;null!==u;){for(d=vV=u;null!==vV;){switch(h=(f=vV).child,f.tag){case 0:case 11:case 14:case 15:SV(4,f,f.return);break;case 1:bV(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){$$(r,n,e)}}break;case 5:bV(f,f.return);break;case 22:if(null!==f.memoizedState){BV(d);continue}}null!==h?(h.return=f,vV=h):BV(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=PI("display",a))}catch(t){$$(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){$$(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:IV(t,e),PV(e),4&r&&LV(e);case 21:}}function PV(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(EV(n)){var r=n;break e}n=n.return}throw Error(DL(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(LI(i,""),r.flags&=-33),TV(e,qV(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;DV(e,qV(e),o);break;default:throw Error(DL(161))}}catch(t){$$(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function zV(e,t,n){vV=e,FV(e)}function FV(e,t,n){for(var r=!!(1&e.mode);null!==vV;){var i=vV,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||mV;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||gV;s=mV;var c=gV;if(mV=a,(gV=l)&&!c)for(vV=i;null!==vV;)l=(a=vV).child,22===a.tag&&null!==a.memoizedState?HV(i):null!==l?(l.return=a,vV=l):HV(i);for(;null!==o;)vV=o,FV(o),o=o.sibling;vV=i,mV=s,gV=c}jV(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,vV=o):jV(e)}}function jV(e){for(;null!==vV;){var t=vV;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:gV||kV(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!gV)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:SH(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&uB(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}uB(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&uP(d)}}}break;default:throw Error(DL(163))}gV||512&t.flags&&MV(t)}catch(e){$$(t,t.return,e)}}if(t===e){vV=null;break}if(null!==(n=t.sibling)){n.return=t.return,vV=n;break}vV=t.return}}function BV(e){for(;null!==vV;){var t=vV;if(t===e){vV=null;break}var n=t.sibling;if(null!==n){n.return=t.return,vV=n;break}vV=t.return}}function HV(e){for(;null!==vV;){var t=vV;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{kV(4,t)}catch(e){$$(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){$$(t,i,e)}}var o=t.return;try{MV(t)}catch(e){$$(t,o,e)}break;case 5:var a=t.return;try{MV(t)}catch(e){$$(t,a,e)}}}catch(e){$$(t,t.return,e)}if(t===e){vV=null;break}var s=t.sibling;if(null!==s){s.return=t.return,vV=s;break}vV=t.return}}var VV,$V=Math.ceil,WV=VL.ReactCurrentDispatcher,UV=VL.ReactCurrentOwner,YV=VL.ReactCurrentBatchConfig,KV=0,GV=null,XV=null,JV=0,ZV=0,QV=WF(0),e$=0,t$=null,n$=0,r$=0,i$=0,o$=null,a$=null,s$=0,l$=1/0,c$=null,u$=!1,d$=null,f$=null,h$=!1,p$=null,m$=0,g$=0,y$=null,v$=-1,b$=0;function x$(){return 6&KV?bR():-1!==v$?v$:v$=bR()}function w$(e){return 1&e.mode?2&KV&&0!==JV?JV&-JV:null!==Rj.transition?(0===b$&&(b$=PR()),b$):0!==(e=BR)?e:e=void 0===(e=window.event)?16:vP(e.type):1}function S$(e,t,n,r){if(50<g$)throw g$=0,y$=null,Error(DL(185));FR(e,n,r),2&KV&&e===GV||(e===GV&&(!(2&KV)&&(r$|=n),4===e$&&q$(e,JV)),k$(e,r),1===n&&0===KV&&!(1&t.mode)&&(l$=bR()+500,aj&&cj()))}function k$(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-DR(o),s=1<<a,l=i[a];-1===l?s&n&&!(s&r)||(i[a]=IR(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=LR(e,e===GV?JV:0);if(0===r)null!==n&&gR(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&gR(n),1===t)0===e.tag?function(e){aj=!0,lj(e)}(D$.bind(null,e)):lj(D$.bind(null,e)),qF((function(){!(6&KV)&&cj()})),n=null;else{switch(HR(r)){case 1:n=wR;break;case 4:n=SR;break;case 16:default:n=kR;break;case 536870912:n=CR}n=G$(n,M$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function M$(e,t){if(v$=-1,b$=0,6&KV)throw Error(DL(327));var n=e.callbackNode;if(H$()&&e.callbackNode!==n)return null;var r=LR(e,e===GV?JV:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=R$(e,r);else{t=r;var i=KV;KV|=2;var o=L$();for(GV===e&&JV===t||(c$=null,l$=bR()+500,A$(e,t));;)try{z$();break}catch(t){_$(e,t)}Yj(),WV.current=o,KV=i,null!==XV?t=0:(GV=null,JV=0,t=e$)}if(0!==t){if(2===t&&(0!==(i=RR(e))&&(r=i,t=C$(e,i))),1===t)throw n=t$,A$(e,0),q$(e,r),k$(e,bR()),n;if(6===t)q$(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Dz(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=R$(e,r),2===t&&(o=RR(e),0!==o&&(r=o,t=C$(e,o))),1!==t)))throw n=t$,A$(e,0),q$(e,r),k$(e,bR()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(DL(345));case 2:case 5:B$(e,a$,c$);break;case 3:if(q$(e,r),(130023424&r)===r&&10<(t=s$+500-bR())){if(0!==LR(e,0))break;if(((i=e.suspendedLanes)&r)!==r){x$(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=MF(B$.bind(null,e,a$,c$),t);break}B$(e,a$,c$);break;case 4:if(q$(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-DR(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=bR()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$V(r/1960))-r)){e.timeoutHandle=MF(B$.bind(null,e,a$,c$),r);break}B$(e,a$,c$);break;default:throw Error(DL(329))}}}return k$(e,bR()),e.callbackNode===n?M$.bind(null,e):null}function C$(e,t){var n=o$;return e.current.memoizedState.isDehydrated&&(A$(e,t).flags|=256),2!==(e=R$(e,t))&&(t=a$,a$=n,null!==t&&E$(t)),e}function E$(e){null===a$?a$=e:a$.push.apply(a$,e)}function q$(e,t){for(t&=~i$,t&=~r$,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-DR(t),r=1<<n;e[n]=-1,t&=~r}}function D$(e){if(6&KV)throw Error(DL(327));H$();var t=LR(e,0);if(!(1&t))return k$(e,bR()),null;var n=R$(e,t);if(0!==e.tag&&2===n){var r=RR(e);0!==r&&(t=r,n=C$(e,r))}if(1===n)throw n=t$,A$(e,0),q$(e,t),k$(e,bR()),n;if(6===n)throw Error(DL(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,B$(e,a$,c$),k$(e,bR()),null}function T$(e,t){var n=KV;KV|=1;try{return e(t)}finally{0===(KV=n)&&(l$=bR()+500,aj&&cj())}}function N$(e){null!==p$&&0===p$.tag&&!(6&KV)&&H$();var t=KV;KV|=1;var n=YV.transition,r=BR;try{if(YV.transition=null,BR=1,e)return e()}finally{BR=r,YV.transition=n,!(6&(KV=t))&&cj()}}function O$(){ZV=QV.current,UF(QV)}function A$(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,CF(n)),null!==XV)for(n=XV.return;null!==n;){var r=n;switch(Sj(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ej();break;case 3:yB(),UF(XF),UF(GF),kB();break;case 5:bB(r);break;case 4:yB();break;case 13:case 19:UF(xB);break;case 10:Kj(r.type._context);break;case 22:case 23:O$()}n=n.return}if(GV=e,XV=e=Q$(e.current,null),JV=ZV=t,e$=0,t$=null,i$=r$=n$=0,a$=o$=null,null!==Zj){for(t=0;t<Zj.length;t++)if(null!==(r=(n=Zj[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Zj=null}return e}function _$(e,t){for(;;){var n=XV;try{if(Yj(),MB.current=vH,NB){for(var r=qB.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}NB=!1}if(EB=0,TB=DB=qB=null,OB=!1,AB=0,UV.current=null,null===n||null===n.return){e$=1,t$=t,XV=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=JV,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=RH(a);if(null!==h){h.flags&=-257,PH(h,a,s,0,t),1&h.mode&&IH(o,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(!(1&t)){IH(o,c,t),I$();break e}l=Error(DL(426))}else if(Cj&&1&s.mode){var g=RH(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),PH(g,a,s,0,t),Ij(TH(l,s));break e}}o=l=TH(l,s),4!==e$&&(e$=2),null===o$?o$=[o]:o$.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,lB(o,_H(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==f$&&f$.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,lB(o,LH(o,s,t));break e}}o=o.return}while(null!==o)}j$(n)}catch(e){t=e,XV===n&&null!==n&&(XV=n=n.return);continue}break}}function L$(){var e=WV.current;return WV.current=vH,null===e?vH:e}function I$(){0!==e$&&3!==e$&&2!==e$||(e$=4),null===GV||!(268435455&n$)&&!(268435455&r$)||q$(GV,JV)}function R$(e,t){var n=KV;KV|=2;var r=L$();for(GV===e&&JV===t||(c$=null,A$(e,t));;)try{P$();break}catch(t){_$(e,t)}if(Yj(),KV=n,WV.current=r,null!==XV)throw Error(DL(261));return GV=null,JV=0,e$}function P$(){for(;null!==XV;)F$(XV)}function z$(){for(;null!==XV&&!yR();)F$(XV)}function F$(e){var t=VV(e.alternate,e,ZV);e.memoizedProps=e.pendingProps,null===t?j$(e):XV=t,UV.current=null}function j$(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=pV(n,t)))return n.flags&=32767,void(XV=n);if(null===e)return e$=6,void(XV=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=hV(n,t,ZV)))return void(XV=n);if(null!==(t=t.sibling))return void(XV=t);XV=t=e}while(null!==t);0===e$&&(e$=5)}function B$(e,t,n){var r=BR,i=YV.transition;try{YV.transition=null,BR=1,function(e,t,n,r){do{H$()}while(null!==p$);if(6&KV)throw Error(DL(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(DL(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-DR(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===GV&&(XV=GV=null,JV=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||h$||(h$=!0,G$(kR,(function(){return H$(),null}))),o=!!(15990&n.flags),!!(15990&n.subtreeFlags)||o){o=YV.transition,YV.transition=null;var a=BR;BR=1;var s=KV;KV|=4,UV.current=null,function(e,t){if(wF=fP,Lz(e=_z())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(SF={focusedElem:e,selectionRange:n},fP=!1,vV=t;null!==vV;)if(e=(t=vV).child,1028&t.subtreeFlags&&null!==e)e.return=t,vV=e;else for(;null!==vV;){t=vV;try{var p=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:SH(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(DL(163))}}catch(e){$$(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,vV=e;break}vV=t.return}p=wV,wV=!1}(e,n),RV(n,e),Iz(SF),fP=!!wF,SF=wF=null,e.current=n,zV(n),vR(),KV=s,BR=a,YV.transition=o}else e.current=n;if(h$&&(h$=!1,p$=e,m$=i),o=e.pendingLanes,0===o&&(f$=null),function(e){if(qR&&"function"==typeof qR.onCommitFiberRoot)try{qR.onCommitFiberRoot(ER,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),k$(e,bR()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(u$)throw u$=!1,e=d$,d$=null,e;!!(1&m$)&&0!==e.tag&&H$(),o=e.pendingLanes,1&o?e===y$?g$++:(g$=0,y$=e):g$=0,cj()}(e,t,n,r)}finally{YV.transition=i,BR=r}return null}function H$(){if(null!==p$){var e=HR(m$),t=YV.transition,n=BR;try{if(YV.transition=null,BR=16>e?16:e,null===p$)var r=!1;else{if(e=p$,p$=null,m$=0,6&KV)throw Error(DL(331));var i=KV;for(KV|=4,vV=e.current;null!==vV;){var o=vV,a=o.child;if(16&vV.flags){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(vV=c;null!==vV;){var u=vV;switch(u.tag){case 0:case 11:case 15:SV(8,u,o)}var d=u.child;if(null!==d)d.return=u,vV=d;else for(;null!==vV;){var f=(u=vV).sibling,h=u.return;if(CV(u),u===c){vV=null;break}if(null!==f){f.return=h,vV=f;break}vV=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}vV=o}}if(2064&o.subtreeFlags&&null!==a)a.return=o,vV=a;else e:for(;null!==vV;){if(2048&(o=vV).flags)switch(o.tag){case 0:case 11:case 15:SV(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,vV=y;break e}vV=o.return}}var v=e.current;for(vV=v;null!==vV;){var b=(a=vV).child;if(2064&a.subtreeFlags&&null!==b)b.return=a,vV=b;else e:for(a=v;null!==vV;){if(2048&(s=vV).flags)try{switch(s.tag){case 0:case 11:case 15:kV(9,s)}}catch(e){$$(s,s.return,e)}if(s===a){vV=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,vV=x;break e}vV=s.return}}if(KV=i,cj(),qR&&"function"==typeof qR.onPostCommitFiberRoot)try{qR.onPostCommitFiberRoot(ER,e)}catch(e){}r=!0}return r}finally{BR=n,YV.transition=t}}return!1}function V$(e,t,n){e=aB(e,t=_H(0,t=TH(n,t),1),1),t=x$(),null!==e&&(FR(e,1,t),k$(e,t))}function $$(e,t,n){if(3===e.tag)V$(e,e,n);else for(;null!==t;){if(3===t.tag){V$(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===f$||!f$.has(r))){t=aB(t,e=LH(t,e=TH(n,e),1),1),e=x$(),null!==t&&(FR(t,1,e),k$(t,e));break}}t=t.return}}function W$(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=x$(),e.pingedLanes|=e.suspendedLanes&n,GV===e&&(JV&n)===n&&(4===e$||3===e$&&(130023424&JV)===JV&&500>bR()-s$?A$(e,0):i$|=n),k$(e,t)}function U$(e,t){0===t&&(1&e.mode?(t=AR,!(130023424&(AR<<=1))&&(AR=4194304)):t=1);var n=x$();null!==(e=tB(e,t))&&(FR(e,t,n),k$(e,n))}function Y$(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),U$(e,n)}function K$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(DL(314))}null!==r&&r.delete(t),U$(e,n)}function G$(e,t){return mR(e,t)}function X$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function J$(e,t,n,r){return new X$(e,t,n,r)}function Z$(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Q$(e,t){var n=e.alternate;return null===n?((n=J$(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function eW(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)Z$(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case UL:return tW(n.children,i,o,t);case YL:a=8,i|=8;break;case KL:return(e=J$(12,n,t,2|i)).elementType=KL,e.lanes=o,e;case ZL:return(e=J$(13,n,t,i)).elementType=ZL,e.lanes=o,e;case QL:return(e=J$(19,n,t,i)).elementType=QL,e.lanes=o,e;case nI:return nW(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case GL:a=10;break e;case XL:a=9;break e;case JL:a=11;break e;case eI:a=14;break e;case tI:a=16,r=null;break e}throw Error(DL(130,null==e?e:typeof e,""))}return(t=J$(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function tW(e,t,n,r){return(e=J$(7,e,r,t)).lanes=n,e}function nW(e,t,n,r){return(e=J$(22,e,r,t)).elementType=nI,e.lanes=n,e.stateNode={isHidden:!1},e}function rW(e,t,n){return(e=J$(6,e,null,t)).lanes=n,e}function iW(e,t,n){return(t=J$(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oW(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zR(0),this.expirationTimes=zR(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zR(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function aW(e,t,n,r,i,o,a,s,l){return e=new oW(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=J$(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rB(o),e}function sW(e){if(!e)return KF;e:{if(uR(e=e._reactInternals)!==e||1!==e.tag)throw Error(DL(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(QF(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(DL(171))}if(1===e.tag){var n=e.type;if(QF(n))return nj(e,n,t)}return t}function lW(e,t,n,r,i,o,a,s,l){return(e=aW(n,r,!0,e,0,o,0,s,l)).context=sW(null),n=e.current,(o=oB(r=x$(),i=w$(n))).callback=null!=t?t:null,aB(n,o,i),e.current.lanes=i,FR(e,i,r),k$(e,r),e}function cW(e,t,n,r){var i=t.current,o=x$(),a=w$(i);return n=sW(n),null===t.context?t.context=n:t.pendingContext=n,(t=oB(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=aB(i,t,a))&&(S$(e,i,a,o),sB(e,i,a)),a}function uW(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function dW(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function fW(e,t){dW(e,t),(e=e.alternate)&&dW(e,t)}VV=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||XF.current)FH=!0;else{if(!(e.lanes&n||128&t.flags))return FH=!1,function(e,t,n){switch(t.tag){case 3:GH(t),Lj();break;case 5:vB(t);break;case 1:QF(t.type)&&rj(t);break;case 4:gB(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;YF(Vj,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(YF(xB,1&xB.current),t.flags|=128,null):n&t.child.childLanes?rV(e,t,n):(YF(xB,1&xB.current),null!==(e=uV(e,t,n))?e.sibling:null);YF(xB,1&xB.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return lV(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),YF(xB,xB.current),r)break;return null;case 22:case 23:return t.lanes=0,$H(e,t,n)}return uV(e,t,n)}(e,t,n);FH=!!(131072&e.flags)}else FH=!1,Cj&&1048576&t.flags&&xj(t,hj,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cV(e,t),e=t.pendingProps;var i=ZF(t,GF.current);Xj(t,n),i=RB(null,t,r,e,i,n);var o=PB();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,QF(r)?(o=!0,rj(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,rB(t),i.updater=MH,t.stateNode=i,i._reactInternals=t,DH(t,r,e,n),t=KH(null,t,r,!0,o,n)):(t.tag=0,Cj&&o&&wj(t),jH(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cV(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Z$(e)?1:0;if(null!=e){if((e=e.$$typeof)===JL)return 11;if(e===eI)return 14}return 2}(r),e=SH(r,e),i){case 0:t=UH(null,t,r,e,n);break e;case 1:t=YH(null,t,r,e,n);break e;case 11:t=BH(null,t,r,e,n);break e;case 14:t=HH(null,t,r,SH(r.type,e),n);break e}throw Error(DL(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,UH(e,t,r,i=t.elementType===r?i:SH(r,i),n);case 1:return r=t.type,i=t.pendingProps,YH(e,t,r,i=t.elementType===r?i:SH(r,i),n);case 3:e:{if(GH(t),null===e)throw Error(DL(387));r=t.pendingProps,i=(o=t.memoizedState).element,iB(e,t),cB(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=XH(e,t,r,n,i=TH(Error(DL(423)),t));break e}if(r!==i){t=XH(e,t,r,n,i=TH(Error(DL(424)),t));break e}for(Mj=NF(t.stateNode.containerInfo.firstChild),kj=t,Cj=!0,Ej=null,n=Hj(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Lj(),r===i){t=uV(e,t,n);break e}jH(e,t,r,n)}t=t.child}return t;case 5:return vB(t),null===e&&Nj(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,kF(r,i)?a=null:null!==o&&kF(r,o)&&(t.flags|=32),WH(e,t),jH(e,t,a,n),t.child;case 6:return null===e&&Nj(t),null;case 13:return rV(e,t,n);case 4:return gB(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Bj(t,null,r,n):jH(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,BH(e,t,r,i=t.elementType===r?i:SH(r,i),n);case 7:return jH(e,t,t.pendingProps,n),t.child;case 8:case 12:return jH(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,YF(Vj,r._currentValue),r._currentValue=a,null!==o)if(Dz(o.value,a)){if(o.children===i.children&&!XF.current){t=uV(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=oB(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Gj(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(DL(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Gj(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}jH(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xj(t,n),r=r(i=Jj(i)),t.flags|=1,jH(e,t,r,n),t.child;case 14:return i=SH(r=t.type,t.pendingProps),HH(e,t,r,i=SH(r.type,i),n);case 15:return VH(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:SH(r,i),cV(e,t),t.tag=1,QF(r)?(e=!0,rj(t)):e=!1,Xj(t,n),EH(t,r,i),DH(t,r,i,n),KH(null,t,r,!0,e,n);case 19:return lV(e,t,n);case 22:return $H(e,t,n)}throw Error(DL(156,t.tag))};var hW="function"==typeof reportError?reportError:function(e){console.error(e)};function pW(e){this._internalRoot=e}function mW(e){this._internalRoot=e}function gW(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function yW(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function vW(){}function bW(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=uW(a);s.call(e)}}cW(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=uW(a);o.call(e)}}var a=lW(t,r,e,0,null,!1,0,"",vW);return e._reactRootContainer=a,e[IF]=a.current,cF(8===e.nodeType?e.parentNode:e),N$(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=uW(l);s.call(e)}}var l=aW(e,0,!1,null,0,!1,0,"",vW);return e._reactRootContainer=l,e[IF]=l.current,cF(8===e.nodeType?e.parentNode:e),N$((function(){cW(t,l,n,r)})),l}(n,t,e,i,r);return uW(a)}mW.prototype.render=pW.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(DL(409));cW(e,t,null,null)},mW.prototype.unmount=pW.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;N$((function(){cW(null,e,null,null)})),t[IF]=null}},mW.prototype.unstable_scheduleHydration=function(e){if(e){var t=UR();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tP.length&&0!==t&&t<tP[n].priority;n++);tP.splice(n,0,e),0===n&&oP(e)}},VR=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=_R(t.pendingLanes);0!==n&&(jR(t,1|n),k$(t,bR()),!(6&KV)&&(l$=bR()+500,cj()))}break;case 13:N$((function(){var t=tB(e,1);if(null!==t){var n=x$();S$(t,e,1,n)}})),fW(e,1)}},$R=function(e){if(13===e.tag){var t=tB(e,134217728);if(null!==t)S$(t,e,134217728,x$());fW(e,134217728)}},WR=function(e){if(13===e.tag){var t=w$(e),n=tB(e,t);if(null!==n)S$(n,e,t,x$());fW(e,t)}},UR=function(){return BR},YR=function(e,t){var n=BR;try{return BR=e,t()}finally{BR=n}},$I=function(e,t,n){switch(t){case"input":if(wI(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=HF(r);if(!i)throw Error(DL(90));gI(r),wI(r,i)}}}break;case"textarea":DI(e,n);break;case"select":null!=(t=n.value)&&CI(e,!!n.multiple,t,!1)}},XI=T$,JI=N$;var xW={usingClientEntryPoint:!1,Events:[jF,BF,HF,KI,GI,T$]},wW={findFiberByHostInstance:FF,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},SW={bundleType:wW.bundleType,version:wW.version,rendererPackageName:wW.rendererPackageName,rendererConfig:wW.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:VL.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=hR(e))?null:e.stateNode},findFiberByHostInstance:wW.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var kW=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kW.isDisabled&&kW.supportsFiber)try{ER=kW.inject(SW),qR=kW}catch(jh){}}SL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xW,SL.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!gW(t))throw Error(DL(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:WL,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},SL.createRoot=function(e,t){if(!gW(e))throw Error(DL(299));var n=!1,r="",i=hW;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=aW(e,1,!1,null,0,n,0,r,i),e[IF]=t.current,cF(8===e.nodeType?e.parentNode:e),new pW(t)},SL.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(DL(188));throw e=Object.keys(e).join(","),Error(DL(268,e))}return e=null===(e=hR(t))?null:e.stateNode},SL.flushSync=function(e){return N$(e)},SL.hydrate=function(e,t,n){if(!yW(t))throw Error(DL(200));return bW(null,e,t,!0,n)},SL.hydrateRoot=function(e,t,n){if(!gW(e))throw Error(DL(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=hW;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=lW(t,null,e,1,null!=n?n:null,i,0,o,a),e[IF]=t.current,cF(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new mW(t)},SL.render=function(e,t,n){if(!yW(t))throw Error(DL(200));return bW(null,e,t,!1,n)},SL.unmountComponentAtNode=function(e){if(!yW(e))throw Error(DL(40));return!!e._reactRootContainer&&(N$((function(){bW(null,null,e,!1,(function(){e._reactRootContainer=null,e[IF]=null}))})),!0)},SL.unstable_batchedUpdates=T$,SL.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yW(n))throw Error(DL(200));if(null==e||void 0===e._reactInternals)throw Error(DL(38));return bW(e,t,n,!1,r)},SL.version="18.3.1-next-f1338f8080-20240426",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)}}(),wL.exports=SL;var MW=wL.exports,CW=og(MW),EW=!0,qW=!1,DW=null,TW={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 NW(e){e.metaKey||e.altKey||e.ctrlKey||(EW=!0)}function OW(){EW=!1}function AW(){"hidden"===this.visibilityState&&qW&&(EW=!0)}function _W(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return EW||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!TW[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function LW(){qW=!0,window.clearTimeout(DW),DW=window.setTimeout((function(){qW=!1}),100)}function IW(){var e=AD.useCallback((function(e){var t,n=MW.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",NW,!0),t.addEventListener("mousedown",OW,!0),t.addEventListener("pointerdown",OW,!0),t.addEventListener("touchstart",OW,!0),t.addEventListener("visibilitychange",AW,!0))}),[]);return{isFocusVisible:_W,onBlurVisible:LW,ref:e}}var RW=!1,PW=_D.createContext(null),zW="unmounted",FW="exited",jW="entering",BW="entered",HW="exiting",VW=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=FW,r.appearStatus=jW):i=BW:i=t.unmountOnExit||t.mountOnEnter?zW:FW,r.state={status:i},r.nextCallback=null,r}xN(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===zW?{status:FW}: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!==jW&&n!==BW&&(t=jW):n!==jW&&n!==BW||(t=HW)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===jW){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:CW.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===FW&&this.setState({status:zW})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[CW.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||RW?this.safeSetState({status:BW},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:jW},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:BW},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:CW.findDOMNode(this);t&&!RW?(this.props.onExit(r),this.safeSetState({status:HW},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:FW},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:FW},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:CW.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===zW)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=FT(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _D.createElement(PW.Provider,{value:null},"function"==typeof n?n(e,r):_D.cloneElement(_D.Children.only(n),r))},t}(_D.Component);function $W(){}function WW(e,t){var n=Object.create(null);return e&&AD.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&AD.isValidElement(e)?t(e):e}(e)})),n}function UW(e,t,n){return null!=n[t]?n[t]:e.props[t]}function YW(e,t,n){var r=WW(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(AD.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=AD.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&AD.isValidElement(c)&&(i[o]=AD.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:UW(a,"exit",e),enter:UW(a,"enter",e)})):i[o]=AD.cloneElement(a,{in:!1}):i[o]=AD.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:UW(a,"exit",e),enter:UW(a,"enter",e)})}})),i}VW.contextType=PW,VW.propTypes={},VW.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$W,onEntering:$W,onEntered:$W,onExit:$W,onExiting:$W,onExited:$W},VW.UNMOUNTED=zW,VW.EXITED=FW,VW.ENTERING=jW,VW.ENTERED=BW,VW.EXITING=HW;var KW=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},GW=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(wN(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}xN(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,WW(n.children,(function(e){return AD.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:UW(e,"appear",n),enter:UW(e,"enter",n),exit:UW(e,"exit",n)})}))):YW(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=WW(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=qT({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=FT(e,["component","childFactory"]),i=this.state.contextValue,o=KW(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?_D.createElement(PW.Provider,{value:i},o):_D.createElement(PW.Provider,{value:i},_D.createElement(t,r,o))},t}(_D.Component);GW.propTypes={},GW.defaultProps={component:"div",childFactory:function(e){return e}};function XW(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var JW=AD.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=jT(e,["classes","className","component","square","elevation","variant"]);return AD.createElement(o,qT({className:pL(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),ZW=uL((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),qT({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(JW),QW="undefined"==typeof window?AD.useEffect:AD.useLayoutEffect;function eU(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=AD.useState(!1),f=d[0],h=d[1],p=pL(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=pL(t.child,f&&t.childLeaving,r&&t.childPulsate),y=bL(c);return QW((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),AD.createElement("span",{className:p,style:m},AD.createElement("span",{className:g}))}var tU=AD.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=jT(e,["center","classes","className"]),s=AD.useState([]),l=s[0],c=s[1],u=AD.useRef(0),d=AD.useRef(null);AD.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=AD.useRef(!1),h=AD.useRef(null),p=AD.useRef(null),m=AD.useRef(null);AD.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=AD.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(rN(e),[AD.createElement(eU,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=AD.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;u=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var k=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,M=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(k,2)+Math.pow(M,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=AD.useCallback((function(){y({},{pulsate:!0})}),[y]),b=AD.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return AD.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),AD.createElement("span",qT({className:pL(i.root,o),ref:m},a),AD.createElement(GW,{component:null,exit:!0},l))})),nU=uL((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"})(AD.memo(tU)),rU=AD.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,S=e.onFocus,k=e.onFocusVisible,M=e.onKeyDown,C=e.onKeyUp,E=e.onMouseDown,q=e.onMouseLeave,D=e.onMouseUp,T=e.onTouchEnd,N=e.onTouchMove,O=e.onTouchStart,A=e.onDragLeave,_=e.tabIndex,L=void 0===_?0:_,I=e.TouchRippleProps,R=e.type,P=void 0===R?"button":R,z=jT(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=AD.useRef(null);var j=AD.useRef(null),B=AD.useState(!1),H=B[0],V=B[1];f&&H&&V(!1);var $=IW(),W=$.isFocusVisible,U=$.onBlurVisible,Y=$.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return bL((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}AD.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),AD.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",E),X=K("stop",A),J=K("stop",D),Z=K("stop",(function(e){H&&e.preventDefault(),q&&q(e)})),Q=K("start",O),ee=K("stop",T),te=K("stop",N),ne=K("stop",(function(e){H&&(U(e),V(!1)),x&&x(e)}),!1),re=bL((function(e){F.current||(F.current=e.currentTarget),W(e)&&(V(!0),k&&k(e)),S&&S(e)})),ie=function(){var e=MW.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=AD.useRef(!1),ae=bL((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),M&&M(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=bL((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),C&&C(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=P,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=xL(r,t),de=xL(Y,F),fe=xL(ue,de),he=AD.useState(!1),pe=he[0],me=he[1];AD.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return AD.createElement(le,qT({className:pL(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:fe,tabIndex:f?-1:L},ce,z),a,ge?AD.createElement(nU,qT({ref:j,center:o},I)):null)})),iU=uL({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(rU),oU={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},aU=AD.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?oU:b,w=jT(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=l||(g?"p":x[v]||oU[v])||"span";return AD.createElement(S,qT({className:pL(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(dL(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(dL(r))],"initial"!==u&&i["display".concat(dL(u))]),ref:t},w))})),sU=uL((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"})(aU),lU=AD.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,S=e.type,k=void 0===S?"button":S,M=e.variant,C=void 0===M?"text":M,E=jT(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),q=w&&AD.createElement("span",{className:pL(r.startIcon,r["iconSize".concat(dL(x))])},w),D=m&&AD.createElement("span",{className:pL(r.endIcon,r["iconSize".concat(dL(x))])},m);return AD.createElement(iU,qT({className:pL(r.root,r[C],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(C).concat(dL(a))],"medium"!==x&&[r["".concat(C,"Size").concat(dL(x))],r["size".concat(dL(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:pL(r.focusVisible,g),ref:t,type:k},E),AD.createElement("span",{className:r.label},q,n,D))})),cU=uL((function(e){return{root:qT({},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:zT(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:zT(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:zT(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(zT(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:zT(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(zT(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:zT(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(lU);var uU="undefined"!=typeof window?AD.useLayoutEffect:AD.useEffect,dU=AD.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=AD.useState(null),l=s[0],c=s[1],u=xL(AD.isValidElement(n)?n.ref:null,t);return uU((function(){o||c(function(e){return e="function"==typeof e?e():e,MW.findDOMNode(e)}(r)||document.body)}),[r,o]),uU((function(){if(l&&!o)return yL(t,l),function(){yL(t,null)}}),[t,l,o]),uU((function(){a&&(l||o)&&a()}),[a,l,o]),o?AD.isValidElement(n)?AD.cloneElement(n,{ref:u}):n:l?MW.createPortal(n,l):l}));function fU(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hU(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function pU(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(rN(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&fU(e,r)}))}function mU(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function gU(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=mL(e);return t.body===e?gL(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(hU(o)+a,"px"),n=mL(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(hU(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var yU=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return vN(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&fU(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);pU(t,e.mountNode,e.modalRef,r,!0);var i=mU(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=mU(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=gU(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=mU(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&&fU(e.modalRef,!0),pU(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&&fU(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function vU(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=AD.useRef(),f=AD.useRef(null),h=AD.useRef(null),p=AD.useRef(),m=AD.useRef(null),g=AD.useCallback((function(e){m.current=MW.findDOMNode(e)}),[]),y=xL(t.ref,g),v=AD.useRef();return AD.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),AD.useEffect((function(){if(u){var e=mL(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),AD.createElement(AD.Fragment,null,AD.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),AD.cloneElement(t,{ref:y}),AD.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var bU={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},xU=AD.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=jT(e,["invisible","open"]);return i?AD.createElement("div",qT({"aria-hidden":!0,ref:t},o,{style:qT({},bU.root,r?bU.invisible:{},o.style)})):null}));var wU=new yU,SU=AD.forwardRef((function(e,t){var n=d_(),r=mN({name:"MuiModal",props:qT({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?xU:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,S=void 0!==w&&w,k=r.disableScrollLock,M=void 0!==k&&k,C=r.hideBackdrop,E=void 0!==C&&C,q=r.keepMounted,D=void 0!==q&&q,T=r.manager,N=void 0===T?wU:T,O=r.onBackdropClick,A=r.onClose,_=r.onEscapeKeyDown,L=r.onRendered,I=r.open,R=jT(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),P=AD.useState(!0),z=P[0],F=P[1],j=AD.useRef({}),B=AD.useRef(null),H=AD.useRef(null),V=xL(H,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return mL(B.current)},U=function(){return j.current.modalRef=H.current,j.current.mountNode=B.current,j.current},Y=function(){N.mount(U(),{disableScrollLock:M}),H.current.scrollTop=0},K=bL((function(){var e=function(e){return e="function"==typeof e?e():e,MW.findDOMNode(e)}(u)||W().body;N.add(U(),e),H.current&&Y()})),G=AD.useCallback((function(){return N.isTopModal(U())}),[N]),X=bL((function(e){B.current=e,e&&(L&&L(),I&&G()?Y():fU(H.current,!0))})),J=AD.useCallback((function(){N.remove(U())}),[N]);if(AD.useEffect((function(){return function(){J()}}),[J]),AD.useEffect((function(){I?K():$&&c||J()}),[I,J,$,c,K]),!D&&!I&&(!$||z))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:uN}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),$&&(Q.onEnter=fL((function(){F(!1)}),s.props.onEnter),Q.onExited=fL((function(){F(!0),c&&J()}),s.props.onExited)),AD.createElement(dU,{ref:X,container:u,disablePortal:x},AD.createElement("div",qT({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(_&&_(e),v||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))},role:"presentation"},R,{style:qT({},Z.root,!I&&z?Z.hidden:{},R.style)}),E?null:AD.createElement(o,qT({open:I,onClick:function(e){e.target===e.currentTarget&&(O&&O(e),!p&&A&&A(e,"backdropClick"))}},a)),AD.createElement(vU,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:S,getDoc:W,isEnabled:G,open:I},AD.cloneElement(s,Q))))})),kU=AD.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=jT(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return AD.createElement(s,qT({className:pL(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),MU=uL((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:zT(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(kU);function CU(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var EU={entering:{opacity:1,transform:CU(1)},entered:{opacity:1,transform:"none"}},qU=AD.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?VW:m,y=jT(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=AD.useRef(),b=AD.useRef(),x=d_()||lL,w=x.unstable_strictMode&&!i,S=AD.useRef(null),k=xL(n.ref,t),M=xL(w?S:void 0,k),C=function(e){return function(t,n){if(e){var r=iN(w?[S.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},E=C(l),q=C((function(e,t){!function(e){e.scrollTop}(e);var n,r=XW({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),D=C(s),T=C(d),N=C((function(e){var t,n=XW({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=CU(.75),c&&c(e)})),O=C(u);return AD.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),AD.createElement(g,qT({appear:!0,in:o,nodeRef:w?S:void 0,onEnter:q,onEntered:D,onEntering:E,onExit:N,onExited:O,onExiting:T,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return AD.cloneElement(n,qT({style:qT({opacity:0,transform:CU(.75),visibility:"exited"!==e||o?void 0:"hidden"},EU[e],f,n.props.style),ref:M},t))}))}));qU.muiSupportAuto=!0;var DU=AD.createContext({}),TU=AD.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=jT(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=AD.useMemo((function(){return{dense:l}}),[l]);return AD.createElement(DU.Provider,{value:h},AD.createElement(a,qT({className:pL(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),NU=uL({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(TU),OU="undefined"==typeof window?AD.useEffect:AD.useLayoutEffect,AU=AD.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=jT(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,S=void 0!==w&&w,k=e.divider,M=void 0!==k&&k,C=e.focusVisibleClassName,E=e.selected,q=void 0!==E&&E,D=jT(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=AD.useContext(DU),N={dense:v||T.dense||!1,alignItems:r},O=AD.useRef(null);OU((function(){o&&O.current&&O.current.focus()}),[o]);var A,_,L=AD.Children.toArray(l),I=L.length&&(A=L[L.length-1],_=["ListItemSecondaryAction"],AD.isValidElement(A)&&-1!==_.indexOf(A.type.muiName)),R=AD.useCallback((function(e){O.current=MW.findDOMNode(e)}),[]),P=xL(R,t),z=qT({className:pL(c.root,u,N.dense&&c.dense,!S&&c.gutters,M&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,I&&c.secondaryAction,q&&c.selected),disabled:x},D),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=pL(c.focusVisible,C),F=iU),I?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),AD.createElement(DU.Provider,{value:N},AD.createElement(h,qT({className:pL(c.container,m),ref:P},g),AD.createElement(F,z,L),L.pop()))):AD.createElement(DU.Provider,{value:N},AD.createElement(F,qT({ref:P},z),L))})),_U=uL((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"})(AU),LU=AD.forwardRef((function(e,t){var n=e.classes,r=e.className,i=jT(e,["classes","className"]),o=AD.useContext(DU);return AD.createElement("div",qT({className:pL(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),IU=uL((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(LU),RU=AD.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=jT(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=AD.useContext(DU).dense,m=null!=c?c:n;null==m||m.type===sU||a||(m=AD.createElement(sU,qT({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===sU||a||(g=AD.createElement(sU,qT({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),AD.createElement("div",qT({className:pL(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),PU=uL({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(RU);function zU(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function FU(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function jU(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function BU(e){return"function"==typeof e?e():e}var HU=AD.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,S=e.onExited,k=e.onExiting,M=e.open,C=e.PaperProps,E=void 0===C?{}:C,q=e.transformOrigin,D=void 0===q?{vertical:"top",horizontal:"left"}:q,T=e.TransitionComponent,N=void 0===T?qU:T,O=e.transitionDuration,A=void 0===O?"auto":O,_=e.TransitionProps,L=void 0===_?{}:_,I=jT(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"]),R=AD.useRef(),P=AD.useCallback((function(e){if("anchorPosition"===l)return a;var t=BU(r),n=(t&&1===t.nodeType?t:mL(R.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+zU(n,i),left:n.left+FU(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=AD.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=AD.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:zU(e,D.vertical)+t,horizontal:FU(e,D.horizontal)}}),[D.horizontal,D.vertical]),j=AD.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:jU(i)};var o=P(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=gL(BU(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:jU(i)}}),[r,l,P,z,F,y]),B=AD.useCallback((function(){var e=R.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=AD.useCallback((function(e){R.current=MW.findDOMNode(e)}),[]);AD.useEffect((function(){M&&B()})),AD.useImperativeHandle(n,(function(){return M?{updatePosition:function(){B()}}:null}),[M,B]),AD.useEffect((function(){if(M){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[M,B]);var V=A;"auto"!==A||N.muiSupportAuto||(V=void 0);var $=f||(r?mL(BU(r)).body:void 0);return AD.createElement(SU,qT({container:$,open:M,ref:t,BackdropProps:{invisible:!0},className:pL(u.root,d)},I),AD.createElement(N,qT({appear:!0,in:M,onEnter:v,onEntered:b,onExit:w,onExited:S,onExiting:k,timeout:V},L,{onEntering:fL((function(e,t){x&&x(e,t),B()}),L.onEntering)}),AD.createElement(ZW,qT({elevation:p,ref:H},E,{className:pL(u.paper,E.className)}),c)))})),VU=uL({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(HU);function $U(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function WU({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:$U(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return _D.createElement("i",{style:i},_D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},_D.createElement("path",{d:e})))}const UU="alternative-menu-item",YU=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>x_((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return _D.createElement(_U,nT({className:`${i.root} ${n}`},r))},KU=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${UU}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function GU({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Ug.detectTextDirection(e);return _D.createElement(YU,{nested:r,role:"menuitem",button:!0,onClick:n,className:UU,onKeyDown:KU,dir:a,autoFocus:t},_D.createElement(PU,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),_D.createElement(IU,{style:{minWidth:16}},_D.createElement(WU,{d:t?FD:""})),i&&_D.createElement(IU,{style:{minWidth:16}},_D.createElement(WU,{d:i.d})))}GU.propTypes={title:aT.string.isRequired,selected:aT.bool,onClick:aT.func.isRequired,nested:aT.bool,icon:aT.shape({d:aT.string.isRequired}),bold:aT.bool,dir:aT.string.isRequired},GU.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},YU.propTypes={nested:aT.bool,className:aT.string},YU.defaultProps={nested:!1,className:UU};const XU={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function JU({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map(((t,i)=>{var s;return _D.createElement(_D.Fragment,{key:t.id},_D.createElement(GU,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&_D.createElement(NU,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>_D.createElement(GU,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&_D.createElement(MU,{key:`divider-${t.id}`}))}));return _D.createElement(VU,nT({anchorEl:t,open:s,onClose:a},XU[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),_D.createElement(NU,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}JU.propTypes={chartId:aT.string.isRequired,alignTo:aT.any,currentId:aT.string.isRequired,dir:aT.string.isRequired,dock:aT.string.isRequired,list:aT.array,onClose:aT.func.isRequired,show:aT.bool.isRequired,instruction:aT.string.isRequired},JU.defaultProps={list:[],alignTo:null};const ZU="title-button",QU="active-title-button",eY=cL((({children:e,...t})=>_D.createElement(cU,nT({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),tY=cL(cU)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class nY extends _D.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=_D.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${ZU}`);t&&(t.focus(),t.classList.add(QU))}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${ZU}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${QU}`);e&&(e.classList.remove(QU),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>_D.createElement(eY,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},_D.createElement("span",{style:d},e),_D.createElement(WU,nT({},BD,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Ug.detectTextDirection(t.text),w=_D.createElement(eY,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${ZU} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&_D.createElement(WU,nT({},zD,{size:"small",title:r.get("Tooltip.selections.locked")})),_D.createElement("span",{style:d,dir:x},t.text),n&&m&&_D.createElement(WU,nT({},jD,{size:"small",style:{margin:"0 8px"}})));return _D.createElement(_D.Fragment,null,t.icon&&t.icon.onClick&&_D.createElement(tY,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},_D.createElement(WU,nT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&_D.createElement(WU,nT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,_D.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&_D.createElement(JU,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function rY(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function iY(e){function t(e){return!e.isDimension&&Dg.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],w=r||i[a?"qDimensionInfo":"qMeasureInfo"],S=a?ZD:eT,k=a?QD:tT,M=Boolean(l&&l.colorSupport&&l.modifiers),C=M&&((E=this.settings.settings).isDimension&&Dg.getValue(E,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var E;const q=w.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=k(t,o,l,e),v=r===w.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,E=M||b?S({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:rY(g),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:M}):void 0;return _D.createElement(_D.Fragment,{key:t.cId},_D.createElement(nY,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:E,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:C,supportConditional:m}),!v&&_D.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return _D.createElement("div",{style:v,dir:y},q)}}}nY.propTypes={chartId:aT.string.isRequired,disabled:aT.bool.isRequired,padding:aT.string,minWidth:aT.string,titleData:aT.shape({breadcrumbs:aT.arrayOf(aT.string).isRequired,icon:aT.shape({path:aT.shape({d:aT.string.isRequired}),tooltip:aT.string.isRequired,onClick:aT.func}),index:aT.number.isRequired,locked:aT.bool.isRequired,text:aT.string.isRequired,popoverText:aT.string.isRequired,drillUp:aT.func,id:aT.string.isRequired}).isRequired,popover:aT.shape({dir:aT.string.isRequired,dock:aT.string.isRequired,getPopoverOptions:aT.func.isRequired}),translator:aT.shape({get:aT.func.isRequired}).isRequired,selections:aT.shape({isActive:aT.func,addListener:aT.func,removeListener:aT.func}),style:aT.shape({fontSize:aT.string,color:aT.string,fontFamily:aT.string}).isRequired,isDimension:aT.bool.isRequired,hasAlternative:aT.bool.isRequired,supportConditional:aT.bool.isRequired,showGroupDimOptions:aT.bool.isRequired},nY.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const oY=dN({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const aY=pN({productionPrefix:"qef2d",disableGlobal:!0,seed:""});function sY(){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",CW.render(function(e,t){return _D.createElement(g_,{generateClassName:t},_D.createElement(sL,{theme:oY},e))}(e,aY),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&CW.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(CW.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}var lY={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:cY}=lY;function uY({layoutService:e,largeDataService:t}){const{maxNumPoints:n=cY}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:dY}=lY,fY=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=dY}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!uY({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:hY}=lY,{MAX_NUM_POINTS:pY,DEFAULT_NUM_POINTS:mY,DEFAULT_NUM_LINES:gY}=lY,{DEFAULT_NUM_POINTS:yY}=lY,vY=({layoutService:e,largeDataService:t})=>{if(!uY({layoutService:e,largeDataService:t})){const{maxNumPoints:e=yY}=(null==t?void 0:t.meta)||{};return e}const{dimensionCount:n}=e.meta;return n>1?(({layoutService:e,largeDataService:t})=>{var n;const{dimensions:r=[]}=(null==e||null===(n=e.meta)||void 0===n?void 0:n.size)||{},{maxNumLines:i=gY,maxNumPoints:o=mY,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(fY({layoutService:e,largeDataService:t})*r[0]<=o)return r[0];const s=Math.max(1,Math.min(i,r[1])),l=o/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>gY||o>mY)?Math.min(c,Math.ceil(pY/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=hY}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},i=4+2*(r-1);return Math.floor(n/(r*i))})({layoutService:e,largeDataService:t})};function bY({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>uY({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>vY({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>fY({layoutService:t,largeDataService:n}),fetch:(i,o)=>(({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:vY({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:fY({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)})({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function xY(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function wY({layoutService:e,viewCache:t}){return{fetch:()=>{const{qAxisData:t,qDataPages:n}=e.getHyperCube();return Promise.resolve({qAxisData:t,qDataPages:n})},getSnapshotData(){const n=e.getLayoutValue("snapshotData.content.chartData",{});return"zoom"in n&&"min"in n.zoom&&"max"in n.zoom?function({zoom:e}){return{zoom:e}}(n):function({scrollOffset:e=0,viewRange:t=0},n){let r=n+e,i=r+t;return 1===t&&0===e&&(r=n-.5,i=n+.5),{zoom:{min:r,max:i}}}(n,t.get("continuousMin"))}}}function SY(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1),t.push(e),n[e]=r},e.forEach=e=>{t.forEach(((t,r)=>e(n[t],r)))},e.has=e=>e in n,e}function kY(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=SY(),o=SY();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?i.set(l,s):s[0].qNum>t&&(o.has(l)||o.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i.forEach(((e,t)=>r.splice(t,0,e))),o.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let i,o;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?i=s:s[0].qNum>t&&(o||(o=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i&&r.unshift(i),o&&r.push(o),r}({start:e,end:t,matrix:n})}function MY(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function CY(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=kY(e,t,n.qMatrix),i=MY(n.qArea,r);return{...n,qArea:i,qMatrix:r}}))};return n.qAxisData&&n.qAxisData.qAxis&&(r.qAxisData=function(e,t,n){return{qAxis:n.qAxis.map((n=>({qName:n.qName,qTags:n.qTags,qTicks:n.qTicks.reduce(((n,r)=>((r.qStart>=e&&r.qStart<=t||r.qEnd>=e&&r.qEnd<=t||r.qStart<e&&r.qEnd>t)&&n.push(r),n)),[])})))}}(e,t,n.qAxisData)),r}const EY=2**.5,qY=1/EY,DY=qY**44;function TY(e){return e.qIsOtherCell}function NY({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(TY)){const n=e[0].qElemNumber;t[n]=void 0}})),Object.keys(t).length}(n):function(e){let t=0;return e.forEach((e=>{e.some(TY)||t++})),t}(n)}const OY={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var AY={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],i=t[e+1];r.data={},i||1===r.end?i?(r.data.start=r.value,r.data.end=i.value,r.end=i.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};function _Y(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function LY(e,t){const{localProps:{size:n},props:{anchor:r}}=t,i=function({props:e,localProps:{size:t},style:n,renderer:r}){const i=e.label.padding,o=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",c=s(l);let{x:u,width:d}=r;e.start===e.end&&(d=c.width+2*i,1===e.end&&(u-=d));const f={x:u+i,y:i,width:d-2*i,height:t.height-2*i},h=s(`${l[0]}…`).width,p=Math.max(0,f.width-c.width),m=Math.max(0,f.height-c.height),g=o*p,y=a*m;return{show:f.width>=Math.min(h,c.width),text:l,dx:g,dy:y,rect:f,style:n.label,segment:{x:u+g,width:c.width+2*i},tickValue:e.value}}}}(t),o=function({localProps:{size:e},style:t,scale:n,props:r}){const[i,o]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=_Y(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:_Y(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine,tickValue:n.value}}}}(t),a=e.map((e=>{const t=function(e,t,n){const r=Math.abs(Math.max(e.start,0)-Math.min(e.end,1))*t.width;return{x:Math.max(e[n],0)*t.width,y:0,width:r,height:t.height}}(e,n,r);return{rect:t,label:i.resolve(e,t),guideLine:o.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],i=t[n-1].label;if(r&&r.start===r.end)for(let e=n-2;e>-1;e--){const n=t[e].label;n.show=n.show&&(o=n.segment,a=i.segment,!(o.x<a.x?o.x+o.width>=a.x:a.x+a.width>=o.x))}var o,a}(e,a),a}function IY(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const i=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),o=_Y(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:_Y(i,n.minorGuideLine.strokeWidth),x2:o,y2:_Y(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function RY(e){return e.filter((e=>e.show)).map((e=>vg({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var PY={require:["renderer"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{anchor:"start",label:{show:!0,padding:4,align:0,justify:0},line:{show:!0},guideLine:{major:{justify:0},minor:{show:!0,size:4,align:0}}},style:{label:"$label",line:"$guide-line",majorGuideLine:"$guide-line",minorGuideLine:"$guide-line"}},preferredSize:()=>({size:30,edgeBleed:{left:1,right:1}}),init(){this.props=this.settings.settings,this.localProps={},this.state={major:[],minor:[]}},created(){this.init()},beforeUpdate(){this.init()},beforeRender({size:e}){this.localProps.size=e;const t=this.scale.ticks({distance:e.width}),n=t.filter((e=>!e.isMinor)),r=t.filter((e=>e.isMinor));this.state.line=function({localProps:{size:e},style:t,props:n}){const r=_Y(1,t.line.strokeWidth);return{show:n.line.show,x1:_Y(0,t.line.strokeWidth),y1:r,x2:_Y(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=LY(n,this),this.state.minor=IY(r,this)},render(){return[...RY([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>vg({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...RY(this.state.major.map((e=>e.guideLine))),...RY(this.state.minor.map((e=>e.guideLine)))];var e}};function zY(e,t){return e&&t&&e.qTicks.length===t.qTicks.length&&e.qTicks.every(((e,n)=>e.qStart===t.qTicks[n].qStart&&e.qEnd===t.qTicks[n].qEnd))}function FY(e){return e.qTags.indexOf("$qualified")>-1}function jY({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];zY(o,a)?(FY(a)?(t.push(i),n.push(r)):(t.push(r),n.push(i)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function BY({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,i=NaN,o=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(i=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){o="auto",s=!0;break}if(e&&e.queries.inner(n)){o=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(i)&&Number.isNaN(o)&&"auto"!==o){o=i,i=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(i)&&(i="auto",o="auto");return{outer:i,inner:o,minor:a,isDayOrShorter:s}}}}function HY({qTicks:e,measureText:t=()=>({width:0}),cache:n={},scale:r}){const i=n;return{isDayOrShorter:()=>(i.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,i.isDayOrShorter),count:()=>e.length,maxRange:()=>(i.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,i.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),i.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+16}))),r.clamp(n),i.rangeAndWidth}}}function VY({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=6,canFitHalfDayTicks:n=>n>=t*e.count()}}function $Y({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=HY,queryFactory:s=VY}={attributesFactory:HY,queryFactory:VY}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:o});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:i})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function WY({qAxis:e=[],measureText:t=()=>({width:0}),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=$Y,mapper:a=jY,resolver:s=BY}={metaFactory:$Y,mapper:jY,resolver:BY}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=o({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:i}),f=s({qualifiedMeta:u,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const i=f.resolve(t);return n.set(r,i),i}}}function UY(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}const YY=UY(0).getTime();function KY(e){return(e.getTime()-YY)/86400/1e3}const GY=new Date,XY=new Date;function JY(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>JY((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(GY.setTime(+t),XY.setTime(+r),e(GY),e(XY),Math.floor(n(GY,XY))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const ZY=1e3,QY=6e4,eK=36e5,tK=864e5,nK=6048e5,rK=JY((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*ZY)}),((e,t)=>(t-e)/ZY),(e=>e.getUTCSeconds()));rK.range;const iK=JY((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ZY)}),((e,t)=>{e.setTime(+e+t*QY)}),((e,t)=>(t-e)/QY),(e=>e.getMinutes()));iK.range;const oK=JY((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*QY)}),((e,t)=>(t-e)/QY),(e=>e.getUTCMinutes()));oK.range;const aK=JY((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ZY-e.getMinutes()*QY)}),((e,t)=>{e.setTime(+e+t*eK)}),((e,t)=>(t-e)/eK),(e=>e.getHours()));aK.range;const sK=JY((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*eK)}),((e,t)=>(t-e)/eK),(e=>e.getUTCHours()));sK.range;const lK=JY((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*QY)/tK),(e=>e.getDate()-1));lK.range;const cK=JY((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/tK),(e=>e.getUTCDate()-1));cK.range;const uK=JY((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/tK),(e=>Math.floor(e/tK)));function dK(e){return JY((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*QY)/nK))}uK.range;const fK=dK(0),hK=dK(1),pK=dK(2),mK=dK(3),gK=dK(4),yK=dK(5),vK=dK(6);function bK(e){return JY((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/nK))}fK.range,hK.range,pK.range,mK.range,gK.range,yK.range,vK.range;const xK=bK(0),wK=bK(1),SK=bK(2),kK=bK(3),MK=bK(4),CK=bK(5),EK=bK(6);xK.range,wK.range,SK.range,kK.range,MK.range,CK.range,EK.range;const qK=JY((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));qK.range;const DK=JY((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));DK.range;const TK=JY((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));TK.every=e=>isFinite(e=Math.floor(e))&&e>0?JY((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,TK.range;const NK=JY((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));NK.every=e=>isFinite(e=Math.floor(e))&&e>0?JY((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,NK.range;const OK=1,AK=2,_K=3,LK=4,IK=5,RK=6;function PK({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:i,timeOnly:o,initialMin:a}){const[s,l]=e.domain(),c=i.key({distance:n});let u;i.get(c,1)?u=i.get(c,1):(u=function(e,t,n,r,i,o){function a(e){return NK.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=rK.count(e,t),l=oK.count(e,t),c=sK.count(e,t),u=cK.count(e,t),d=xK.count(e,t),f=DK.count(e,t),h=NK.count(e,t),p=n/r.second.width-1,m=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:h,interval:NK.every(1),formatter:r.year.formatter,offset:e=>NK.offset(e,-1),floor:NK.floor};if(s<=p)v.type=OK,v.desc="second",v.count=s,v.interval=rK.every(1),v.formatter=r.second.formatter,v.offset=e=>rK.offset(e,-1),v.floor=rK.floor;else if(s/2<=p)v.type=OK,v.desc="every other second",v.count=s/2,v.interval=rK.every(2),v.formatter=r.second.formatter,v.offset=e=>rK.offset(e,-2),v.floor=rK.floor;else if(s/5<=p)v.type=OK,v.desc="every 5 second",v.count=s/5,v.interval=rK.every(5),v.formatter=r.second.formatter,v.offset=e=>rK.offset(e,-5),v.floor=rK.floor;else if(s/15<=p)v.type=OK,v.desc="every 15 second",v.count=s/15,v.interval=rK.every(15),v.formatter=r.second.formatter,v.offset=e=>rK.offset(e,-15),v.floor=rK.floor;else if(s/30<=p)v.type=OK,v.desc="every 30 second",v.count=s/30,v.interval=rK.every(30),v.formatter=r.second.formatter,v.offset=e=>rK.offset(e,-30),v.floor=rK.floor;else if(l<=m)v.type=AK,v.desc="minute",v.count=l,v.interval=oK.every(1),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-1),v.floor=oK.floor;else if(l/2<=m)v.type=AK,v.desc="every 2 minute",v.count=l/2,v.interval=oK.every(2),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-2),v.floor=oK.floor;else if(l/5<=m)v.type=AK,v.desc="every 5 minute",v.count=l/5,v.interval=oK.every(5),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-5),v.floor=oK.floor;else if(l/10<=m)v.type=AK,v.desc="every 10 minute",v.count=l/10,v.interval=oK.every(10),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-10),v.floor=oK.floor;else if(l/15<=m)v.type=AK,v.desc="every 15 minute",v.count=l/15,v.interval=oK.every(15),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-15),v.floor=oK.floor;else if(l/30<=m)v.type=AK,v.desc="every 30 minute",v.count=l/30,v.interval=oK.every(30),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-30),v.floor=oK.floor;else if(c<=m)v.type=_K,v.desc="hour",v.count=c,v.interval=sK.every(1),v.formatter=r.minute.formatter,v.offset=e=>sK.offset(e,-1),v.floor=sK.floor;else if(c/2<=m)v.type=_K,v.desc="every 2 hour",v.count=c/2,v.interval=sK.every(2),v.formatter=r.minute.formatter,v.offset=e=>sK.offset(e,-2),v.floor=sK.floor;else if(c/3<=m)v.type=_K,v.desc="every 3 hour",v.count=c/3,v.interval=sK.every(3),v.formatter=r.minute.formatter,v.offset=e=>sK.offset(e,-3),v.floor=sK.floor;else if(c/6<=m)v.type=_K,v.desc="every 6 hour",v.count=c/6,v.interval=sK.every(6),v.formatter=r.minute.formatter,v.offset=e=>sK.offset(e,-6),v.floor=sK.floor;else if(c/12<=m||i)v.type=_K,v.desc="every 12 hour",v.count=c/12,v.interval=sK.every(12),v.formatter=r.minute.formatter,v.offset=e=>sK.offset(e,-12),v.floor=sK.floor;else if(u<=g)v.type=LK,v.desc="day",v.count=u,v.interval=cK.every(1),v.formatter=r.date.formatter,v.offset=e=>cK.offset(e,-1),v.floor=cK.floor;else if(u/2<=g)v.type=LK,v.desc="every 2 day",v.count=u/2,v.interval=cK.every(2),v.formatter=r.date.formatter,v.offset=e=>cK.offset(e,-2),v.floor=cK.floor;else if(u/3<=g)v.type=LK,v.desc="every 3 day",v.count=u/3,v.interval=cK.every(3),v.formatter=r.date.formatter,v.offset=e=>cK.offset(e,-3),v.floor=cK.floor;else if(d<=g)v.type=LK,v.desc="week",v.count=d,v.interval=xK.every(1),v.formatter=r.date.formatter,v.offset=e=>xK.offset(e,-1),v.floor=cK.floor;else if(d/2<=g)v.type=LK,v.desc="every 2 week",v.count=d/2,v.interval=xK.every(2),v.formatter=r.date.formatter,v.offset=e=>xK.offset(e,-2),v.floor=cK.floor;else if(f<=g)v.type=IK,v.desc="month",v.count=f,v.interval=DK.every(1),v.formatter=r.date.formatter,v.offset=e=>DK.offset(e,-1),v.floor=cK.floor;else if(f/3<=g)v.type=IK,v.desc="quarter",v.count=f/3,v.interval=DK.every(3),v.formatter=r.date.formatter,v.offset=e=>DK.offset(e,-3),v.floor=cK.floor;else if(f/6<=g)v.type=IK,v.desc="half year",v.count=f/6,v.interval=DK.every(6),v.formatter=r.date.formatter,v.offset=e=>DK.offset(e,-6),v.floor=cK.floor;else if(h<=y)v.type=RK,v.desc="year",v.count=h,v.interval=NK.every(1),v.formatter=r.year.formatter,v.offset=e=>NK.offset(e,-1),v.floor=NK.floor;else if(h/2<=y)v.type=RK,v.desc="every 2 year",v.count=h/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>NK.offset(e,-2),v.floor=NK.floor;else if(h/5<=y)v.type=RK,v.desc="every 5 year",v.count=h/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>NK.offset(e,-5),v.floor=NK.floor;else if(h/10<=y)v.type=RK,v.desc="every 10 year",v.count=h/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>NK.offset(e,-10),v.floor=NK.floor;else{const e=Math.max(1,Math.floor(h/y));v.type=RK,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>NK.offset(t,-e),v.floor=NK.floor}return v}(s,l,n,t.all(),r,a),i.set(c,u,1));const d=e.ticks(u.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(u.offset(d[0])):d.push(u.floor(s));const f=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:u.formatter}}));let h=[];if(!o&&u.type<=_K){const n=t.getFormat("date"),r=e.ticks(cK.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(cK.offset(r[0],-1)),h=(r.length?r:[cK.floor(s)]).map(((e,t,r)=>{const i=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+i),formatter:n.formatter}}))}return{inner:f,outer:h}}const zK=86400,FK=1440,jK={};function BK(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function HK(e,t,n){const{generator:r,anchor:i,clamp:o,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(o);const[l,c]=e.domain(),u=Rw().domain([UY(l),UY(c)]);u.clamp(o),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let f;f="d3"===d.type?(e,i)=>PK({timeScale:u,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:UY(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(jK[[t,n,r,r,o]])return jK[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=UY(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,f=t/(i-r),h=f/1440,p=f/zK,m=366*f,g=3*f*30,y=a.second.width/p,v=a.minute.width/h,b=a.date.width/g,x=a.year.width/m;let w,S,k,M=0,C=0,E=null,q=null,D=null,T=null,N=null,O=null;const A={outer:[],inner:[]};for(y<1?(E=1,C=1/zK):y<2?(E=2,C=1/zK*2):y<5?(E=5,C=1/zK*5):y<10?(E=10,C=1/zK*10):y<30?(E=30,C=1/zK*30):v<1?(q=1,C=1/FK):v<2?(q=2,C=1/FK*2):v<5?(q=5,C=1/FK*5):v<10?(q=10,C=.006944444444444445):v<30?(q=30,C=.020833333333333336):v<60?(D=1,C=1/24):v<120?(D=2,C=2/24):v<360?(D=6,C=.25):v<720?(D=12,C=.5):b<1/90?(C=1,T=1):b<2/90?(C=2,T=2):b<7/90?(C=7,T=7):b<31/90?(N=1,C=31):b<1?(N=3,C=90):x<1?(O=1,C=366):x<2?(O=2,C=732):x<5?(O=5,C=1826.25):(O=10,C=3652.5),S=Math.floor((d+n%1)/C);M<i;){k=S+1,w=O?BK("year",[l+S*O,0,1],[l+k*O,0,1],a.year.formatter):N?BK("month",[l,c+S*N,1],[l,c+k*N,1],a.date.formatter):T?BK("day",[l,c,u+S*T],[l,c,u+k*T],a.date.formatter):D?BK("hour",[l,c,u,0+S*D],[l,c,u,0+k*D],a.minute.formatter):q?BK("minute",[l,c,u,0,0+S*q],[l,c,u,0,0+k*q],a.minute.formatter):BK("second",[l,c,u,0,0,0+S*E],[l,c,u,0,0,0+k*E],a.second.formatter),M=KY(w.start),A.inner.push(w);const e=Math.floor(M);if(!(o||O||N||T)){const t={type:"day",start:UY(e),end:UY(e+1),formatter:a.date.formatter,qStart:e};A.outer[A.outer.length-1]&&A.outer[A.outer.length-1].qStart===t.qStart||A.outer.push(t)}S++}return A.min=r,A.max=i,jK[[t,n,r,r,o]]=A,A}(n,e,d.min,l,c,"T"===s.qType);const h={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===i?t.qStart:"end"===i?t.qEnd:(t.qStart+t.qEnd)/2;const o=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(o),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>f(t,n)[a].map((t=>{let n;return n="start"===i?KY(t.start):"end"===i?KY(t.end):(KY(t.start)+KY(t.end))/2,{position:u(t.start),start:u(t.start),end:u(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:KY(t.start),end:KY(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return h}const VK=/t+/i;const $K={min:NaN,max:NaN,invert:!1,qAxis:[],field:void 0,formatter:{fn:()=>e=>e,measureText:()=>({width:0,height:0}),localeInfo:{},qNumFormat:{}},ticks:{generator:"d3",level:"outer",anchor:void 0,clamp:!1},cache:{get:()=>!1,set:()=>{},key:()=>""}};function WK(e,t){e.instance||(e.instance=t.copy(),e.instance.domain(t.domain()),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}const UK="continuousPan";var YK={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=OY,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=bY,snapshotFetcherFactory:c=wY,cacheFetcherFactory:u=xY,cache:d={initial:{},merged:{}}}=s,f=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),h=c({layoutService:t,viewCache:i}),p=u({cache:d}),m=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),i.set("continuousMin",y),i.set("continuousMax",v),i.set("minimiumZoomSpan",function(e,t){return Math.max(1e-6,(t-e)*DY)}(y,v)),g=t.meta.isSnapshot?h:f,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=h.getSnapshotData()),o.preventSet("zoom",{min:y,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),t.setHyperCubeValue("qColumnOrder",[]),e},initialFetch(){return g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=MY(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return r.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),d.initial=t,d.merged=t,e})).then((e=>CY(y,v,e))).then((e=>this.updateLayout(e))).catch(m)},fetch:(e,t)=>g.fetch(e,t).then((e=>function(e,t){const n={};return n.qDataPages=(e.qDataPages||[]).map(((e,n)=>{const r=function(e,t){if(!t||!t.length||!t[0].length)return e;const n=t[0][0].qNum,r=t[t.length-1][0].qNum,i=[],o=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?i.push(e[t]):a.qNum>r&&o.push(e[t])}return[...i,...t,...o]}(e.qMatrix,t.qDataPages[n].qMatrix),i=MY(e.qArea,r);return{...e,qArea:i,qMatrix:r}})),e.qAxisData&&e.qAxisData.qAxis&&(n.qAxisData=function(e,t){if(!t||!t.qAxis.length||t.qAxis.every((e=>!e.qTicks.length)))return e;const n=t.qAxis.map((e=>e.qName)),r=t.qAxis.map((e=>({start:e.qTicks[0].qStart,end:e.qTicks[e.qTicks.length-1].qStart}))),i=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,o=e.qAxis.length;t<o;t++){const o=e.qAxis[t],a=n.indexOf(o.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=o.qTicks.length;n<r;n++){const r=o.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}i[a].qTicks=[...s,...i[a].qTicks,...l]}}return{qAxis:i}}(e.qAxisData,t.qAxisData)),n}(d.initial,e))).then((e=>(r.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),d.merged=e,e))).then((n=>CY(e,t,n))).catch(m),fetchFromCache:(e,t)=>p.fetch(e,t).then((n=>CY(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return vg({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return vg({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>NY(d.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e,n=r.query.getShouldProcess()?[r.query.getFilteredDataPage({dataPage:d.merged.qDataPages[0]})]:d.merged.qDataPages;t.qDataPages=n,t.qAxisData=d.merged.qAxisData}}},event:{onZoomChange:function(e,t){const{layoutService:n,continuousDataModel:r}=e;function i(e,n,i){return r[e](n,i).then((e=>(r.updateLayout(e),t(),e)))}const o=pC(((e,t)=>i("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):i("fetchFromCache",e,t).then((n=>(o(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(i,o)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(i.max-i.min)<r?o:{min:Math.min(i.max,Math.max(t,i.min)),max:Math.max(i.min,Math.min(n,i.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:i=!1,targetKey:o}){const a=e.get("continuousMin"),s=e.get("continuousMax");return mC(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===o))[0])(e);if(l){const o=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,l),c=i?1-o:o,{min:u,max:d}=t.get("zoom"),f=Math.abs(d-u),h=f-(r>0?qY:EY)*f,p=u+h*c,m=d-h*(1-c),g=p<a?a-p:0,y=m>s?m-s:0;t.set("zoom",{min:Math.max(p-y,a),max:Math.min(m+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i}){return{type:"Pan",key:"continuous:pan",options:{event:UK,pointers:1,threshold:10,enable(r,i){return this.started===UK||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${UK}start`](n){n.preventDefault(),this.started=UK;const{min:i,max:o}=r.get("zoom");this[UK]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${UK}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[UK],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,i.get("continuousMax")-t),max:Math.max(o+s*t,i.get("continuousMin")+t)})},[`${UK}end`](e){e.preventDefault(),this.started=!1},[`${UK}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:AY,timeAxis:PY},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((i=>{const o=e[i],a=typeof o;"function"===a?r[i]=o(n):"object"!==a||Array.isArray(o)?r[i]="undefined"===a?t[i]:o:r[i]=vg(!0,{},t[i],o)})),r}(t,$K,n),{qAxis:i}=r,o=Eb(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let c,u,d=[];const f=function(e){return Number.isNaN(+e)?NaN:o(e)};f.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(d=u.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=u.transform(i[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===o&&(d=u.generate(e,n.isDayOrShorter)),d},f.invert=e=>o.invert(e),f.domain=e=>Array.isArray(e)?o.domain(e):o.domain(),f.range=e=>Array.isArray(e)?o.range(e):o.range(),f.norm=e=>(WK(a,f),a.instance(e)),f.normInvert=e=>(WK(a,f),a.instance.invert(e)),f.copy=()=>e(t,n),f.clamp=(e=!0)=>(o.clamp(e),o.clamp()),f.min=()=>Math.min(s,l),f.max=()=>Math.max(s,l),o.range(r.invert?[1,0]:[0,1]),o.domain([s,l]),a.invert=r.invert;const h=function(e){const t={},{measureText:n,fn:r,localeInfo:i}=e.formatter,o={second:{type:"second",pattern:"hh:mm:ss",width:60,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:60,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:60,formatter:void 0},year:{type:"year",pattern:"YYYY",width:60,formatter:void 0}};return i&&VK.test(i.qTimestampFmt)&&(o.minute.pattern+=" tt",o.second.pattern+=" tt"),o.date.pattern=i&&i.qDateFmt?i.qDateFmt:o.date.pattern,Object.keys(o).forEach((e=>{o[e].formatter=r(o[e].pattern),o[e].width=Math.max(o[e].width,n(o[e].formatter(41000.2343433)).width+16)})),t.getFormat=e=>o[e],t.all=()=>o,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return o.date;const r=UY(t[0].data.start),i=UY(t[n-1].data.start);return cK.count(r,i)/n>=1?o.date:sK.count(r,i)/n>0?o.minute:oK.count(r,i)/n>0?o.second:o.date},t}(r);return u=HK(o.copy(),r,h),c=WY({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*h.getFormat("minute").width,cache:r.cache,scale:f}),f.data=()=>({fields:[{formatter:f.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:cC(n,"fields.0.raw",(()=>({})))}]}),f.formatter=()=>h.getFormatFromTicks(d).formatter,f}}};const KK={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var GK={OPTIONS:KK,DEFAULT:KK.MINI_CHART};function XK({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:i,minThumbSize:o})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===i,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<o){const e=(o-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=o}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function JK({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const ZK=e=>({miniChart:e===GK.OPTIONS.MINI_CHART.value,bar:e===GK.OPTIONS.BAR.value,none:e===GK.OPTIONS.NONE.value});function QK({layoutService:e,override:t}){const n=(({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return ZK(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return ZK(GK.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return ZK(!n&&(r||!r&&i)?GK.OPTIONS.NONE.value:GK.OPTIONS.MINI_CHART.value)})({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===GK.OPTIONS.MINI_CHART.value,n.bar=t.value===GK.OPTIONS.BAR.value,n.none=t.value===GK.OPTIONS.NONE.value),n}function eG({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:i,viewCache:o,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=QK({layoutService:e,override:l});if(d.none)return!1;const{orientation:f}=t.meta.major,h={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===f?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:f,rtl:s,isContinuous:e.meta.isContinuous,range:()=>JK({layoutService:e,viewState:i,viewCache:o})}};d.bar&&(h.settings.style="slim",h.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(h.settings.size.thumb={min:4}));const p=a.getStyles();return p.color&&(h.style={standard:{thumb:{"border-color":p.color,opacity:.4},before:{background:p.color,opacity:.1},after:{background:p.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(h.settings.injections=()=>[XK({layoutService:e,discrete:n})]),h}function tG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),f="horizontal"===o.meta.major.orientation,h=f?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,p=f?d.rect.computedInner.width:d.rect.computedInner.height,m=f&&a?p-h:h,g=Math.max(0,Math.min(m/p,1)),[y,v]=JK({layoutService:i,viewState:n,viewCache:r}),b=g<y,x=g>v,w=!b&&!x;return{pixel:m,relative:g,thumb:w?m-y*p:0,beforeThumb:b,afterThumb:x,onThumb:w}}}function nG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o}){return()=>{const a=t.component(e),{orientation:s}=o.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,f]=JK({layoutService:i,viewState:n,viewCache:r});return{size:u,thumbSize:(f-d)*u}}}function rG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=tG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=nG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,o-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const iG="data-scrollbar-handle";function oG({e:e}){return(e.srcEvent||e).srcElement.getAttribute(iG)||""}const aG="scrollbarResize";function sG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=tG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${aG}`,options:{event:aG,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[aG]=this[aG]||{},(e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)})(t)&&oG({e:t})&&(this[aG].panningEvent=t.srcEvent),!!this[aG].panningEvent))}},events:{[`${aG}start`](n){n.preventDefault(),this[aG]=this[aG]||{},this[aG].panningEvent&&t.component(e).emit("dragStart",this[aG].panningEvent)},[`${aG}move`](n){if(n.preventDefault(),this[aG]=this[aG]||{},!this[aG].panningEvent)return;const o=r.get("zoom"),a=i.get("continuousMin"),s=i.get("continuousMax"),c=i.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=oG({e:this[aG].panningEvent});let f="start"===d?Math.min(u,o.max):o.min,h="end"===d?Math.max(u,o.min):o.max;f===h&&(f-="start"===d?c:0,h+="end"===d?c:0),r.set("zoom",{min:f,max:h}),t.component(e).emit("render")},[`${aG}end`](n){n.preventDefault(),this[aG]=this[aG]||{},delete this[aG].panningEvent,t.component(e).emit("dragEnd")},[`${aG}cancel`](n){n.preventDefault(),this[aG]=this[aG]||{},delete this[aG].panningEvent,t.component(e).emit("dragEnd")}}}}const lG="scrollbarPan";function cG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=tG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=nG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${lG}`,options:{event:lG,threshold:0,enable(r,i){return this[lG]=this[lG]||{},!(i&&!this[lG].isPanning)||!!n.scroll.enabled()&&((!i||i.target===t.element)&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e)))}},events:{[`${lG}start`](n){n.preventDefault();const a=c(n);if(this[lG]=this[lG]||{},this[lG].isPanning=!0,t.component(e).emit("lockState"),o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,o-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,o-t),max:Math.max(s,n+t)}),this[lG].relative=a.relative,this[lG].zoom=r.get("zoom"),this[lG].zoom.span=this[lG].zoom.max-this[lG].zoom.min,this[lG].zoom.fullSpan=o-n}else if(a.onThumb)this[lG].offset=a.thumb;else{const e=u();this[lG].offset=a.beforeThumb?0:e.thumbSize}},[`${lG}move`](n){n.preventDefault();const a=c(n);if(this[lG]=this[lG]||{},o.meta.isContinuous){const e=a.relative-this[lG].relative,{fullSpan:t,span:n,min:o,max:s}=this[lG].zoom,l=i.get("continuousMin"),c=i.get("continuousMax");r.set("zoom",{min:Math.min(o+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[lG].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${lG}end`](n){n.preventDefault(),this[lG]=this[lG]||{},this[lG].isPanning=!1,t.component(e).emit("unlockState")},[`${lG}cancel`](n){n.preventDefault(),this[lG]=this[lG]||{},this[lG].isPanning=!1,t.component(e).emit("unlockState")}}}}function uG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[rG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),sG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),cG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function dG({componentKey:e,chart:t,actions:n,layoutService:r}){const i=(i,o)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(i,o)};return{type:"native",events:{mousemove:e=>i("hover",e),mouseleave:()=>i("leave")}}}function fG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return{gestures:[...uG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:dG({componentKey:e,chart:t,actions:n,layoutService:o})}}const hG={background:"rgba(0, 0, 0, 0.1)"},pG={top:-1,bottom:-1,width:6},mG={width:2,background:"#595959"};var gG={before:hG,after:hG,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:pG,endHandle:pG,startHandleBorder:mG,endHandleBorder:mG};const yG={background:"rgba(0, 0, 0, 0.1)"},vG={top:-1,bottom:-1,width:6},bG={width:2,background:"#595959"};var xG={before:yG,after:yG,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:vG,endHandle:vG,startHandleBorder:bG,endHandleBorder:bG};const wG={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},SG={pointerEvents:"initial"},kG={pointerEvents:"none"};const MG="ew-resize",CG="default";function EG(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,i=t.range(),o=n&&t.rtl;return{size:r,start:(o?1-i[1]:i[0])*r,end:(o?1-i[0]:i[1])*r}}function qG(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?MG:CG}function DG(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const i=(r-(n-t))/2,o=Math.max(0,0-(t-i))-Math.max(0,n+i-e);return{size:e,start:t-i+o,end:n+i+o}}return{size:e,start:t,end:n}}function TG(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function NG(){const{size:e,start:t,end:n}=EG.call(this);this.renderer.render(this.elements(this.h,DG.call(this,e,t,n)))}function OG(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?xG:gG;return{container:{...wG},before:{...wG,...n.before,...t.before},after:{...wG,...n.after,...t.after},thumb:{...wG,...n.thumb,...t.thumb},startHandle:{...wG,...SG,...n.startHandle},endHandle:{...wG,...SG,...n.endHandle},startHandleBorder:{...wG,...kG,...n.startHandleBorder},endHandleBorder:{...wG,...kG,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var AG={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){NG.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!TG.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=oG({e:e});t&&(this.state.hover[t]=!0),qG.call(this),NG.call(this)},leave(){this.state.locked||(this.state.hover.reset(),qG.call(this),NG.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=oG({e:e});t&&(this.state.drag[t]=!0),qG.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),qG.call(this),NG.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,i="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[i]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=EG.call(this);return this.elements(e,DG.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:i}=this.settings,o=i.injections().map((t=>t({h:e,rect:this.rect,orientation:i.orientation,minThumbSize:i.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:i,startHandleActive:o,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[i.end]:t-n},f={[i.start]:r},h={left:-3},p={left:1},m={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?f:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:f},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?m:h},class:"scrollbar--start-handle",[iG]:"start"},o?e("div",{style:{...s.startHandleBorder,...c?g:p}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?h:m},class:"scrollbar--end-handle",[iG]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?p:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[i.start]:n,[i.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...u])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:OG.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};const _G={black:"#000",white:"#fff"},LG="#e57373",IG="#ef5350",RG="#f44336",PG="#d32f2f",zG="#c62828",FG="#f3e5f5",jG="#ce93d8",BG="#ba68c8",HG="#ab47bc",VG="#9c27b0",$G="#7b1fa2",WG="#e3f2fd",UG="#90caf9",YG="#42a5f5",KG="#1976d2",GG="#1565c0",XG="#4fc3f7",JG="#29b6f6",ZG="#03a9f4",QG="#0288d1",eX="#01579b",tX="#81c784",nX="#66bb6a",rX="#4caf50",iX="#388e3c",oX="#2e7d32",aX="#1b5e20",sX="#ffb74d",lX="#ffa726",cX="#ff9800",uX="#f57c00",dX="#e65100",fX={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function hX(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var pX=Object.freeze({__proto__:null,default:hX}),mX="$$material";var gX=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),yX="-ms-",vX="-moz-",bX="-webkit-",xX="comm",wX="rule",SX="decl",kX="@keyframes",MX=Math.abs,CX=String.fromCharCode,EX=Object.assign;function qX(e){return e.trim()}function DX(e,t,n){return e.replace(t,n)}function TX(e,t){return e.indexOf(t)}function NX(e,t){return 0|e.charCodeAt(t)}function OX(e,t,n){return e.slice(t,n)}function AX(e){return e.length}function _X(e){return e.length}function LX(e,t){return t.push(e),e}var IX=1,RX=1,PX=0,zX=0,FX=0,jX="";function BX(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:IX,column:RX,length:a,return:""}}function HX(e,t){return EX(BX("",null,null,"",null,null,0),e,{length:-e.length},t)}function VX(){return FX=zX>0?NX(jX,--zX):0,RX--,10===FX&&(RX=1,IX--),FX}function $X(){return FX=zX<PX?NX(jX,zX++):0,RX++,10===FX&&(RX=1,IX++),FX}function WX(){return NX(jX,zX)}function UX(){return zX}function YX(e,t){return OX(jX,e,t)}function KX(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function GX(e){return IX=RX=1,PX=AX(jX=e),zX=0,[]}function XX(e){return jX="",e}function JX(e){return qX(YX(zX-1,eJ(91===e?e+2:40===e?e+1:e)))}function ZX(e){for(;(FX=WX())&&FX<33;)$X();return KX(e)>2||KX(FX)>3?"":" "}function QX(e,t){for(;--t&&$X()&&!(FX<48||FX>102||FX>57&&FX<65||FX>70&&FX<97););return YX(e,UX()+(t<6&&32==WX()&&32==$X()))}function eJ(e){for(;$X();)switch(FX){case e:return zX;case 34:case 39:34!==e&&39!==e&&eJ(FX);break;case 40:41===e&&eJ(e);break;case 92:$X()}return zX}function tJ(e,t){for(;$X()&&e+FX!==57&&(e+FX!==84||47!==WX()););return"/*"+YX(t,zX-1)+"*"+CX(47===e?e:$X())}function nJ(e){for(;!KX(WX());)$X();return YX(e,zX)}function rJ(e){return XX(iJ("",null,null,null,[""],e=GX(e),0,[0],e))}function iJ(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,S=r,k=b;g;)switch(p=v,v=$X()){case 40:if(108!=p&&58==NX(k,d-1)){-1!=TX(k+=DX(JX(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=JX(v);break;case 9:case 10:case 13:case 32:k+=ZX(p);break;case 92:k+=QX(UX()-1,7);continue;case 47:switch(WX()){case 42:case 47:LX(aJ(tJ($X(),UX()),t,n),l);break;default:k+="/"}break;case 123*m:s[c++]=AX(k)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(k=DX(k,/\f/g,"")),h>0&&AX(k)-d&&LX(h>32?sJ(k+";",r,n,d-1):sJ(DX(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(LX(S=oJ(k,t,n,c,u,i,s,b,x=[],w=[],d),o),123===v)if(0===u)iJ(k,t,S,S,x,o,d,s,w);else switch(99===f&&110===NX(k,3)?100:f){case 100:case 108:case 109:case 115:iJ(e,S,S,r&&LX(oJ(e,S,S,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:iJ(k,S,S,S,[""],w,0,s,w)}}c=u=h=0,m=y=1,b=k="",d=a;break;case 58:d=1+AX(k),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==VX())continue;switch(k+=CX(v),v*m){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(AX(k)-1)*y,y=1;break;case 64:45===WX()&&(k+=JX($X())),f=WX(),u=d=AX(b=k+=nJ(UX())),v++;break;case 45:45===p&&2==AX(k)&&(m=0)}}return o}function oJ(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=_X(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=OX(e,d+1,d=MX(m=a[p])),b=e;y<h;++y)(b=qX(m>0?f[y]+" "+v:DX(v,/&\f/g,f[y])))&&(l[g++]=b);return BX(e,t,n,0===i?wX:s,l,c,u)}function aJ(e,t,n){return BX(e,t,n,xX,CX(FX),OX(e,2,-2),0)}function sJ(e,t,n,r){return BX(e,t,n,SX,OX(e,0,r),OX(e,r+1,-1),r)}function lJ(e,t){for(var n="",r=_X(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function cJ(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case SX:return e.return=e.return||e.value;case xX:return"";case kX:return e.return=e.value+"{"+lJ(e.children,r)+"}";case wX:e.value=e.props.join(",")}return AX(n=lJ(e.children,r))?e.return=e.value+"{"+n+"}":""}function uJ(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var dJ=function(e,t,n){for(var r=0,i=0;r=i,i=WX(),38===r&&12===i&&(t[n]=1),!KX(i);)$X();return YX(e,zX)},fJ=function(e,t){return XX(function(e,t){var n=-1,r=44;do{switch(KX(r)){case 0:38===r&&12===WX()&&(t[n]=1),e[n]+=dJ(zX-1,t,n);break;case 2:e[n]+=JX(r);break;case 4:if(44===r){e[++n]=58===WX()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=CX(r)}}while(r=$X());return e}(GX(e),t))},hJ=new WeakMap,pJ=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||hJ.get(n))&&!r){hJ.set(e,!0);for(var i=[],o=fJ(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},mJ=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function gJ(e,t){switch(function(e,t){return 45^NX(e,0)?(((t<<2^NX(e,0))<<2^NX(e,1))<<2^NX(e,2))<<2^NX(e,3):0}(e,t)){case 5103:return bX+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return bX+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bX+e+vX+e+yX+e+e;case 6828:case 4268:return bX+e+yX+e+e;case 6165:return bX+e+yX+"flex-"+e+e;case 5187:return bX+e+DX(e,/(\w+).+(:[^]+)/,bX+"box-$1$2"+yX+"flex-$1$2")+e;case 5443:return bX+e+yX+"flex-item-"+DX(e,/flex-|-self/,"")+e;case 4675:return bX+e+yX+"flex-line-pack"+DX(e,/align-content|flex-|-self/,"")+e;case 5548:return bX+e+yX+DX(e,"shrink","negative")+e;case 5292:return bX+e+yX+DX(e,"basis","preferred-size")+e;case 6060:return bX+"box-"+DX(e,"-grow","")+bX+e+yX+DX(e,"grow","positive")+e;case 4554:return bX+DX(e,/([^-])(transform)/g,"$1"+bX+"$2")+e;case 6187:return DX(DX(DX(e,/(zoom-|grab)/,bX+"$1"),/(image-set)/,bX+"$1"),e,"")+e;case 5495:case 3959:return DX(e,/(image-set\([^]*)/,bX+"$1$`$1");case 4968:return DX(DX(e,/(.+:)(flex-)?(.*)/,bX+"box-pack:$3"+yX+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bX+e+e;case 4095:case 3583:case 4068:case 2532:return DX(e,/(.+)-inline(.+)/,bX+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(AX(e)-1-t>6)switch(NX(e,t+1)){case 109:if(45!==NX(e,t+4))break;case 102:return DX(e,/(.+:)(.+)-([^]+)/,"$1"+bX+"$2-$3$1"+vX+(108==NX(e,t+3)?"$3":"$2-$3"))+e;case 115:return~TX(e,"stretch")?gJ(DX(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==NX(e,t+1))break;case 6444:switch(NX(e,AX(e)-3-(~TX(e,"!important")&&10))){case 107:return DX(e,":",":"+bX)+e;case 101:return DX(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bX+(45===NX(e,14)?"inline-":"")+"box$3$1"+bX+"$2$3$1"+yX+"$2box$3")+e}break;case 5936:switch(NX(e,t+11)){case 114:return bX+e+yX+DX(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bX+e+yX+DX(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bX+e+yX+DX(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bX+e+yX+e+e}return e}var yJ=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case SX:e.return=gJ(e.value,e.length);break;case kX:return lJ([HX(e,{value:DX(e.value,"@","@"+bX)})],r);case wX:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lJ([HX(e,{props:[DX(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return lJ([HX(e,{props:[DX(t,/:(plac\w+)/,":"+bX+"input-$1")]}),HX(e,{props:[DX(t,/:(plac\w+)/,":-moz-$1")]}),HX(e,{props:[DX(t,/:(plac\w+)/,yX+"input-$1")]})],r)}return""}))}}],vJ=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||yJ,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[cJ,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=_X(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([pJ,mJ].concat(o,u));i=function(e,t,n,r){l=n,function(e){lJ(rJ(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new gX({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f};function bJ(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var xJ=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},wJ=function(e,t,n){xJ(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var SJ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},kJ=/[A-Z]|^ms/g,MJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,CJ=function(e){return 45===e.charCodeAt(1)},EJ=function(e){return null!=e&&"boolean"!=typeof e},qJ=uJ((function(e){return CJ(e)?e:e.replace(kJ,"-$&").toLowerCase()})),DJ=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(MJ,(function(e,t,n){return NJ={name:t,styles:n,next:NJ},t}))}return 1===SJ[e]||CJ(e)||"number"!=typeof t||0===t?t:t+"px"};function TJ(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return NJ={name:i.name,styles:i.styles,next:NJ},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)NJ={name:a.name,styles:a.styles,next:NJ},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=TJ(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":EJ(s)&&(r+=qJ(o)+":"+DJ(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=TJ(e,t,a);switch(o){case"animation":case"animationName":r+=qJ(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)EJ(a[c])&&(r+=qJ(o)+":"+DJ(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=NJ,l=n(e);return NJ=s,TJ(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var NJ,OJ=/label:\s*([^\s;{]+)\s*(;|$)/g;function AJ(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";NJ=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=TJ(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=TJ(n,t,e[a]),r)i+=o[a]}OJ.lastIndex=0;for(var s,l="";null!==(s=OJ.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:NJ}}var _J,LJ,IJ=!!LD.useInsertionEffect&&LD.useInsertionEffect,RJ=IJ||function(e){return e()},PJ=IJ||AD.useLayoutEffect,zJ=AD.createContext("undefined"!=typeof HTMLElement?vJ({key:"css"}):null),FJ=zJ.Provider,jJ=function(e){return AD.forwardRef((function(t,n){var r=AD.useContext(zJ);return e(t,r,n)}))},BJ=AD.createContext({}),HJ={}.hasOwnProperty,VJ="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$J=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return xJ(t,n,r),RJ((function(){return wJ(t,n,r)})),null},WJ=jJ((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[VJ],o=[r],a="";"string"==typeof e.className?a=bJ(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=AJ(o,void 0,AD.useContext(BJ));a+=t.key+"-"+s.name;var l={};for(var c in e)HJ.call(e,c)&&"css"!==c&&c!==VJ&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),AD.createElement(AD.Fragment,null,AD.createElement($J,{cache:t,serialized:s,isStringTag:"string"==typeof i}),AD.createElement(i,l))})),UJ=WJ,YJ=function(e,t){var n=arguments;if(null==t||!HJ.call(t,"css"))return AD.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=UJ,i[1]=function(e,t){var n={};for(var r in t)HJ.call(t,r)&&(n[r]=t[r]);return n[VJ]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return AD.createElement.apply(null,i)};_J=YJ||(YJ={}),LJ||(LJ=_J.JSX||(_J.JSX={}));var KJ=jJ((function(e,t){var n=AJ([e.styles],void 0,AD.useContext(BJ)),r=AD.useRef();return PJ((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),PJ((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&wJ(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function GJ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return AJ(t)}function XJ(){var e=GJ.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var JJ=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ZJ=uJ((function(e){return JJ.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),QJ=function(e){return"theme"!==e},eZ=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ZJ:QJ},tZ=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},nZ=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return xJ(t,n,r),RJ((function(){return wJ(t,n,r)})),null},rZ=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=tZ(t,n,o),l=s||eZ(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var h=u.length,p=1;p<h;p++)d.push(u[p],f[p])}var m=jJ((function(e,t,n){var r=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=AD.useContext(BJ)}"string"==typeof e.className?o=bJ(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var p=AJ(d.concat(u),t.registered,f);o+=t.key+"-"+p.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?eZ(r):l,g={};for(var y in e)c&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=o,n&&(g.ref=n),AD.createElement(AD.Fragment,null,AD.createElement(nZ,{cache:t,serialized:p,isStringTag:"string"==typeof r}),AD.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,qT({},n,r,{shouldForwardProp:tZ(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){rZ[e]=rZ(e)}));var iZ={exports:{}},oZ={},aZ=AD,sZ=Symbol.for("react.element"),lZ=Symbol.for("react.fragment"),cZ=Object.prototype.hasOwnProperty,uZ=aZ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dZ={key:!0,ref:!0,__self:!0,__source:!0};function fZ(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)cZ.call(t,r)&&!dZ.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:sZ,type:e,key:o,ref:a,props:i,_owner:uZ.current}}oZ.Fragment=lZ,oZ.jsx=fZ,oZ.jsxs=fZ,iZ.exports=oZ;var hZ=iZ.exports;let pZ;"object"==typeof document&&(pZ=vJ({key:"css",prepend:!0}));var mZ=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return hZ.jsx(KJ,{styles:r})}
|
|
42
|
+
*/function DL(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var TL=new Set,NL={};function OL(e,t){AL(e,t),AL(e+"Capture",t)}function AL(e,t){for(NL[e]=t,e=0;e<t.length;e++)TL.add(t[e])}var _L=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),LL=Object.prototype.hasOwnProperty,IL=/^[: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]*$/,RL={},PL={};function zL(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var FL={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){FL[e]=new zL(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];FL[t]=new zL(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){FL[e]=new zL(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){FL[e]=new zL(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){FL[e]=new zL(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){FL[e]=new zL(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){FL[e]=new zL(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){FL[e]=new zL(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){FL[e]=new zL(e,5,!1,e.toLowerCase(),null,!1,!1)}));var jL=/[\-:]([a-z])/g;function BL(e){return e[1].toUpperCase()}function HL(e,t,n,r){var i=FL.hasOwnProperty(t)?FL[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!!LL.call(PL,e)||!LL.call(RL,e)&&(IL.test(e)?PL[e]=!0:(RL[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(jL,BL);FL[t]=new zL(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(jL,BL);FL[t]=new zL(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(jL,BL);FL[t]=new zL(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){FL[e]=new zL(e,1,!1,e.toLowerCase(),null,!1,!1)})),FL.xlinkHref=new zL("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){FL[e]=new zL(e,1,!1,e.toLowerCase(),null,!0,!0)}));var VL=EL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$L=Symbol.for("react.element"),WL=Symbol.for("react.portal"),UL=Symbol.for("react.fragment"),YL=Symbol.for("react.strict_mode"),KL=Symbol.for("react.profiler"),GL=Symbol.for("react.provider"),XL=Symbol.for("react.context"),JL=Symbol.for("react.forward_ref"),ZL=Symbol.for("react.suspense"),QL=Symbol.for("react.suspense_list"),eI=Symbol.for("react.memo"),tI=Symbol.for("react.lazy"),nI=Symbol.for("react.offscreen"),rI=Symbol.iterator;function iI(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=rI&&e[rI]||e["@@iterator"])?e:null}var oI,aI=Object.assign;function sI(e){if(void 0===oI)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);oI=t&&t[1]||""}return"\n"+oI+e}var lI=!1;function cI(e,t){if(!e||lI)return"";lI=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{lI=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sI(e):""}function uI(e){switch(e.tag){case 5:return sI(e.type);case 16:return sI("Lazy");case 13:return sI("Suspense");case 19:return sI("SuspenseList");case 0:case 2:case 15:return e=cI(e.type,!1);case 11:return e=cI(e.type.render,!1);case 1:return e=cI(e.type,!0);default:return""}}function dI(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 UL:return"Fragment";case WL:return"Portal";case KL:return"Profiler";case YL:return"StrictMode";case ZL:return"Suspense";case QL:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case XL:return(e.displayName||"Context")+".Consumer";case GL:return(e._context.displayName||"Context")+".Provider";case JL:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case eI:return null!==(t=e.displayName||null)?t:dI(e.type)||"Memo";case tI:t=e._payload,e=e._init;try{return dI(e(t))}catch(e){}}return null}function fI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dI(t);case 8:return t===YL?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function hI(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function pI(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function mI(e){e._valueTracker||(e._valueTracker=function(e){var t=pI(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 gI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pI(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function yI(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 vI(e,t){var n=t.checked;return aI({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function bI(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=hI(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 xI(e,t){null!=(t=t.checked)&&HL(e,"checked",t,!1)}function wI(e,t){xI(e,t);var n=hI(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")?kI(e,t.type,n):t.hasOwnProperty("defaultValue")&&kI(e,t.type,hI(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function SI(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function kI(e,t,n){"number"===t&&yI(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var MI=Array.isArray;function CI(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=""+hI(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 EI(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(DL(91));return aI({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qI(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(DL(92));if(MI(n)){if(1<n.length)throw Error(DL(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:hI(n)}}function DI(e,t){var n=hI(t.value),r=hI(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 TI(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function NI(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 OI(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?NI(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var AI,_I=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((AI=AI||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=AI.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function LI(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 II={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RI=["Webkit","ms","Moz","O"];function PI(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||II.hasOwnProperty(e)&&II[e]?(""+t).trim():t+"px"}function zI(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=PI(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(II).forEach((function(e){RI.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),II[t]=II[e]}))}));var FI=aI({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 jI(e,t){if(t){if(FI[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(DL(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(DL(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(DL(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(DL(62))}}function BI(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var HI=null;function VI(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var $I=null,WI=null,UI=null;function YI(e){if(e=jF(e)){if("function"!=typeof $I)throw Error(DL(280));var t=e.stateNode;t&&(t=HF(t),$I(e.stateNode,e.type,t))}}function KI(e){WI?UI?UI.push(e):UI=[e]:WI=e}function GI(){if(WI){var e=WI,t=UI;if(UI=WI=null,YI(e),t)for(e=0;e<t.length;e++)YI(t[e])}}function XI(e,t){return e(t)}function JI(){}var ZI=!1;function QI(e,t,n){if(ZI)return e(t,n);ZI=!0;try{return XI(e,t,n)}finally{ZI=!1,(null!==WI||null!==UI)&&(JI(),GI())}}function eR(e,t){var n=e.stateNode;if(null===n)return null;var r=HF(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(DL(231,t,typeof n));return n}var tR=!1;if(_L)try{var nR={};Object.defineProperty(nR,"passive",{get:function(){tR=!0}}),window.addEventListener("test",nR,nR),window.removeEventListener("test",nR,nR)}catch(jh){tR=!1}function rR(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var iR=!1,oR=null,aR=!1,sR=null,lR={onError:function(e){iR=!0,oR=e}};function cR(e,t,n,r,i,o,a,s,l){iR=!1,oR=null,rR.apply(lR,arguments)}function uR(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function dR(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function fR(e){if(uR(e)!==e)throw Error(DL(188))}function hR(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=uR(e)))throw Error(DL(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return fR(i),e;if(o===r)return fR(i),t;o=o.sibling}throw Error(DL(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(DL(189))}}if(n.alternate!==r)throw Error(DL(190))}if(3!==n.tag)throw Error(DL(188));return n.stateNode.current===n?e:t}(e),null!==e?pR(e):null}function pR(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=pR(e);if(null!==t)return t;e=e.sibling}return null}var mR=qL.unstable_scheduleCallback,gR=qL.unstable_cancelCallback,yR=qL.unstable_shouldYield,vR=qL.unstable_requestPaint,bR=qL.unstable_now,xR=qL.unstable_getCurrentPriorityLevel,wR=qL.unstable_ImmediatePriority,SR=qL.unstable_UserBlockingPriority,kR=qL.unstable_NormalPriority,MR=qL.unstable_LowPriority,CR=qL.unstable_IdlePriority,ER=null,qR=null;var DR=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(TR(e)/NR|0)|0},TR=Math.log,NR=Math.LN2;var OR=64,AR=4194304;function _R(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function LR(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=_R(s):0!==(o&=a)&&(r=_R(o))}else 0!==(a=n&~i)?r=_R(a):0!==o&&(r=_R(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-DR(t)),r|=e[n],t&=~i;return r}function IR(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function RR(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function PR(){var e=OR;return!(4194240&(OR<<=1))&&(OR=64),e}function zR(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function FR(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-DR(t)]=n}function jR(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-DR(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var BR=0;function HR(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var VR,$R,WR,UR,YR,KR=!1,GR=[],XR=null,JR=null,ZR=null,QR=new Map,eP=new Map,tP=[],nP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rP(e,t){switch(e){case"focusin":case"focusout":XR=null;break;case"dragenter":case"dragleave":JR=null;break;case"mouseover":case"mouseout":ZR=null;break;case"pointerover":case"pointerout":QR.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":eP.delete(t.pointerId)}}function iP(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=jF(t))&&$R(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function oP(e){var t=FF(e.target);if(null!==t){var n=uR(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=dR(n)))return e.blockedOn=t,void YR(e.priority,(function(){WR(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function aP(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=yP(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=jF(n))&&$R(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);HI=r,n.target.dispatchEvent(r),HI=null,t.shift()}return!0}function sP(e,t,n){aP(e)&&n.delete(t)}function lP(){KR=!1,null!==XR&&aP(XR)&&(XR=null),null!==JR&&aP(JR)&&(JR=null),null!==ZR&&aP(ZR)&&(ZR=null),QR.forEach(sP),eP.forEach(sP)}function cP(e,t){e.blockedOn===t&&(e.blockedOn=null,KR||(KR=!0,qL.unstable_scheduleCallback(qL.unstable_NormalPriority,lP)))}function uP(e){function t(t){return cP(t,e)}if(0<GR.length){cP(GR[0],e);for(var n=1;n<GR.length;n++){var r=GR[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==XR&&cP(XR,e),null!==JR&&cP(JR,e),null!==ZR&&cP(ZR,e),QR.forEach(t),eP.forEach(t),n=0;n<tP.length;n++)(r=tP[n]).blockedOn===e&&(r.blockedOn=null);for(;0<tP.length&&null===(n=tP[0]).blockedOn;)oP(n),null===n.blockedOn&&tP.shift()}var dP=VL.ReactCurrentBatchConfig,fP=!0;function hP(e,t,n,r){var i=BR,o=dP.transition;dP.transition=null;try{BR=1,mP(e,t,n,r)}finally{BR=i,dP.transition=o}}function pP(e,t,n,r){var i=BR,o=dP.transition;dP.transition=null;try{BR=4,mP(e,t,n,r)}finally{BR=i,dP.transition=o}}function mP(e,t,n,r){if(fP){var i=yP(e,t,n,r);if(null===i)dF(e,t,r,gP,n),rP(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return XR=iP(XR,e,t,n,r,i),!0;case"dragenter":return JR=iP(JR,e,t,n,r,i),!0;case"mouseover":return ZR=iP(ZR,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return QR.set(o,iP(QR.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,eP.set(o,iP(eP.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(rP(e,r),4&t&&-1<nP.indexOf(e)){for(;null!==i;){var o=jF(i);if(null!==o&&VR(o),null===(o=yP(e,t,n,r))&&dF(e,t,r,gP,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else dF(e,t,r,null,n)}}var gP=null;function yP(e,t,n,r){if(gP=null,null!==(e=FF(e=VI(r))))if(null===(t=uR(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=dR(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return gP=e,null}function vP(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(xR()){case wR:return 1;case SR:return 4;case kR:case MR:return 16;case CR:return 536870912;default:return 16}default:return 16}}var bP=null,xP=null,wP=null;function SP(){if(wP)return wP;var e,t,n=xP,r=n.length,i="value"in bP?bP.value:bP.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 wP=i.slice(e,1<t?1-t:void 0)}function kP(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function MP(){return!0}function CP(){return!1}function EP(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?MP:CP,this.isPropagationStopped=CP,this}return aI(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=MP)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=MP)},persist:function(){},isPersistent:MP}),t}var qP,DP,TP,NP={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},OP=EP(NP),AP=aI({},NP,{view:0,detail:0}),_P=EP(AP),LP=aI({},AP,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:UP,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==TP&&(TP&&"mousemove"===e.type?(qP=e.screenX-TP.screenX,DP=e.screenY-TP.screenY):DP=qP=0,TP=e),qP)},movementY:function(e){return"movementY"in e?e.movementY:DP}}),IP=EP(LP),RP=EP(aI({},LP,{dataTransfer:0})),PP=EP(aI({},AP,{relatedTarget:0})),zP=EP(aI({},NP,{animationName:0,elapsedTime:0,pseudoElement:0})),FP=aI({},NP,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jP=EP(FP),BP=EP(aI({},NP,{data:0})),HP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VP={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"},$P={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function WP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=$P[e])&&!!t[e]}function UP(){return WP}var YP=aI({},AP,{key:function(e){if(e.key){var t=HP[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=kP(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?VP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:UP,charCode:function(e){return"keypress"===e.type?kP(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?kP(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),KP=EP(YP),GP=EP(aI({},LP,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),XP=EP(aI({},AP,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:UP})),JP=EP(aI({},NP,{propertyName:0,elapsedTime:0,pseudoElement:0})),ZP=aI({},LP,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),QP=EP(ZP),ez=[9,13,27,32],tz=_L&&"CompositionEvent"in window,nz=null;_L&&"documentMode"in document&&(nz=document.documentMode);var rz=_L&&"TextEvent"in window&&!nz,iz=_L&&(!tz||nz&&8<nz&&11>=nz),oz=String.fromCharCode(32),az=!1;function sz(e,t){switch(e){case"keyup":return-1!==ez.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lz(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var cz=!1;var uz={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 dz(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!uz[e.type]:"textarea"===t}function fz(e,t,n,r){KI(r),0<(t=hF(t,"onChange")).length&&(n=new OP("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hz=null,pz=null;function mz(e){oF(e,0)}function gz(e){if(gI(BF(e)))return e}function yz(e,t){if("change"===e)return t}var vz=!1;if(_L){var bz;if(_L){var xz="oninput"in document;if(!xz){var wz=document.createElement("div");wz.setAttribute("oninput","return;"),xz="function"==typeof wz.oninput}bz=xz}else bz=!1;vz=bz&&(!document.documentMode||9<document.documentMode)}function Sz(){hz&&(hz.detachEvent("onpropertychange",kz),pz=hz=null)}function kz(e){if("value"===e.propertyName&&gz(pz)){var t=[];fz(t,pz,e,VI(e)),QI(mz,t)}}function Mz(e,t,n){"focusin"===e?(Sz(),pz=n,(hz=t).attachEvent("onpropertychange",kz)):"focusout"===e&&Sz()}function Cz(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return gz(pz)}function Ez(e,t){if("click"===e)return gz(t)}function qz(e,t){if("input"===e||"change"===e)return gz(t)}var Dz="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Tz(e,t){if(Dz(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!LL.call(t,i)||!Dz(e[i],t[i]))return!1}return!0}function Nz(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oz(e,t){var n,r=Nz(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=Nz(r)}}function Az(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Az(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function _z(){for(var e=window,t=yI();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=yI((e=t.contentWindow).document)}return t}function Lz(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 Iz(e){var t=_z(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Az(n.ownerDocument.documentElement,n)){if(null!==r&&Lz(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=Oz(n,o);var a=Oz(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 Rz=_L&&"documentMode"in document&&11>=document.documentMode,Pz=null,zz=null,Fz=null,jz=!1;function Bz(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;jz||null==Pz||Pz!==yI(r)||("selectionStart"in(r=Pz)&&Lz(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Fz&&Tz(Fz,r)||(Fz=r,0<(r=hF(zz,"onSelect")).length&&(t=new OP("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pz)))}function Hz(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vz={animationend:Hz("Animation","AnimationEnd"),animationiteration:Hz("Animation","AnimationIteration"),animationstart:Hz("Animation","AnimationStart"),transitionend:Hz("Transition","TransitionEnd")},$z={},Wz={};function Uz(e){if($z[e])return $z[e];if(!Vz[e])return e;var t,n=Vz[e];for(t in n)if(n.hasOwnProperty(t)&&t in Wz)return $z[e]=n[t];return e}_L&&(Wz=document.createElement("div").style,"AnimationEvent"in window||(delete Vz.animationend.animation,delete Vz.animationiteration.animation,delete Vz.animationstart.animation),"TransitionEvent"in window||delete Vz.transitionend.transition);var Yz=Uz("animationend"),Kz=Uz("animationiteration"),Gz=Uz("animationstart"),Xz=Uz("transitionend"),Jz=new Map,Zz="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Qz(e,t){Jz.set(e,t),OL(t,[e])}for(var eF=0;eF<Zz.length;eF++){var tF=Zz[eF];Qz(tF.toLowerCase(),"on"+(tF[0].toUpperCase()+tF.slice(1)))}Qz(Yz,"onAnimationEnd"),Qz(Kz,"onAnimationIteration"),Qz(Gz,"onAnimationStart"),Qz("dblclick","onDoubleClick"),Qz("focusin","onFocus"),Qz("focusout","onBlur"),Qz(Xz,"onTransitionEnd"),AL("onMouseEnter",["mouseout","mouseover"]),AL("onMouseLeave",["mouseout","mouseover"]),AL("onPointerEnter",["pointerout","pointerover"]),AL("onPointerLeave",["pointerout","pointerover"]),OL("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),OL("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),OL("onBeforeInput",["compositionend","keypress","textInput","paste"]),OL("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),OL("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),OL("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nF="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rF=new Set("cancel close invalid load scroll toggle".split(" ").concat(nF));function iF(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(cR.apply(this,arguments),iR){if(!iR)throw Error(DL(198));var c=oR;iR=!1,oR=null,aR||(aR=!0,sR=c)}}(r,t,void 0,e),e.currentTarget=null}function oF(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;iF(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;iF(i,s,c),o=l}}}if(aR)throw e=sR,aR=!1,sR=null,e}function aF(e,t){var n=t[RF];void 0===n&&(n=t[RF]=new Set);var r=e+"__bubble";n.has(r)||(uF(t,e,2,!1),n.add(r))}function sF(e,t,n){var r=0;t&&(r|=4),uF(n,e,r,t)}var lF="_reactListening"+Math.random().toString(36).slice(2);function cF(e){if(!e[lF]){e[lF]=!0,TL.forEach((function(t){"selectionchange"!==t&&(rF.has(t)||sF(t,!1,e),sF(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[lF]||(t[lF]=!0,sF("selectionchange",!1,t))}}function uF(e,t,n,r){switch(vP(t)){case 1:var i=hP;break;case 4:i=pP;break;default:i=mP}n=i.bind(null,t,n,e),i=void 0,!tR||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function dF(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=FF(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}QI((function(){var r=o,i=VI(n),a=[];e:{var s=Jz.get(e);if(void 0!==s){var l=OP,c=e;switch(e){case"keypress":if(0===kP(n))break e;case"keydown":case"keyup":l=KP;break;case"focusin":c="focus",l=PP;break;case"focusout":c="blur",l=PP;break;case"beforeblur":case"afterblur":l=PP;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=IP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=RP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=XP;break;case Yz:case Kz:case Gz:l=zP;break;case Xz:l=JP;break;case"scroll":l=_P;break;case"wheel":l=QP;break;case"copy":case"cut":case"paste":l=jP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=GP}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=eR(p,f))&&u.push(fF(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===HI||!(c=n.relatedTarget||n.fromElement)||!FF(c)&&!c[IF])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?FF(c):null)&&(c!==(d=uR(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=IP,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=GP,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:BF(l),h=null==c?s:BF(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,FF(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=pF(h))p++;for(h=0,m=f;m;m=pF(m))h++;for(;0<p-h;)u=pF(u),p--;for(;0<h-p;)f=pF(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=pF(u),f=pF(f)}u=null}else u=null;null!==l&&mF(a,s,l,u,!1),null!==c&&null!==d&&mF(a,d,c,u,!0)}if("select"===(l=(s=r?BF(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=yz;else if(dz(s))if(vz)g=qz;else{g=Cz;var y=Mz}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=Ez);switch(g&&(g=g(e,r))?fz(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&kI(s,"number",s.value)),y=r?BF(r):window,e){case"focusin":(dz(y)||"true"===y.contentEditable)&&(Pz=y,zz=r,Fz=null);break;case"focusout":Fz=zz=Pz=null;break;case"mousedown":jz=!0;break;case"contextmenu":case"mouseup":case"dragend":jz=!1,Bz(a,n,i);break;case"selectionchange":if(Rz)break;case"keydown":case"keyup":Bz(a,n,i)}var v;if(tz)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else cz?sz(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(iz&&"ko"!==n.locale&&(cz||"onCompositionStart"!==b?"onCompositionEnd"===b&&cz&&(v=SP()):(xP="value"in(bP=i)?bP.value:bP.textContent,cz=!0)),0<(y=hF(r,b)).length&&(b=new BP(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=lz(n))&&(b.data=v))),(v=rz?function(e,t){switch(e){case"compositionend":return lz(t);case"keypress":return 32!==t.which?null:(az=!0,oz);case"textInput":return(e=t.data)===oz&&az?null:e;default:return null}}(e,n):function(e,t){if(cz)return"compositionend"===e||!tz&&sz(e,t)?(e=SP(),wP=xP=bP=null,cz=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return iz&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=hF(r,"onBeforeInput")).length&&(i=new BP("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}oF(a,t)}))}function fF(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hF(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=eR(e,n))&&r.unshift(fF(e,o,i)),null!=(o=eR(e,t))&&r.push(fF(e,o,i))),e=e.return}return r}function pF(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function mF(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=eR(n,o))&&a.unshift(fF(n,l,s)):i||null!=(l=eR(n,o))&&a.push(fF(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var gF=/\r\n?/g,yF=/\u0000|\uFFFD/g;function vF(e){return("string"==typeof e?e:""+e).replace(gF,"\n").replace(yF,"")}function bF(e,t,n){if(t=vF(t),vF(e)!==t&&n)throw Error(DL(425))}function xF(){}var wF=null,SF=null;function kF(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var MF="function"==typeof setTimeout?setTimeout:void 0,CF="function"==typeof clearTimeout?clearTimeout:void 0,EF="function"==typeof Promise?Promise:void 0,qF="function"==typeof queueMicrotask?queueMicrotask:void 0!==EF?function(e){return EF.resolve(null).then(e).catch(DF)}:MF;function DF(e){setTimeout((function(){throw e}))}function TF(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void uP(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);uP(t)}function NF(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function OF(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var AF=Math.random().toString(36).slice(2),_F="__reactFiber$"+AF,LF="__reactProps$"+AF,IF="__reactContainer$"+AF,RF="__reactEvents$"+AF,PF="__reactListeners$"+AF,zF="__reactHandles$"+AF;function FF(e){var t=e[_F];if(t)return t;for(var n=e.parentNode;n;){if(t=n[IF]||n[_F]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=OF(e);null!==e;){if(n=e[_F])return n;e=OF(e)}return t}n=(e=n).parentNode}return null}function jF(e){return!(e=e[_F]||e[IF])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function BF(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(DL(33))}function HF(e){return e[LF]||null}var VF=[],$F=-1;function WF(e){return{current:e}}function UF(e){0>$F||(e.current=VF[$F],VF[$F]=null,$F--)}function YF(e,t){$F++,VF[$F]=e.current,e.current=t}var KF={},GF=WF(KF),XF=WF(!1),JF=KF;function ZF(e,t){var n=e.type.contextTypes;if(!n)return KF;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 QF(e){return null!=(e=e.childContextTypes)}function ej(){UF(XF),UF(GF)}function tj(e,t,n){if(GF.current!==KF)throw Error(DL(168));YF(GF,t),YF(XF,n)}function nj(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(DL(108,fI(e)||"Unknown",i));return aI({},n,r)}function rj(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||KF,JF=GF.current,YF(GF,e),YF(XF,XF.current),!0}function ij(e,t,n){var r=e.stateNode;if(!r)throw Error(DL(169));n?(e=nj(e,t,JF),r.__reactInternalMemoizedMergedChildContext=e,UF(XF),UF(GF),YF(GF,e)):UF(XF),YF(XF,n)}var oj=null,aj=!1,sj=!1;function lj(e){null===oj?oj=[e]:oj.push(e)}function cj(){if(!sj&&null!==oj){sj=!0;var e=0,t=BR;try{var n=oj;for(BR=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}oj=null,aj=!1}catch(t){throw null!==oj&&(oj=oj.slice(e+1)),mR(wR,cj),t}finally{BR=t,sj=!1}}return null}var uj=[],dj=0,fj=null,hj=0,pj=[],mj=0,gj=null,yj=1,vj="";function bj(e,t){uj[dj++]=hj,uj[dj++]=fj,fj=e,hj=t}function xj(e,t,n){pj[mj++]=yj,pj[mj++]=vj,pj[mj++]=gj,gj=e;var r=yj;e=vj;var i=32-DR(r)-1;r&=~(1<<i),n+=1;var o=32-DR(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,yj=1<<32-DR(t)+i|n<<i|r,vj=o+e}else yj=1<<o|n<<i|r,vj=e}function wj(e){null!==e.return&&(bj(e,1),xj(e,1,0))}function Sj(e){for(;e===fj;)fj=uj[--dj],uj[dj]=null,hj=uj[--dj],uj[dj]=null;for(;e===gj;)gj=pj[--mj],pj[mj]=null,vj=pj[--mj],pj[mj]=null,yj=pj[--mj],pj[mj]=null}var kj=null,Mj=null,Cj=!1,Ej=null;function qj(e,t){var n=J$(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Dj(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,kj=e,Mj=NF(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,kj=e,Mj=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==gj?{id:yj,overflow:vj}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=J$(18,null,null,0)).stateNode=t,n.return=e,e.child=n,kj=e,Mj=null,!0);default:return!1}}function Tj(e){return!(!(1&e.mode)||128&e.flags)}function Nj(e){if(Cj){var t=Mj;if(t){var n=t;if(!Dj(e,t)){if(Tj(e))throw Error(DL(418));t=NF(n.nextSibling);var r=kj;t&&Dj(e,t)?qj(r,n):(e.flags=-4097&e.flags|2,Cj=!1,kj=e)}}else{if(Tj(e))throw Error(DL(418));e.flags=-4097&e.flags|2,Cj=!1,kj=e}}}function Oj(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;kj=e}function Aj(e){if(e!==kj)return!1;if(!Cj)return Oj(e),Cj=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!kF(e.type,e.memoizedProps)),t&&(t=Mj)){if(Tj(e))throw _j(),Error(DL(418));for(;t;)qj(e,t),t=NF(t.nextSibling)}if(Oj(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(DL(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Mj=NF(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Mj=null}}else Mj=kj?NF(e.stateNode.nextSibling):null;return!0}function _j(){for(var e=Mj;e;)e=NF(e.nextSibling)}function Lj(){Mj=kj=null,Cj=!1}function Ij(e){null===Ej?Ej=[e]:Ej.push(e)}var Rj=VL.ReactCurrentBatchConfig;function Pj(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(DL(309));var r=n.stateNode}if(!r)throw Error(DL(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(DL(284));if(!n._owner)throw Error(DL(290,e))}return e}function zj(e,t){throw e=Object.prototype.toString.call(t),Error(DL(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fj(e){return(0,e._init)(e._payload)}function jj(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Q$(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=rW(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===UL?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===tI&&Fj(o)===t.type)?((r=i(t,n.props)).ref=Pj(e,t,n),r.return=e,r):((r=eW(n.type,n.key,n.props,null,e.mode,r)).ref=Pj(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=iW(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=tW(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=rW(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case $L:return(n=eW(t.type,t.key,t.props,null,e.mode,n)).ref=Pj(e,null,t),n.return=e,n;case WL:return(t=iW(t,e.mode,n)).return=e,t;case tI:return d(e,(0,t._init)(t._payload),n)}if(MI(t)||iI(t))return(t=tW(t,e.mode,n,null)).return=e,t;zj(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case $L:return n.key===i?l(e,t,n,r):null;case WL:return n.key===i?c(e,t,n,r):null;case tI:return f(e,t,(i=n._init)(n._payload),r)}if(MI(n)||iI(n))return null!==i?null:u(e,t,n,r,null);zj(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case $L:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case WL:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case tI:return h(e,t,n,(0,r._init)(r._payload),i)}if(MI(r)||iI(r))return u(t,e=e.get(n)||null,r,i,null);zj(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),Cj&&bj(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return Cj&&bj(i,m),c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),Cj&&bj(i,m),c}function m(i,a,s,l){var c=iI(s);if("function"!=typeof c)throw Error(DL(150));if(null==(s=c.call(s)))throw Error(DL(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),Cj&&bj(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return Cj&&bj(i,m),c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),Cj&&bj(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===UL&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case $L:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===UL){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===tI&&Fj(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=Pj(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===UL?((o=tW(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=eW(s.type,s.key,s.props,null,r.mode,l)).ref=Pj(r,o,s),l.return=r,r=l)}return a(r);case WL:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=iW(s,r.mode,l)).return=r,r=o}return a(r);case tI:return e(r,o,(u=s._init)(s._payload),l)}if(MI(s))return p(r,o,s,l);if(iI(s))return m(r,o,s,l);zj(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=rW(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var Bj=jj(!0),Hj=jj(!1),Vj=WF(null),$j=null,Wj=null,Uj=null;function Yj(){Uj=Wj=$j=null}function Kj(e){var t=Vj.current;UF(Vj),e._currentValue=t}function Gj(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Xj(e,t){$j=e,Uj=Wj=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(FH=!0),e.firstContext=null)}function Jj(e){var t=e._currentValue;if(Uj!==e)if(e={context:e,memoizedValue:t,next:null},null===Wj){if(null===$j)throw Error(DL(308));Wj=e,$j.dependencies={lanes:0,firstContext:e}}else Wj=Wj.next=e;return t}var Zj=null;function Qj(e){null===Zj?Zj=[e]:Zj.push(e)}function eB(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Qj(t)):(n.next=i.next,i.next=n),t.interleaved=n,tB(e,r)}function tB(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var nB=!1;function rB(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iB(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oB(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function aB(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&KV){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,tB(e,n)}return null===(i=r.interleaved)?(t.next=t,Qj(r)):(t.next=i.next,i.next=t),r.interleaved=t,tB(e,n)}function sB(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,jR(e,n)}}function lB(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cB(e,t,n,r){var i=e.updateQueue;nB=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=aI({},d,f);break e;case 2:nB=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);n$|=a,e.lanes=a,e.memoizedState=d}}function uB(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(DL(191,i));i.call(r)}}}var dB={},fB=WF(dB),hB=WF(dB),pB=WF(dB);function mB(e){if(e===dB)throw Error(DL(174));return e}function gB(e,t){switch(YF(pB,t),YF(hB,e),YF(fB,dB),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:OI(null,"");break;default:t=OI(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}UF(fB),YF(fB,t)}function yB(){UF(fB),UF(hB),UF(pB)}function vB(e){mB(pB.current);var t=mB(fB.current),n=OI(t,e.type);t!==n&&(YF(hB,e),YF(fB,n))}function bB(e){hB.current===e&&(UF(fB),UF(hB))}var xB=WF(0);function wB(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var SB=[];function kB(){for(var e=0;e<SB.length;e++)SB[e]._workInProgressVersionPrimary=null;SB.length=0}var MB=VL.ReactCurrentDispatcher,CB=VL.ReactCurrentBatchConfig,EB=0,qB=null,DB=null,TB=null,NB=!1,OB=!1,AB=0,_B=0;function LB(){throw Error(DL(321))}function IB(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dz(e[n],t[n]))return!1;return!0}function RB(e,t,n,r,i,o){if(EB=o,qB=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,MB.current=null===e||null===e.memoizedState?bH:xH,e=n(r,i),OB){o=0;do{if(OB=!1,AB=0,25<=o)throw Error(DL(301));o+=1,TB=DB=null,t.updateQueue=null,MB.current=wH,e=n(r,i)}while(OB)}if(MB.current=vH,t=null!==DB&&null!==DB.next,EB=0,TB=DB=qB=null,NB=!1,t)throw Error(DL(300));return e}function PB(){var e=0!==AB;return AB=0,e}function zB(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===TB?qB.memoizedState=TB=e:TB=TB.next=e,TB}function FB(){if(null===DB){var e=qB.alternate;e=null!==e?e.memoizedState:null}else e=DB.next;var t=null===TB?qB.memoizedState:TB.next;if(null!==t)TB=t,DB=e;else{if(null===e)throw Error(DL(310));e={memoizedState:(DB=e).memoizedState,baseState:DB.baseState,baseQueue:DB.baseQueue,queue:DB.queue,next:null},null===TB?qB.memoizedState=TB=e:TB=TB.next=e}return TB}function jB(e,t){return"function"==typeof t?t(e):t}function BB(e){var t=FB(),n=t.queue;if(null===n)throw Error(DL(311));n.lastRenderedReducer=e;var r=DB,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((EB&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,qB.lanes|=u,n$|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,Dz(r,t.memoizedState)||(FH=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,qB.lanes|=o,n$|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function HB(e){var t=FB(),n=t.queue;if(null===n)throw Error(DL(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);Dz(o,t.memoizedState)||(FH=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function VB(){}function $B(e,t){var n=qB,r=FB(),i=t(),o=!Dz(r.memoizedState,i);if(o&&(r.memoizedState=i,FH=!0),r=r.queue,nH(YB.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==TB&&1&TB.memoizedState.tag){if(n.flags|=2048,JB(9,UB.bind(null,n,r,i,t),void 0,null),null===GV)throw Error(DL(349));30&EB||WB(n,t,i)}return i}function WB(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=qB.updateQueue)?(t={lastEffect:null,stores:null},qB.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function UB(e,t,n,r){t.value=n,t.getSnapshot=r,KB(t)&&GB(e)}function YB(e,t,n){return n((function(){KB(t)&&GB(e)}))}function KB(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dz(e,n)}catch(e){return!0}}function GB(e){var t=tB(e,1);null!==t&&S$(t,e,1,-1)}function XB(e){var t=zB();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jB,lastRenderedState:e},t.queue=e,e=e.dispatch=pH.bind(null,qB,e),[t.memoizedState,e]}function JB(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=qB.updateQueue)?(t={lastEffect:null,stores:null},qB.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ZB(){return FB().memoizedState}function QB(e,t,n,r){var i=zB();qB.flags|=e,i.memoizedState=JB(1|t,n,void 0,void 0===r?null:r)}function eH(e,t,n,r){var i=FB();r=void 0===r?null:r;var o=void 0;if(null!==DB){var a=DB.memoizedState;if(o=a.destroy,null!==r&&IB(r,a.deps))return void(i.memoizedState=JB(t,n,o,r))}qB.flags|=e,i.memoizedState=JB(1|t,n,o,r)}function tH(e,t){return QB(8390656,8,e,t)}function nH(e,t){return eH(2048,8,e,t)}function rH(e,t){return eH(4,2,e,t)}function iH(e,t){return eH(4,4,e,t)}function oH(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 aH(e,t,n){return n=null!=n?n.concat([e]):null,eH(4,4,oH.bind(null,t,e),n)}function sH(){}function lH(e,t){var n=FB();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&IB(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function cH(e,t){var n=FB();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&IB(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function uH(e,t,n){return 21&EB?(Dz(n,t)||(n=PR(),qB.lanes|=n,n$|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,FH=!0),e.memoizedState=n)}function dH(e,t){var n=BR;BR=0!==n&&4>n?n:4,e(!0);var r=CB.transition;CB.transition={};try{e(!1),t()}finally{BR=n,CB.transition=r}}function fH(){return FB().memoizedState}function hH(e,t,n){var r=w$(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mH(e))gH(t,n);else if(null!==(n=eB(e,t,n,r))){S$(n,e,r,x$()),yH(n,t,r)}}function pH(e,t,n){var r=w$(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mH(e))gH(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Dz(s,a)){var l=t.interleaved;return null===l?(i.next=i,Qj(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=eB(e,t,i,r))&&(S$(n,e,r,i=x$()),yH(n,t,r))}}function mH(e){var t=e.alternate;return e===qB||null!==t&&t===qB}function gH(e,t){OB=NB=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yH(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,jR(e,n)}}var vH={readContext:Jj,useCallback:LB,useContext:LB,useEffect:LB,useImperativeHandle:LB,useInsertionEffect:LB,useLayoutEffect:LB,useMemo:LB,useReducer:LB,useRef:LB,useState:LB,useDebugValue:LB,useDeferredValue:LB,useTransition:LB,useMutableSource:LB,useSyncExternalStore:LB,useId:LB,unstable_isNewReconciler:!1},bH={readContext:Jj,useCallback:function(e,t){return zB().memoizedState=[e,void 0===t?null:t],e},useContext:Jj,useEffect:tH,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,QB(4194308,4,oH.bind(null,t,e),n)},useLayoutEffect:function(e,t){return QB(4194308,4,e,t)},useInsertionEffect:function(e,t){return QB(4,2,e,t)},useMemo:function(e,t){var n=zB();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zB();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hH.bind(null,qB,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},zB().memoizedState=e},useState:XB,useDebugValue:sH,useDeferredValue:function(e){return zB().memoizedState=e},useTransition:function(){var e=XB(!1),t=e[0];return e=dH.bind(null,e[1]),zB().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qB,i=zB();if(Cj){if(void 0===n)throw Error(DL(407));n=n()}else{if(n=t(),null===GV)throw Error(DL(349));30&EB||WB(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,tH(YB.bind(null,r,o,e),[e]),r.flags|=2048,JB(9,UB.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=zB(),t=GV.identifierPrefix;if(Cj){var n=vj;t=":"+t+"R"+(n=(yj&~(1<<32-DR(yj)-1)).toString(32)+n),0<(n=AB++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_B++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xH={readContext:Jj,useCallback:lH,useContext:Jj,useEffect:nH,useImperativeHandle:aH,useInsertionEffect:rH,useLayoutEffect:iH,useMemo:cH,useReducer:BB,useRef:ZB,useState:function(){return BB(jB)},useDebugValue:sH,useDeferredValue:function(e){return uH(FB(),DB.memoizedState,e)},useTransition:function(){return[BB(jB)[0],FB().memoizedState]},useMutableSource:VB,useSyncExternalStore:$B,useId:fH,unstable_isNewReconciler:!1},wH={readContext:Jj,useCallback:lH,useContext:Jj,useEffect:nH,useImperativeHandle:aH,useInsertionEffect:rH,useLayoutEffect:iH,useMemo:cH,useReducer:HB,useRef:ZB,useState:function(){return HB(jB)},useDebugValue:sH,useDeferredValue:function(e){var t=FB();return null===DB?t.memoizedState=e:uH(t,DB.memoizedState,e)},useTransition:function(){return[HB(jB)[0],FB().memoizedState]},useMutableSource:VB,useSyncExternalStore:$B,useId:fH,unstable_isNewReconciler:!1};function SH(e,t){if(e&&e.defaultProps){for(var n in t=aI({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function kH(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:aI({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var MH={isMounted:function(e){return!!(e=e._reactInternals)&&uR(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=x$(),i=w$(e),o=oB(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=aB(e,o,i))&&(S$(t,e,i,r),sB(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=x$(),i=w$(e),o=oB(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=aB(e,o,i))&&(S$(t,e,i,r),sB(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=x$(),r=w$(e),i=oB(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=aB(e,i,r))&&(S$(t,e,r,n),sB(t,e,r))}};function CH(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Tz(n,r)||!Tz(i,o))}function EH(e,t,n){var r=!1,i=KF,o=t.contextType;return"object"==typeof o&&null!==o?o=Jj(o):(i=QF(t)?JF:GF.current,o=(r=null!=(r=t.contextTypes))?ZF(e,i):KF),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=MH,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function qH(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&&MH.enqueueReplaceState(t,t.state,null)}function DH(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},rB(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Jj(o):(o=QF(t)?JF:GF.current,i.context=ZF(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(kH(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&&MH.enqueueReplaceState(i,i.state,null),cB(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function TH(e,t){try{var n="",r=t;do{n+=uI(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function NH(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function OH(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var AH="function"==typeof WeakMap?WeakMap:Map;function _H(e,t,n){(n=oB(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){u$||(u$=!0,d$=r),OH(0,t)},n}function LH(e,t,n){(n=oB(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){OH(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){OH(0,t),"function"!=typeof r&&(null===f$?f$=new Set([this]):f$.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function IH(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new AH;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=W$.bind(null,e,t,n),t.then(e,e))}function RH(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function PH(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=oB(-1,1)).tag=2,aB(n,t,1))),n.lanes|=1),e)}var zH=VL.ReactCurrentOwner,FH=!1;function jH(e,t,n,r){t.child=null===e?Hj(t,null,n,r):Bj(t,e.child,n,r)}function BH(e,t,n,r,i){n=n.render;var o=t.ref;return Xj(t,i),r=RB(e,t,n,r,o,i),n=PB(),null===e||FH?(Cj&&n&&wj(t),t.flags|=1,jH(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uV(e,t,i))}function HH(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Z$(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=eW(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,VH(e,t,o,r,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:Tz)(a,r)&&e.ref===t.ref)return uV(e,t,i)}return t.flags|=1,(e=Q$(o,r)).ref=t.ref,e.return=t,t.child=e}function VH(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Tz(o,r)&&e.ref===t.ref){if(FH=!1,t.pendingProps=r=o,!(e.lanes&i))return t.lanes=e.lanes,uV(e,t,i);131072&e.flags&&(FH=!0)}}return UH(e,t,n,r,i)}function $H(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,YF(QV,ZV),ZV|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,YF(QV,ZV),ZV|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},YF(QV,ZV),ZV|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,YF(QV,ZV),ZV|=r;return jH(e,t,i,n),t.child}function WH(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function UH(e,t,n,r,i){var o=QF(n)?JF:GF.current;return o=ZF(t,o),Xj(t,i),n=RB(e,t,n,r,o,i),r=PB(),null===e||FH?(Cj&&r&&wj(t),t.flags|=1,jH(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,uV(e,t,i))}function YH(e,t,n,r,i){if(QF(n)){var o=!0;rj(t)}else o=!1;if(Xj(t,i),null===t.stateNode)cV(e,t),EH(t,n,r),DH(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Jj(c):c=ZF(t,c=QF(n)?JF:GF.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&qH(t,a,r,c),nB=!1;var f=t.memoizedState;a.state=f,cB(t,r,a,i),l=t.memoizedState,s!==r||f!==l||XF.current||nB?("function"==typeof u&&(kH(t,n,u,r),l=t.memoizedState),(s=nB||CH(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,iB(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:SH(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Jj(l):l=ZF(t,l=QF(n)?JF:GF.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&qH(t,a,r,l),nB=!1,f=t.memoizedState,a.state=f,cB(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||XF.current||nB?("function"==typeof h&&(kH(t,n,h,r),p=t.memoizedState),(c=nB||CH(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return KH(e,t,n,r,o,i)}function KH(e,t,n,r,i,o){WH(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&ij(t,n,!1),uV(e,t,o);r=t.stateNode,zH.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Bj(t,e.child,null,o),t.child=Bj(t,null,s,o)):jH(e,t,s,o),t.memoizedState=r.state,i&&ij(t,n,!0),t.child}function GH(e){var t=e.stateNode;t.pendingContext?tj(0,t.pendingContext,t.pendingContext!==t.context):t.context&&tj(0,t.context,!1),gB(e,t.containerInfo)}function XH(e,t,n,r,i){return Lj(),Ij(i),t.flags|=256,jH(e,t,n,r),t.child}var JH,ZH,QH,eV,tV={dehydrated:null,treeContext:null,retryLane:0};function nV(e){return{baseLanes:e,cachePool:null,transitions:null}}function rV(e,t,n){var r,i=t.pendingProps,o=xB.current,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),YF(xB,1&o),null===e)return Nj(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},1&i||null===a?a=nW(s,i,0,null):(a.childLanes=0,a.pendingProps=s),e=tW(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=nV(n),t.memoizedState=tV,e):iV(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,oV(e,t,a,r=NH(Error(DL(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=nW({mode:"visible",children:r.children},i,0,null),(o=tW(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&Bj(t,e.child,null,a),t.child.memoizedState=nV(a),t.memoizedState=tV,o);if(!(1&t.mode))return oV(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,oV(e,t,a,r=NH(o=Error(DL(419)),r,void 0))}if(s=!!(a&e.childLanes),FH||s){if(null!==(r=GV)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(r.suspendedLanes|a)?0:i)&&i!==o.retryLane&&(o.retryLane=i,tB(e,i),S$(r,e,i,-1))}return I$(),oV(e,t,a,r=NH(Error(DL(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Y$.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Mj=NF(i.nextSibling),kj=t,Cj=!0,Ej=null,null!==e&&(pj[mj++]=yj,pj[mj++]=vj,pj[mj++]=gj,yj=e.id,vj=e.overflow,gj=t),t=iV(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 1&s||t.child===o?(i=Q$(o,l)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null),null!==r?a=Q$(r,a):(a=tW(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?nV(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=tV,i}return e=(a=e.child).sibling,i=Q$(a,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function iV(e,t){return(t=nW({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function oV(e,t,n,r){return null!==r&&Ij(r),Bj(t,e.child,null,n),(e=iV(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function aV(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Gj(e.return,t,n)}function sV(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function lV(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(jH(e,t,r.children,n),2&(r=xB.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&aV(e,n,t);else if(19===e.tag)aV(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(YF(xB,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===wB(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sV(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===wB(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sV(t,!0,n,null,o);break;case"together":sV(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function cV(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function uV(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),n$|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(DL(153));if(null!==t.child){for(n=Q$(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Q$(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function dV(e,t){if(!Cj)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fV(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hV(e,t,n){var r=t.pendingProps;switch(Sj(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fV(t),null;case 1:case 17:return QF(t.type)&&ej(),fV(t),null;case 3:return r=t.stateNode,yB(),UF(XF),UF(GF),kB(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Aj(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Ej&&(E$(Ej),Ej=null))),ZH(e,t),fV(t),null;case 5:bB(t);var i=mB(pB.current);if(n=t.type,null!==e&&null!=t.stateNode)QH(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(DL(166));return fV(t),null}if(e=mB(fB.current),Aj(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[_F]=t,r[LF]=o,e=!!(1&t.mode),n){case"dialog":aF("cancel",r),aF("close",r);break;case"iframe":case"object":case"embed":aF("load",r);break;case"video":case"audio":for(i=0;i<nF.length;i++)aF(nF[i],r);break;case"source":aF("error",r);break;case"img":case"image":case"link":aF("error",r),aF("load",r);break;case"details":aF("toggle",r);break;case"input":bI(r,o),aF("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},aF("invalid",r);break;case"textarea":qI(r,o),aF("invalid",r)}for(var a in jI(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&bF(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&bF(r.textContent,s,e),i=["children",""+s]):NL.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&aF("scroll",r)}switch(n){case"input":mI(r),SI(r,o,!0);break;case"textarea":mI(r),TI(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=xF)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=NI(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[_F]=t,e[LF]=r,JH(e,t,!1,!1),t.stateNode=e;e:{switch(a=BI(n,r),n){case"dialog":aF("cancel",e),aF("close",e),i=r;break;case"iframe":case"object":case"embed":aF("load",e),i=r;break;case"video":case"audio":for(i=0;i<nF.length;i++)aF(nF[i],e);i=r;break;case"source":aF("error",e),i=r;break;case"img":case"image":case"link":aF("error",e),aF("load",e),i=r;break;case"details":aF("toggle",e),i=r;break;case"input":bI(e,r),i=vI(e,r),aF("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=aI({},r,{value:void 0}),aF("invalid",e);break;case"textarea":qI(e,r),i=EI(e,r),aF("invalid",e)}for(o in jI(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?zI(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&_I(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&LI(e,l):"number"==typeof l&&LI(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(NL.hasOwnProperty(o)?null!=l&&"onScroll"===o&&aF("scroll",e):null!=l&&HL(e,o,l,a))}switch(n){case"input":mI(e),SI(e,r,!1);break;case"textarea":mI(e),TI(e);break;case"option":null!=r.value&&e.setAttribute("value",""+hI(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?CI(e,!!r.multiple,o,!1):null!=r.defaultValue&&CI(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=xF)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return fV(t),null;case 6:if(e&&null!=t.stateNode)eV(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(DL(166));if(n=mB(pB.current),mB(fB.current),Aj(t)){if(r=t.stateNode,n=t.memoizedProps,r[_F]=t,(o=r.nodeValue!==n)&&null!==(e=kj))switch(e.tag){case 3:bF(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&bF(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[_F]=t,t.stateNode=r}return fV(t),null;case 13:if(UF(xB),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Cj&&null!==Mj&&1&t.mode&&!(128&t.flags))_j(),Lj(),t.flags|=98560,o=!1;else if(o=Aj(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(DL(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(DL(317));o[_F]=t}else Lj(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fV(t),o=!1}else null!==Ej&&(E$(Ej),Ej=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&xB.current?0===e$&&(e$=3):I$())),null!==t.updateQueue&&(t.flags|=4),fV(t),null);case 4:return yB(),ZH(e,t),null===e&&cF(t.stateNode.containerInfo),fV(t),null;case 10:return Kj(t.type._context),fV(t),null;case 19:if(UF(xB),null===(o=t.memoizedState))return fV(t),null;if(r=!!(128&t.flags),null===(a=o.rendering))if(r)dV(o,!1);else{if(0!==e$||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=wB(e))){for(t.flags|=128,dV(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return YF(xB,1&xB.current|2),t.child}e=e.sibling}null!==o.tail&&bR()>l$&&(t.flags|=128,r=!0,dV(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=wB(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),dV(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!Cj)return fV(t),null}else 2*bR()-o.renderingStartTime>l$&&1073741824!==n&&(t.flags|=128,r=!0,dV(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=bR(),t.sibling=null,n=xB.current,YF(xB,r?1&n|2:1&n),t):(fV(t),null);case 22:case 23:return O$(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&ZV)&&(fV(t),6&t.subtreeFlags&&(t.flags|=8192)):fV(t),null;case 24:case 25:return null}throw Error(DL(156,t.tag))}function pV(e,t){switch(Sj(t),t.tag){case 1:return QF(t.type)&&ej(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return yB(),UF(XF),UF(GF),kB(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return bB(t),null;case 13:if(UF(xB),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(DL(340));Lj()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return UF(xB),null;case 4:return yB(),null;case 10:return Kj(t.type._context),null;case 22:case 23:return O$(),null;default:return null}}JH=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}},ZH=function(){},QH=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,mB(fB.current);var o,a=null;switch(n){case"input":i=vI(e,i),r=vI(e,r),a=[];break;case"select":i=aI({},i,{value:void 0}),r=aI({},r,{value:void 0}),a=[];break;case"textarea":i=EI(e,i),r=EI(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=xF)}for(c in jI(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(NL.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(NL.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&aF("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},eV=function(e,t,n,r){n!==r&&(t.flags|=4)};var mV=!1,gV=!1,yV="function"==typeof WeakSet?WeakSet:Set,vV=null;function bV(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){$$(e,t,n)}else n.current=null}function xV(e,t,n){try{n()}catch(n){$$(e,t,n)}}var wV=!1;function SV(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&xV(t,n,o)}i=i.next}while(i!==r)}}function kV(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function MV(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function CV(e){var t=e.alternate;null!==t&&(e.alternate=null,CV(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[_F],delete t[LF],delete t[RF],delete t[PF],delete t[zF])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function EV(e){return 5===e.tag||3===e.tag||4===e.tag}function qV(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||EV(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function DV(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=xF));else if(4!==r&&null!==(e=e.child))for(DV(e,t,n),e=e.sibling;null!==e;)DV(e,t,n),e=e.sibling}function TV(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(TV(e,t,n),e=e.sibling;null!==e;)TV(e,t,n),e=e.sibling}var NV=null,OV=!1;function AV(e,t,n){for(n=n.child;null!==n;)_V(e,t,n),n=n.sibling}function _V(e,t,n){if(qR&&"function"==typeof qR.onCommitFiberUnmount)try{qR.onCommitFiberUnmount(ER,n)}catch(e){}switch(n.tag){case 5:gV||bV(n,t);case 6:var r=NV,i=OV;NV=null,AV(e,t,n),OV=i,null!==(NV=r)&&(OV?(e=NV,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):NV.removeChild(n.stateNode));break;case 18:null!==NV&&(OV?(e=NV,n=n.stateNode,8===e.nodeType?TF(e.parentNode,n):1===e.nodeType&&TF(e,n),uP(e)):TF(NV,n.stateNode));break;case 4:r=NV,i=OV,NV=n.stateNode.containerInfo,OV=!0,AV(e,t,n),NV=r,OV=i;break;case 0:case 11:case 14:case 15:if(!gV&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&xV(n,t,a),i=i.next}while(i!==r)}AV(e,t,n);break;case 1:if(!gV&&(bV(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){$$(n,t,e)}AV(e,t,n);break;case 21:AV(e,t,n);break;case 22:1&n.mode?(gV=(r=gV)||null!==n.memoizedState,AV(e,t,n),gV=r):AV(e,t,n);break;default:AV(e,t,n)}}function LV(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new yV),t.forEach((function(t){var r=K$.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function IV(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:NV=s.stateNode,OV=!1;break e;case 3:case 4:NV=s.stateNode.containerInfo,OV=!0;break e}s=s.return}if(null===NV)throw Error(DL(160));_V(o,a,i),NV=null,OV=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){$$(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)RV(t,e),t=t.sibling}function RV(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(IV(t,e),PV(e),4&r){try{SV(3,e,e.return),kV(3,e)}catch(t){$$(e,e.return,t)}try{SV(5,e,e.return)}catch(t){$$(e,e.return,t)}}break;case 1:IV(t,e),PV(e),512&r&&null!==n&&bV(n,n.return);break;case 5:if(IV(t,e),PV(e),512&r&&null!==n&&bV(n,n.return),32&e.flags){var i=e.stateNode;try{LI(i,"")}catch(t){$$(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&xI(i,o),BI(s,a);var c=BI(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?zI(i,d):"dangerouslySetInnerHTML"===u?_I(i,d):"children"===u?LI(i,d):HL(i,u,d,c)}switch(s){case"input":wI(i,o);break;case"textarea":DI(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?CI(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?CI(i,!!o.multiple,o.defaultValue,!0):CI(i,!!o.multiple,o.multiple?[]:"",!1))}i[LF]=o}catch(t){$$(e,e.return,t)}}break;case 6:if(IV(t,e),PV(e),4&r){if(null===e.stateNode)throw Error(DL(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){$$(e,e.return,t)}}break;case 3:if(IV(t,e),PV(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{uP(t.containerInfo)}catch(t){$$(e,e.return,t)}break;case 4:default:IV(t,e),PV(e);break;case 13:IV(t,e),PV(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(s$=bR())),4&r&&LV(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(gV=(c=gV)||u,IV(t,e),gV=c):IV(t,e),PV(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(vV=e,u=e.child;null!==u;){for(d=vV=u;null!==vV;){switch(h=(f=vV).child,f.tag){case 0:case 11:case 14:case 15:SV(4,f,f.return);break;case 1:bV(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){$$(r,n,e)}}break;case 5:bV(f,f.return);break;case 22:if(null!==f.memoizedState){BV(d);continue}}null!==h?(h.return=f,vV=h):BV(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=PI("display",a))}catch(t){$$(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){$$(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:IV(t,e),PV(e),4&r&&LV(e);case 21:}}function PV(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(EV(n)){var r=n;break e}n=n.return}throw Error(DL(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(LI(i,""),r.flags&=-33),TV(e,qV(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;DV(e,qV(e),o);break;default:throw Error(DL(161))}}catch(t){$$(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function zV(e,t,n){vV=e,FV(e)}function FV(e,t,n){for(var r=!!(1&e.mode);null!==vV;){var i=vV,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||mV;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||gV;s=mV;var c=gV;if(mV=a,(gV=l)&&!c)for(vV=i;null!==vV;)l=(a=vV).child,22===a.tag&&null!==a.memoizedState?HV(i):null!==l?(l.return=a,vV=l):HV(i);for(;null!==o;)vV=o,FV(o),o=o.sibling;vV=i,mV=s,gV=c}jV(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,vV=o):jV(e)}}function jV(e){for(;null!==vV;){var t=vV;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:gV||kV(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!gV)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:SH(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&uB(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}uB(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&uP(d)}}}break;default:throw Error(DL(163))}gV||512&t.flags&&MV(t)}catch(e){$$(t,t.return,e)}}if(t===e){vV=null;break}if(null!==(n=t.sibling)){n.return=t.return,vV=n;break}vV=t.return}}function BV(e){for(;null!==vV;){var t=vV;if(t===e){vV=null;break}var n=t.sibling;if(null!==n){n.return=t.return,vV=n;break}vV=t.return}}function HV(e){for(;null!==vV;){var t=vV;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{kV(4,t)}catch(e){$$(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){$$(t,i,e)}}var o=t.return;try{MV(t)}catch(e){$$(t,o,e)}break;case 5:var a=t.return;try{MV(t)}catch(e){$$(t,a,e)}}}catch(e){$$(t,t.return,e)}if(t===e){vV=null;break}var s=t.sibling;if(null!==s){s.return=t.return,vV=s;break}vV=t.return}}var VV,$V=Math.ceil,WV=VL.ReactCurrentDispatcher,UV=VL.ReactCurrentOwner,YV=VL.ReactCurrentBatchConfig,KV=0,GV=null,XV=null,JV=0,ZV=0,QV=WF(0),e$=0,t$=null,n$=0,r$=0,i$=0,o$=null,a$=null,s$=0,l$=1/0,c$=null,u$=!1,d$=null,f$=null,h$=!1,p$=null,m$=0,g$=0,y$=null,v$=-1,b$=0;function x$(){return 6&KV?bR():-1!==v$?v$:v$=bR()}function w$(e){return 1&e.mode?2&KV&&0!==JV?JV&-JV:null!==Rj.transition?(0===b$&&(b$=PR()),b$):0!==(e=BR)?e:e=void 0===(e=window.event)?16:vP(e.type):1}function S$(e,t,n,r){if(50<g$)throw g$=0,y$=null,Error(DL(185));FR(e,n,r),2&KV&&e===GV||(e===GV&&(!(2&KV)&&(r$|=n),4===e$&&q$(e,JV)),k$(e,r),1===n&&0===KV&&!(1&t.mode)&&(l$=bR()+500,aj&&cj()))}function k$(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-DR(o),s=1<<a,l=i[a];-1===l?s&n&&!(s&r)||(i[a]=IR(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=LR(e,e===GV?JV:0);if(0===r)null!==n&&gR(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&gR(n),1===t)0===e.tag?function(e){aj=!0,lj(e)}(D$.bind(null,e)):lj(D$.bind(null,e)),qF((function(){!(6&KV)&&cj()})),n=null;else{switch(HR(r)){case 1:n=wR;break;case 4:n=SR;break;case 16:default:n=kR;break;case 536870912:n=CR}n=G$(n,M$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function M$(e,t){if(v$=-1,b$=0,6&KV)throw Error(DL(327));var n=e.callbackNode;if(H$()&&e.callbackNode!==n)return null;var r=LR(e,e===GV?JV:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=R$(e,r);else{t=r;var i=KV;KV|=2;var o=L$();for(GV===e&&JV===t||(c$=null,l$=bR()+500,A$(e,t));;)try{z$();break}catch(t){_$(e,t)}Yj(),WV.current=o,KV=i,null!==XV?t=0:(GV=null,JV=0,t=e$)}if(0!==t){if(2===t&&(0!==(i=RR(e))&&(r=i,t=C$(e,i))),1===t)throw n=t$,A$(e,0),q$(e,r),k$(e,bR()),n;if(6===t)q$(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Dz(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=R$(e,r),2===t&&(o=RR(e),0!==o&&(r=o,t=C$(e,o))),1!==t)))throw n=t$,A$(e,0),q$(e,r),k$(e,bR()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(DL(345));case 2:case 5:B$(e,a$,c$);break;case 3:if(q$(e,r),(130023424&r)===r&&10<(t=s$+500-bR())){if(0!==LR(e,0))break;if(((i=e.suspendedLanes)&r)!==r){x$(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=MF(B$.bind(null,e,a$,c$),t);break}B$(e,a$,c$);break;case 4:if(q$(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-DR(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=bR()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$V(r/1960))-r)){e.timeoutHandle=MF(B$.bind(null,e,a$,c$),r);break}B$(e,a$,c$);break;default:throw Error(DL(329))}}}return k$(e,bR()),e.callbackNode===n?M$.bind(null,e):null}function C$(e,t){var n=o$;return e.current.memoizedState.isDehydrated&&(A$(e,t).flags|=256),2!==(e=R$(e,t))&&(t=a$,a$=n,null!==t&&E$(t)),e}function E$(e){null===a$?a$=e:a$.push.apply(a$,e)}function q$(e,t){for(t&=~i$,t&=~r$,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-DR(t),r=1<<n;e[n]=-1,t&=~r}}function D$(e){if(6&KV)throw Error(DL(327));H$();var t=LR(e,0);if(!(1&t))return k$(e,bR()),null;var n=R$(e,t);if(0!==e.tag&&2===n){var r=RR(e);0!==r&&(t=r,n=C$(e,r))}if(1===n)throw n=t$,A$(e,0),q$(e,t),k$(e,bR()),n;if(6===n)throw Error(DL(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,B$(e,a$,c$),k$(e,bR()),null}function T$(e,t){var n=KV;KV|=1;try{return e(t)}finally{0===(KV=n)&&(l$=bR()+500,aj&&cj())}}function N$(e){null!==p$&&0===p$.tag&&!(6&KV)&&H$();var t=KV;KV|=1;var n=YV.transition,r=BR;try{if(YV.transition=null,BR=1,e)return e()}finally{BR=r,YV.transition=n,!(6&(KV=t))&&cj()}}function O$(){ZV=QV.current,UF(QV)}function A$(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,CF(n)),null!==XV)for(n=XV.return;null!==n;){var r=n;switch(Sj(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ej();break;case 3:yB(),UF(XF),UF(GF),kB();break;case 5:bB(r);break;case 4:yB();break;case 13:case 19:UF(xB);break;case 10:Kj(r.type._context);break;case 22:case 23:O$()}n=n.return}if(GV=e,XV=e=Q$(e.current,null),JV=ZV=t,e$=0,t$=null,i$=r$=n$=0,a$=o$=null,null!==Zj){for(t=0;t<Zj.length;t++)if(null!==(r=(n=Zj[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Zj=null}return e}function _$(e,t){for(;;){var n=XV;try{if(Yj(),MB.current=vH,NB){for(var r=qB.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}NB=!1}if(EB=0,TB=DB=qB=null,OB=!1,AB=0,UV.current=null,null===n||null===n.return){e$=1,t$=t,XV=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=JV,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=RH(a);if(null!==h){h.flags&=-257,PH(h,a,s,0,t),1&h.mode&&IH(o,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(!(1&t)){IH(o,c,t),I$();break e}l=Error(DL(426))}else if(Cj&&1&s.mode){var g=RH(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),PH(g,a,s,0,t),Ij(TH(l,s));break e}}o=l=TH(l,s),4!==e$&&(e$=2),null===o$?o$=[o]:o$.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,lB(o,_H(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==f$&&f$.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,lB(o,LH(o,s,t));break e}}o=o.return}while(null!==o)}j$(n)}catch(e){t=e,XV===n&&null!==n&&(XV=n=n.return);continue}break}}function L$(){var e=WV.current;return WV.current=vH,null===e?vH:e}function I$(){0!==e$&&3!==e$&&2!==e$||(e$=4),null===GV||!(268435455&n$)&&!(268435455&r$)||q$(GV,JV)}function R$(e,t){var n=KV;KV|=2;var r=L$();for(GV===e&&JV===t||(c$=null,A$(e,t));;)try{P$();break}catch(t){_$(e,t)}if(Yj(),KV=n,WV.current=r,null!==XV)throw Error(DL(261));return GV=null,JV=0,e$}function P$(){for(;null!==XV;)F$(XV)}function z$(){for(;null!==XV&&!yR();)F$(XV)}function F$(e){var t=VV(e.alternate,e,ZV);e.memoizedProps=e.pendingProps,null===t?j$(e):XV=t,UV.current=null}function j$(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=pV(n,t)))return n.flags&=32767,void(XV=n);if(null===e)return e$=6,void(XV=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=hV(n,t,ZV)))return void(XV=n);if(null!==(t=t.sibling))return void(XV=t);XV=t=e}while(null!==t);0===e$&&(e$=5)}function B$(e,t,n){var r=BR,i=YV.transition;try{YV.transition=null,BR=1,function(e,t,n,r){do{H$()}while(null!==p$);if(6&KV)throw Error(DL(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(DL(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-DR(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===GV&&(XV=GV=null,JV=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||h$||(h$=!0,G$(kR,(function(){return H$(),null}))),o=!!(15990&n.flags),!!(15990&n.subtreeFlags)||o){o=YV.transition,YV.transition=null;var a=BR;BR=1;var s=KV;KV|=4,UV.current=null,function(e,t){if(wF=fP,Lz(e=_z())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(SF={focusedElem:e,selectionRange:n},fP=!1,vV=t;null!==vV;)if(e=(t=vV).child,1028&t.subtreeFlags&&null!==e)e.return=t,vV=e;else for(;null!==vV;){t=vV;try{var p=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:SH(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(DL(163))}}catch(e){$$(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,vV=e;break}vV=t.return}p=wV,wV=!1}(e,n),RV(n,e),Iz(SF),fP=!!wF,SF=wF=null,e.current=n,zV(n),vR(),KV=s,BR=a,YV.transition=o}else e.current=n;if(h$&&(h$=!1,p$=e,m$=i),o=e.pendingLanes,0===o&&(f$=null),function(e){if(qR&&"function"==typeof qR.onCommitFiberRoot)try{qR.onCommitFiberRoot(ER,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),k$(e,bR()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(u$)throw u$=!1,e=d$,d$=null,e;!!(1&m$)&&0!==e.tag&&H$(),o=e.pendingLanes,1&o?e===y$?g$++:(g$=0,y$=e):g$=0,cj()}(e,t,n,r)}finally{YV.transition=i,BR=r}return null}function H$(){if(null!==p$){var e=HR(m$),t=YV.transition,n=BR;try{if(YV.transition=null,BR=16>e?16:e,null===p$)var r=!1;else{if(e=p$,p$=null,m$=0,6&KV)throw Error(DL(331));var i=KV;for(KV|=4,vV=e.current;null!==vV;){var o=vV,a=o.child;if(16&vV.flags){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(vV=c;null!==vV;){var u=vV;switch(u.tag){case 0:case 11:case 15:SV(8,u,o)}var d=u.child;if(null!==d)d.return=u,vV=d;else for(;null!==vV;){var f=(u=vV).sibling,h=u.return;if(CV(u),u===c){vV=null;break}if(null!==f){f.return=h,vV=f;break}vV=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}vV=o}}if(2064&o.subtreeFlags&&null!==a)a.return=o,vV=a;else e:for(;null!==vV;){if(2048&(o=vV).flags)switch(o.tag){case 0:case 11:case 15:SV(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,vV=y;break e}vV=o.return}}var v=e.current;for(vV=v;null!==vV;){var b=(a=vV).child;if(2064&a.subtreeFlags&&null!==b)b.return=a,vV=b;else e:for(a=v;null!==vV;){if(2048&(s=vV).flags)try{switch(s.tag){case 0:case 11:case 15:kV(9,s)}}catch(e){$$(s,s.return,e)}if(s===a){vV=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,vV=x;break e}vV=s.return}}if(KV=i,cj(),qR&&"function"==typeof qR.onPostCommitFiberRoot)try{qR.onPostCommitFiberRoot(ER,e)}catch(e){}r=!0}return r}finally{BR=n,YV.transition=t}}return!1}function V$(e,t,n){e=aB(e,t=_H(0,t=TH(n,t),1),1),t=x$(),null!==e&&(FR(e,1,t),k$(e,t))}function $$(e,t,n){if(3===e.tag)V$(e,e,n);else for(;null!==t;){if(3===t.tag){V$(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===f$||!f$.has(r))){t=aB(t,e=LH(t,e=TH(n,e),1),1),e=x$(),null!==t&&(FR(t,1,e),k$(t,e));break}}t=t.return}}function W$(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=x$(),e.pingedLanes|=e.suspendedLanes&n,GV===e&&(JV&n)===n&&(4===e$||3===e$&&(130023424&JV)===JV&&500>bR()-s$?A$(e,0):i$|=n),k$(e,t)}function U$(e,t){0===t&&(1&e.mode?(t=AR,!(130023424&(AR<<=1))&&(AR=4194304)):t=1);var n=x$();null!==(e=tB(e,t))&&(FR(e,t,n),k$(e,n))}function Y$(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),U$(e,n)}function K$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(DL(314))}null!==r&&r.delete(t),U$(e,n)}function G$(e,t){return mR(e,t)}function X$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function J$(e,t,n,r){return new X$(e,t,n,r)}function Z$(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Q$(e,t){var n=e.alternate;return null===n?((n=J$(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function eW(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)Z$(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case UL:return tW(n.children,i,o,t);case YL:a=8,i|=8;break;case KL:return(e=J$(12,n,t,2|i)).elementType=KL,e.lanes=o,e;case ZL:return(e=J$(13,n,t,i)).elementType=ZL,e.lanes=o,e;case QL:return(e=J$(19,n,t,i)).elementType=QL,e.lanes=o,e;case nI:return nW(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case GL:a=10;break e;case XL:a=9;break e;case JL:a=11;break e;case eI:a=14;break e;case tI:a=16,r=null;break e}throw Error(DL(130,null==e?e:typeof e,""))}return(t=J$(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function tW(e,t,n,r){return(e=J$(7,e,r,t)).lanes=n,e}function nW(e,t,n,r){return(e=J$(22,e,r,t)).elementType=nI,e.lanes=n,e.stateNode={isHidden:!1},e}function rW(e,t,n){return(e=J$(6,e,null,t)).lanes=n,e}function iW(e,t,n){return(t=J$(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oW(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zR(0),this.expirationTimes=zR(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zR(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function aW(e,t,n,r,i,o,a,s,l){return e=new oW(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=J$(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rB(o),e}function sW(e){if(!e)return KF;e:{if(uR(e=e._reactInternals)!==e||1!==e.tag)throw Error(DL(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(QF(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(DL(171))}if(1===e.tag){var n=e.type;if(QF(n))return nj(e,n,t)}return t}function lW(e,t,n,r,i,o,a,s,l){return(e=aW(n,r,!0,e,0,o,0,s,l)).context=sW(null),n=e.current,(o=oB(r=x$(),i=w$(n))).callback=null!=t?t:null,aB(n,o,i),e.current.lanes=i,FR(e,i,r),k$(e,r),e}function cW(e,t,n,r){var i=t.current,o=x$(),a=w$(i);return n=sW(n),null===t.context?t.context=n:t.pendingContext=n,(t=oB(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=aB(i,t,a))&&(S$(e,i,a,o),sB(e,i,a)),a}function uW(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function dW(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function fW(e,t){dW(e,t),(e=e.alternate)&&dW(e,t)}VV=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||XF.current)FH=!0;else{if(!(e.lanes&n||128&t.flags))return FH=!1,function(e,t,n){switch(t.tag){case 3:GH(t),Lj();break;case 5:vB(t);break;case 1:QF(t.type)&&rj(t);break;case 4:gB(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;YF(Vj,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(YF(xB,1&xB.current),t.flags|=128,null):n&t.child.childLanes?rV(e,t,n):(YF(xB,1&xB.current),null!==(e=uV(e,t,n))?e.sibling:null);YF(xB,1&xB.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return lV(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),YF(xB,xB.current),r)break;return null;case 22:case 23:return t.lanes=0,$H(e,t,n)}return uV(e,t,n)}(e,t,n);FH=!!(131072&e.flags)}else FH=!1,Cj&&1048576&t.flags&&xj(t,hj,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cV(e,t),e=t.pendingProps;var i=ZF(t,GF.current);Xj(t,n),i=RB(null,t,r,e,i,n);var o=PB();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,QF(r)?(o=!0,rj(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,rB(t),i.updater=MH,t.stateNode=i,i._reactInternals=t,DH(t,r,e,n),t=KH(null,t,r,!0,o,n)):(t.tag=0,Cj&&o&&wj(t),jH(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cV(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Z$(e)?1:0;if(null!=e){if((e=e.$$typeof)===JL)return 11;if(e===eI)return 14}return 2}(r),e=SH(r,e),i){case 0:t=UH(null,t,r,e,n);break e;case 1:t=YH(null,t,r,e,n);break e;case 11:t=BH(null,t,r,e,n);break e;case 14:t=HH(null,t,r,SH(r.type,e),n);break e}throw Error(DL(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,UH(e,t,r,i=t.elementType===r?i:SH(r,i),n);case 1:return r=t.type,i=t.pendingProps,YH(e,t,r,i=t.elementType===r?i:SH(r,i),n);case 3:e:{if(GH(t),null===e)throw Error(DL(387));r=t.pendingProps,i=(o=t.memoizedState).element,iB(e,t),cB(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=XH(e,t,r,n,i=TH(Error(DL(423)),t));break e}if(r!==i){t=XH(e,t,r,n,i=TH(Error(DL(424)),t));break e}for(Mj=NF(t.stateNode.containerInfo.firstChild),kj=t,Cj=!0,Ej=null,n=Hj(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Lj(),r===i){t=uV(e,t,n);break e}jH(e,t,r,n)}t=t.child}return t;case 5:return vB(t),null===e&&Nj(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,kF(r,i)?a=null:null!==o&&kF(r,o)&&(t.flags|=32),WH(e,t),jH(e,t,a,n),t.child;case 6:return null===e&&Nj(t),null;case 13:return rV(e,t,n);case 4:return gB(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Bj(t,null,r,n):jH(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,BH(e,t,r,i=t.elementType===r?i:SH(r,i),n);case 7:return jH(e,t,t.pendingProps,n),t.child;case 8:case 12:return jH(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,YF(Vj,r._currentValue),r._currentValue=a,null!==o)if(Dz(o.value,a)){if(o.children===i.children&&!XF.current){t=uV(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=oB(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Gj(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(DL(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Gj(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}jH(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xj(t,n),r=r(i=Jj(i)),t.flags|=1,jH(e,t,r,n),t.child;case 14:return i=SH(r=t.type,t.pendingProps),HH(e,t,r,i=SH(r.type,i),n);case 15:return VH(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:SH(r,i),cV(e,t),t.tag=1,QF(r)?(e=!0,rj(t)):e=!1,Xj(t,n),EH(t,r,i),DH(t,r,i,n),KH(null,t,r,!0,e,n);case 19:return lV(e,t,n);case 22:return $H(e,t,n)}throw Error(DL(156,t.tag))};var hW="function"==typeof reportError?reportError:function(e){console.error(e)};function pW(e){this._internalRoot=e}function mW(e){this._internalRoot=e}function gW(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function yW(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function vW(){}function bW(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=uW(a);s.call(e)}}cW(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=uW(a);o.call(e)}}var a=lW(t,r,e,0,null,!1,0,"",vW);return e._reactRootContainer=a,e[IF]=a.current,cF(8===e.nodeType?e.parentNode:e),N$(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=uW(l);s.call(e)}}var l=aW(e,0,!1,null,0,!1,0,"",vW);return e._reactRootContainer=l,e[IF]=l.current,cF(8===e.nodeType?e.parentNode:e),N$((function(){cW(t,l,n,r)})),l}(n,t,e,i,r);return uW(a)}mW.prototype.render=pW.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(DL(409));cW(e,t,null,null)},mW.prototype.unmount=pW.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;N$((function(){cW(null,e,null,null)})),t[IF]=null}},mW.prototype.unstable_scheduleHydration=function(e){if(e){var t=UR();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tP.length&&0!==t&&t<tP[n].priority;n++);tP.splice(n,0,e),0===n&&oP(e)}},VR=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=_R(t.pendingLanes);0!==n&&(jR(t,1|n),k$(t,bR()),!(6&KV)&&(l$=bR()+500,cj()))}break;case 13:N$((function(){var t=tB(e,1);if(null!==t){var n=x$();S$(t,e,1,n)}})),fW(e,1)}},$R=function(e){if(13===e.tag){var t=tB(e,134217728);if(null!==t)S$(t,e,134217728,x$());fW(e,134217728)}},WR=function(e){if(13===e.tag){var t=w$(e),n=tB(e,t);if(null!==n)S$(n,e,t,x$());fW(e,t)}},UR=function(){return BR},YR=function(e,t){var n=BR;try{return BR=e,t()}finally{BR=n}},$I=function(e,t,n){switch(t){case"input":if(wI(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=HF(r);if(!i)throw Error(DL(90));gI(r),wI(r,i)}}}break;case"textarea":DI(e,n);break;case"select":null!=(t=n.value)&&CI(e,!!n.multiple,t,!1)}},XI=T$,JI=N$;var xW={usingClientEntryPoint:!1,Events:[jF,BF,HF,KI,GI,T$]},wW={findFiberByHostInstance:FF,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},SW={bundleType:wW.bundleType,version:wW.version,rendererPackageName:wW.rendererPackageName,rendererConfig:wW.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:VL.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=hR(e))?null:e.stateNode},findFiberByHostInstance:wW.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var kW=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kW.isDisabled&&kW.supportsFiber)try{ER=kW.inject(SW),qR=kW}catch(jh){}}SL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xW,SL.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!gW(t))throw Error(DL(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:WL,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},SL.createRoot=function(e,t){if(!gW(e))throw Error(DL(299));var n=!1,r="",i=hW;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=aW(e,1,!1,null,0,n,0,r,i),e[IF]=t.current,cF(8===e.nodeType?e.parentNode:e),new pW(t)},SL.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(DL(188));throw e=Object.keys(e).join(","),Error(DL(268,e))}return e=null===(e=hR(t))?null:e.stateNode},SL.flushSync=function(e){return N$(e)},SL.hydrate=function(e,t,n){if(!yW(t))throw Error(DL(200));return bW(null,e,t,!0,n)},SL.hydrateRoot=function(e,t,n){if(!gW(e))throw Error(DL(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=hW;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=lW(t,null,e,1,null!=n?n:null,i,0,o,a),e[IF]=t.current,cF(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new mW(t)},SL.render=function(e,t,n){if(!yW(t))throw Error(DL(200));return bW(null,e,t,!1,n)},SL.unmountComponentAtNode=function(e){if(!yW(e))throw Error(DL(40));return!!e._reactRootContainer&&(N$((function(){bW(null,null,e,!1,(function(){e._reactRootContainer=null,e[IF]=null}))})),!0)},SL.unstable_batchedUpdates=T$,SL.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yW(n))throw Error(DL(200));if(null==e||void 0===e._reactInternals)throw Error(DL(38));return bW(e,t,n,!1,r)},SL.version="18.3.1-next-f1338f8080-20240426",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)}}(),wL.exports=SL;var MW=wL.exports,CW=og(MW),EW=!0,qW=!1,DW=null,TW={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 NW(e){e.metaKey||e.altKey||e.ctrlKey||(EW=!0)}function OW(){EW=!1}function AW(){"hidden"===this.visibilityState&&qW&&(EW=!0)}function _W(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return EW||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!TW[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function LW(){qW=!0,window.clearTimeout(DW),DW=window.setTimeout((function(){qW=!1}),100)}function IW(){var e=AD.useCallback((function(e){var t,n=MW.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",NW,!0),t.addEventListener("mousedown",OW,!0),t.addEventListener("pointerdown",OW,!0),t.addEventListener("touchstart",OW,!0),t.addEventListener("visibilitychange",AW,!0))}),[]);return{isFocusVisible:_W,onBlurVisible:LW,ref:e}}var RW=!1,PW=_D.createContext(null),zW="unmounted",FW="exited",jW="entering",BW="entered",HW="exiting",VW=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=FW,r.appearStatus=jW):i=BW:i=t.unmountOnExit||t.mountOnEnter?zW:FW,r.state={status:i},r.nextCallback=null,r}xN(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===zW?{status:FW}: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!==jW&&n!==BW&&(t=jW):n!==jW&&n!==BW||(t=HW)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===jW){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:CW.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===FW&&this.setState({status:zW})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[CW.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||RW?this.safeSetState({status:BW},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:jW},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:BW},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:CW.findDOMNode(this);t&&!RW?(this.props.onExit(r),this.safeSetState({status:HW},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:FW},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:FW},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:CW.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===zW)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=FT(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _D.createElement(PW.Provider,{value:null},"function"==typeof n?n(e,r):_D.cloneElement(_D.Children.only(n),r))},t}(_D.Component);function $W(){}function WW(e,t){var n=Object.create(null);return e&&AD.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&AD.isValidElement(e)?t(e):e}(e)})),n}function UW(e,t,n){return null!=n[t]?n[t]:e.props[t]}function YW(e,t,n){var r=WW(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(AD.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=AD.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&AD.isValidElement(c)&&(i[o]=AD.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:UW(a,"exit",e),enter:UW(a,"enter",e)})):i[o]=AD.cloneElement(a,{in:!1}):i[o]=AD.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:UW(a,"exit",e),enter:UW(a,"enter",e)})}})),i}VW.contextType=PW,VW.propTypes={},VW.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$W,onEntering:$W,onEntered:$W,onExit:$W,onExiting:$W,onExited:$W},VW.UNMOUNTED=zW,VW.EXITED=FW,VW.ENTERING=jW,VW.ENTERED=BW,VW.EXITING=HW;var KW=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},GW=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(wN(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}xN(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,WW(n.children,(function(e){return AD.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:UW(e,"appear",n),enter:UW(e,"enter",n),exit:UW(e,"exit",n)})}))):YW(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=WW(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=qT({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=FT(e,["component","childFactory"]),i=this.state.contextValue,o=KW(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?_D.createElement(PW.Provider,{value:i},o):_D.createElement(PW.Provider,{value:i},_D.createElement(t,r,o))},t}(_D.Component);GW.propTypes={},GW.defaultProps={component:"div",childFactory:function(e){return e}};function XW(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var JW=AD.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=jT(e,["classes","className","component","square","elevation","variant"]);return AD.createElement(o,qT({className:pL(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),ZW=uL((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),qT({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(JW),QW="undefined"==typeof window?AD.useEffect:AD.useLayoutEffect;function eU(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=AD.useState(!1),f=d[0],h=d[1],p=pL(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=pL(t.child,f&&t.childLeaving,r&&t.childPulsate),y=bL(c);return QW((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),AD.createElement("span",{className:p,style:m},AD.createElement("span",{className:g}))}var tU=AD.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=jT(e,["center","classes","className"]),s=AD.useState([]),l=s[0],c=s[1],u=AD.useRef(0),d=AD.useRef(null);AD.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=AD.useRef(!1),h=AD.useRef(null),p=AD.useRef(null),m=AD.useRef(null);AD.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=AD.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(rN(e),[AD.createElement(eU,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=AD.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;u=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var k=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,M=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(k,2)+Math.pow(M,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=AD.useCallback((function(){y({},{pulsate:!0})}),[y]),b=AD.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return AD.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),AD.createElement("span",qT({className:pL(i.root,o),ref:m},a),AD.createElement(GW,{component:null,exit:!0},l))})),nU=uL((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"})(AD.memo(tU)),rU=AD.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,S=e.onFocus,k=e.onFocusVisible,M=e.onKeyDown,C=e.onKeyUp,E=e.onMouseDown,q=e.onMouseLeave,D=e.onMouseUp,T=e.onTouchEnd,N=e.onTouchMove,O=e.onTouchStart,A=e.onDragLeave,_=e.tabIndex,L=void 0===_?0:_,I=e.TouchRippleProps,R=e.type,P=void 0===R?"button":R,z=jT(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=AD.useRef(null);var j=AD.useRef(null),B=AD.useState(!1),H=B[0],V=B[1];f&&H&&V(!1);var $=IW(),W=$.isFocusVisible,U=$.onBlurVisible,Y=$.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return bL((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}AD.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),AD.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",E),X=K("stop",A),J=K("stop",D),Z=K("stop",(function(e){H&&e.preventDefault(),q&&q(e)})),Q=K("start",O),ee=K("stop",T),te=K("stop",N),ne=K("stop",(function(e){H&&(U(e),V(!1)),x&&x(e)}),!1),re=bL((function(e){F.current||(F.current=e.currentTarget),W(e)&&(V(!0),k&&k(e)),S&&S(e)})),ie=function(){var e=MW.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=AD.useRef(!1),ae=bL((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),M&&M(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=bL((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),C&&C(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=P,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=xL(r,t),de=xL(Y,F),fe=xL(ue,de),he=AD.useState(!1),pe=he[0],me=he[1];AD.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return AD.createElement(le,qT({className:pL(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:fe,tabIndex:f?-1:L},ce,z),a,ge?AD.createElement(nU,qT({ref:j,center:o},I)):null)})),iU=uL({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(rU),oU={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},aU=AD.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?oU:b,w=jT(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=l||(g?"p":x[v]||oU[v])||"span";return AD.createElement(S,qT({className:pL(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(dL(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(dL(r))],"initial"!==u&&i["display".concat(dL(u))]),ref:t},w))})),sU=uL((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"})(aU),lU=AD.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,S=e.type,k=void 0===S?"button":S,M=e.variant,C=void 0===M?"text":M,E=jT(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),q=w&&AD.createElement("span",{className:pL(r.startIcon,r["iconSize".concat(dL(x))])},w),D=m&&AD.createElement("span",{className:pL(r.endIcon,r["iconSize".concat(dL(x))])},m);return AD.createElement(iU,qT({className:pL(r.root,r[C],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(C).concat(dL(a))],"medium"!==x&&[r["".concat(C,"Size").concat(dL(x))],r["size".concat(dL(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:pL(r.focusVisible,g),ref:t,type:k},E),AD.createElement("span",{className:r.label},q,n,D))})),cU=uL((function(e){return{root:qT({},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:zT(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:zT(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:zT(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(zT(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:zT(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(zT(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:zT(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(lU);var uU="undefined"!=typeof window?AD.useLayoutEffect:AD.useEffect,dU=AD.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=AD.useState(null),l=s[0],c=s[1],u=xL(AD.isValidElement(n)?n.ref:null,t);return uU((function(){o||c(function(e){return e="function"==typeof e?e():e,MW.findDOMNode(e)}(r)||document.body)}),[r,o]),uU((function(){if(l&&!o)return yL(t,l),function(){yL(t,null)}}),[t,l,o]),uU((function(){a&&(l||o)&&a()}),[a,l,o]),o?AD.isValidElement(n)?AD.cloneElement(n,{ref:u}):n:l?MW.createPortal(n,l):l}));function fU(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hU(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function pU(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(rN(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&fU(e,r)}))}function mU(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function gU(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=mL(e);return t.body===e?gL(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(hU(o)+a,"px"),n=mL(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(hU(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var yU=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return vN(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&fU(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);pU(t,e.mountNode,e.modalRef,r,!0);var i=mU(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=mU(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=gU(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=mU(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&&fU(e.modalRef,!0),pU(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&&fU(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function vU(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=AD.useRef(),f=AD.useRef(null),h=AD.useRef(null),p=AD.useRef(),m=AD.useRef(null),g=AD.useCallback((function(e){m.current=MW.findDOMNode(e)}),[]),y=xL(t.ref,g),v=AD.useRef();return AD.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),AD.useEffect((function(){if(u){var e=mL(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),AD.createElement(AD.Fragment,null,AD.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),AD.cloneElement(t,{ref:y}),AD.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var bU={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},xU=AD.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=jT(e,["invisible","open"]);return i?AD.createElement("div",qT({"aria-hidden":!0,ref:t},o,{style:qT({},bU.root,r?bU.invisible:{},o.style)})):null}));var wU=new yU,SU=AD.forwardRef((function(e,t){var n=d_(),r=mN({name:"MuiModal",props:qT({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?xU:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,S=void 0!==w&&w,k=r.disableScrollLock,M=void 0!==k&&k,C=r.hideBackdrop,E=void 0!==C&&C,q=r.keepMounted,D=void 0!==q&&q,T=r.manager,N=void 0===T?wU:T,O=r.onBackdropClick,A=r.onClose,_=r.onEscapeKeyDown,L=r.onRendered,I=r.open,R=jT(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),P=AD.useState(!0),z=P[0],F=P[1],j=AD.useRef({}),B=AD.useRef(null),H=AD.useRef(null),V=xL(H,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return mL(B.current)},U=function(){return j.current.modalRef=H.current,j.current.mountNode=B.current,j.current},Y=function(){N.mount(U(),{disableScrollLock:M}),H.current.scrollTop=0},K=bL((function(){var e=function(e){return e="function"==typeof e?e():e,MW.findDOMNode(e)}(u)||W().body;N.add(U(),e),H.current&&Y()})),G=AD.useCallback((function(){return N.isTopModal(U())}),[N]),X=bL((function(e){B.current=e,e&&(L&&L(),I&&G()?Y():fU(H.current,!0))})),J=AD.useCallback((function(){N.remove(U())}),[N]);if(AD.useEffect((function(){return function(){J()}}),[J]),AD.useEffect((function(){I?K():$&&c||J()}),[I,J,$,c,K]),!D&&!I&&(!$||z))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:uN}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),$&&(Q.onEnter=fL((function(){F(!1)}),s.props.onEnter),Q.onExited=fL((function(){F(!0),c&&J()}),s.props.onExited)),AD.createElement(dU,{ref:X,container:u,disablePortal:x},AD.createElement("div",qT({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(_&&_(e),v||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))},role:"presentation"},R,{style:qT({},Z.root,!I&&z?Z.hidden:{},R.style)}),E?null:AD.createElement(o,qT({open:I,onClick:function(e){e.target===e.currentTarget&&(O&&O(e),!p&&A&&A(e,"backdropClick"))}},a)),AD.createElement(vU,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:S,getDoc:W,isEnabled:G,open:I},AD.cloneElement(s,Q))))})),kU=AD.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=jT(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return AD.createElement(s,qT({className:pL(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),MU=uL((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:zT(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(kU);function CU(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var EU={entering:{opacity:1,transform:CU(1)},entered:{opacity:1,transform:"none"}},qU=AD.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?VW:m,y=jT(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=AD.useRef(),b=AD.useRef(),x=d_()||lL,w=x.unstable_strictMode&&!i,S=AD.useRef(null),k=xL(n.ref,t),M=xL(w?S:void 0,k),C=function(e){return function(t,n){if(e){var r=iN(w?[S.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},E=C(l),q=C((function(e,t){!function(e){e.scrollTop}(e);var n,r=XW({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),D=C(s),T=C(d),N=C((function(e){var t,n=XW({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=CU(.75),c&&c(e)})),O=C(u);return AD.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),AD.createElement(g,qT({appear:!0,in:o,nodeRef:w?S:void 0,onEnter:q,onEntered:D,onEntering:E,onExit:N,onExited:O,onExiting:T,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return AD.cloneElement(n,qT({style:qT({opacity:0,transform:CU(.75),visibility:"exited"!==e||o?void 0:"hidden"},EU[e],f,n.props.style),ref:M},t))}))}));qU.muiSupportAuto=!0;var DU=AD.createContext({}),TU=AD.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=jT(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=AD.useMemo((function(){return{dense:l}}),[l]);return AD.createElement(DU.Provider,{value:h},AD.createElement(a,qT({className:pL(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),NU=uL({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(TU),OU="undefined"==typeof window?AD.useEffect:AD.useLayoutEffect,AU=AD.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=jT(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,S=void 0!==w&&w,k=e.divider,M=void 0!==k&&k,C=e.focusVisibleClassName,E=e.selected,q=void 0!==E&&E,D=jT(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=AD.useContext(DU),N={dense:v||T.dense||!1,alignItems:r},O=AD.useRef(null);OU((function(){o&&O.current&&O.current.focus()}),[o]);var A,_,L=AD.Children.toArray(l),I=L.length&&(A=L[L.length-1],_=["ListItemSecondaryAction"],AD.isValidElement(A)&&-1!==_.indexOf(A.type.muiName)),R=AD.useCallback((function(e){O.current=MW.findDOMNode(e)}),[]),P=xL(R,t),z=qT({className:pL(c.root,u,N.dense&&c.dense,!S&&c.gutters,M&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,I&&c.secondaryAction,q&&c.selected),disabled:x},D),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=pL(c.focusVisible,C),F=iU),I?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),AD.createElement(DU.Provider,{value:N},AD.createElement(h,qT({className:pL(c.container,m),ref:P},g),AD.createElement(F,z,L),L.pop()))):AD.createElement(DU.Provider,{value:N},AD.createElement(F,qT({ref:P},z),L))})),_U=uL((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"})(AU),LU=AD.forwardRef((function(e,t){var n=e.classes,r=e.className,i=jT(e,["classes","className"]),o=AD.useContext(DU);return AD.createElement("div",qT({className:pL(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),IU=uL((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(LU),RU=AD.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=jT(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=AD.useContext(DU).dense,m=null!=c?c:n;null==m||m.type===sU||a||(m=AD.createElement(sU,qT({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===sU||a||(g=AD.createElement(sU,qT({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),AD.createElement("div",qT({className:pL(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),PU=uL({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(RU);function zU(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function FU(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function jU(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function BU(e){return"function"==typeof e?e():e}var HU=AD.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,S=e.onExited,k=e.onExiting,M=e.open,C=e.PaperProps,E=void 0===C?{}:C,q=e.transformOrigin,D=void 0===q?{vertical:"top",horizontal:"left"}:q,T=e.TransitionComponent,N=void 0===T?qU:T,O=e.transitionDuration,A=void 0===O?"auto":O,_=e.TransitionProps,L=void 0===_?{}:_,I=jT(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"]),R=AD.useRef(),P=AD.useCallback((function(e){if("anchorPosition"===l)return a;var t=BU(r),n=(t&&1===t.nodeType?t:mL(R.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+zU(n,i),left:n.left+FU(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=AD.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=AD.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:zU(e,D.vertical)+t,horizontal:FU(e,D.horizontal)}}),[D.horizontal,D.vertical]),j=AD.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:jU(i)};var o=P(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=gL(BU(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:jU(i)}}),[r,l,P,z,F,y]),B=AD.useCallback((function(){var e=R.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=AD.useCallback((function(e){R.current=MW.findDOMNode(e)}),[]);AD.useEffect((function(){M&&B()})),AD.useImperativeHandle(n,(function(){return M?{updatePosition:function(){B()}}:null}),[M,B]),AD.useEffect((function(){if(M){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[M,B]);var V=A;"auto"!==A||N.muiSupportAuto||(V=void 0);var $=f||(r?mL(BU(r)).body:void 0);return AD.createElement(SU,qT({container:$,open:M,ref:t,BackdropProps:{invisible:!0},className:pL(u.root,d)},I),AD.createElement(N,qT({appear:!0,in:M,onEnter:v,onEntered:b,onExit:w,onExited:S,onExiting:k,timeout:V},L,{onEntering:fL((function(e,t){x&&x(e,t),B()}),L.onEntering)}),AD.createElement(ZW,qT({elevation:p,ref:H},E,{className:pL(u.paper,E.className)}),c)))})),VU=uL({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(HU);function $U(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function WU({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:$U(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return _D.createElement("i",{style:i},_D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},_D.createElement("path",{d:e})))}const UU="alternative-menu-item",YU=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>x_((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return _D.createElement(_U,nT({className:`${i.root} ${n}`},r))},KU=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${UU}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function GU({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Ug.detectTextDirection(e);return _D.createElement(YU,{nested:r,role:"menuitem",button:!0,onClick:n,className:UU,onKeyDown:KU,dir:a,autoFocus:t},_D.createElement(PU,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),_D.createElement(IU,{style:{minWidth:16}},_D.createElement(WU,{d:t?FD:""})),i&&_D.createElement(IU,{style:{minWidth:16}},_D.createElement(WU,{d:i.d})))}GU.propTypes={title:aT.string.isRequired,selected:aT.bool,onClick:aT.func.isRequired,nested:aT.bool,icon:aT.shape({d:aT.string.isRequired}),bold:aT.bool,dir:aT.string.isRequired},GU.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},YU.propTypes={nested:aT.bool,className:aT.string},YU.defaultProps={nested:!1,className:UU};const XU={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function JU({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map(((t,i)=>{var s;return _D.createElement(_D.Fragment,{key:t.id},_D.createElement(GU,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&_D.createElement(NU,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>_D.createElement(GU,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&_D.createElement(MU,{key:`divider-${t.id}`}))}));return _D.createElement(VU,nT({anchorEl:t,open:s,onClose:a},XU[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),_D.createElement(NU,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}JU.propTypes={chartId:aT.string.isRequired,alignTo:aT.any,currentId:aT.string.isRequired,dir:aT.string.isRequired,dock:aT.string.isRequired,list:aT.array,onClose:aT.func.isRequired,show:aT.bool.isRequired,instruction:aT.string.isRequired},JU.defaultProps={list:[],alignTo:null};const ZU="title-button",QU="active-title-button",eY=cL((({children:e,...t})=>_D.createElement(cU,nT({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),tY=cL(cU)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class nY extends _D.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=_D.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${ZU}`);t&&(t.focus(),t.classList.add(QU))}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${ZU}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${QU}`);e&&(e.classList.remove(QU),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>_D.createElement(eY,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},_D.createElement("span",{style:d},e),_D.createElement(WU,nT({},BD,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Ug.detectTextDirection(t.text),w=_D.createElement(eY,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${ZU} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&_D.createElement(WU,nT({},zD,{size:"small",title:r.get("Tooltip.selections.locked")})),_D.createElement("span",{style:d,dir:x},t.text),n&&m&&_D.createElement(WU,nT({},jD,{size:"small",style:{margin:"0 8px"}})));return _D.createElement(_D.Fragment,null,t.icon&&t.icon.onClick&&_D.createElement(tY,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},_D.createElement(WU,nT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&_D.createElement(WU,nT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,_D.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&_D.createElement(JU,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function rY(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function iY(e){function t(e){return!e.isDimension&&Dg.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],w=r||i[a?"qDimensionInfo":"qMeasureInfo"],S=a?ZD:eT,k=a?QD:tT,M=Boolean(l&&l.colorSupport&&l.modifiers),C=M&&((E=this.settings.settings).isDimension&&Dg.getValue(E,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var E;const q=w.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=k(t,o,l,e),v=r===w.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,E=M||b?S({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:rY(g),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:M}):void 0;return _D.createElement(_D.Fragment,{key:t.cId},_D.createElement(nY,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:E,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:C,supportConditional:m}),!v&&_D.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return _D.createElement("div",{style:v,dir:y},q)}}}nY.propTypes={chartId:aT.string.isRequired,disabled:aT.bool.isRequired,padding:aT.string,minWidth:aT.string,titleData:aT.shape({breadcrumbs:aT.arrayOf(aT.string).isRequired,icon:aT.shape({path:aT.shape({d:aT.string.isRequired}),tooltip:aT.string.isRequired,onClick:aT.func}),index:aT.number.isRequired,locked:aT.bool.isRequired,text:aT.string.isRequired,popoverText:aT.string.isRequired,drillUp:aT.func,id:aT.string.isRequired}).isRequired,popover:aT.shape({dir:aT.string.isRequired,dock:aT.string.isRequired,getPopoverOptions:aT.func.isRequired}),translator:aT.shape({get:aT.func.isRequired}).isRequired,selections:aT.shape({isActive:aT.func,addListener:aT.func,removeListener:aT.func}),style:aT.shape({fontSize:aT.string,color:aT.string,fontFamily:aT.string}).isRequired,isDimension:aT.bool.isRequired,hasAlternative:aT.bool.isRequired,supportConditional:aT.bool.isRequired,showGroupDimOptions:aT.bool.isRequired},nY.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const oY=dN({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const aY=pN({productionPrefix:"q66d4",disableGlobal:!0,seed:""});function sY(){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",CW.render(function(e,t){return _D.createElement(g_,{generateClassName:t},_D.createElement(sL,{theme:oY},e))}(e,aY),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&CW.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(CW.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}var lY={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:cY}=lY;function uY({layoutService:e,largeDataService:t}){const{maxNumPoints:n=cY}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:dY}=lY,fY=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=dY}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!uY({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:hY}=lY,{MAX_NUM_POINTS:pY,DEFAULT_NUM_POINTS:mY,DEFAULT_NUM_LINES:gY}=lY,{DEFAULT_NUM_POINTS:yY}=lY,vY=({layoutService:e,largeDataService:t})=>{if(!uY({layoutService:e,largeDataService:t})){const{maxNumPoints:e=yY}=(null==t?void 0:t.meta)||{};return e}const{dimensionCount:n}=e.meta;return n>1?(({layoutService:e,largeDataService:t})=>{var n;const{dimensions:r=[]}=(null==e||null===(n=e.meta)||void 0===n?void 0:n.size)||{},{maxNumLines:i=gY,maxNumPoints:o=mY,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(fY({layoutService:e,largeDataService:t})*r[0]<=o)return r[0];const s=Math.max(1,Math.min(i,r[1])),l=o/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>gY||o>mY)?Math.min(c,Math.ceil(pY/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=hY}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},i=4+2*(r-1);return Math.floor(n/(r*i))})({layoutService:e,largeDataService:t})};function bY({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>uY({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>vY({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>fY({layoutService:t,largeDataService:n}),fetch:(i,o)=>(({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:vY({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:fY({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)})({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function xY(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function wY({layoutService:e,viewCache:t}){return{fetch:()=>{const{qAxisData:t,qDataPages:n}=e.getHyperCube();return Promise.resolve({qAxisData:t,qDataPages:n})},getSnapshotData(){const n=e.getLayoutValue("snapshotData.content.chartData",{});return"zoom"in n&&"min"in n.zoom&&"max"in n.zoom?function({zoom:e}){return{zoom:e}}(n):function({scrollOffset:e=0,viewRange:t=0},n){let r=n+e,i=r+t;return 1===t&&0===e&&(r=n-.5,i=n+.5),{zoom:{min:r,max:i}}}(n,t.get("continuousMin"))}}}function SY(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1),t.push(e),n[e]=r},e.forEach=e=>{t.forEach(((t,r)=>e(n[t],r)))},e.has=e=>e in n,e}function kY(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=SY(),o=SY();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?i.set(l,s):s[0].qNum>t&&(o.has(l)||o.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i.forEach(((e,t)=>r.splice(t,0,e))),o.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let i,o;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?i=s:s[0].qNum>t&&(o||(o=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i&&r.unshift(i),o&&r.push(o),r}({start:e,end:t,matrix:n})}function MY(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function CY(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=kY(e,t,n.qMatrix),i=MY(n.qArea,r);return{...n,qArea:i,qMatrix:r}}))};return n.qAxisData&&n.qAxisData.qAxis&&(r.qAxisData=function(e,t,n){return{qAxis:n.qAxis.map((n=>({qName:n.qName,qTags:n.qTags,qTicks:n.qTicks.reduce(((n,r)=>((r.qStart>=e&&r.qStart<=t||r.qEnd>=e&&r.qEnd<=t||r.qStart<e&&r.qEnd>t)&&n.push(r),n)),[])})))}}(e,t,n.qAxisData)),r}const EY=2**.5,qY=1/EY,DY=qY**44;function TY(e){return e.qIsOtherCell}function NY({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(TY)){const n=e[0].qElemNumber;t[n]=void 0}})),Object.keys(t).length}(n):function(e){let t=0;return e.forEach((e=>{e.some(TY)||t++})),t}(n)}const OY={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var AY={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],i=t[e+1];r.data={},i||1===r.end?i?(r.data.start=r.value,r.data.end=i.value,r.end=i.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};function _Y(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function LY(e,t){const{localProps:{size:n},props:{anchor:r}}=t,i=function({props:e,localProps:{size:t},style:n,renderer:r}){const i=e.label.padding,o=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",c=s(l);let{x:u,width:d}=r;e.start===e.end&&(d=c.width+2*i,1===e.end&&(u-=d));const f={x:u+i,y:i,width:d-2*i,height:t.height-2*i},h=s(`${l[0]}…`).width,p=Math.max(0,f.width-c.width),m=Math.max(0,f.height-c.height),g=o*p,y=a*m;return{show:f.width>=Math.min(h,c.width),text:l,dx:g,dy:y,rect:f,style:n.label,segment:{x:u+g,width:c.width+2*i},tickValue:e.value}}}}(t),o=function({localProps:{size:e},style:t,scale:n,props:r}){const[i,o]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=_Y(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:_Y(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine,tickValue:n.value}}}}(t),a=e.map((e=>{const t=function(e,t,n){const r=Math.abs(Math.max(e.start,0)-Math.min(e.end,1))*t.width;return{x:Math.max(e[n],0)*t.width,y:0,width:r,height:t.height}}(e,n,r);return{rect:t,label:i.resolve(e,t),guideLine:o.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],i=t[n-1].label;if(r&&r.start===r.end)for(let e=n-2;e>-1;e--){const n=t[e].label;n.show=n.show&&(o=n.segment,a=i.segment,!(o.x<a.x?o.x+o.width>=a.x:a.x+a.width>=o.x))}var o,a}(e,a),a}function IY(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const i=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),o=_Y(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:_Y(i,n.minorGuideLine.strokeWidth),x2:o,y2:_Y(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function RY(e){return e.filter((e=>e.show)).map((e=>vg({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var PY={require:["renderer"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{anchor:"start",label:{show:!0,padding:4,align:0,justify:0},line:{show:!0},guideLine:{major:{justify:0},minor:{show:!0,size:4,align:0}}},style:{label:"$label",line:"$guide-line",majorGuideLine:"$guide-line",minorGuideLine:"$guide-line"}},preferredSize:()=>({size:30,edgeBleed:{left:1,right:1}}),init(){this.props=this.settings.settings,this.localProps={},this.state={major:[],minor:[]}},created(){this.init()},beforeUpdate(){this.init()},beforeRender({size:e}){this.localProps.size=e;const t=this.scale.ticks({distance:e.width}),n=t.filter((e=>!e.isMinor)),r=t.filter((e=>e.isMinor));this.state.line=function({localProps:{size:e},style:t,props:n}){const r=_Y(1,t.line.strokeWidth);return{show:n.line.show,x1:_Y(0,t.line.strokeWidth),y1:r,x2:_Y(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=LY(n,this),this.state.minor=IY(r,this)},render(){return[...RY([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>vg({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...RY(this.state.major.map((e=>e.guideLine))),...RY(this.state.minor.map((e=>e.guideLine)))];var e}};function zY(e,t){return e&&t&&e.qTicks.length===t.qTicks.length&&e.qTicks.every(((e,n)=>e.qStart===t.qTicks[n].qStart&&e.qEnd===t.qTicks[n].qEnd))}function FY(e){return e.qTags.indexOf("$qualified")>-1}function jY({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];zY(o,a)?(FY(a)?(t.push(i),n.push(r)):(t.push(r),n.push(i)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function BY({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,i=NaN,o=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(i=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){o="auto",s=!0;break}if(e&&e.queries.inner(n)){o=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(i)&&Number.isNaN(o)&&"auto"!==o){o=i,i=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(i)&&(i="auto",o="auto");return{outer:i,inner:o,minor:a,isDayOrShorter:s}}}}function HY({qTicks:e,measureText:t=()=>({width:0}),cache:n={},scale:r}){const i=n;return{isDayOrShorter:()=>(i.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,i.isDayOrShorter),count:()=>e.length,maxRange:()=>(i.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,i.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),i.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+16}))),r.clamp(n),i.rangeAndWidth}}}function VY({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=6,canFitHalfDayTicks:n=>n>=t*e.count()}}function $Y({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=HY,queryFactory:s=VY}={attributesFactory:HY,queryFactory:VY}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:o});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:i})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function WY({qAxis:e=[],measureText:t=()=>({width:0}),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=$Y,mapper:a=jY,resolver:s=BY}={metaFactory:$Y,mapper:jY,resolver:BY}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=o({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:i}),f=s({qualifiedMeta:u,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const i=f.resolve(t);return n.set(r,i),i}}}function UY(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}const YY=UY(0).getTime();function KY(e){return(e.getTime()-YY)/86400/1e3}const GY=new Date,XY=new Date;function JY(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>JY((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(GY.setTime(+t),XY.setTime(+r),e(GY),e(XY),Math.floor(n(GY,XY))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const ZY=1e3,QY=6e4,eK=36e5,tK=864e5,nK=6048e5,rK=JY((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*ZY)}),((e,t)=>(t-e)/ZY),(e=>e.getUTCSeconds()));rK.range;const iK=JY((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ZY)}),((e,t)=>{e.setTime(+e+t*QY)}),((e,t)=>(t-e)/QY),(e=>e.getMinutes()));iK.range;const oK=JY((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*QY)}),((e,t)=>(t-e)/QY),(e=>e.getUTCMinutes()));oK.range;const aK=JY((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ZY-e.getMinutes()*QY)}),((e,t)=>{e.setTime(+e+t*eK)}),((e,t)=>(t-e)/eK),(e=>e.getHours()));aK.range;const sK=JY((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*eK)}),((e,t)=>(t-e)/eK),(e=>e.getUTCHours()));sK.range;const lK=JY((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*QY)/tK),(e=>e.getDate()-1));lK.range;const cK=JY((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/tK),(e=>e.getUTCDate()-1));cK.range;const uK=JY((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/tK),(e=>Math.floor(e/tK)));function dK(e){return JY((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*QY)/nK))}uK.range;const fK=dK(0),hK=dK(1),pK=dK(2),mK=dK(3),gK=dK(4),yK=dK(5),vK=dK(6);function bK(e){return JY((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/nK))}fK.range,hK.range,pK.range,mK.range,gK.range,yK.range,vK.range;const xK=bK(0),wK=bK(1),SK=bK(2),kK=bK(3),MK=bK(4),CK=bK(5),EK=bK(6);xK.range,wK.range,SK.range,kK.range,MK.range,CK.range,EK.range;const qK=JY((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));qK.range;const DK=JY((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));DK.range;const TK=JY((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));TK.every=e=>isFinite(e=Math.floor(e))&&e>0?JY((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,TK.range;const NK=JY((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));NK.every=e=>isFinite(e=Math.floor(e))&&e>0?JY((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,NK.range;const OK=1,AK=2,_K=3,LK=4,IK=5,RK=6;function PK({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:i,timeOnly:o,initialMin:a}){const[s,l]=e.domain(),c=i.key({distance:n});let u;i.get(c,1)?u=i.get(c,1):(u=function(e,t,n,r,i,o){function a(e){return NK.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=rK.count(e,t),l=oK.count(e,t),c=sK.count(e,t),u=cK.count(e,t),d=xK.count(e,t),f=DK.count(e,t),h=NK.count(e,t),p=n/r.second.width-1,m=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:h,interval:NK.every(1),formatter:r.year.formatter,offset:e=>NK.offset(e,-1),floor:NK.floor};if(s<=p)v.type=OK,v.desc="second",v.count=s,v.interval=rK.every(1),v.formatter=r.second.formatter,v.offset=e=>rK.offset(e,-1),v.floor=rK.floor;else if(s/2<=p)v.type=OK,v.desc="every other second",v.count=s/2,v.interval=rK.every(2),v.formatter=r.second.formatter,v.offset=e=>rK.offset(e,-2),v.floor=rK.floor;else if(s/5<=p)v.type=OK,v.desc="every 5 second",v.count=s/5,v.interval=rK.every(5),v.formatter=r.second.formatter,v.offset=e=>rK.offset(e,-5),v.floor=rK.floor;else if(s/15<=p)v.type=OK,v.desc="every 15 second",v.count=s/15,v.interval=rK.every(15),v.formatter=r.second.formatter,v.offset=e=>rK.offset(e,-15),v.floor=rK.floor;else if(s/30<=p)v.type=OK,v.desc="every 30 second",v.count=s/30,v.interval=rK.every(30),v.formatter=r.second.formatter,v.offset=e=>rK.offset(e,-30),v.floor=rK.floor;else if(l<=m)v.type=AK,v.desc="minute",v.count=l,v.interval=oK.every(1),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-1),v.floor=oK.floor;else if(l/2<=m)v.type=AK,v.desc="every 2 minute",v.count=l/2,v.interval=oK.every(2),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-2),v.floor=oK.floor;else if(l/5<=m)v.type=AK,v.desc="every 5 minute",v.count=l/5,v.interval=oK.every(5),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-5),v.floor=oK.floor;else if(l/10<=m)v.type=AK,v.desc="every 10 minute",v.count=l/10,v.interval=oK.every(10),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-10),v.floor=oK.floor;else if(l/15<=m)v.type=AK,v.desc="every 15 minute",v.count=l/15,v.interval=oK.every(15),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-15),v.floor=oK.floor;else if(l/30<=m)v.type=AK,v.desc="every 30 minute",v.count=l/30,v.interval=oK.every(30),v.formatter=r.minute.formatter,v.offset=e=>oK.offset(e,-30),v.floor=oK.floor;else if(c<=m)v.type=_K,v.desc="hour",v.count=c,v.interval=sK.every(1),v.formatter=r.minute.formatter,v.offset=e=>sK.offset(e,-1),v.floor=sK.floor;else if(c/2<=m)v.type=_K,v.desc="every 2 hour",v.count=c/2,v.interval=sK.every(2),v.formatter=r.minute.formatter,v.offset=e=>sK.offset(e,-2),v.floor=sK.floor;else if(c/3<=m)v.type=_K,v.desc="every 3 hour",v.count=c/3,v.interval=sK.every(3),v.formatter=r.minute.formatter,v.offset=e=>sK.offset(e,-3),v.floor=sK.floor;else if(c/6<=m)v.type=_K,v.desc="every 6 hour",v.count=c/6,v.interval=sK.every(6),v.formatter=r.minute.formatter,v.offset=e=>sK.offset(e,-6),v.floor=sK.floor;else if(c/12<=m||i)v.type=_K,v.desc="every 12 hour",v.count=c/12,v.interval=sK.every(12),v.formatter=r.minute.formatter,v.offset=e=>sK.offset(e,-12),v.floor=sK.floor;else if(u<=g)v.type=LK,v.desc="day",v.count=u,v.interval=cK.every(1),v.formatter=r.date.formatter,v.offset=e=>cK.offset(e,-1),v.floor=cK.floor;else if(u/2<=g)v.type=LK,v.desc="every 2 day",v.count=u/2,v.interval=cK.every(2),v.formatter=r.date.formatter,v.offset=e=>cK.offset(e,-2),v.floor=cK.floor;else if(u/3<=g)v.type=LK,v.desc="every 3 day",v.count=u/3,v.interval=cK.every(3),v.formatter=r.date.formatter,v.offset=e=>cK.offset(e,-3),v.floor=cK.floor;else if(d<=g)v.type=LK,v.desc="week",v.count=d,v.interval=xK.every(1),v.formatter=r.date.formatter,v.offset=e=>xK.offset(e,-1),v.floor=cK.floor;else if(d/2<=g)v.type=LK,v.desc="every 2 week",v.count=d/2,v.interval=xK.every(2),v.formatter=r.date.formatter,v.offset=e=>xK.offset(e,-2),v.floor=cK.floor;else if(f<=g)v.type=IK,v.desc="month",v.count=f,v.interval=DK.every(1),v.formatter=r.date.formatter,v.offset=e=>DK.offset(e,-1),v.floor=cK.floor;else if(f/3<=g)v.type=IK,v.desc="quarter",v.count=f/3,v.interval=DK.every(3),v.formatter=r.date.formatter,v.offset=e=>DK.offset(e,-3),v.floor=cK.floor;else if(f/6<=g)v.type=IK,v.desc="half year",v.count=f/6,v.interval=DK.every(6),v.formatter=r.date.formatter,v.offset=e=>DK.offset(e,-6),v.floor=cK.floor;else if(h<=y)v.type=RK,v.desc="year",v.count=h,v.interval=NK.every(1),v.formatter=r.year.formatter,v.offset=e=>NK.offset(e,-1),v.floor=NK.floor;else if(h/2<=y)v.type=RK,v.desc="every 2 year",v.count=h/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>NK.offset(e,-2),v.floor=NK.floor;else if(h/5<=y)v.type=RK,v.desc="every 5 year",v.count=h/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>NK.offset(e,-5),v.floor=NK.floor;else if(h/10<=y)v.type=RK,v.desc="every 10 year",v.count=h/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>NK.offset(e,-10),v.floor=NK.floor;else{const e=Math.max(1,Math.floor(h/y));v.type=RK,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>NK.offset(t,-e),v.floor=NK.floor}return v}(s,l,n,t.all(),r,a),i.set(c,u,1));const d=e.ticks(u.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(u.offset(d[0])):d.push(u.floor(s));const f=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:u.formatter}}));let h=[];if(!o&&u.type<=_K){const n=t.getFormat("date"),r=e.ticks(cK.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(cK.offset(r[0],-1)),h=(r.length?r:[cK.floor(s)]).map(((e,t,r)=>{const i=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+i),formatter:n.formatter}}))}return{inner:f,outer:h}}const zK=86400,FK=1440,jK={};function BK(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function HK(e,t,n){const{generator:r,anchor:i,clamp:o,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(o);const[l,c]=e.domain(),u=Rw().domain([UY(l),UY(c)]);u.clamp(o),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let f;f="d3"===d.type?(e,i)=>PK({timeScale:u,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:UY(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(jK[[t,n,r,r,o]])return jK[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=UY(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,f=t/(i-r),h=f/1440,p=f/zK,m=366*f,g=3*f*30,y=a.second.width/p,v=a.minute.width/h,b=a.date.width/g,x=a.year.width/m;let w,S,k,M=0,C=0,E=null,q=null,D=null,T=null,N=null,O=null;const A={outer:[],inner:[]};for(y<1?(E=1,C=1/zK):y<2?(E=2,C=1/zK*2):y<5?(E=5,C=1/zK*5):y<10?(E=10,C=1/zK*10):y<30?(E=30,C=1/zK*30):v<1?(q=1,C=1/FK):v<2?(q=2,C=1/FK*2):v<5?(q=5,C=1/FK*5):v<10?(q=10,C=.006944444444444445):v<30?(q=30,C=.020833333333333336):v<60?(D=1,C=1/24):v<120?(D=2,C=2/24):v<360?(D=6,C=.25):v<720?(D=12,C=.5):b<1/90?(C=1,T=1):b<2/90?(C=2,T=2):b<7/90?(C=7,T=7):b<31/90?(N=1,C=31):b<1?(N=3,C=90):x<1?(O=1,C=366):x<2?(O=2,C=732):x<5?(O=5,C=1826.25):(O=10,C=3652.5),S=Math.floor((d+n%1)/C);M<i;){k=S+1,w=O?BK("year",[l+S*O,0,1],[l+k*O,0,1],a.year.formatter):N?BK("month",[l,c+S*N,1],[l,c+k*N,1],a.date.formatter):T?BK("day",[l,c,u+S*T],[l,c,u+k*T],a.date.formatter):D?BK("hour",[l,c,u,0+S*D],[l,c,u,0+k*D],a.minute.formatter):q?BK("minute",[l,c,u,0,0+S*q],[l,c,u,0,0+k*q],a.minute.formatter):BK("second",[l,c,u,0,0,0+S*E],[l,c,u,0,0,0+k*E],a.second.formatter),M=KY(w.start),A.inner.push(w);const e=Math.floor(M);if(!(o||O||N||T)){const t={type:"day",start:UY(e),end:UY(e+1),formatter:a.date.formatter,qStart:e};A.outer[A.outer.length-1]&&A.outer[A.outer.length-1].qStart===t.qStart||A.outer.push(t)}S++}return A.min=r,A.max=i,jK[[t,n,r,r,o]]=A,A}(n,e,d.min,l,c,"T"===s.qType);const h={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===i?t.qStart:"end"===i?t.qEnd:(t.qStart+t.qEnd)/2;const o=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(o),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>f(t,n)[a].map((t=>{let n;return n="start"===i?KY(t.start):"end"===i?KY(t.end):(KY(t.start)+KY(t.end))/2,{position:u(t.start),start:u(t.start),end:u(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:KY(t.start),end:KY(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return h}const VK=/t+/i;const $K={min:NaN,max:NaN,invert:!1,qAxis:[],field:void 0,formatter:{fn:()=>e=>e,measureText:()=>({width:0,height:0}),localeInfo:{},qNumFormat:{}},ticks:{generator:"d3",level:"outer",anchor:void 0,clamp:!1},cache:{get:()=>!1,set:()=>{},key:()=>""}};function WK(e,t){e.instance||(e.instance=t.copy(),e.instance.domain(t.domain()),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}const UK="continuousPan";var YK={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=OY,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=bY,snapshotFetcherFactory:c=wY,cacheFetcherFactory:u=xY,cache:d={initial:{},merged:{}}}=s,f=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),h=c({layoutService:t,viewCache:i}),p=u({cache:d}),m=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),i.set("continuousMin",y),i.set("continuousMax",v),i.set("minimiumZoomSpan",function(e,t){return Math.max(1e-6,(t-e)*DY)}(y,v)),g=t.meta.isSnapshot?h:f,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=h.getSnapshotData()),o.preventSet("zoom",{min:y,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),t.setHyperCubeValue("qColumnOrder",[]),e},initialFetch(){return g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=MY(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return r.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),d.initial=t,d.merged=t,e})).then((e=>CY(y,v,e))).then((e=>this.updateLayout(e))).catch(m)},fetch:(e,t)=>g.fetch(e,t).then((e=>function(e,t){const n={};return n.qDataPages=(e.qDataPages||[]).map(((e,n)=>{const r=function(e,t){if(!t||!t.length||!t[0].length)return e;const n=t[0][0].qNum,r=t[t.length-1][0].qNum,i=[],o=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?i.push(e[t]):a.qNum>r&&o.push(e[t])}return[...i,...t,...o]}(e.qMatrix,t.qDataPages[n].qMatrix),i=MY(e.qArea,r);return{...e,qArea:i,qMatrix:r}})),e.qAxisData&&e.qAxisData.qAxis&&(n.qAxisData=function(e,t){if(!t||!t.qAxis.length||t.qAxis.every((e=>!e.qTicks.length)))return e;const n=t.qAxis.map((e=>e.qName)),r=t.qAxis.map((e=>({start:e.qTicks[0].qStart,end:e.qTicks[e.qTicks.length-1].qStart}))),i=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,o=e.qAxis.length;t<o;t++){const o=e.qAxis[t],a=n.indexOf(o.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=o.qTicks.length;n<r;n++){const r=o.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}i[a].qTicks=[...s,...i[a].qTicks,...l]}}return{qAxis:i}}(e.qAxisData,t.qAxisData)),n}(d.initial,e))).then((e=>(r.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),d.merged=e,e))).then((n=>CY(e,t,n))).catch(m),fetchFromCache:(e,t)=>p.fetch(e,t).then((n=>CY(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return vg({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return vg({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>NY(d.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e,n=r.query.getShouldProcess()?[r.query.getFilteredDataPage({dataPage:d.merged.qDataPages[0]})]:d.merged.qDataPages;t.qDataPages=n,t.qAxisData=d.merged.qAxisData}}},event:{onZoomChange:function(e,t){const{layoutService:n,continuousDataModel:r}=e;function i(e,n,i){return r[e](n,i).then((e=>(r.updateLayout(e),t(),e)))}const o=pC(((e,t)=>i("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):i("fetchFromCache",e,t).then((n=>(o(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(i,o)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(i.max-i.min)<r?o:{min:Math.min(i.max,Math.max(t,i.min)),max:Math.max(i.min,Math.min(n,i.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:i=!1,targetKey:o}){const a=e.get("continuousMin"),s=e.get("continuousMax");return mC(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===o))[0])(e);if(l){const o=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,l),c=i?1-o:o,{min:u,max:d}=t.get("zoom"),f=Math.abs(d-u),h=f-(r>0?qY:EY)*f,p=u+h*c,m=d-h*(1-c),g=p<a?a-p:0,y=m>s?m-s:0;t.set("zoom",{min:Math.max(p-y,a),max:Math.min(m+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i}){return{type:"Pan",key:"continuous:pan",options:{event:UK,pointers:1,threshold:10,enable(r,i){return this.started===UK||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${UK}start`](n){n.preventDefault(),this.started=UK;const{min:i,max:o}=r.get("zoom");this[UK]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${UK}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[UK],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,i.get("continuousMax")-t),max:Math.max(o+s*t,i.get("continuousMin")+t)})},[`${UK}end`](e){e.preventDefault(),this.started=!1},[`${UK}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:AY,timeAxis:PY},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((i=>{const o=e[i],a=typeof o;"function"===a?r[i]=o(n):"object"!==a||Array.isArray(o)?r[i]="undefined"===a?t[i]:o:r[i]=vg(!0,{},t[i],o)})),r}(t,$K,n),{qAxis:i}=r,o=Eb(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let c,u,d=[];const f=function(e){return Number.isNaN(+e)?NaN:o(e)};f.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(d=u.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=u.transform(i[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===o&&(d=u.generate(e,n.isDayOrShorter)),d},f.invert=e=>o.invert(e),f.domain=e=>Array.isArray(e)?o.domain(e):o.domain(),f.range=e=>Array.isArray(e)?o.range(e):o.range(),f.norm=e=>(WK(a,f),a.instance(e)),f.normInvert=e=>(WK(a,f),a.instance.invert(e)),f.copy=()=>e(t,n),f.clamp=(e=!0)=>(o.clamp(e),o.clamp()),f.min=()=>Math.min(s,l),f.max=()=>Math.max(s,l),o.range(r.invert?[1,0]:[0,1]),o.domain([s,l]),a.invert=r.invert;const h=function(e){const t={},{measureText:n,fn:r,localeInfo:i}=e.formatter,o={second:{type:"second",pattern:"hh:mm:ss",width:60,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:60,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:60,formatter:void 0},year:{type:"year",pattern:"YYYY",width:60,formatter:void 0}};return i&&VK.test(i.qTimestampFmt)&&(o.minute.pattern+=" tt",o.second.pattern+=" tt"),o.date.pattern=i&&i.qDateFmt?i.qDateFmt:o.date.pattern,Object.keys(o).forEach((e=>{o[e].formatter=r(o[e].pattern),o[e].width=Math.max(o[e].width,n(o[e].formatter(41000.2343433)).width+16)})),t.getFormat=e=>o[e],t.all=()=>o,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return o.date;const r=UY(t[0].data.start),i=UY(t[n-1].data.start);return cK.count(r,i)/n>=1?o.date:sK.count(r,i)/n>0?o.minute:oK.count(r,i)/n>0?o.second:o.date},t}(r);return u=HK(o.copy(),r,h),c=WY({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*h.getFormat("minute").width,cache:r.cache,scale:f}),f.data=()=>({fields:[{formatter:f.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:cC(n,"fields.0.raw",(()=>({})))}]}),f.formatter=()=>h.getFormatFromTicks(d).formatter,f}}};const KK={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var GK={OPTIONS:KK,DEFAULT:KK.MINI_CHART};function XK({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:i,minThumbSize:o})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===i,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<o){const e=(o-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=o}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function JK({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const ZK=e=>({miniChart:e===GK.OPTIONS.MINI_CHART.value,bar:e===GK.OPTIONS.BAR.value,none:e===GK.OPTIONS.NONE.value});function QK({layoutService:e,override:t}){const n=(({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return ZK(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return ZK(GK.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return ZK(!n&&(r||!r&&i)?GK.OPTIONS.NONE.value:GK.OPTIONS.MINI_CHART.value)})({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===GK.OPTIONS.MINI_CHART.value,n.bar=t.value===GK.OPTIONS.BAR.value,n.none=t.value===GK.OPTIONS.NONE.value),n}function eG({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:i,viewCache:o,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=QK({layoutService:e,override:l});if(d.none)return!1;const{orientation:f}=t.meta.major,h={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===f?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:f,rtl:s,isContinuous:e.meta.isContinuous,range:()=>JK({layoutService:e,viewState:i,viewCache:o})}};d.bar&&(h.settings.style="slim",h.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(h.settings.size.thumb={min:4}));const p=a.getStyles();return p.color&&(h.style={standard:{thumb:{"border-color":p.color,opacity:.4},before:{background:p.color,opacity:.1},after:{background:p.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(h.settings.injections=()=>[XK({layoutService:e,discrete:n})]),h}function tG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),f="horizontal"===o.meta.major.orientation,h=f?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,p=f?d.rect.computedInner.width:d.rect.computedInner.height,m=f&&a?p-h:h,g=Math.max(0,Math.min(m/p,1)),[y,v]=JK({layoutService:i,viewState:n,viewCache:r}),b=g<y,x=g>v,w=!b&&!x;return{pixel:m,relative:g,thumb:w?m-y*p:0,beforeThumb:b,afterThumb:x,onThumb:w}}}function nG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o}){return()=>{const a=t.component(e),{orientation:s}=o.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,f]=JK({layoutService:i,viewState:n,viewCache:r});return{size:u,thumbSize:(f-d)*u}}}function rG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=tG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=nG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,o-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const iG="data-scrollbar-handle";function oG({e:e}){return(e.srcEvent||e).srcElement.getAttribute(iG)||""}const aG="scrollbarResize";function sG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=tG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${aG}`,options:{event:aG,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[aG]=this[aG]||{},(e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)})(t)&&oG({e:t})&&(this[aG].panningEvent=t.srcEvent),!!this[aG].panningEvent))}},events:{[`${aG}start`](n){n.preventDefault(),this[aG]=this[aG]||{},this[aG].panningEvent&&t.component(e).emit("dragStart",this[aG].panningEvent)},[`${aG}move`](n){if(n.preventDefault(),this[aG]=this[aG]||{},!this[aG].panningEvent)return;const o=r.get("zoom"),a=i.get("continuousMin"),s=i.get("continuousMax"),c=i.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=oG({e:this[aG].panningEvent});let f="start"===d?Math.min(u,o.max):o.min,h="end"===d?Math.max(u,o.min):o.max;f===h&&(f-="start"===d?c:0,h+="end"===d?c:0),r.set("zoom",{min:f,max:h}),t.component(e).emit("render")},[`${aG}end`](n){n.preventDefault(),this[aG]=this[aG]||{},delete this[aG].panningEvent,t.component(e).emit("dragEnd")},[`${aG}cancel`](n){n.preventDefault(),this[aG]=this[aG]||{},delete this[aG].panningEvent,t.component(e).emit("dragEnd")}}}}const lG="scrollbarPan";function cG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=tG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=nG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${lG}`,options:{event:lG,threshold:0,enable(r,i){return this[lG]=this[lG]||{},!(i&&!this[lG].isPanning)||!!n.scroll.enabled()&&((!i||i.target===t.element)&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e)))}},events:{[`${lG}start`](n){n.preventDefault();const a=c(n);if(this[lG]=this[lG]||{},this[lG].isPanning=!0,t.component(e).emit("lockState"),o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,o-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,o-t),max:Math.max(s,n+t)}),this[lG].relative=a.relative,this[lG].zoom=r.get("zoom"),this[lG].zoom.span=this[lG].zoom.max-this[lG].zoom.min,this[lG].zoom.fullSpan=o-n}else if(a.onThumb)this[lG].offset=a.thumb;else{const e=u();this[lG].offset=a.beforeThumb?0:e.thumbSize}},[`${lG}move`](n){n.preventDefault();const a=c(n);if(this[lG]=this[lG]||{},o.meta.isContinuous){const e=a.relative-this[lG].relative,{fullSpan:t,span:n,min:o,max:s}=this[lG].zoom,l=i.get("continuousMin"),c=i.get("continuousMax");r.set("zoom",{min:Math.min(o+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[lG].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${lG}end`](n){n.preventDefault(),this[lG]=this[lG]||{},this[lG].isPanning=!1,t.component(e).emit("unlockState")},[`${lG}cancel`](n){n.preventDefault(),this[lG]=this[lG]||{},this[lG].isPanning=!1,t.component(e).emit("unlockState")}}}}function uG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[rG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),sG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),cG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function dG({componentKey:e,chart:t,actions:n,layoutService:r}){const i=(i,o)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(i,o)};return{type:"native",events:{mousemove:e=>i("hover",e),mouseleave:()=>i("leave")}}}function fG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return{gestures:[...uG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:dG({componentKey:e,chart:t,actions:n,layoutService:o})}}const hG={background:"rgba(0, 0, 0, 0.1)"},pG={top:-1,bottom:-1,width:6},mG={width:2,background:"#595959"};var gG={before:hG,after:hG,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:pG,endHandle:pG,startHandleBorder:mG,endHandleBorder:mG};const yG={background:"rgba(0, 0, 0, 0.1)"},vG={top:-1,bottom:-1,width:6},bG={width:2,background:"#595959"};var xG={before:yG,after:yG,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:vG,endHandle:vG,startHandleBorder:bG,endHandleBorder:bG};const wG={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},SG={pointerEvents:"initial"},kG={pointerEvents:"none"};const MG="ew-resize",CG="default";function EG(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,i=t.range(),o=n&&t.rtl;return{size:r,start:(o?1-i[1]:i[0])*r,end:(o?1-i[0]:i[1])*r}}function qG(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?MG:CG}function DG(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const i=(r-(n-t))/2,o=Math.max(0,0-(t-i))-Math.max(0,n+i-e);return{size:e,start:t-i+o,end:n+i+o}}return{size:e,start:t,end:n}}function TG(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function NG(){const{size:e,start:t,end:n}=EG.call(this);this.renderer.render(this.elements(this.h,DG.call(this,e,t,n)))}function OG(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?xG:gG;return{container:{...wG},before:{...wG,...n.before,...t.before},after:{...wG,...n.after,...t.after},thumb:{...wG,...n.thumb,...t.thumb},startHandle:{...wG,...SG,...n.startHandle},endHandle:{...wG,...SG,...n.endHandle},startHandleBorder:{...wG,...kG,...n.startHandleBorder},endHandleBorder:{...wG,...kG,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var AG={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){NG.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!TG.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=oG({e:e});t&&(this.state.hover[t]=!0),qG.call(this),NG.call(this)},leave(){this.state.locked||(this.state.hover.reset(),qG.call(this),NG.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=oG({e:e});t&&(this.state.drag[t]=!0),qG.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),qG.call(this),NG.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,i="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[i]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=EG.call(this);return this.elements(e,DG.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:i}=this.settings,o=i.injections().map((t=>t({h:e,rect:this.rect,orientation:i.orientation,minThumbSize:i.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:i,startHandleActive:o,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[i.end]:t-n},f={[i.start]:r},h={left:-3},p={left:1},m={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?f:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:f},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?m:h},class:"scrollbar--start-handle",[iG]:"start"},o?e("div",{style:{...s.startHandleBorder,...c?g:p}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?h:m},class:"scrollbar--end-handle",[iG]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?p:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[i.start]:n,[i.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...u])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:OG.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};const _G={black:"#000",white:"#fff"},LG="#e57373",IG="#ef5350",RG="#f44336",PG="#d32f2f",zG="#c62828",FG="#f3e5f5",jG="#ce93d8",BG="#ba68c8",HG="#ab47bc",VG="#9c27b0",$G="#7b1fa2",WG="#e3f2fd",UG="#90caf9",YG="#42a5f5",KG="#1976d2",GG="#1565c0",XG="#4fc3f7",JG="#29b6f6",ZG="#03a9f4",QG="#0288d1",eX="#01579b",tX="#81c784",nX="#66bb6a",rX="#4caf50",iX="#388e3c",oX="#2e7d32",aX="#1b5e20",sX="#ffb74d",lX="#ffa726",cX="#ff9800",uX="#f57c00",dX="#e65100",fX={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function hX(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var pX=Object.freeze({__proto__:null,default:hX}),mX="$$material";var gX=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),yX="-ms-",vX="-moz-",bX="-webkit-",xX="comm",wX="rule",SX="decl",kX="@keyframes",MX=Math.abs,CX=String.fromCharCode,EX=Object.assign;function qX(e){return e.trim()}function DX(e,t,n){return e.replace(t,n)}function TX(e,t){return e.indexOf(t)}function NX(e,t){return 0|e.charCodeAt(t)}function OX(e,t,n){return e.slice(t,n)}function AX(e){return e.length}function _X(e){return e.length}function LX(e,t){return t.push(e),e}var IX=1,RX=1,PX=0,zX=0,FX=0,jX="";function BX(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:IX,column:RX,length:a,return:""}}function HX(e,t){return EX(BX("",null,null,"",null,null,0),e,{length:-e.length},t)}function VX(){return FX=zX>0?NX(jX,--zX):0,RX--,10===FX&&(RX=1,IX--),FX}function $X(){return FX=zX<PX?NX(jX,zX++):0,RX++,10===FX&&(RX=1,IX++),FX}function WX(){return NX(jX,zX)}function UX(){return zX}function YX(e,t){return OX(jX,e,t)}function KX(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function GX(e){return IX=RX=1,PX=AX(jX=e),zX=0,[]}function XX(e){return jX="",e}function JX(e){return qX(YX(zX-1,eJ(91===e?e+2:40===e?e+1:e)))}function ZX(e){for(;(FX=WX())&&FX<33;)$X();return KX(e)>2||KX(FX)>3?"":" "}function QX(e,t){for(;--t&&$X()&&!(FX<48||FX>102||FX>57&&FX<65||FX>70&&FX<97););return YX(e,UX()+(t<6&&32==WX()&&32==$X()))}function eJ(e){for(;$X();)switch(FX){case e:return zX;case 34:case 39:34!==e&&39!==e&&eJ(FX);break;case 40:41===e&&eJ(e);break;case 92:$X()}return zX}function tJ(e,t){for(;$X()&&e+FX!==57&&(e+FX!==84||47!==WX()););return"/*"+YX(t,zX-1)+"*"+CX(47===e?e:$X())}function nJ(e){for(;!KX(WX());)$X();return YX(e,zX)}function rJ(e){return XX(iJ("",null,null,null,[""],e=GX(e),0,[0],e))}function iJ(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,S=r,k=b;g;)switch(p=v,v=$X()){case 40:if(108!=p&&58==NX(k,d-1)){-1!=TX(k+=DX(JX(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=JX(v);break;case 9:case 10:case 13:case 32:k+=ZX(p);break;case 92:k+=QX(UX()-1,7);continue;case 47:switch(WX()){case 42:case 47:LX(aJ(tJ($X(),UX()),t,n),l);break;default:k+="/"}break;case 123*m:s[c++]=AX(k)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(k=DX(k,/\f/g,"")),h>0&&AX(k)-d&&LX(h>32?sJ(k+";",r,n,d-1):sJ(DX(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(LX(S=oJ(k,t,n,c,u,i,s,b,x=[],w=[],d),o),123===v)if(0===u)iJ(k,t,S,S,x,o,d,s,w);else switch(99===f&&110===NX(k,3)?100:f){case 100:case 108:case 109:case 115:iJ(e,S,S,r&&LX(oJ(e,S,S,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:iJ(k,S,S,S,[""],w,0,s,w)}}c=u=h=0,m=y=1,b=k="",d=a;break;case 58:d=1+AX(k),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==VX())continue;switch(k+=CX(v),v*m){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(AX(k)-1)*y,y=1;break;case 64:45===WX()&&(k+=JX($X())),f=WX(),u=d=AX(b=k+=nJ(UX())),v++;break;case 45:45===p&&2==AX(k)&&(m=0)}}return o}function oJ(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=_X(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=OX(e,d+1,d=MX(m=a[p])),b=e;y<h;++y)(b=qX(m>0?f[y]+" "+v:DX(v,/&\f/g,f[y])))&&(l[g++]=b);return BX(e,t,n,0===i?wX:s,l,c,u)}function aJ(e,t,n){return BX(e,t,n,xX,CX(FX),OX(e,2,-2),0)}function sJ(e,t,n,r){return BX(e,t,n,SX,OX(e,0,r),OX(e,r+1,-1),r)}function lJ(e,t){for(var n="",r=_X(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function cJ(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case SX:return e.return=e.return||e.value;case xX:return"";case kX:return e.return=e.value+"{"+lJ(e.children,r)+"}";case wX:e.value=e.props.join(",")}return AX(n=lJ(e.children,r))?e.return=e.value+"{"+n+"}":""}function uJ(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var dJ=function(e,t,n){for(var r=0,i=0;r=i,i=WX(),38===r&&12===i&&(t[n]=1),!KX(i);)$X();return YX(e,zX)},fJ=function(e,t){return XX(function(e,t){var n=-1,r=44;do{switch(KX(r)){case 0:38===r&&12===WX()&&(t[n]=1),e[n]+=dJ(zX-1,t,n);break;case 2:e[n]+=JX(r);break;case 4:if(44===r){e[++n]=58===WX()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=CX(r)}}while(r=$X());return e}(GX(e),t))},hJ=new WeakMap,pJ=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||hJ.get(n))&&!r){hJ.set(e,!0);for(var i=[],o=fJ(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},mJ=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function gJ(e,t){switch(function(e,t){return 45^NX(e,0)?(((t<<2^NX(e,0))<<2^NX(e,1))<<2^NX(e,2))<<2^NX(e,3):0}(e,t)){case 5103:return bX+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return bX+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bX+e+vX+e+yX+e+e;case 6828:case 4268:return bX+e+yX+e+e;case 6165:return bX+e+yX+"flex-"+e+e;case 5187:return bX+e+DX(e,/(\w+).+(:[^]+)/,bX+"box-$1$2"+yX+"flex-$1$2")+e;case 5443:return bX+e+yX+"flex-item-"+DX(e,/flex-|-self/,"")+e;case 4675:return bX+e+yX+"flex-line-pack"+DX(e,/align-content|flex-|-self/,"")+e;case 5548:return bX+e+yX+DX(e,"shrink","negative")+e;case 5292:return bX+e+yX+DX(e,"basis","preferred-size")+e;case 6060:return bX+"box-"+DX(e,"-grow","")+bX+e+yX+DX(e,"grow","positive")+e;case 4554:return bX+DX(e,/([^-])(transform)/g,"$1"+bX+"$2")+e;case 6187:return DX(DX(DX(e,/(zoom-|grab)/,bX+"$1"),/(image-set)/,bX+"$1"),e,"")+e;case 5495:case 3959:return DX(e,/(image-set\([^]*)/,bX+"$1$`$1");case 4968:return DX(DX(e,/(.+:)(flex-)?(.*)/,bX+"box-pack:$3"+yX+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bX+e+e;case 4095:case 3583:case 4068:case 2532:return DX(e,/(.+)-inline(.+)/,bX+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(AX(e)-1-t>6)switch(NX(e,t+1)){case 109:if(45!==NX(e,t+4))break;case 102:return DX(e,/(.+:)(.+)-([^]+)/,"$1"+bX+"$2-$3$1"+vX+(108==NX(e,t+3)?"$3":"$2-$3"))+e;case 115:return~TX(e,"stretch")?gJ(DX(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==NX(e,t+1))break;case 6444:switch(NX(e,AX(e)-3-(~TX(e,"!important")&&10))){case 107:return DX(e,":",":"+bX)+e;case 101:return DX(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bX+(45===NX(e,14)?"inline-":"")+"box$3$1"+bX+"$2$3$1"+yX+"$2box$3")+e}break;case 5936:switch(NX(e,t+11)){case 114:return bX+e+yX+DX(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bX+e+yX+DX(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bX+e+yX+DX(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bX+e+yX+e+e}return e}var yJ=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case SX:e.return=gJ(e.value,e.length);break;case kX:return lJ([HX(e,{value:DX(e.value,"@","@"+bX)})],r);case wX:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lJ([HX(e,{props:[DX(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return lJ([HX(e,{props:[DX(t,/:(plac\w+)/,":"+bX+"input-$1")]}),HX(e,{props:[DX(t,/:(plac\w+)/,":-moz-$1")]}),HX(e,{props:[DX(t,/:(plac\w+)/,yX+"input-$1")]})],r)}return""}))}}],vJ=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||yJ,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[cJ,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=_X(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([pJ,mJ].concat(o,u));i=function(e,t,n,r){l=n,function(e){lJ(rJ(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new gX({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f};function bJ(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var xJ=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},wJ=function(e,t,n){xJ(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var SJ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},kJ=/[A-Z]|^ms/g,MJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,CJ=function(e){return 45===e.charCodeAt(1)},EJ=function(e){return null!=e&&"boolean"!=typeof e},qJ=uJ((function(e){return CJ(e)?e:e.replace(kJ,"-$&").toLowerCase()})),DJ=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(MJ,(function(e,t,n){return NJ={name:t,styles:n,next:NJ},t}))}return 1===SJ[e]||CJ(e)||"number"!=typeof t||0===t?t:t+"px"};function TJ(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return NJ={name:i.name,styles:i.styles,next:NJ},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)NJ={name:a.name,styles:a.styles,next:NJ},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=TJ(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":EJ(s)&&(r+=qJ(o)+":"+DJ(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=TJ(e,t,a);switch(o){case"animation":case"animationName":r+=qJ(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)EJ(a[c])&&(r+=qJ(o)+":"+DJ(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=NJ,l=n(e);return NJ=s,TJ(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var NJ,OJ=/label:\s*([^\s;{]+)\s*(;|$)/g;function AJ(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";NJ=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=TJ(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=TJ(n,t,e[a]),r)i+=o[a]}OJ.lastIndex=0;for(var s,l="";null!==(s=OJ.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:NJ}}var _J,LJ,IJ=!!LD.useInsertionEffect&&LD.useInsertionEffect,RJ=IJ||function(e){return e()},PJ=IJ||AD.useLayoutEffect,zJ=AD.createContext("undefined"!=typeof HTMLElement?vJ({key:"css"}):null),FJ=zJ.Provider,jJ=function(e){return AD.forwardRef((function(t,n){var r=AD.useContext(zJ);return e(t,r,n)}))},BJ=AD.createContext({}),HJ={}.hasOwnProperty,VJ="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$J=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return xJ(t,n,r),RJ((function(){return wJ(t,n,r)})),null},WJ=jJ((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[VJ],o=[r],a="";"string"==typeof e.className?a=bJ(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=AJ(o,void 0,AD.useContext(BJ));a+=t.key+"-"+s.name;var l={};for(var c in e)HJ.call(e,c)&&"css"!==c&&c!==VJ&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),AD.createElement(AD.Fragment,null,AD.createElement($J,{cache:t,serialized:s,isStringTag:"string"==typeof i}),AD.createElement(i,l))})),UJ=WJ,YJ=function(e,t){var n=arguments;if(null==t||!HJ.call(t,"css"))return AD.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=UJ,i[1]=function(e,t){var n={};for(var r in t)HJ.call(t,r)&&(n[r]=t[r]);return n[VJ]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return AD.createElement.apply(null,i)};_J=YJ||(YJ={}),LJ||(LJ=_J.JSX||(_J.JSX={}));var KJ=jJ((function(e,t){var n=AJ([e.styles],void 0,AD.useContext(BJ)),r=AD.useRef();return PJ((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),PJ((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&wJ(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function GJ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return AJ(t)}function XJ(){var e=GJ.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var JJ=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ZJ=uJ((function(e){return JJ.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),QJ=function(e){return"theme"!==e},eZ=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ZJ:QJ},tZ=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},nZ=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return xJ(t,n,r),RJ((function(){return wJ(t,n,r)})),null},rZ=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=tZ(t,n,o),l=s||eZ(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var h=u.length,p=1;p<h;p++)d.push(u[p],f[p])}var m=jJ((function(e,t,n){var r=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=AD.useContext(BJ)}"string"==typeof e.className?o=bJ(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var p=AJ(d.concat(u),t.registered,f);o+=t.key+"-"+p.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?eZ(r):l,g={};for(var y in e)c&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=o,n&&(g.ref=n),AD.createElement(AD.Fragment,null,AD.createElement(nZ,{cache:t,serialized:p,isStringTag:"string"==typeof r}),AD.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,qT({},n,r,{shouldForwardProp:tZ(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){rZ[e]=rZ(e)}));var iZ={exports:{}},oZ={},aZ=AD,sZ=Symbol.for("react.element"),lZ=Symbol.for("react.fragment"),cZ=Object.prototype.hasOwnProperty,uZ=aZ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dZ={key:!0,ref:!0,__self:!0,__source:!0};function fZ(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)cZ.call(t,r)&&!dZ.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:sZ,type:e,key:o,ref:a,props:i,_owner:uZ.current}}oZ.Fragment=lZ,oZ.jsx=fZ,oZ.jsxs=fZ,iZ.exports=oZ;var hZ=iZ.exports;let pZ;"object"==typeof document&&(pZ=vJ({key:"css",prepend:!0}));var mZ=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return hZ.jsx(KJ,{styles:r})}
|
|
43
43
|
/**
|
|
44
44
|
* @mui/styled-engine v5.16.14
|
|
45
45
|
*
|
|
@@ -119,4 +119,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
119
119
|
animation-iteration-count: infinite;
|
|
120
120
|
animation-delay: 200ms;
|
|
121
121
|
}
|
|
122
|
-
`),O2.rippleVisible,z2,550,(({theme:e})=>e.transitions.easing.easeInOut),O2.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),O2.child,O2.childLeaving,F2,550,(({theme:e})=>e.transitions.easing.easeInOut),O2.childPulsate,j2,(({theme:e})=>e.transitions.easing.easeInOut)),V2=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=FT(n,A2),[s,l]=AD.useState([]),c=AD.useRef(0),u=AD.useRef(null);AD.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=AD.useRef(!1),f=x0(),h=AD.useRef(null),p=AD.useRef(null),m=AD.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,hZ.jsx(H2,{classes:{ripple:LQ(i.ripple,O2.ripple),rippleVisible:LQ(i.rippleVisible,O2.rippleVisible),ripplePulsate:LQ(i.ripplePulsate,O2.ripplePulsate),child:LQ(i.child,O2.child),childLeaving:LQ(i.childLeaving,O2.childLeaving),childPulsate:LQ(i.childPulsate,O2.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=AD.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=AD.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=AD.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return AD.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),hZ.jsx(B2,qT({className:LQ(O2.root,i.root,o),ref:p},a,{children:hZ.jsx(GW,{component:null,exit:!0,children:s})}))}));function $2(e){return RQ("MuiButtonBase",e)}const W2=PQ("MuiButtonBase",["root","disabled","focusVisible"]),U2=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Y2=f2("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${W2.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),K2=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:S,onMouseUp:k,onTouchEnd:M,onTouchMove:C,onTouchStart:E,tabIndex:q=0,TouchRippleProps:D,touchRippleRef:T,type:N}=n,O=FT(n,U2),A=AD.useRef(null),_=AD.useRef(null),L=g0(_,T),{isFocusVisibleRef:I,onFocus:R,onBlur:P,ref:z}=T0(),[F,j]=AD.useState(!1);l&&F&&j(!1),AD.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[B,H]=AD.useState(!1);AD.useEffect((()=>{H(!0)}),[]);const V=B&&!c&&!l;function $(e,t,n=u){return m0((r=>{t&&t(r);return!n&&_.current&&_.current[e](r),!0}))}AD.useEffect((()=>{F&&d&&!c&&B&&_.current.pulsate()}),[c,d,F,B]);const W=$("start",w),U=$("stop",m),Y=$("stop",g),K=$("stop",k),G=$("stop",(e=>{F&&e.preventDefault(),S&&S(e)})),X=$("start",E),J=$("stop",M),Z=$("stop",C),Q=$("stop",(e=>{P(e),!1===I.current&&j(!1),h&&h(e)}),!1),ee=m0((e=>{A.current||(A.current=e.currentTarget),R(e),!0===I.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=AD.useRef(!1),re=m0((e=>{d&&!ne.current&&F&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=m0((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(O.href||O.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===N?"button":N,ae.disabled=l):(O.href||O.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=g0(t,z,A),le=qT({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:q,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=N0({root:["root",t&&"disabled",n&&"focusVisible"]},$2,i);return n&&r&&(o.root+=` ${r}`),o})(le);return hZ.jsxs(Y2,qT({as:oe,className:LQ(ce.root,a),ownerState:le,onBlur:Q,onClick:p,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:W,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Z,onTouchStart:X,ref:se,tabIndex:l?-1:q,type:N},ae,O,{children:[o,V?hZ.jsx(V2,qT({ref:L,center:i},D)):null]}))}));function G2(e){return RQ("MuiTypography",e)}PQ("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const X2=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],J2=f2("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${qZ(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>qT({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Z2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Q2={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},e5=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiTypography"}),r=(e=>Q2[e]||e)(n.color),i=TQ(qT({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=Z2}=i,h=FT(i,X2),p=qT({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),m=s||(u?"p":f[d]||Z2[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return N0({root:["root",o,"inherit"!==e.align&&`align${qZ(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},G2,a)})(p);return hZ.jsx(J2,qT({as:m,ref:t,ownerState:p,className:LQ(g.root,a)},h))})),t5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function n5(e){const t=[],n=[];return Array.from(e.querySelectorAll(t5)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function r5(){return!0}function i5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=n5,isEnabled:a=r5,open:s}=e,l=AD.useRef(!1),c=AD.useRef(null),u=AD.useRef(null),d=AD.useRef(null),f=AD.useRef(null),h=AD.useRef(!1),p=AD.useRef(null),m=g0(t.ref,p),g=AD.useRef(null);AD.useEffect((()=>{s&&p.current&&(h.current=!n)}),[n,s]),AD.useEffect((()=>{if(!s||!p.current)return;const e=f0(p.current);return p.current.contains(e.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),AD.useEffect((()=>{if(!s||!p.current)return;const e=f0(p.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===p.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=p.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=o(p.current)),n.length>0){var i,s;const e=Boolean((null==(i=g.current)?void 0:i.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,a,s,o]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0};return hZ.jsxs(AD.Fragment,{children:[hZ.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),AD.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),hZ.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const o5=AD.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=AD.useState(null),s=g0(AD.isValidElement(n)?n.ref:null,t);if(c0((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),c0((()=>{if(o&&!i)return p0(t,o),()=>{p0(t,null)}}),[t,o,i]),i){if(AD.isValidElement(n)){const e={ref:s};return AD.cloneElement(n,e)}return hZ.jsx(AD.Fragment,{children:n})}return hZ.jsx(AD.Fragment,{children:o?MW.createPortal(n,o):o})}));function a5(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function s5(e){return parseInt(h0(e).getComputedStyle(e).paddingRight,10)||0}function l5(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&a5(e,i)}))}function c5(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function u5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=f0(e);return t.body===e?h0(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(f0(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${s5(r)+e}px`;const t=f0(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${s5(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=f0(r).body;else{const t=r.parentElement,n=h0(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const d5=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&a5(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);l5(t,e.mount,e.modalRef,r,!0);const i=c5(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=c5(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=u5(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=c5(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&a5(e.modalRef,t),l5(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&a5(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function f5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=d5,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=AD.useRef({}),h=AD.useRef(null),p=AD.useRef(null),m=g0(p,d),[g,y]=AD.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),w=()=>{i.mount(x(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=m0((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||f0(h.current).body;i.add(x(),e),p.current&&w()})),k=AD.useCallback((()=>i.isTopModal(x())),[i]),M=m0((e=>{h.current=e,e&&(u&&k()?w():p.current&&a5(p.current,b))})),C=AD.useCallback((()=>{i.remove(x(),b)}),[b,i]);AD.useEffect((()=>()=>{C()}),[C]),AD.useEffect((()=>{u?S():v&&o||C()}),[u,C,v,o,S]);const E=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},q=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=q2(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=qT({},n,t);return qT({role:"presentation"},r,{onKeyDown:E(r),ref:m})},getBackdropProps:(e={})=>qT({"aria-hidden":!0},e,{onClick:q(e),open:u}),getTransitionProps:()=>({onEnter:d0((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:d0((()=>{y(!0),s&&s(),o&&C()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:M,isTopModal:k,exited:g,hasTransition:v}}const h5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p5={entering:{opacity:1},entered:{opacity:1}},m5=AD.forwardRef((function(e,t){const n=L1(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:p,style:m,timeout:g=r,TransitionComponent:y=VW}=e,v=FT(e,h5),b=AD.useRef(null),x=g0(b,a.ref,t),w=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},S=w(d),k=w(((e,t)=>{x2(e);const r=w2({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),M=w(u),C=w(p),E=w((e=>{const t=w2({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),q=w(h);return hZ.jsx(y,qT({appear:o,in:l,nodeRef:b,onEnter:k,onEntered:M,onEntering:S,onExit:E,onExited:q,onExiting:C,addEndListener:e=>{i&&i(b.current,e)},timeout:g},v,{children:(e,t)=>AD.cloneElement(a,qT({style:qT({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},p5[e],m,a.props.style),ref:x},t))}))}));function g5(e){return RQ("MuiBackdrop",e)}PQ("MuiBackdrop",["root","invisible"]);const y5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],v5=f2("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>qT({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),b5=AD.forwardRef((function(e,t){var n,r,i;const o=I1({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:h={},slots:p={},TransitionComponent:m=m5,transitionDuration:g}=o,y=FT(o,y5),v=qT({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return N0({root:["root",n&&"invisible"]},g5,t)})(v),x=null!=(n=h.root)?n:u.root;return hZ.jsx(m,qT({in:f,timeout:g},y,{children:hZ.jsx(v5,qT({"aria-hidden":!0},x,{as:null!=(r=null!=(i=p.root)?i:c.Root)?r:l,className:LQ(b.root,s,null==x?void 0:x.className),ownerState:qT({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function x5(e){return RQ("MuiButton",e)}const w5=PQ("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),S5=AD.createContext({}),k5=AD.createContext(void 0),M5=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],C5=e=>qT({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),E5=f2(K2,{shouldForwardProp:e=>d2(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${qZ(n.color)}`],t[`size${qZ(n.size)}`],t[`${n.variant}Size${qZ(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return qT({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":qT({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:G0(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:G0(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:G0(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":qT({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${w5.focusVisible}`]:qT({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${w5.disabled}`]:qT({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${G0(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${w5.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${w5.disabled}`]:{boxShadow:"none"}})),q5=f2("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${qZ(n.size)}`]]}})((({ownerState:e})=>qT({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},C5(e)))),D5=f2("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${qZ(n.size)}`]]}})((({ownerState:e})=>qT({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},C5(e)))),T5=AD.forwardRef((function(e,t){const n=AD.useContext(S5),r=AD.useContext(k5),i=I1({props:s0(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=FT(i,M5),x=qT({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return qT({},a,N0({root:["root",o,`${o}${qZ(t)}`,`size${qZ(i)}`,`${o}Size${qZ(i)}`,`color${qZ(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${qZ(i)}`],endIcon:["icon","endIcon",`iconSize${qZ(i)}`]},x5,a))})(x),S=g&&hZ.jsx(q5,{className:w.startIcon,ownerState:x,children:g}),k=f&&hZ.jsx(D5,{className:w.endIcon,ownerState:x,children:f}),M=r||"";return hZ.jsxs(E5,qT({ownerState:x,className:LQ(n.className,w.root,l,M),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:LQ(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[S,o,k]}))}));function N5(e){return RQ("MuiModal",e)}PQ("MuiModal",["root","hidden","backdrop"]);const O5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],A5=f2("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>qT({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),_5=f2(b5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),L5=AD.forwardRef((function(e,t){var n,r,i,o,a,s;const l=I1({name:"MuiModal",props:e}),{BackdropComponent:c=_5,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:h,container:p,component:m,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:k=!1,hideBackdrop:M=!1,keepMounted:C=!1,onBackdropClick:E,open:q,slotProps:D,slots:T}=l,N=FT(l,O5),O=qT({},l,{closeAfterTransition:f,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:S,disableScrollLock:k,hideBackdrop:M,keepMounted:C}),{getRootProps:A,getBackdropProps:_,getTransitionProps:L,portalRef:I,isTopModal:R,exited:P,hasTransition:z}=f5(qT({},O,{rootRef:t})),F=qT({},O,{exited:P}),j=(e=>{const{open:t,exited:n,classes:r}=e;return N0({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},N5,r)})(F),B={};if(void 0===h.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();B.onEnter=e,B.onExited=t}const H=null!=(n=null!=(r=null==T?void 0:T.root)?r:g.Root)?n:A5,V=null!=(i=null!=(o=null==T?void 0:T.backdrop)?o:g.Backdrop)?i:c,$=null!=(a=null==D?void 0:D.root)?a:y.root,W=null!=(s=null==D?void 0:D.backdrop)?s:y.backdrop,U=N2({elementType:H,externalSlotProps:$,externalForwardedProps:N,getSlotProps:A,additionalProps:{ref:t,as:m},ownerState:F,className:LQ(d,null==$?void 0:$.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),Y=N2({elementType:V,externalSlotProps:W,additionalProps:u,getSlotProps:e=>_(qT({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:LQ(null==W?void 0:W.className,null==u?void 0:u.className,null==j?void 0:j.backdrop),ownerState:F});return C||q||z&&!P?hZ.jsx(o5,{ref:I,container:p,disablePortal:w,children:hZ.jsxs(H,qT({},U,{children:[!M&&c?hZ.jsx(V,qT({},Y)):null,hZ.jsx(i5,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:S,isEnabled:R,open:q,children:AD.cloneElement(h,B)})]}))}):null}));function I5(e){return RQ("MuiDivider",e)}PQ("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const R5=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],P5=f2("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>qT({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:G0(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>qT({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>qT({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>qT({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>qT({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),z5=f2("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>qT({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),F5=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,h=FT(n,R5),p=qT({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return N0({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},I5,r)})(p);return hZ.jsx(P5,qT({as:a,className:LQ(m.root,o),role:u,ref:t,ownerState:p},h,{children:i?hZ.jsx(z5,{className:m.wrapper,ownerState:p,children:i}):null}))}));F5.muiSkipListHighlight=!0;const j5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function B5(e){return`scale(${e}, ${e**2})`}const H5={entering:{opacity:1,transform:B5(1)},entered:{opacity:1,transform:"none"}},V5="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),$5=AD.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:f,style:h,timeout:p="auto",TransitionComponent:m=VW}=e,g=FT(e,j5),y=x0(),v=AD.useRef(),b=L1(),x=AD.useRef(null),w=g0(x,i.ref,t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=S(c),M=S(((e,t)=>{x2(e);const{duration:n,delay:r,easing:i}=w2({style:h,timeout:p,easing:o},{mode:"enter"});let a;"auto"===p?(a=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:V5?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)})),C=S(l),E=S(f),q=S((e=>{const{duration:t,delay:n,easing:r}=w2({style:h,timeout:p,easing:o},{mode:"exit"});let i;"auto"===p?(i=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=i):i=t,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:V5?i:.666*i,delay:V5?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=B5(.75),u&&u(e)})),D=S(d);return hZ.jsx(m,qT({appear:r,in:a,nodeRef:x,onEnter:M,onEntered:C,onEntering:k,onExit:q,onExited:D,onExiting:E,addEndListener:e=>{"auto"===p&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===p?null:p},g,{children:(e,t)=>AD.cloneElement(i,qT({style:qT({opacity:0,transform:B5(.75),visibility:"exited"!==e||a?void 0:"hidden"},H5[e],h,i.props.style),ref:w},t))}))}));$5.muiSupportAuto=!0;const W5=AD.createContext({});function U5(e){return RQ("MuiList",e)}PQ("MuiList",["root","padding","dense","subheader"]);const Y5=["children","className","component","dense","disablePadding","subheader"],K5=f2("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>qT({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),G5=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiList"}),{children:r,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=FT(n,Y5),u=AD.useMemo((()=>({dense:a})),[a]),d=qT({},n,{component:o,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return N0({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},U5,t)})(d);return hZ.jsx(W5.Provider,{value:u,children:hZ.jsxs(K5,qT({as:o,className:LQ(f.root,i),ref:t,ownerState:d},c,{children:[l,r]}))})}));function X5(e){return RQ("MuiListItemButton",e)}const J5=PQ("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Z5=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Q5=f2(K2,{shouldForwardProp:e=>d2(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>qT({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${J5.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:G0(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${J5.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:G0(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${J5.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:G0(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:G0(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${J5.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${J5.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),e3=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,h=FT(n,Z5),p=AD.useContext(W5),m=AD.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=AD.useRef(null);c0((()=>{i&&g.current&&g.current.focus()}),[i]);const y=qT({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return qT({},n,N0({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},X5,n))})(y),b=g0(g,t);return hZ.jsx(W5.Provider,{value:m,children:hZ.jsx(Q5,qT({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:LQ(v.focusVisible,u),ownerState:y,className:LQ(v.root,f)},h,{classes:v,children:a}))})}));function t3(e){return RQ("MuiListItemIcon",e)}PQ("MuiListItemIcon",["root","alignItemsFlexStart"]);const n3=["className"],r3=f2("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>qT({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),i3=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=FT(n,n3),o=qT({},n,{alignItems:AD.useContext(W5).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return N0({root:["root","flex-start"===t&&"alignItemsFlexStart"]},t3,n)})(o);return hZ.jsx(r3,qT({className:LQ(a.root,r),ownerState:o,ref:t},i))}));function o3(e){return RQ("MuiListItemText",e)}const a3=PQ("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),s3=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],l3=f2("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${a3.primary}`]:t.primary},{[`& .${a3.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>qT({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),c3=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiListItemText"}),{children:r,className:i,disableTypography:o=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=FT(n,s3),{dense:f}=AD.useContext(W5);let h=null!=s?s:r,p=c;const m=qT({},n,{disableTypography:o,inset:a,primary:!!h,secondary:!!p,dense:f}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return N0({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},o3,t)})(m);return null==h||h.type===e5||o||(h=hZ.jsx(e5,qT({variant:f?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:h}))),null==p||p.type===e5||o||(p=hZ.jsx(e5,qT({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:p}))),hZ.jsxs(l3,qT({className:LQ(g.root,i),ownerState:m,ref:t},d,{children:[h,p]}))}));function u3(e){return RQ("MuiPopover",e)}PQ("MuiPopover",["root","paper"]);const d3=["onEntering"],f3=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],h3=["slotProps"];function p3(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function m3(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function g3(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function y3(e){return"function"==typeof e?e():e}const v3=f2(L5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),b3=f2(C2,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),x3=AD.forwardRef((function(e,t){var n,r,i;const o=I1({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:h,elevation:p=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:w=$5,transitionDuration:S="auto",TransitionProps:{onEntering:k}={},disableScrollLock:M=!1}=o,C=FT(o.TransitionProps,d3),E=FT(o,f3),q=null!=(n=null==b?void 0:b.paper)?n:y,D=AD.useRef(),T=g0(D,q.ref),N=qT({},o,{anchorOrigin:l,anchorReference:u,elevation:p,marginThreshold:m,externalPaperSlotProps:q,transformOrigin:x,TransitionComponent:w,transitionDuration:S,TransitionProps:C}),O=(e=>{const{classes:t}=e;return N0({root:["root"],paper:["paper"]},u3,t)})(N),A=AD.useCallback((()=>{if("anchorPosition"===u)return c;const e=y3(s),t=(e&&1===e.nodeType?e:f0(D.current).body).getBoundingClientRect();return{top:t.top+p3(t,l.vertical),left:t.left+m3(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),_=AD.useCallback((e=>({vertical:p3(e,x.vertical),horizontal:m3(e,x.horizontal)})),[x.horizontal,x.vertical]),L=AD.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=_(t);if("none"===u)return{top:null,left:null,transformOrigin:g3(n)};const r=A();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,l=o+t.width,c=h0(y3(s)),d=c.innerHeight-m,f=c.innerWidth-m;if(null!==m&&i<m){const e=i-m;i-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;i-=e,n.vertical+=e}if(null!==m&&o<m){const e=o-m;o-=e,n.horizontal+=e}else if(l>f){const e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:g3(n)}}),[s,u,A,_,m]),[I,R]=AD.useState(g),P=AD.useCallback((()=>{const e=D.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,R(!0)}),[L]);AD.useEffect((()=>(M&&window.addEventListener("scroll",P),()=>window.removeEventListener("scroll",P))),[s,M,P]);AD.useEffect((()=>{g&&P()})),AD.useImperativeHandle(a,(()=>g?{updatePosition:()=>{P()}}:null),[g,P]),AD.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{P()})),t=h0(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,P]);let z=S;"auto"!==S||w.muiSupportAuto||(z=void 0);const F=h||(s?f0(y3(s)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:v3,B=null!=(i=null==v?void 0:v.paper)?i:b3,H=N2({elementType:B,externalSlotProps:qT({},q,{style:I?q.style:qT({},q.style,{opacity:0})}),additionalProps:{elevation:p,ref:T},ownerState:N,className:LQ(O.paper,null==q?void 0:q.className)}),V=N2({elementType:j,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:E,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:N,className:LQ(O.root,f)}),{slotProps:$}=V,W=FT(V,h3);return hZ.jsx(j,qT({},W,!E2(j)&&{slotProps:$,disableScrollLock:M},{children:hZ.jsx(w,qT({appear:!0,in:g,onEntering:(e,t)=>{k&&k(e,t),P()},onExited:()=>{R(!1)},timeout:z},C,{children:hZ.jsx(B,qT({},H,{children:d}))}))}))}));function w3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S3(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function k3(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M3(){return M3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M3.apply(null,arguments)}function C3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C3(Object(n),!0).forEach((function(t){k3(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q3(){q3=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(N([])));w&&w!==n&&r.call(w,a)&&(b=w);var S=v.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(S,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(M.prototype),c(M.prototype,s,(function(){return this})),t.AsyncIterator=M,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new M(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function D3(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||O3(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T3(e){return function(e){if(Array.isArray(e))return w3(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O3(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N3(e){return N3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N3(e)}function O3(e,t){if(e){if("string"==typeof e)return w3(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w3(e,t):void 0}}var A3=function(e){var t=e.className,n=e.title,r=e.path,i=e.fillRule;return _D.createElement(b2,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},_D.createElement("path",{d:r}),n?_D.createElement("title",null,n):void 0,i?_D.createElement("use",{fillRule:i}):void 0)},_3={STYLE:{ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}}},L3={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},I3=function(e){return L3.R.test(e)||L3.AL.test(e)};function R3(e){for(var t,n,r=e?e.length:0,i=0;i<r;i++){if(n=t=e[i],L3.L.test(n))return"ltr";if(I3(t))return"rtl"}return"ltr"}var P3,z3,F3=f2(T5,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"0px",maxWidth:"640px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),j3=f2((function(e){var t=e.className;return _D.createElement(A3,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),B3=f2((function(e){var t=e.className;return _D.createElement(A3,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:_3.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),H3=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,i=e.source,o=i.styling,a=i.info.text,s=i.layout.direction,l=i.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,f=l.hasMultiple,h=l.isCyclic,p=l.isLocked,m=i.resources.translator,g=i.services.focus,y=i.settings.isDisabled,v=i.state.inSelections,b=!(!c.change||!u),x=!(!c.reload||!h),w=(b||x)&&!v&&!y(),S={pointerEvents:w?"auto":"none"},k=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,i=e.direction,o=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=o&&t.reload;return"ltr"===i&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===i&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:b,canReload:x,direction:s,hasCyclic:d,hasMultiple:f,isLocked:p}),M=k3(k3({},"rtl"===s?"endIcon":"startIcon",p&&_D.createElement(j3,{height:12})),"rtl"===s?"startIcon":"endIcon",(b||x)&&_D.createElement(B3,{className:"".concat(v||y()?"disabled":"")})),C=AD.useRef(),E=AD.useRef();AD.useEffect((function(){t||g.get()&&(C.current.focus(),E.current.focusVisible(),g.set(!1))}));var q=R3(a),D="Accessibility.".concat(w?"Alternative":"Normal",".Instructions");return _D.createElement(F3,M3({action:E,"aria-describedby":r,"aria-label":m.get(D),color:"inherit",direction:s,disabled:!w||y()||v,onClick:function(e){w&&n(e)},padding:k,ref:C,style:S,styling:o.title,title:a},M),_D.createElement("span",{dir:q,style:_3.STYLE.ELLIPSIS},a))},V3=function(e){var t=e.className,n=e.title;return _D.createElement(A3,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})},$3=f2(T5,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,i=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:i,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:i,opacity:1}}})),W3=f2(V3,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:_3.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),U3=f2((function(e){var t=e.className,n=e.title;return _D.createElement(A3,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:_3.STYLE.ICONS.COLOR.DISABLED}}})),Y3=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=D3(AD.useState(!1),2),r=n[0],i=n[1],o=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,f=d.allowed,h=d.isFirst,p=d.isLast,m=t.settings.isDisabled,g=t.state.inSelections;return AD.useEffect((function(){r&&i(!1)}),[l]),f.reload?_D.createElement($3,{direction:u,disabled:r||g||m(),isFirst:h,isLast:p,onClick:function(){return i(!0),void a()},styling:o.title,title:c,variant:"outlined"},_D.createElement(U3,{className:"".concat(r||g||m()?"disabled":"")})):_D.createElement(W3,{direction:u,isFirst:h,isLast:p,style:{flexShrink:0},title:c})},K3=function(e){var t=e.className,n=e.title;return _D.createElement(A3,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})},G3=f2(T5,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}})),X3={color:_3.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:_3.STYLE.ICONS.COLOR.DISABLED}},J3=f2((function(e){var t=e.className;return _D.createElement(A3,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return X3})),Z3=f2((function(e){var t=e.className;return _D.createElement(A3,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return X3})),Q3=f2(K3,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:_3.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),e4=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,i=t.info,o=i.breadcrumbs,a=i.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,f=t.state.inSelections,h=d()||f?"disabled":null,p=k3({},"rtl"===s?"startIcon":"endIcon","rtl"===s?_D.createElement(Z3,{className:h}):_D.createElement(J3,{className:h})),m=o.map((function(e,t){var i=R3(e);return _D.createElement(G3,M3({disabled:d()||f,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:o.length-e})}(t)},styling:n.title,title:e},p),_D.createElement("span",{dir:i,style:_3.STYLE.ELLIPSIS},e))}));return _D.createElement(_D.Fragment,null,"rtl"===s?m.reverse():void 0,_D.createElement(Q3,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:m)},t4=f2(e3,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":E3({},_3.STYLE.FOCUS)}})),n4=f2(i3)((function(){return{marginRight:0,justifyContent:"center"}})),r4=f2((function(e){var t=e.className;return _D.createElement(A3,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY}})),i4=f2(V3)((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY}})),o4=f2(K3)((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),a4=function(e){var t=e.id,n=e.meta,r=e.nested,i=e.onClick,o=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=E3({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},_3.STYLE.ELLIPSIS),d=R3(s),f=_D.createElement(n4,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?_D.createElement(r4,{height:12}):null!=t&&t.isCyclic?_D.createElement(i4,{height:12}):null!=t&&t.isDrillDown?_D.createElement(o4,{height:12}):void 0}({meta:n,selected:o}));return _D.createElement(_D.Fragment,{key:t},_D.createElement(t4,{autoFocus:o,nested:r,onClick:function(e){return null==i?void 0:i(e)},rtl:c,title:s},c&&f,_D.createElement(c3,{dir:d,primaryTypographyProps:{style:u}},s),!c&&f))},s4=f2(F5)((function(){return{marginTop:"-1px"}})),l4=function(e){var t=e.anchor,n=e.id,r=e.onClose,i=e.open,o=e.source,a=o.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=o.info,d=u.breadcrumbs,f=u.group,h=u.id,p=u.text,m=o.data.alternatives,g=o.meta,y=g.isCyclic,v=g.isDrillDown,b=o.resources.translator,x=o.services.focus,w=y||v,S=_D.createElement(a4,{id:h,key:h,meta:o.meta,onClick:r,selected:!w,source:o,text:w?f.name:p}),k=w&&f.items.map((function(e){return _D.createElement(a4,{id:e.id,nested:!0,onClick:function(t){return function(e,t){y&&c({fieldIndex:t.index}),v&&l({steps:d.length-t.index}),r()}(0,e)},selected:e.current,source:o,text:e.text})})),M=m.map((function(e,t){return _D.createElement(_D.Fragment,{key:e.id},_D.createElement(a4,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,"keydown"===n.type&&x.set(!0),void s({id:r});var n,r},source:o,text:e.text}),t<m.length-1&&_D.createElement(s4,{key:"divider-".concat(e.id)}))}));return _D.createElement(x3,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},id:n,onClose:r,open:i,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},_D.createElement(G5,{"aria-label":b.get("Accessibility.Popover.Instructions"),dense:!0},S,k,_D.createElement(s4,{key:"divider-".concat(h)}),M))},c4=function(e){var t=e.source,n=D3(AD.useState(null),2),r=n[0],i=n[1],o={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.services.focus,l=_D.createElement(Y3,{source:t}),c=_D.createElement(e4,{source:t});return _D.createElement(_D.Fragment,null,"rtl"===a?void 0:c,"rtl"===a?void 0:l,_D.createElement(H3,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&s.set(!0),i(t)},isOpen:o.isOpen,popoverId:o.id,source:t}),_D.createElement(l4,{anchor:r,id:o.id,onClose:function(){i(null)},open:o.isOpen,source:t}),"rtl"===a?c:void 0,"rtl"===a?l:void 0)};var u4=function(){if(z3)return P3;z3=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return P3=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},P3}(),d4=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(u4);function f4(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function h4(e){return Array.isArray(e)}function p4(e){return null!=e&&!Array.isArray(e)&&"object"===N3(e)}function m4(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function g4(e){return void 0===e}function y4(e,t){if(p4(e)&&p4(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,i=n.length;r<i;r+=1)if(!y4(e[n[r]],t[n[r]]))return!1;return!0}if(h4(e)&&h4(t)){if(e.length!==t.length)return!1;for(var o=0,a=e.length;o<a;o+=1)if(!y4(e[o],t[o]))return!1;return!0}return e===t}function v4(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,i=void 0===r?{}:r,o=e.basePath,a=void 0===o?"":o,s=[];return Object.keys(i).forEach((function(e){var t=function(e){return e?d4(!0,{},{value:e}).value:e}(i[e]),r=n[e],o="".concat(a,"/").concat(e);y4(t,r)||m4(i,e)||(g4(r)?s.push({op:"add",path:o,value:t}):p4(t)&&p4(r)?s.push.apply(s,T3(v4({oldData:r,newData:t,basePath:o}))):h4(t)&&h4(r)?s.push.apply(s,T3(function(e){var t=e.newArray,n=e.basePath,r=[];return y4(t,e.oldArray.slice())||(!g4(t[0])&&g4(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:o}))):s.push({op:"replace",path:o,value:t}))})),Object.keys(n).forEach((function(e){g4(i[e])&&!m4(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function b4(e){var t=e.model,n=v4({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function x4(e){return w4.apply(this,arguments)}function w4(){return(w4=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){S3(o,r,i,a,s,"next",e)}function s(e){S3(o,r,i,a,s,"throw",e)}a(void 0)}))}}(q3().mark((function e(t){var n,r,i,o,a,s,l,c,u,d,f,h;return q3().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.from,r=t.to,i=t.model,o=t.container,a=t.skipAttributeExpressions,s=t.onChange,e.next=3,i.getEffectiveProperties();case 3:return l=e.sent,c=l.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===r})),d=d4(!0,{},l),f=d.qHyperCubeDef[o][c],(h=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]).qAttributeDimensions=f.qAttributeDimensions,f.qAttributeDimensions=[],a||(h.qAttributeExpressions=f.qAttributeExpressions,f.qAttributeExpressions=[]),d.qHyperCubeDef[o][c]=h,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]=f,s({fromItem:f,toItem:h,oldProperties:l,newProperties:d,model:i}),e.next=17,f4({model:i,properties:d});case 17:i.colorSupport&&i.colorSupport.colorByUpdater(d,"qHyperCubeDef."),b4({model:i,oldProperties:l,newProperties:d});case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S4(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=i.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,i=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,f=e.qLocked,h=e.title,p="C"===r,m="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){p&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:p,isDrillDown:m,isLocked:!!f,isNormal:g},info:{id:n,text:g?d:i[a],position:a,breadcrumbs:i.slice(0,e.qGroupPos),group:{name:h,items:i.slice(0,m?e.qGroupPos+1:i.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(p?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return x4({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:o})},drillUp:function(e){var t=e.steps;m&&l&&(null==l||l.drillUp("/qHyperCubeDef",y,t))},stepCycle:function(){return v("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return v("setActiveField",t)}}}}))}function k4(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.model,l=i.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,text:n},action:{changeTo:function(e){var n=e.id;return x4({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:o})}}}}))}function M4(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:o}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=o.app,f=o.cache,h=o.model,p=a.forceAllowChange,m=a.isRTL,g=a.isSnapshot,y=a.type,v=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:m}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{get:function(){var e;return(null==t||null===(e=t.get)||void 0===e?void 0:e.call(t,n))||!1},set:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,e)}}}({cache:f,key:i}),x=("dimension"===y?S4:k4)({callbacks:t,data:n,resources:o,settings:a});"rtl"===v&&x.reverse();var w={allowed:{change:(!(!h.modifiers||!h.colorSupport)||p)&&!g,reload:!!d&&!g},hasAlternatives:!!c.length,hasCyclic:x.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return x.map((function(e,t){return E3(E3({data:n,layout:{direction:v},resources:{translator:o.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:E3(E3(E3({},w),e.meta),{},{isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:i,resources:a,settings:s,state:l,styling:c});return _D.createElement("div",{style:u},d.map((function(e){return _D.createElement(_D.Fragment,{key:e.info.id},_D.createElement(c4,{source:e}),!e.meta.isLast&&_D.createElement("span",{dir:e.layout.direction,style:E3(E3({},c.title),{},{lineHeight:"normal"})},", "))})))}var C4,E4='"Source Sans Pro", "Arial", "sans-serif"',q4="12px",D4=function(e){var t=e.rect,n=e.state,r=e.settings,i=r.callbacks,o=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return M4({callbacks:i,data:o,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},T4={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{forceAllowChange:!1,isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:E4,fontSize:q4},popover:{color:"#595959CC",fontFamily:E4,fontSize:q4}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,i=t.alternatives,o=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=i.length||"measure"!==o?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(D4(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return D4(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},N4=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return _D.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},O4={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return _D.createElement("div",{dir:o,style:a},_D.createElement(N4,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},A4={},_4=function(){if(C4)return A4;C4=1;var e=CW;return A4.createRoot=e.createRoot,A4.hydrateRoot=e.hydrateRoot,A4}(),L4=A1({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function I4(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function R4(){var e={rendererBox:I4(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=I4(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=_4.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return _D.createElement(_D.StrictMode,null,_D.createElement(p2,{theme:L4},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const P4={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",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(vg({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function z4({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=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 u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=vg({},{major:l,majorEnd:c},r.minor.items[e]);i.forEach((t=>{d[t]=r[t].items[e]}));const f=o?n:t,h=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:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),p=(u-h)/2,m=p+d.major+h/2;return{item:d,boxCenter:m,boxWidth:h,boxPadding:p,rendWidth:t,rendHeight:n}}function F4({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=vg(!0,{},n||{},r||{}),c={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},u=i.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:vg(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:vg(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{};let h;const p={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:vg(!0,{},{start:{scale:f.scale,ref:"start"},end:{scale:f.scale,ref:"end"},min:{scale:f.scale,ref:"min"},max:{scale:f.scale,ref:"max"},med:{scale:f.scale,ref:"med"}},f)})};for(let n=0,r=e.length;n<r;n++)h=e[n],p[h]=s.resolve({data:t,defaults:l[h],settings:i[h],scaled:c});return p}const j4=["oob"];const B4={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=F4({keys:j4,data:i,defaultSettings:{oob:P4.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=z4}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:u,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=c[u].data,g=[];if(d.oob.show){g.push(P4.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:g};l.push(e)}}return l}({width:e,height:t,flipXY:r,resolved:l,keys:j4,symbol:s,dockValue:n});return d}},H4={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},V4=["hat"];function $4(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 W4({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,c=i,u=e.hat.alignment||0;o&&(a="y",s="x",l=i,c=r,u=1-u);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const h=vg({},e.hat,{type:"path",d:$4(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[h,vg({},e.hat,{type:"path",d:$4(f)})]}const U4={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=F4({keys:V4,data:r,defaultSettings:H4,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=z4}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,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=[];c.hat.show&&m.push(...W4({item:c,boxWidth:u,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const g={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(g)}return a}({width:e,height:t,flipXY:n,resolved:a,keys:V4});return c}};var Y4={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};function K4(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:K4(i,t,n)},i}function G4(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),K4(i,a,l,e.invert)}))}function X4(){const e=hp();return e.use(tg),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",ig(e))};e.interaction("hammer",ig(Hammer))}(lg)),e.use((function(e){e.renderer("react",sY()),e.component("data-title",iY(e.renderer("svg")()))})),e.use(G4),e.renderer("react-qcm",R4),e.component("box-sliced-hat",U4),e.component("box-out-of-bounds",B4),e.component("disclaimer",O4),e.component("scrollbar",AG),e.component("scroll-hint",Fw),e.component("reference-line-labels",jS),e.component("axis-overlay",YK.picassoComponents.axisOverlay),e.component("time-axis",YK.picassoComponents.timeAxis),e.component("space",Y4),e.component("axis-title",T4),e.scale("q-time-axis",YK.picassoScales.time),e}const J4={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function Z4(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Q4={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=o[t]*(n>l?1:n/l),u=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function e6(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await Q4.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function t6(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return e6(u,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Z4(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await Q4.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Q4.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(Z4(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await Q4.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const n6={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(t6(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},r6={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await n6.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>n6.checkIfPromisesExist({customTooltipModel:e})};const i6=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:J4.CHART.CHART_PARENT_TYPE,qId:J4.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},o6=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:J4.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const a6={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=J4.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:J4.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await a6.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=J4.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=J4.CHART.STATE,a=i6(t,o),s=await e.createSessionObject(a),l=o6(t);if(s.id!==J4.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(J4.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await a6.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(a6.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(J4.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=J4.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function s6(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function l6(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=J4.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function c6(e){const t=l6();return e.filter((e=>t[e.id]))}const u6={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=u6.getAttrExprData(a);o.length||n.length?r6.handlePromises({customTooltipModel:i,nodes:u6.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&a6.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>r6.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[J4.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[J4.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[J4.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(c6(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[J4.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[J4.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=s6(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===c6(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let r=[];const i=s6(e)||[];[...i,t].forEach((e=>{const t=c6(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=l6(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Ug.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Ug.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function d6(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case J4.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case J4.CUSTOM.TITLE:case J4.CUSTOM.DESCRIPTION:case J4.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const f6={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>d6(t,e,r,n)}}};const h6={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[J4.CUSTOM.TITLE]:!0,[J4.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=u6.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===J4.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===J4.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Yg.getMeasure(e,t))),e,i)}};function p6({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(h6.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function m6(e){const t=J4.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function g6(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const y6={migrateProperties(e){var t,n;const r=vg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=g6(r);return o=function(e,t){return t.concat(e.map((e=>m6(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=m6(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(g6(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var v6={attrExpr:y6},b6=7005;const x6=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6},w6=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&Dg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},S6=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Dg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Dg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},k6=e=>{if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))},M6=(e,t)=>{const n=e.qHyperCubeDef.qDimensions,r=e.qHyperCubeDef.qMeasures;if(1===n.length&&1===r.length){const r=n[0];return r.qLibraryId?t.getDimension(r.qLibraryId).then((e=>e.getLayout())).then((t=>{if(t&&t.qDimInfos&&t.qDimInfos[0]){const n=t.qDimInfos[0].qCardinal;S6(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(S6(e,t),r)))),(()=>r))}return w6(e),Promise.resolve()};function C6(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?dC(e,"color.persistent",!0):"byDimension"===r&&n.length>1?dC(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?dC(e,"color.mode","primary"):0===t.length&&n.length>0&&(dC(e,"color.byMeasureDef",void 0),dC(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&dC(e,"color.mode","primary"))}const E6=(e,t)=>{C6(t),Uy(e),u6.addCallbackCustomTooltip(t)},q6=e=>{C6(e)};function D6({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,i){let o;const a=null!=i&&i.layout?i.layout.qHyperCube.qDimensionInfo.filter((e=>x6(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?o="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?o="Visualizations.Descriptions.Stack":(o="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):o="Visualizations.Descriptions.Bars",e.get(o)},add:(e,t,n)=>(t.qHyperCubeDef.qDimensions.length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),null!=n&&n.app?M6(t,n.app).then((()=>(E6(e,t),e))):(k6(t),E6(e,t),e)),move(e,t,n){n.layout.qHyperCube.qDimensionInfo.filter((e=>x6(e))).length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),w6(t),C6(t),u6.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;C6(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),u6.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){u6.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:e=>e>1?1:15,description:()=>e.get("Visualizations.Descriptions.LengthBars"),add:(e,t,n)=>null!=n&&n.app?M6(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,q6(t),e))):(k6(t),q6(t),e),move(e,t){w6(t),C6(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;C6(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function T6(e){return{properties:{version:"1.38.1",barGrouping:{grouping:"grouped"},color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[],dataPoint:{showLabels:!1,showSegmentLabels:!1,showTotalLabels:!0},dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},footnote:"",gridLine:{auto:!0,spacing:2},legend:{dock:"auto",show:!0,showTitle:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"all",spacing:1},orientation:"vertical",preferContinuousAxis:!0,qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},refLine:{refLines:[],dimRefLines:[]},scrollbar:"miniChart",scrollStartPos:0,showDetails:!0,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[{path:"/qHyperCubeDef",...D6(e)}]}}}var N6={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","ja-JP":"このチャートには表示できない負の値がデータ セットに含まれています。","ru-RU":"Набор данных содержит отрицательные значения, которые нельзя отобразить на этой диаграмме."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};function O6({env:t}){var n;const{flags:r}=t,i=null===(n=t.anything)||void 0===n||null===(n=n.sense)||void 0===n?void 0:n.isUnsupportedFeature,o=e.useTranslator();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(N6).forEach((t=>{e.add(N6[t])}))}}(t.translator);const a=e.useEmbed(),s=e.useTheme(),[l,c]=e.useState(),u=e.useDeviceType(),d=e.useAppLayout(),{qLocaleInfo:f}=d;return e.useEffect((()=>{c({translator:o,theme:s,embed:a,deviceType:u,localeInfo:f,isUnsupportedFeature:i,flags:r})}),[f,i,o.language(),s.name(),u]),l}function A6(){const[t]=e.useState((()=>fC())),[n]=e.useState((()=>function(e){var t=US({},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})));return{viewCache:t,viewState:n}}const _6="REJECTED",L6=()=>{},I6=2,R6=20,P6=200,z6=10;var F6={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),c=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-z6<=t.qTop,i=n.qLeft+n.qWidth+z6>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+z6>=t.qTop+t.qHeight,a=n.qLeft-z6<=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 j6={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-z6<=t.qTop,i=n.qTop+n.qHeight+z6>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var B6={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 H6="pages";const V6="discretePan";function $6({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:V6,pointers:1,threshold:10,enable(r,i){return this.started===V6||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${V6}start`](e){e.preventDefault(),this.started=V6;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},[`${V6}move`](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)},[`${V6}end`](e){e.preventDefault(),this.started=!1},[`${V6}cancel`](e){e.preventDefault(),this.started=!1}}}}function W6({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.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 U6({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(1e4/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(P6,n));return{width:e,height:Math.max(R6,Math.min(n*I6,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function Y6(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(_6),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(_6),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(_6),n=null)},i}const K6={command:{update:()=>{}}};function G6({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=K6,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,u=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:c}={})=>{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()&&c&&c();const u=r(l);return o(i(u)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:U6({layoutService:r}),request:c({definitionPath:o}),process:Y6(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=mC(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==_6)throw e}))}),50);return function(e,{onProcessing:t=L6,onDataPage:n=L6}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var X6={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 J6={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 Z6(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function Q6(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 e8(e){return Q6(e.qMatrix,(e=>e[0].qElemNumber))-1}var t8={inTotal:function({layoutService:e}){const t=Z6(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=Z6(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=Z6(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=e8(o),c=o.qArea.qHeight*i+l,u=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const n8=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function r8(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return n8(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:n8(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return n8(e,n);return Q6(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var i8={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=r8(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:c}=n,u=r8(t).area(e(),l,a.qArea),d=e8(a),f=a.qArea.qHeight+d,h=c===o?(r.inView-f)*s/i:(c+(a.qArea.qTop+u)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function o8({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:h}=r[n.meta.chart.mode],p="horizontal"===n.meta.major.orientation,{axisDisplayMode:m="auto",maxVisibleItems:g=10,label:y}=s,v=p?t.width:t.height,b=v/l>=f;switch(m){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/h:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return f>o;const h=(90-d)*(Math.PI/180);return f>Math.cos(h)*o}({chart:e,isHorizontal:p,axisKey:i,renderer:o,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}function a8({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?X6:n?r?t8:i8:J6}({layoutService:r}),h=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,p=e=>e?h()/e:0,m=(e,t)=>-(e-t)*p(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:o8({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(1e4/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return p(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,m(n,r))),o=r?Math.abs(r*i/h()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return m(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,Math.min(1,o+e/i)]}({viewSize:h(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:h(),upperBound:m(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&c?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>=m(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*p(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(p(r)*n)}}}}function s8({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:f,rtl:h}){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 p=a8({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:h}),m=()=>{const e=p.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=p.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=m(),a=g({pixelOffset:e,items:r}),s=p.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((p.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item})));f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.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=m();n.set("itemSize",p.getItemSize({items:a}));const c=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?p.getUpperBound({items:e}):0;if("number"==typeof n)return p.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return p.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),u=g({pixelOffset:c,items:a});f.preventSet("viewRange",p.getViewRange({pixelOffset:u.start.pixel,items:a}));const d=p.getArea({itemOffset:u.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",p.getScaleRange({offsets:u.start,items:a})),f.preventSet("scrollOffset",{start:u.start.item,end:u.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=p.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function l8({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:u="/qHyperCubeDef",getRect:d,axisKey:f,renderer:h,areaBuffer:p,processDataPage:m=()=>{}}={}}){const g=fC(),y=function({qMode:e}){switch(e){case"K":return j6;case"T":return B6;default:return F6}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(H6,[]),{add:t=>{const n=e.get(H6);n.length=0,n.push(t)},getCurrent:()=>e.get(H6)[0],getAll:()=>e.get(H6),contains:n=>t(e.get(H6)[0],n)}}({state:g,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:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:p}),x=G6({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:m}),w=s8({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,renderer:h,areaBuffer:b,viewState:l,rtl:c}),S=function({layoutService:e,dataStore:t}){return function(n){const r=cC(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),k=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[$6({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:W6({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:c,scroller:w});return{interactions:k,query:{getCanScroll:()=>w.enabled(),getItemSize:()=>w.itemSize(),getScaleRange:()=>w.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>w.initialize(),scrollTo:e=>w.scrollToRelative(e),setSnapshotData:e=>S(e)}}}var c8="AVERAGE",u8="LINEAR",d8="POLYNOMIAL2",f8="POLYNOMIAL3",h8="POLYNOMIAL4",p8="EXPONENTIAL",m8="LOG",g8="POWER";function y8({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:i}=n,o={x:e,y:i[2]*t**2+i[1]*t+i[0]};switch(r){case f8:return o.y+=i[3]*t**3,o;case h8:return o.y+=i[4]*t**4+i[3]*t**3,o;default:return o}}var v8={average:function({dimValue:e,qTrendLine:t}){return{x:e,y:t.qCoeff[0]}},linear:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]*t+n.qCoeff[0]}},polynomial2:y8,polynomial3:y8,polynomial4:y8,exponential:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:Math.exp(n.qCoeff[0]+t*n.qCoeff[1])}},log:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]+n.qCoeff[0]*Math.log(t)}},power:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:10**(n.qCoeff[0]+n.qCoeff[1]*Math.log(t)*Math.LOG10E)}}};function b8(e,t){const n=v8[t.qType.toLowerCase()],r=Math.max(1,e/500);let i=1/0,o=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});i=Math.min(e,i),o=Math.max(e,o)}return{min:i,max:o}}function x8(e){return v8[e.qType.toLowerCase()]}function w8(e,t){return e.meta.isContinuous?function(e,t){return{generate:(n,r,i)=>{var o,a;const s=[],l=x8(n),c=t.get("zoom"),u=null!==(o=n.start)&&void 0!==o?o:c.min,d=null!==(a=n.end)&&void 0!==a?a:c.max,f=(d-u)/100,h=e.meta.isButterfly&&i>0;if(f>0){const e=e=>{const t=l({dimValue:e,value:e,qTrendLine:n});h&&(t.y=-t.y),t.layerId=r,t.measureIndex=i,t.dimValue=e,s.push(t)};let t=u;for(let n=u;n<=d;n+=f)e(n),t=n;t!==d&&e(d)}return s},calculate:(e,t)=>x8(e)({dimValue:t,value:t,qTrendLine:e}),findMinMax(e,t){const n=this.generate(t).map((({y:e})=>e));return{min:Math.min(...n),max:Math.max(...n)}}}}(e,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qData[0].qSubNodes,s=o.qArea.qTop,l=v8[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const o=a[e],c=l({dimValue:o.qElemNo,value:e+s+1,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=o.qText,i.push(c)}return i},findMinMax:b8}}(e):function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qMatrix,s=o.qArea.qTop,l=v8[t.qType.toLowerCase()],c=e.meta.isButterfly&&r>0;for(let e=0;e<a.length;e++){const o=a[e][0],u=e+s+1,d=l({dimValue:o.qElemNumber,value:u,qTrendLine:t});c&&(d.y=-d.y),d.layerId=n,d.measureIndex=r,d.dimValue=o.qText,i.push(d)}return i},calculate:(e,t,n)=>(0,v8[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:b8}}(e)}var S8={TYPES:{AVERAGE:"properties.trendlines.types.average",LINEAR:"properties.trendlines.types.linear",POLYNOMIAL2:"properties.trendlines.types.polynomial2",POLYNOMIAL3:"properties.trendlines.types.polynomial3",POLYNOMIAL4:"properties.trendlines.types.polynomial4",EXPONENTIAL:"properties.trendlines.types.exponential",LOG:"properties.trendlines.types.logarithmic",POWER:"properties.trendlines.types.power"},STYLE:{DASHED:"properties.trendlines.style.dashed"},TYPE:"properties.trendlines.type",HEADER:"properties.trendlines",ADD_BUTTON:"properties.trendlines.button.add"},k8={color:"#f93f17",index:9};const{isDark:M8}=Wy,C8={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},E8=({layoutService:e,viewState:t,colorModel:n,chart:r,env:i,keys:{colorScale:o},isEnabled:a=()=>!1})=>{const{translator:s}=i,l=[C8],c=[],u=[],d=w8(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(c.push(...e.qTrendLines),u.push(...e.qTrendLines.map((()=>t))))}));const f=hC((e=>{const{style:t}=c[e]||{},i=n.settings();if(t.autoColor){if("measure"===i.mode){const t=u[e],n=r.scale(o)(t);return M8(n)?function(e){const t=Hy(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=Hy(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(k8)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!c.length&&a(),getData:()=>l,getStroke:f,getLineDash:e=>{const{style:t}=c[e]||{};return null==t?void 0:t.lineDash},getLineThickness:e=>{var t;const{style:n}=c[e]||{};return null!==(t=null==n?void 0:n.lineThickness)&&void 0!==t?t:2},getLabel:e=>(c[e]||{}).label,getType:e=>{const{qType:t}=c[e]||{};return s.get(S8.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return c.forEach((r=>{const i=d.findMinMax(e.meta.size.y,r);t=Math.min(i.min,t),n=Math.max(i.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=c[e];return d.calculate(r,t,n)}},command:{update:()=>{l.length=0,c.forEach(((e,t)=>{const n=d.generate(e,t,u[t]);l.push(...n)}))}}}};var q8={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const D8=({meta:e})=>e.isContinuous?({scale:e,datum:t})=>e(t.value):e.isGroupedByMeasure?({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2:({scale:e,datum:t})=>e(t.value)+e.bandwidth()/2,T8=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:i})=>{if(!n.query.hasTrendLines())return[];const o=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:i,animationsEnabled:o})=>{const a=D8(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:q8,settings:{connect:!0,orientation:i.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:({datum:e})=>n.query.getLineThickness(e.layer.value),stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:o,trackBy:zq.nonUpdatingNode.trackBy,compensateForLayoutChanges:zq.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:i}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:i})=>{const o=D8(r),a="horizontal"===i.meta.major.orientation,s={scale:e,fn:o},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:q8,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[o,a]};function N8(e,t){const{getLabel:n,getType:r,getLineDash:i,getStroke:o}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:o(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":i(t.data.layer.value)}},l={content:[{content:n(t.data.layer.value),style:{"font-weight":"bold"}},{content:r(t.data.layer.value)}],style:{"min-width":"136px"}};return{title:t.data.dimValue.label,row:[s,l,{content:a.formatter(e.formatter)(t.data.minor.value)}]}}}function O8(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Ug.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const i=function(e,t){return Array.isArray(t.content)?e("div",{style:{display:"flex","flex-direction":"column"}},t.content.map((t=>e("span",{style:t.style,direction:Ug.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:"16px",x2:"16px",y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},t)}(e):t.content}(t,e);return t("td",r,i)}))}function A8(e,t){return({h:n,data:r,style:i})=>{const o=r[0].title,a=r.filter((e=>e.title===o)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:Ug.detectTextDirection(t)},t);return e("tr",{},n)}(n,o),l=[s];if(a.slice(0,2).forEach((e=>{l.push(n("tr",{},O8(e.row,{h:n,style:i})))})),r.length>2){const i=r.length-2;l.push(...function(e,t,n,r){const i=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,o=Ug.detectTextDirection(i);return[e("tr",{},e("td",{style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:3},"")),e("tr",{},e("td",{style:{"font-weight":"bold","text-align":n?"right":"left",direction:o},colspan:3},i))]}(n,e,t,i))}return l}}function _8(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:i}=r,o=Hg({key:e.tooltip,rtl:i});return vg(!0,o,{settings:{extract:N8(e,t),content:A8(n,i),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function L8(e,t){const n=t.element.getBoundingClientRect();return{x:(e.center?e.center.x:e.clientX)-n.left,y:(e.center?e.center.y:e.clientY)-n.top}}function I8(e,{chart:t,viewState:n,trendLineModel:r,layoutService:i,rtl:o}){const{isContinuous:a}=i.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=L8(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:i}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=L8(r,t),c=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(c.length){const r=function(e,t,n,r){let i=(e.x-t.rect.computed.x)/t.rect.computed.width;i=r?1-i:i;const{min:o,max:a}=n.get("zoom");return o+(a-o)*i}(l,a,n,o),s=t.scale(e.majorInnerScale),u=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);c.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=u,e.data.minor.value=i(e.data.layer.value,r).y}))}return c}}return n=>{const r=t.component(e.tooltip);if(r&&(n=>t.componentsFromPoint({x:n.center?n.center.x:n.clientX,y:n.center?n.center.y:n.clientY}).some((t=>t.key===e.tooltipOverlay)))(n)){const e=l(n,r);return e.length?(r.emit("show",n,{nodes:e}),!0):(r.emit("hide"),!1)}return!1}}const R8=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},P8=e=>{R8(e),e.qMultiDimMode="Sum",e.qXColIx=0};function z8(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!Ag.dimensionless(n)&&!Ag.groupedByDimension(n)&&(r||!Ag.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:S8.HEADER,itemTitleRef:e=>{const n=typeof e.label;return"string"===n&&e.label?e.label:"object"===n?e.label.qStringExpression?e.label.qStringExpression.qExpr:e.label.qValueExpression.qExpr:t.get(S8.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:S8.ADD_BUTTON,add:P8,globalChange:e=>{const t=cC(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!cC(e,"dimensionAxis.continuousAuto",!1)&&e.preferContinuousAxis)(e)?"Possible":"Never";t.forEach((e=>{e.qContinuousXAxis=r})),n.onGlobalChange(e,t)},items:{label:{ref:"label",type:"string",expression:"optional",translation:"Common.Label",defaultValue:""},type:{ref:"qType",type:"string",component:"dropdown",translation:S8.TYPE,options:[{value:c8,translation:S8.TYPES.AVERAGE},{value:u8,translation:S8.TYPES.LINEAR},{value:d8,translation:S8.TYPES.POLYNOMIAL2},{value:f8,translation:S8.TYPES.POLYNOMIAL3},{value:h8,translation:S8.TYPES.POLYNOMIAL4},{value:p8,translation:S8.TYPES.EXPONENTIAL},{value:m8,translation:S8.TYPES.LOG},{value:g8,translation:S8.TYPES.POWER}],defaultValue:c8},autoColor:{ref:"style.autoColor",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},paletteColor:{ref:"style.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:k8,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:S8.STYLE.DASHED,type:"boolean",defaultValue:!0,change:R8}}}}var F8={};function j8(){j8.init.call(this)}F8.isObject=function(e){return"object"==typeof e&&null!==e},F8.isNumber=function(e){return"number"==typeof e},F8.isUndefined=function(e){return void 0===e},F8.isFunction=function(e){return"function"==typeof e};var B8=j8;j8.EventEmitter=j8,j8.prototype._events=void 0,j8.prototype._maxListeners=void 0,j8.defaultMaxListeners=10,j8.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},j8.prototype.setMaxListeners=function(e){if(!F8.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},j8.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],F8.isUndefined(n))return!1;if(F8.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(F8.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},j8.prototype.addListener=function(e,t){var n;if(!F8.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,F8.isFunction(t.listener)?t.listener:t),this._events[e]?F8.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,F8.isObject(this._events[e])&&!this._events[e].warned)&&((n=F8.isUndefined(this._maxListeners)?j8.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,F8.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),F8.isFunction(console.trace)&&console.trace()));return this},j8.prototype.on=j8.prototype.addListener,j8.prototype.once=function(e,t){if(!F8.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},j8.prototype.removeListener=function(e,t){var n,r,i,o;if(!F8.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||F8.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(F8.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},j8.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],F8.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},j8.prototype.listeners=function(e){return this._events&&this._events[e]?F8.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},j8.listenerCount=function(e,t){return e._events&&e._events[t]?F8.isFunction(e._events[t])?1:e._events[t].length:0};var H8=og(B8);const V8={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"}}]};function $8(){const[t]=e.useState({}),[n]=e.useState({}),r=function(){var t,n;const r=e.useLayout(),i=e.useTranslator(),o=!(null==r||null===(t=r.qSelectionInfo)||void 0===t||!t.qInSelections),a=!(null==r||null===(n=r.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n||null===(n=n[0])||void 0===n||!n.qIsOneAndOnlyOne),[s,l]=e.useState(!1),[c,u]=e.useState(!1),[d,f]=e.useState({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),h=e=>{u("boolean"==typeof e?e:!c)};return e.useAction((()=>(f({key:"lasso",action:h,enabled:()=>s,active:()=>c}),{key:"lasso",label:i.get(c?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:V8,hidden:!s||!o||a,active:c,action:h})),[o,a,c,s,i.language()]),{get:()=>d,setAllows:e=>{l(!!e)}}}(),[i,o]=e.useState();return e.useEffect((()=>{const e={};e.scroll={key:"scroll",isActive:!0,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled(){const{layoutService:e,discrete:r}=t;return n.allowScroll&&((null==e?void 0:e.meta.isContinuous)||(null==r?void 0:r.query.getCanScroll()))}},e.interact={key:"interact",isEnabled:!0,enabled:()=>n.allowInteract},e.tooltip={key:"tooltip",isActive:!0,isEnabled:!0,action(e){this.isActive=!!e},active(){return this.isActive},enabled:()=>n.allowTooltip},e.select={key:"select",isActive:!1,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled:()=>n.allowSelect},e.lasso=r.get(),Object.keys(e).forEach((t=>{return n=e[t],Object.keys(H8.prototype).forEach((e=>{n[e]=H8.prototype[e]})),H8.init(n),n;var n})),o(e)}),[]),e.useEffect((()=>{i&&r&&(i.lasso={...i.lasso,...r.get()})}),[r]),{get:()=>i,setAllows:e=>{Object.assign(n,e),r.setAllows(null==e?void 0:e.allowSelect)},setContext:e=>{Object.assign(t,e)},destroy:()=>{Object.keys(i).forEach((e=>i[e].removeAllListeners()))}}}var W8={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}},U8={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",BAR_AXIS:"bar-axis",GROUP_AXIS:"group-axis",BAR_OOB_MAX:"bar-oob-max",BAR_OOB_MIN:"bar-oob-min",STACK_TOTAL_BAR:"stack-total-bar",BASE_TOOLTIP:"tooltip",SPACE:"space",LEGEND_CAT_TOOLTIP:"legend-cat-tooltip",LEGEND_COLOR_CAT:"legend-color-cat",MEASURE_REF_LINE:"mes-ref-line",DIMENSION_REF_LINE:"dim-ref-line",MEASURE_REF_LINE_LABEL:"mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label",TREND_LINES_TOOLTIP:"trend-lines-tooltip",TREND_LINES_TOOLTIP_OVERLAY:"trend-lines-tooltip-overlay"},COLLECTION:{MAIN:"main-collection",MINI:"mini-collection",MINI_STACK:"mini-stack-collection",MINI_CONTINUOUS:"mini-continuous-collection",STACK_TOTAL:"stack-total-collection"},FORMATTER:{MINOR:"bar",COLOR:"fill"}};const Y8=({layout:e,flags:t})=>{var n,r,i,o;if(null==t||!t.isEnabled("TLV_800_BUTTERFLY_CHART"))return!1;const a=null==e||null===(n=e.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})),s=null==e||null===(r=e.qHyperCube)||void 0===r||null===(r=r.qMeasureInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})),l=null!==(i=null==a?void 0:a.length)&&void 0!==i?i:0,c=null!==(o=null==s?void 0:s.length)&&void 0!==o?o:0;return 1===l&&2===c},K8=e=>({layout:t})=>{var n;const r=Cg.canBeContinuous(t),i=Ag.continuous(t),o=Ag.dimensionless(t),a=Y8({layout:t,flags:e})&&"butterfly"===(null==t||null===(n=t.barGrouping)||void 0===n?void 0:n.grouping);return{canBeContinuous:r,isDiscrete:!i,isContinuous:i,isTime:Cg.isTime(i,t),isDimensionless:o,isSimple:Ag.simple(t),isGrouped:!a&&Ag.grouped(t),isGroupedByMeasure:!a&&Ag.groupedByMeasure(t),isGroupedByDimension:!a&&Ag.groupedByDimension(t),isStacked:!a&&Ag.stacked(t),isStackedByDimension:!a&&Ag.stackedByDimension(t),isStackedByMeasure:!a&&Ag.stackedByMeasure(t),isSnapshot:Ag.snapshot(t),isButterfly:a}};function G8(e,t,n="/qHyperCubeDef"){return{fetch(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Lg).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"),l=o?[]:t.getHyperCubeValue("qColumnOrder");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"),qColumnOrder:l}}}))}(e,t,this.settings())},settings(){const e=t.getHyperCubeValue("qDimensionInfo"),r=t.meta.isStacked&&e.length>1?1:0,i=t.getHyperCubeValue("qMeasureInfo");return{path:n,rect:{qTop:0,qLeft:r,qWidth:e.length+i.length+r,qHeight:Math.min(2e3,1e4/(i.length+1))},zoomLevel:-1,filter:"D1"}}}}function X8({enigma:e,layoutService:t,viewModel:n,definitionPath:r,reducedHyperCubePath:i},o={}){const a=G8(e,t,r),s=function(e,t="reducedHyperCube"){return{fetch:()=>Promise.resolve({reducedCube:e.getLayoutValue(t)||e.getHyperCube()})}}(t,i),l=function(e){return{fetch:()=>{const t=e.getHyperCube(),n={...t,qDataPages:t.qDataPages.slice()};return Promise.resolve({reducedCube:n})}}}(t),c=function({layoutService:e}){const{isSnapshot:t,isStackedByDimension:n}=e.meta,r=e=>{e.qDimensionInfo.unshift({key:"dummy-patch-dimension"})};return r.should=e=>t&&n&&1===e.qDimensionInfo.length,r}({layoutService:t}),u={mode:{isReduced:!1}};return{fetch(){if(t.meta.isSnapshot)return s.fetch();if(t.meta.isContinuous)return l.fetch();if(!t.meta.isStacked){if(t.getHyperCubeValue("qSize.qcy",NaN)===t.getHyperCubeValue("qDataPages.0.qArea.qHeight",NaN))return l.fetch()}return a.fetch()},model:()=>u,update(e){var r;c.should(e)&&c(e),u.mode=vg(u.mode,t.meta),u.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,u.mode.isStackedByDimension=u.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),u.mode.isStackedByMeasure=u.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),u.fields={major:u.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:u.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},u.scales={major:U8.SCALE.REDUCED.MAJOR,minor:U8.SCALE.REDUCED.MINOR},u.cube=e,o.qDataPages=e.qDataPages},fetchMinMaxData(){if(o.qDataPages)return Promise.resolve(o.qDataPages);let n=a.settings();const r="K"===t.getHyperCubeValue("qMode")?1:n.rect.qHeight;return n=vg(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=u.cube}}}function J8({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:i}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==i.event&&r({componentName:"continuousRangeBrush",brushName:!1})}function Z8({layout:e,defaultAuto:t}){return e.qHyperCube.qDimensionInfo.length>1?{mode:"byDimension",useDimColVal:!0,useBaseColors:"dimension",byDimDef:{activeDimensionIndex:1}}:e.qHyperCube.qMeasureInfo.length>1?{mode:"primary",useBaseColors:"measure",paletteColor:null}:t(e)}const Q8={getMaxGlyphCount(e,t){const{qDimensionInfo:n}=e,{qApprMaxGlyphCount:r}=n[t];return r},getDimensionSize(e){var t;const n=null==e||null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal,{qLocked:r=0,qOption:i=0,qSelected:o=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+i+o:n}};function e7({picasso:t,chart:n,environment:r,viewState:i,viewCache:o}){const a=e.useStaleLayout(),s=e.useModel(),l=e.useApp(),c=e.usePlugins(),u=e.useSelections(),d=e.useOptions(),[f,h]=e.useState(),[p,m]=e.useState(),[g,y]=e.useState(),v=e.useConstraints(),b=$8();return e.useEffect((()=>{if(!n)return()=>{};const e=b.get(),t=function({chart:e,actions:t,selections:n}){const r=e.scale(U8.SCALE.MAIN.MAJOR),i=Eq({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:J8},custom:{getActions:()=>t},setBrushAliases({defaultFunc:e,brush:t}){e(),t.addKeyAlias("miniCube/qDimensionInfo/0","qHyperCube/qDimensionInfo/0"),t.addKeyAlias("miniCube/qDimensionInfo/1","qHyperCube/qDimensionInfo/1")}}});return i}({chart:n,actions:e,selections:u});return m(e),y(t),()=>{t.destroy(),b.destroy()}}),[n]),e.useEffect((()=>{if(!v)return;const e={allowScroll:!v.active,allowInteract:!v.active,allowTooltip:!v.passive,allowSelect:!v.select&&!v.active};b.setAllows(e)}),[v]),e.useEffect((()=>{if(!g||!r)return;const{theme:e,translator:u,localeInfo:f,flags:m,embed:y}=r,{direction:v="ltr"}=d,x=xC({source:a,metaAdditionsFn:K8(m),experimental:{filter:!0}});g.setFilteredFields(x.meta.filteredFields);const w=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(x.getLayout())?xC({source:x.getLayout()}):void 0,S=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:a,options:d}),k=function({layoutService:e,viewCache:t,options:n}){const r={};return r.fields=function(e){const{meta:t}=e,n={majorGroup:t.isGroupedByDimension?"qDimensionInfo/0":void 0,majorStack:t.isStacked?"qDimensionInfo/0":void 0,major:t.isDimensionless?void 0:"qDimensionInfo/"+(t.dimensionCount-1),majors:e.getHyperCubeValue("qDimensionInfo").map(((e,t)=>`qDimensionInfo/${t}`)),minor:e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>`qMeasureInfo/${t}`))};return n.majorNumeric=`${t.isStackedByDimension?n.majorStack:n.major}:numeric`,n}(e),r.selectionDimensionIdx=(e=>{const t=e.qDimensionInfo.length;for(let n=0;n<t;n++){const r=e.qDimensionInfo[n];if(!(r.qLocked||r.qCardinalities.qHypercubeCardinal<=1&&n<t-1))return n}})(e.getHyperCube()),r.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,r.selectionDimensionProp=e=>void 0===r.selectionDimensionIdx||void 0!==e&&r.selectionDimensionIdx!==e?{}:{selectionDimension:{field:r.selectionDimensionIdx}},r.animations={enabled:()=>!(!1===n.chartAnimations||r.animations.isPartialUpdating||r.animations.isSizeChanging||r.animations.hasSlicedHats||zq.propertiesHaveChanged({viewCache:t,layout:e.getLayout()})),isPartialUpdating:!1,isSizeChanging:!1,hasSlicedHats:!1},r}({layoutService:x,viewCache:o,options:d}),M=lC({chart:n,layoutService:x,config:{logicalSize:S,rtl:"rtl"===v},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),C=function({layoutService:e}){return ZM({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0,LimitedData:{condition:()=>{const{isContinuous:t,isTwoDimensional:n}=e.meta;if(!t||!n)return!1;const r=e.getLayout().qHyperCube.qDimensionInfo[1];return Q8.getDimensionSize(r)>Cg.maxNumberOfLines}},OnlyNegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.every((e=>{const{qMin:t,qMax:n}=e;return t<0&&n<0}))}return!1},alignment:"center"},NegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.some((e=>{const{qMin:t}=e;return t<0}))}return!1}}}}})}({layoutService:x}),E=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:_q(a),styles:void 0};return d.styles=Iq({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=Iq({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:e,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),q=YK.model({model:s,layoutService:x,viewCache:o,viewState:i}),D=X8({enigma:s,layoutService:x,viewModel:k});!function({layoutService:e,viewState:t,viewStateOptions:n={}}){const r=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):n;t.preventSet("scrollOffset",r.scrollOffset),t.preventSet("legendScrollOffset",r.legendScrollOffset||0),r.zoom&&t.preventSet("zoom",r.zoom)}({layoutService:x,viewState:i,viewStateOptions:null==d?void 0:d.viewState});const T=function({app:e,model:t,translator:n,picasso:r,localeInfo:i,theme:o,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:c}){const{isContinuous:u,isStacked:d}=s.meta,f={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const h=[],{isReduced:p}=c.model().mode,m=u||p||d,g=!u&&(p||d)&&l?l.getHyperCube():void 0,y=g?"legendCube":void 0;return f.main=YM({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:Z8,key:U8.SCALE.MAIN.COLOR},createConfig:()=>({hc:m?g||s.getHyperCube():c.model().cube,source:m?y:"miniCube",theme:o})}),h.push(f.main.initialize()),u&&(f.mini=YM({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:Z8,key:U8.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:o})}),h.push(f.mini.initialize())),Promise.all(h)},getMain:()=>f.main,getMini:()=>f.mini}}({picasso:t,model:s,app:l,translator:u,localeInfo:f,theme:e,continuousDataModel:q,layoutService:x,legendLayoutService:w,reducedDataModel:D}),N=function(e){var t,n=e.app,r=e.translator,i={initialized:!1,dimensions:[],measures:[]};return{initialize:(t=VS(KS().mark((function e(t){var o,a,s,l,c,u,d;return KS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.properties,!i.initialized){e.next=3;break}return e.abrupt("return");case 3:return s=[hk(a={app:n,translator:r,properties:o}),gk(a)],e.next=7,Promise.all(s);case 7:l=e.sent,c=GS(l,2),u=c[0],d=c[1],i.dimensions=u,i.measures=d,i.initialized=!0;case 12:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),getAlternatives:function(){return{dimensions:XS(i.dimensions),measures:XS(i.measures)}}}}({app:l,translator:u}),O=function({layoutService:e,themeService:t,colorService:n}){const r=t.getStyles(),i=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,o,a;const s=null===(e=i("axis"))||void 0===e||null===(e=e.axis)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.axis.title.fontFamily,fontSize:null!==(o=null==s?void 0:s.fontSize)&&void 0!==o?o:r.axis.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.axis.title.color}}},label:{getStyle:()=>{var e,t,o,a;const s=null===(e=i("axis"))||void 0===e||null===(e=e.axis)||void 0===e||null===(e=e.label)||void 0===e?void 0:e.name,l=n.getMain().getPaletteColor;return{fill:null!=s&&null!==(t=s.color)&&void 0!==t&&t.color?l(null==s?void 0:s.color):r.axis.label.name.color,fontSize:null!==(o=null==s?void 0:s.fontSize)&&void 0!==o?o:r.axis.label.name.fontSize,fontFamily:null!==(a=null==s?void 0:s.fontFamily)&&void 0!==a?a:r.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,o,a;const s=null===(e=i("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.title.fontFamily,fontSize:null!==(o=null==s?void 0:s.fontSize)&&void 0!==o?o:r.legend.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.title.color}}},label:{getStyle:()=>{var e,t,o,a;const s=null===(e=i("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.label,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.label.fontFamily,fontSize:null!==(o=null==s?void 0:s.fontSize)&&void 0!==o?o:r.legend.label.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.label.color}}}},label:{getStyle:()=>{var e,t,o,a,s;const l=null===(e=i("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.value,c=n.getMain().getPaletteColor;return{fill:null!=l&&null!==(t=l.color)&&void 0!==t&&t.color?c(null==l?void 0:l.color):r.label.value.color,useContrastColor:null===(o=null==l?void 0:l.useContrastColor)||void 0===o||o,fontSize:null!==(a=null==l?void 0:l.fontSize)&&void 0!==a?a:r.label.value.fontSize,fontFamily:null!==(s=null==l?void 0:l.fontFamily)&&void 0!==s?s:r.label.value.fontFamily}}}}}({layoutService:x,themeService:E,colorService:T}),A=E8({layoutService:x,viewState:i,colorModel:{settings:()=>T.getMain().getSettings(),resolveUIColor:e=>T.getMain().getPaletteColor(e)},chart:n,env:r,keys:{colorScale:U8.SCALE.MAIN.COLOR},isEnabled:()=>!x.meta.isGroupedByDimension&&(!x.meta.isStackedByDimension||m.isEnabled("TRENDLINES_STACKED_DIM"))&&!x.meta.isDimensionless});v6.attrExpr.updateProperties(s,a);const _=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:u6,miniChartToken:{},embed:s}}({layout:a,app:l,model:s,picasso:t,chart:n,translator:u,localeInfo:f,embed:y});let L;x.meta.isDiscrete&&(L=l8({chart:n,actions:p,componentKey:U8.COMPONENT.BAR,enigmaModel:s,layoutService:x,dockService:M,trendLineModel:A,itemWidths:W8,viewState:i,rtl:"rtl"===v,options:{axisKey:U8.COMPONENT.BAR_AXIS,renderer:t.renderer("svg")()}}));const I=Uq({layoutService:x,discreteModel:L}),R=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:U8.SCALE.MAIN.MINOR,MAJOR:U8.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:U8.COMPONENT.BAR,BAR_AXIS:U8.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:U8.COLLECTION.MAIN}}}}(x),P=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 VS(KS().mark((function e(){var r,a,s,l;return KS().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=VS(KS().mark((function e(n){var r;return KS().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(US({},i));case 4:if("object"===JS(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(US({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,XS(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=GS(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=bk(!0,{},n.brush);bk(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===JS(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=wC({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=wC({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:c||[],pluginArgs:R});b.setContext({discrete:L,layoutService:x}),h({alternativeService:N,discrete:L,continuous:YK,legendLayoutService:w,layoutService:x,viewModel:k,dockService:M,themeService:E,styleService:O,continuousDataModel:q,reducedDataModel:D,colorService:T,trendLineModel:A,refLineModel:I,pluginService:P,customTooltipModel:_,selectionService:g,logicalSize:S,disclaimerService:C})}),[g,d,r,a]),f}function t7(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function n7(e){return e.some(t7)}function r7(e,t){let n=NaN,r=NaN;return e.forEach((e=>{n7(e)||e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(n=Number.isNaN(n)?e.qNum:Math.min(e.qNum,n),r=Number.isNaN(r)?e.qNum:Math.max(e.qNum,r))}))})),{min:n,max:r}}function i7(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");e.meta.isButterfly||"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"),e.meta.isButterfly&&(t=-n))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function o7(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!n7(e)){let i=0,o=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?o+=e.qNum:i+=e.qNum)})),n=Number.isNaN(n)?i:Math.min(i,n),r=Number.isNaN(r)?o:Math.max(o,r)}})),{min:n,max:r}}function a7(e,t){const n={};e.forEach((e=>{if(!n7(e)){const r=e[0].qElemNumber;n[r]=n[r]?n[r]:{min:0,max:0,cId:r},e.slice(t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?n[r].max+=e.qNum:n[r].min+=e.qNum)}))}}));let r=NaN,i=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),i=Number.isNaN(i)?n[e].max:Math.max(n[e].max,i)})),{min:r,max:i}}function s7(e){return"number"==typeof e&&!Number.isNaN(e)}function l7(e){const{meta:t}=e,n=e.getHyperCubeValue("qMeasureInfo");return t.isButterfly?{min:Math.min(0,s7(n[1].qMax)?-n[1].qMax:0),max:Math.max(0,s7(n[0].qMax)?n[0].qMax:0)}:{min:Math.min(...n.filter((e=>s7(e.qMin))).map((e=>e.qMin))),max:Math.max(...n.filter((e=>s7(e.qMax))).map((e=>e.qMax)))}}const{isNumber:c7}=eS;function u7(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function d7(e){return!Number.isNaN(+e.qNum)}function f7(e){return e.qNum}function h7(e){return!Number.isNaN(+e.qNum)}function p7(e){return e.qNum}function m7(e,t){return e.push(...t),e}const{getValueWithOffset:g7,isNumber:y7}=eS;function v7(e,t){return Math.abs(e/t)<5||0===t}function b7({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=o7,stackedByDimensionExtractor:i=a7,straightExtractor:o=r7,measureInfoExtractor:a=l7,explicitExtractor:s=i7}=n,{meta:l}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:i}){let o,a;if(Array.isArray(n)?({min:o,max:a}=this.extractFromStacked(n)):({min:o,max:a}=this.extractFromStraight(e,i)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();o=Number.isFinite(e)?Math.min(o,e):o,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),c=this.extractExplicit(),u=[0,o,a].filter((e=>y7(e)));let d=Math.min(...u),f=Math.max(...u);d=v7(s,d)?Math.min(d,s):d,f=v7(l,f)?Math.max(f,l):f;const h=[c.explicitMin,c.explicitMax,d,f].filter((e=>y7(e)));return o=Number.isNaN(c.explicitMin)?Math.min(...h):c.explicitMin,a=Number.isNaN(c.explicitMax)?Math.max(...h):c.explicitMax,o===a&&(Number.isNaN(c.explicitMin)?o=g7(o,-.2):Number.isNaN(c.explicitMax)&&(a=g7(a,.2))),{min:o,max:a,implicitMin:d,implicitMax:f,otherMin:s,otherMax:l,hasOtherMin:s<o,hasOtherMax:l>a,...c}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:i}=s(e);return{hasExplicitMinMax:r||i,hasExplicitMin:r,hasExplicitMax:i,explicitMin:t,explicitMax:n}},extractFromStacked:e=>function(e){return e.length?{min:Math.min(...e[0].qSubNodes.filter((e=>c7(e.qMinNeg))).map((e=>e.qMinNeg))),max:Math.max(...e[0].qSubNodes.filter((e=>c7(e.qMaxPos))).map((e=>e.qMaxPos)))}:{min:0,max:0}}(e.length?e[0].qData:[]),extractFromStraight(t,n){const s=t.length?t[0].qMatrix:[];return l.isStackedByMeasure?r(s,n):l.isStackedByDimension?i(s,n):e.getHyperCubeValue("qHasOtherValues")?o(s,n):a(e)},extractOthers:e=>l.isStackedByDimension?function(e){const t=u7(cC(e,"0.qData.0.qSubNodes",[]),t7,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):l.isGroupedByDimension?function(e){const t=cC(e,"0.qMatrix",[]).filter(n7).reduce(m7,[]).filter(h7).map(p7);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=u7(cC(e,"0.qMatrix",[]),n7,[]).filter(d7).map(f7);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function x7(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:i}=t,o=e=>!e.length&&r.mode.K,a=e=>{const t=i("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=i("qMeasureInfo").length,s=i("qDimensionInfo").length,l=i("qHasOtherValues");if(!r.isStacked&&!l)return Promise.resolve({qDataPages:[{}],count:t});if(r.isContinuous){const e=r.isStackedByDimension?s:t;return n.fetchMinMaxData().then((t=>({qDataPages:t,count:e})))}const c=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(o(e))return a(l);let t=[];return l&&(t=r.mode.K?i("qStackedDataPages",[]):i("qDataPages",[])),{qDataPages:e,count:c,others:t}}))}}}(e),n=b7(e);return t.resolve().then((e=>n.extract(e)))}const w7="lasso",S7=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:w7,enable(e,n){if(this.started===w7||!n)return!0;if(!i.actions.select.enabled()||!i.actions.lasso.enabled()||!i.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==w7&&(i.actions.select.emit("start",w7),this.chart.component(e).emit("lassoStart",t),this.started=w7)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof i.updateOnMove&&i.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),i.actions.select.emit("end",w7),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const k7=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:i="tap"},o)=>{let a;const s=o.customTooltipModel?o.customTooltipModel.utils:void 0,l=s?o.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:i,interval:10,pointers:1,enable(t,n){return!n||!(!o.actions.select.enabled()&&!o.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[i](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}(t,this.chart),c=o.hitRadius?o.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=o.shapesAt?o.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),f=this.chart.component("tooltip"),h="mouse"!==t.pointerType&&f&&f.show;if(!o.isLocked(a)&&!o.tooltipOnly&&o.actions.select.enabled()){const e=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}),n=e.some((e=>"legend-cat"===e.type));if(!d.length&&n||(this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1,o.actions.select.emit("start",i,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),o.actions.select.emit("end",i),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:o.largeDataService,chart:this.chart})}}if(f&&o.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=o;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,f,{nodes:n,opts:o,customTooltipModel:e})}else f.emit("show",t,{nodes:d})}else h&&f.emit("hide")}}}};const M7=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},i)=>({prio:1,key:`event:${e}-tap`,type:"Tap",requireFailure:t,recognizeWith:n,options:{event:`${r}-${e}-tap`,interval:10,pointers:1,enable:(t,n)=>!!n&&(!!i.actions.select.enabled()&&(!(!n.target||"INPUT"!==n.target.nodeName)||!(!n.target||!n.target.hasAttribute("data-other-value"))&&(n.target.getAttribute("data-key")||"").split("-bubble")[0]===e))},events:{[`${r}-${e}-tap`](t){(t.target.getAttribute("data-key")||"").split("-bubble")[0]&&(t.preventDefault(),this.chart.component(e).emit("bubbleStart",t))}}});const C7=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:i},o,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:i,options:{event:e,enable(r,i){if(this.started===e||!i)return!0;if(!o.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((e=>-1!==n.indexOf(e.key))),s=0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(`${t}-`))}(i,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),o.actions.select.emit("start",e),this.chart.component(t).emit(`${a}Start`,n),this.started=e},[`${e}move`](e){e.preventDefault(),this.chart.component(t).emit(`${a}Move`,e),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),o.actions.select.emit("end",e),this.started=!1,"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});function E7(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:i,targetFillSelector:o,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:f}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:f?{bubbleEnd(){f()}}:{},settings:{brush:c?{context:"selection",observe:!0}:"selection",scale:s,multiple:u,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:i,fillSelector:o,fill:"rgba(82,204,82,0.2)"}}}}(e),r=C7(e,t,"range");return{interactions:[e.onEdited?M7(e,t):null,r].filter(Boolean),components:[n]}}const q7={refLines:{minimumLayoutMode:"SPARK"},measureAxisTitle:{minimumLayoutMode:"XSMALL"},dimensionAxisTitle:{minimumLayoutMode:"XSMALL"},measureAxis:{minimumLayoutMode:"XSMALL"},dimensionAxis:{minimumLayoutMode:"XSMALL"},gridLines:{minimumLayoutMode:"XSMALL"},refLinesLabels:{minimumLayoutMode:"SMALL"},horizontalDimensionAxis:{minimumLayoutMode:{width:"XSMALL",height:"SMALL"}},verticalDimensionAxis:{minimumLayoutMode:{width:"SMALL",height:"XSMALL"}},horizontalDimensionAxisTitle:{minimumLayoutMode:{width:"XSMALL",height:"MEDIUM"}},verticalDimensionAxisTitle:{minimumLayoutMode:{width:"MEDIUM",height:"XSMALL"}}},D7="inner-time-axis",T7="outer-time-axis";const N7={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=Q8.getMaxGlyphCount(e,r)}else e.qMeasureInfo.forEach((e=>{n=Math.max(n,e.qFallbackTitle.length)}));return n},getAxisData(e,t){let n;return n=e.qDimensionInfo.length?cC(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=N7.getAxisData(e,t),r=!e.qDimensionInfo.length,i=r||t?void 0:e.qDimensionInfo.length-1,o=N7.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Fg.getAdjustedMaxGlyphCount(o,n,i,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=N7.getAxisData(e),n=Q8.getMaxGlyphCount(e,0);return Fg.getAdjustedMaxGlyphCount(n,t,0)}};var O7=3,A7=13;function _7(e,t,n,r){const{meta:i}=t.layoutService,o=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);i.isContinuous?o.push(...function(e,t,n,r){const{meta:i}=t.layoutService,{axis:o,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:c}=t.layoutService.getLayoutValue("gridLine",{}),u=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,f=q7[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,h={type:"grid-line",x:{},layout:{minimumLayoutMode:q7.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:zq.lines.trackBy,compensateForLayoutChanges:zq.lines.compensateForLayoutChanges}},p=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(i.isTime){if(d){const e=n?"end":"start",r=n?1:0,i="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:o.line.major.color},minorGuideLine:{stroke:o.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:i,justify:r},guideLine:{major:{justify:r},minor:{align:i}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:zq.axes.trackBy({isTime:!0}),compensateForLayoutChanges:zq.axes.compensateForLayoutChanges({isTime:!0})}};u.push(vg(!0,{},d,{key:D7,scale:U8.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===c}},style:vg(!0,{},a,{line:{stroke:o.line.major.color},majorGuideLine:{stroke:o.line.minor.color},minorGuideLine:{stroke:o.line.major.color}})})),u.push(vg(!0,{},d,{key:T7,scale:U8.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),u.push({type:"axis-overlay",key:"outer-axis-overlay",scale:U8.SCALE.MAIN.MAJOR,layout:{dock:`@${T7}`,minimumLayoutMode:f}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:U8.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${D7}`,minimumLayoutMode:f}}),u.push(p)}return u.push(vg(!0,{},h,{key:"inner-time-grid",x:{scale:U8.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),u.push(vg(!0,{},h,{key:"outer-time-grid",x:{scale:U8.SCALE.MAIN.MAJOR}})),u}if(i.isContinuous){const e="continuous-axis";d&&(u.push({type:"axis",key:e,renderer:Kq(t.flags),scale:U8.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:o.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:zq.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:zq.axes.compensateForLayoutChanges({isContinuous:!0})}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:U8.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:f}}),u.push(p)),u.push(vg(!0,{},h,{key:"continuous-grid",x:{scale:U8.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return u}(e,t,n,r)):o.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:i}=t.layoutService,o=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),c="horizontal"===t.dockService.meta.major.orientation,u=c?e.dimensionAxis.label:"auto",d="horizontal"===u?void 0:t.dockService.meta.minor.size/4,f=t.styleService.axis.label.getStyle(),h={type:"axis",renderer:Kq(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:q7[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:u,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...f},line:{show:!r,stroke:o.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:zq.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:zq.axes.compensateForLayoutChanges({isHorizontal:c})}};l&&a.push(vg(!0,{},h,{key:"group-axis",scale:U8.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":h.settings.labels.mode,maxGlyphCount:N7.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(c||!s)&&h.settings.line.show}}}));const p=N7.getBarAxisMaxGlyphCount(e.qHyperCube,i.isStackedByDimension);return s&&a.push(vg(!0,{},h,{key:U8.COMPONENT.BAR_AXIS,scale:U8.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:p,maxLengthPx:d,tiltThreshold:p>O7&&p<A7?1:void 0},line:{show:!(c&&l)&&h.settings.line.show}}})),c||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),c=t.styleService.axis.label.getStyle();return a&&o.push({type:"axis",key:"y-axis",renderer:Kq(t.flags),formatter:U8.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:q7.measureAxis.minimumLayoutMode},scale:U8.SCALE.MAIN.MINOR,settings:{labels:{show:s,...c},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}},animations:{enabled:t.viewModel.animations.enabled,trackBy:zq.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:zq.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),o}var L7={BAR:{STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};function I7({layoutService:e,discrete:t}){var n;const{isContinuous:r,isGrouped:i}=e.meta;if(r)return 1;const o=(e.getLayoutValue("components",[])||[]).filter((e=>"bar"===e.key))[0];if(null!=o&&null!==(n=o.style)&&void 0!==n&&n.width){const{style:e}=o;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=L7.BAR.STROKE.WIDTH[e.strokeWidth.toUpperCase()]/t.query.getItemSize(),r=e.width+n;return r>1?e.width-(r-1):e.width}:e.width}return i?.9:.7}const R7={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function P7(e,t,n={}){return({data:r})=>{const i=e.chart.component(t).rect;if(!r.items.length||!i)return 2;const{min:o,max:a}=e.viewState.get("zoom");if(n[[o,a]])return n[[o,a]];const s=R7[wg.getLayoutMode(i.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-o),c=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===c)return s;const u=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/c/.2,1));return n[[o,a]]=Math.max(2,Math.min(s,u)),n[[o,a]]}}function z7(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function F7(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function j7(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function B7(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const H7="max",V7="min",$7={min:"Min",max:"Max"};function W7(e,t,n){return void 0===n?z7(e,t)||F7(e,t):n===H7?z7(e,t):F7(e,t)}function U7({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${$7[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===H7?e.implicitMax:e.implicitMin;return!W7(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function Y7(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:i,dockService:o,themeService:a}=e,s=i.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===H7?s.implicitMax:s.implicitMin;if(!W7(Number(l.toFixed(13)),s,n))return!1;const{orientation:c}=t.settings,u=n===H7?o.meta.minor.end:o.meta.minor.start;let d="end";r&&(d=n===H7?"sumOfPositives":"sumOfNegatives");const f=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:u},data:t.data,brush:t.brush,settings:{orientation:c,major:t.settings.major,minor:t.settings.minor,dockValue:Ig.getDockValue(u),oob:vg({},t.settings.box,{fill:f.outOfRange.color,alignment:1,opacity:1,show:function(e){var t;return!0!==(null===(t=e.datum.null)||void 0===t?void 0:t.value)&&((!r||0!==e.datum[d].value)&&W7(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:zq.barOobs.compensateForLayoutChanges}}}function K7(e){return Math.min(Math.max(0,e),1)}const G7=(e,{chart:t,type:n,componentKey:r,collectionKey:i})=>{const{layoutService:o,dockService:a,viewCache:s}=e,{isStacked:l}=o.meta,c=s.get("minorMinMax"),{meta:u}=e.layoutService;if(!U7({minorMinMax:c,type:n}))return!1;let d;u.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:u.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const f={type:"box",key:`${U8.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:i},settings:{orientation:a.meta.minor.orientation,major:{scale:U8.SCALE.MAIN.MAJOR,fn:d},minor:{scale:U8.SCALE.MAIN.MINOR,start(e){var n;return K7(t.scale(U8.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(n=n.start)||void 0===n?void 0:n.value)||0))},end(e){const r=t.scale(U8.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r[n]();return K7(r(o))}},box:{width:I7({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(U8.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r.max();return"max"===n?o>r.max():o<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return f};function X7(e,t){const{style:n,styleService:r,dockService:i}=t,o=r.label.getStyle(),a=o.useContrastColor&&!e.onBackground?function(e){return function(t){return Wy.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):o.fill,s="horizontal"===i.meta.major.orientation,l=e.padding||{left:s?0:4,right:s?0:4,top:s?4:0,bottom:s?4:0};return{position:e.position,justify:e.justify,fill:a,overflow:e.overflow,background:e.background,padding:l}}function J7(e){return{placements:e.simplifiedPlacements.map((t=>X7(t,e))),label:e.label}}function Z7(e,t){if(t){if(function(e,t){return z7(e,t)}(e,t))return-1;if(function(e,t){return F7(e,t)}(e,t))return 1}return function(e,t){if(t&&0===e){const{min:e,max:n}=t;return 0===n&&0===e?1:n<=0?-1:e>=0||n>=-e?1:-1}return e>=0?1:-1}(e,t)}function Q7(e,t,n,r){const i=Z7(e,r);let o="up";return"vertical"===t&&i<0?o="down":"horizontal"===t&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}function e9(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!r||!i&&!!n.showSegmentLabels}function t9(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!!r&&(!!i||!1!==n.showTotalLabels)}function n9(e,t,n,r){const i=[];return void 0!==e&&(i[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(i[t]={position:"inside",onBackground:!1,justify:n}),i}function r9({layout:e,component:t,minorScale:n},r,i){if(!e9(e,r))return!1;const{viewModel:o,ds:a,viewCache:s,layoutService:l,dockService:c,themeService:u}=r,{meta:d}=l,f=s.get("minorMinMax"),h=u.getStyles(),p=r.styleService.label.getStyle();let m;!d.isStacked&&(m=d.isStacked?1:0);const g=0===m?1:0,y=d.isStacked?.5:1,v=o.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,w=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>w?b(e.data.segment.value):""}:function(e){return e.data.end.label};const S={label:x,simplifiedPlacements:n9(m,g,y,d.isContinuous),style:h.label.value},k=[J7(vg(r,S))],M={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Q7(e.data.end.value,c.meta.minor.orientation,i,f),labels:k,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily,linkData:zq.labels.linkData}}},C=[M],E={key:"bar-labels",type:"labels",renderer:Kq(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:C},animations:{enabled:r.viewModel.animations.enabled,trackBy:zq.labels.trackBy,compensateForLayoutChanges:zq.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(E.beforeRender=()=>{w=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",i=t.chart.component(e),o=i&&i.rect?i.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/o}(t,r,n)}),E}const i9={isSameMeasureAndColorRow:(e,t,n)=>t&&e&&t[0].content[0]===e[0].content[0]&&t[0].content[1]===e[0].content[1]&&t[1].content[n?0:1]===e[1].content[0],getTitle(e,t){const n=e.data;let r;return t.isStackedByDimension?r=n.stack?n.stack.label:void 0:t.isGroupedByDimension&&(r=n.group?n.group.label:void 0),void 0!==r?`${n.label}, ${r}`:n.label},getMeasure(e,t,n,r,i){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const o=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:o.measureIndex.value]:void 0,s=n.isStacked?{source:{key:o.source.key,field:a},label:!0===(null===(l=o.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&i?i(o.segment.value):o.segment.label}:o.end;var l;return Yg.getMeasure(e,s)},getMeasures(e,t,n,r,i){const o=e.resources.dataset;return t.map((e=>i9.getMeasure(o,e,n,r,i))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return p6({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,i){const o={title:i9.getTitle(t,n),color:Yg.getColor(e,t,r),measures:i9.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,i)};if(i9.useCustomTooltip(r)){var a,s;const n=i9.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);o.customMeasures=n.customTooltipAttrExpsArr,o.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===J4.CUSTOM.TITLE)),o.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===J4.CUSTOM.DESCRIPTION));let i=[];(t.childrenNodes?t.childrenNodes:[t]).forEach((e=>{var t;(null===(t=e.data.customTooltipImages)||void 0===t?void 0:t.length)>0&&!Array.isArray(e.data.customTooltipImages[0])&&(i=e.data.customTooltipImages)})),i.length>0&&(o.customImages=i);const d=r.layoutService.getLayout();var l,c,u;if(null!==(a=d.tooltip)&&void 0!==a&&null!==(a=a.chart)&&void 0!==a&&null!==(a=a.object)&&void 0!==a&&a.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(s=r.customTooltipModel.model)||void 0===s?void 0:s.getEffectiveProperties))if(null!==(l=(c=r.app).isInModalSelection)&&void 0!==l&&l.call(c)){if((null==d||null===(u=d.qHyperCube)||void 0===u||null===(u=u.qDimensionInfo)||void 0===u?void 0:u.length)>0){a6.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");o.customLimitation=e}}else{const t=a6.createContainer({ctx:e,layout:d});o.customChart=t}}return o},getTotalStackTitle:(e,t)=>e>0?t?t.get("Object.ChartTooltip.sumOfPositives"):"Sum of positives":e<0?t?t.get("Object.ChartTooltip.sumOfNegatives"):"Sum of negatives":"",extractStackTotalBarTooltipData(e,t,n){const r=e.data.label,i=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${i9.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:i}},extractTooltipData(e,t){const n=t.chart.formatter(U8.FORMATTER.MINOR),{meta:r}=t.layoutService,i=e.node.childrenNodes?e.node.childrenNodes:[e.node],o=Math.max(0,i.length-6);i.length=Math.min(i.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>i9.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:i.map((i=>i9.extractBarTooltipData(e,i,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:o}},extractBarNodeData(e,t,n,r,i,o,a){let s=!i&&Yg.getTitleRow(t,r);const l=Yg.hideColorRow(t,n),c=!o&&!l&&Yg.getColorRow(e,t,r),u=t.measures.map((i=>!a&&Yg.getMeasureRow(i,e,t,r,l&&i.field===n.coloring.field))),d=u.filter((e=>!i9.isSameMeasureAndColorRow(e,c,r)));if(i9.useCustomTooltip(n)){const n=i?[]:t.customMeasures.map((n=>Yg.getMeasureRow(n,e,t,r,!1))),o=!(!t.customTitle[0]||i)&&Yg.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||i)&&Yg.getDescriptionRow(t.customDescription[0],r);s=!i9.shouldIgnoreTitleRowForCtt(o,a,d,n)&&s;const l=[o,a,s,c,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(u6.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>u6.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,c,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&Yg.getTitleRow(t,n),i=t.measures.map((r=>Yg.getMeasureRow(r,e,t,n,!1)));return[r,...i].filter(Boolean)},useCustomTooltip:e=>cC(e,"customTooltipModel.useCustomTooltip",!1),shouldIgnoreTitleRow:(e,t)=>e.isDimensionless||t>0&&!e.isGroupedByDimension&&!e.isStackedByDimension,shouldIgnoreTitleRowForCtt:(e,t,n,r)=>!1===n[0]&&0===r.length&&(e.length>0||t.length>0),shouldIgnoreColorRow:(e,t)=>t>0&&(e.isGroupedByMeasure||e.isStackedByMeasure),shouldIgnoreMeasureRow:(e,t,n)=>e&&t.measures.some((e=>e.field===n.coloring.field)),shouldIgnoreDefaultRows:(e,t)=>i9.useCustomTooltip(t)&&cC(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:i}=t.layoutService,o=t.layoutService.getLayout(),a=r.length;let s,l,c=[];const u=i9.shouldIgnoreDefaultRows(o,t);for(s=0;s<a;s++){l=r[s];const o=i9.shouldIgnoreTitleRow(i,s),d=u||i9.shouldIgnoreColorRow(i,s),f=u||i9.shouldIgnoreMeasureRow(d,l,t);if(c=c.concat(i9.extractBarNodeData(e,l,t,n,o,d,f)),c.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:c,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:c,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(i9.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:i,stackTotalBarTooltipData:o}=i9.extractTooltipData(e,t),a=i9.extractStackTotalBarsData(e,n,o);a.length&&a.push(Yg.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=i9.extractBarsData(e,t,n,r),c=a.concat(s),u=i+l;return u&&c.push(Yg.getNMoreRow(u,t.translator,n)),c},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return Yq.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:i,groupProp:o}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",c=e.chart.scale(n).pxScale(a[l]);let u,d,f;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;u=i.value,d=n===r&&void 0!==u?(c([u,0])+c([u,t-1]))/2:0,f=n===r&&void 0!==u?c.bandwidth([u,0]):0}else{const{value:e}=i;u=i[o]?i[o].value:void 0,d=c(n===r&&void 0!==u?[u,e]:e),f=n===r&&void 0!==u?c.bandwidth([u,e]):c.bandwidth(e)}const h=(d+f/2)*a[l],p={width:0,height:0};return"horizontal"===s?(p.x=h,p.y=a.height):(p.y=h,p.x=0),p},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:i,majorScale:o,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let c;return c=l.length?i9.calculateBoundsFromBars(l):i9.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===i?o:a,majorScale:o,data:t[0].data,groupProp:s}),c},filterNodesOnKeys:(e,t)=>e.filter((e=>e.data&&t.indexOf(e.key)>-1)),isBarMatchingLabel:(e,t)=>t.data.value===e.data.value,isBarMatchingLabelOnProp:(e,t,n)=>t.data.value===(e.data[n]?e.data[n].value:e.data.value),findBarsMatchingLabels(e,t,n,r){const i=e.filter((e=>t.some((t=>n(e,t,r)))));return i},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=i9.isBarMatchingLabelOnProp;return i9.findBarsMatchingLabels(e,t,r,n)},findBarsFromBarLabelsInGroupedByDim:(e,t,n)=>e.filter((e=>t.some((t=>t.data.group&&t.data.group.value===e.data[n].value&&t.data.value===e.data.value)))),findBarsFromLabelsInSingleDim(e,t){const n=i9.isBarMatchingLabel;return i9.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const i=t.filter((e=>e.key===n)),o=t.filter((e=>e.key!==n)),a=i9.findBarsFromBarLabelsInGroupedByDim(e,i,r),s=i9.findBarsFromGroupLabelsInGroupedByDim(e,o,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=i9.isBarMatchingLabel;return i9.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=i9.isBarMatchingLabel;return i9.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=i9.isBarMatchingLabelOnProp;return i9.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>i9.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:i,stackProp:o}){const{meta:a}=t.layoutService,s=i9.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?i9.findBarsFromLabelsInStackedByDim(s,e,o):a.isStackedByMeasure?i9.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?i9.findBarsFromLabelsInGroupedByDim(s,e,r,i):i9.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const i=i9.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?i9.findStackTotalBarsFromLabelsInStackedByDim(i,e):i9.findStackTotalBarsFromLabelsInStackedByMeasure(i,e)}return[]},isSingleBarMode:(e,t)=>(e.isSimple||1===t.length)&&t[0].children&&t[0].children.length,filterNodesOnLabels({labels:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:c,majorInnerScale:u,filterFn:d}){const{meta:f}=t.layoutService;if(e.length){let h=i9.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(h=h.filter(d)),i9.isSingleBarMode(f,h))return[h[0]];if(h.length){let f=i9.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,o,a],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});d&&(f=f.filter(d));const p=i9.calculateTotalBounds({opts:t,labels:e,bars:f,barKey:n,barAxisKey:i,groupProp:s,majorScale:c,majorInnerScale:u}),m=i9.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:p,childrenNodes:h,data:h.map((e=>e.data)),stackTotalBarNodes:m};return[g]}return[]}return[]},filterNodesForOob:(e,t,n)=>e.key===t&&0===e.children.length||e.key===n,filterNodes({nodes:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,groupAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d}){let f=i9.filterNodesOnKeys(e,[i,o]),h=f&&f.length?[f[0]]:[];const p=i9.filterNodesOnLabels({labels:h,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d});if(p&&p.length)return p;const{meta:m}=t.layoutService;if(m.isStackedByMeasure){f=i9.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>i9.filterNodesForOob(e,n,a),p=i9.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}if(m.isStackedByDimension){f=i9.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>i9.filterNodesForOob(e,n,a),p=i9.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}const g=i9.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function o9(e,t={},n){let r=[];const i=Hg({key:U8.COMPONENT.BASE_TOOLTIP,rtl:n});return vg(!0,i,{scale:U8.SCALE.MAIN.COLOR,settings:{filter:e=>i9.filterNodes({nodes:e,opts:t,barKey:U8.COMPONENT.BAR,stackTotalBarKey:U8.COMPONENT.STACK_TOTAL_BAR,barAxisKey:U8.COMPONENT.BAR_AXIS,groupAxisKey:U8.COMPONENT.GROUP_AXIS,barOobMaxKey:U8.COMPONENT.BAR_OOB_MAX,barOobMinKey:U8.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],i9.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:i,properties:o,customTooltipModel:a}=t;i&&(null===(e=i.isInModalSelection)||void 0===e||!e.call(i))&&a.useCustomTooltip&&a.embed&&a6.show({app:i,properties:o,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const a9={extractData:(e,t)=>[Yg.getTitleRow({title:e.node.data.label},t)],filterNodes(e,t){const n=e.filter((e=>e.data&&e.key===t));return n.length?[n[0]]:[]}};function s9(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Hg({key:U8.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return vg(!0,r,{scale:U8.SCALE.MAIN.COLOR,settings:{filter:e=>a9.filterNodes(e,U8.COMPONENT.LEGEND_COLOR_CAT),extract:e=>a9.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function l9(e,{fill:t}){return{[U8.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[U8.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const c9=1,u9=3;function d9(e){return e.getLayoutValue("gridLine.auto")}function f9(e){return!d9(e)&&e.getLayoutValue("gridLine.spacing")===c9}function h9(e){return!d9(e)&&e.getLayoutValue("gridLine.spacing")===u9}const p9=e=>({enabled:e.animations.enabled,trackBy:zq.lines.trackBy,compensateForLayoutChanges:zq.lines.compensateForLayoutChanges}),m9=(e,{themeService:t,layoutService:n,dockService:r,viewModel:i})=>{if(!d9(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:o}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:q7.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!f9(n)||((e,t)=>t%2==0),stroke:o.line.major.color},minorTicks:{show:h9(n),stroke:o.line.minor.color},animations:p9(i)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=U8.SCALE.MAIN.MINOR,a};function g9(e,t){const n=[m9(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const i=n.get("minorMinMax");if(i.min>0||i.max<0)return!1;const o=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:U8.SCALE.MAIN.MINOR,line:{stroke:o.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:U8.SCALE.MAIN.MINOR,lines:a,animations:p9(r)}})(t)),n}const y9="areaPan",v9=e=>({type:"Pan",key:"panorama",options:{event:y9,pointers:1,threshold:10,enable(t,n){return this.started===y9||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===U8.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=y9;const n=e.viewState.get("zoom");this[y9]={min:n.min,max:n.max,size:e.chart.component(U8.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:i,size:o}=this[y9],a=-t.deltaX/o;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(i+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function b9(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:i}=e,{rtl:o}=t,a=YK.event.onZoom({viewCache:n,viewState:r,chart:i},{threshold:100,rtl:o,targetKey:U8.COMPONENT.BAR}),s={last:0};return{type:"Pinch",key:"continuous-pinch-zoom",options:{event:"zoom",pointers:2,threshold:0,enable:(t,n)=>!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===U8.COMPONENT.BAR))},events:{zoomstart(e){s.last=e.scale,e.preventDefault()},zoommove(e){const t=e.scale-s.last;(function(e){return Math.abs(e)>.01})(t)&&a(e.center,t>0?1:-1),e.preventDefault(),s.last=e.scale}}}}function x9({chart:e},t,n){const r=e.component(U8.COMPONENT.BASE_TOOLTIP);var i;r&&r.show&&(r.emit("hide"),null!=n&&null!==(i=n.customTooltipModel)&&void 0!==i&&i.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const o=e.component(U8.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&o.emit("hide");const a=e.component(U8.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function w9(e,t){const{viewCache:n,viewState:r,chart:i,trendLineModel:o,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?YK.event.onZoom({viewCache:n,viewState:r,chart:i},{rtl:s,threshold:50,targetKey:U8.COMPONENT.BAR}):void 0,c=I8({majorInnerScale:U8.SCALE.MAIN.MAJOR_INNER,tooltip:U8.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:U8.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:i,viewState:r,trendLineModel:o,layoutService:a,rtl:s}),u=[U8.COMPONENT.BAR,U8.COMPONENT.BAR_AXIS,U8.COMPONENT.GROUP_AXIS,U8.COMPONENT.BAR_OOB_MAX,U8.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,f=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const i={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(i).filter((e=>e.key===U8.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(i,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===U8.COMPONENT.LEGEND_COLOR_CAT)),n&&(r=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,n))),r&&t.preventDefault(),x9(e,f,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(c(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(U8.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>u.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const i=d.getNodes(t,this.chart);f(t,r,{nodes:i,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const i=this.chart.component(U8.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&(n.some((e=>e.key===U8.COMPONENT.LEGEND_COLOR_CAT))?i.emit("show",t):i.emit("hide"))}},mouseup(t){2===t.button&&x9(this,f,e)},mouseleave(){x9(this,f,e)}}}}const S9=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...fG({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[v9(e),b9(e,t)]]});function k9(e,t){const n=[S9(e,t),w9(e,t),fG({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const M9=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:zq.bars.compensateForLayoutChanges});const C9=(e,t,{collectionKey:n})=>{if(!QK({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r,viewModel:i},{collectionKey:o}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:o},settings:{box:vg(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:vg(!0,{},e.settings.major,{scale:t.scales.major}),minor:e.settings.minor,orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:M9(i)}}(e,t,{collectionKey:n});const{mode:r,scales:i}=t.reducedDataModel;let o;return r.isGroupedByDimension&&!r.isReduced?o=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(o=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2),{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>t.discrete.query.getCanScroll(),data:{collection:n},settings:{box:{...e.settings.box,fill:r.isReduced||r.isStackedByDimension?t.colorService.getMain().getSettings().others:t.colorService.getMain().getColor(),strokeWidth:0},major:{scale:i.major,fn:o},minor:{scale:i.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:M9(t.viewModel)}},{measureText:E9}=hp.renderer("svg")();function q9(e,t,n){const r=function(e){const t=vg(!0,{},e);return delete t.data,t}(t.minor),i=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:i,getProp:o}){let a={invert:n,data:{extract:e.mode.isDimensionless?e.fields.minor.map(((e,t)=>({field:e,value:t}))):{source:"miniCube",field:"qDimensionInfo/0"}},type:e.mode.isDimensionless?"band":void 0,maxPxStep:r,align:i};return e.mode.isStackedByDimension?a.data.extract.field="qDimensionInfo/1":e.mode.isGroupedByDimension?e.mode.isReduced||(a.data={source:"miniCube",hierarchy:{value:e=>e.qElemNumber}}):e.mode.isGroupedByMeasure?(a=vg(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=vg(!0,{},t,{min:()=>o("continuousMin"),max:()=>o("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:i}}const D9=50,T9=100,N9=200;function O9(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return D9;case 1:return T9;case 2:return N9;default:return 125*t}}(t);return Math.max(1,Math.round(e/n))}function A9(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function _9(e,t,n){return 0===t||0===e||t===n.length-1}function L9(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function I9(e,t,n,r,i){e.domain([t,n]),e.nice(10);const[o,a]=e.domain();let s=e.ticks(10);const l=function(e){return e.length%2==0}(s),c=function(e){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}(s),u=c?_9:A9;s=s.filter(u),l&&!c&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=i?i.formatter(U8.FORMATTER.MINOR):void 0;return L9(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:o,roundedMax:a,ticks:s}}function R9(e,t,n,r,i,o,a,s){const l=o.formatter(U8.FORMATTER.MINOR),c=s.getStyles(),u="horizontal"===a.meta.major.orientation?"height":"width",d=e=>E9({text:e,fontSize:c.axis.label.name.fontSize,fontFamily:c.axis.label.name.fontFamily})[u];let[f,h]=e.domain(),p=e.ticks(r);function m(){const e=p.map(l);return!L9(e)&&function(e){const t=i/p.length;return Math.max(...e.map(d))<=t}(e)}for(let i=r-1;i>0&&!m();i--)e.domain([t,n]),e.nice(i),[f,h]=e.domain(),p=e.ticks(i);return{roundedMin:f,roundedMax:h,ticks:p}}const P9=(e,t)=>e.value-t.value,z9=e=>({value:e,isMinor:!1}),F9=e=>({value:e,isMinor:!0});function j9(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2;return e.filter((e=>(e=>Number.isNaN(t)||e>=t)(e)&&(e=>Number.isNaN(n)||e<=n)(e))).length<=r}function B9({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:i,viewModel:o,ds:a}){const{isButterfly:s}=r.meta,{explicitMin:l,explicitMax:c,hasExplicitMin:u,hasExplicitMax:d}=t.get("minorMinMax"),{min:f,max:h}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),p=s?Math.max(Math.abs(f),Math.abs(h)):h,m=s?-p:f,g=hC((()=>{const s=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(U8.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),f=O9(s,r),h=function(e,t,n){const r=Eb().domain([e,t]);return r.nice(n),r}(m,p,f);let g,y,v=[];"SPARK"===n.meta.chart.mode?({roundedMin:g,roundedMax:y}=function(e,t){return{roundedMin:e,roundedMax:t}}(m,p)):(({roundedMin:g,roundedMax:y,ticks:v}=R9(h,m,p,f,s,e,n,i)),j9(v,l,c)&&({roundedMin:g,roundedMax:y,ticks:v}=I9(h,m,p,u||d,e)));const b=function(e,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}(v,1);v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(u,l,v),v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(d,c,v);let x=function(e,t){return[...e.map(z9),...t.map(F9)].sort(P9)}(v,b);if(r.meta.isButterfly){const e=o.fields.minor[0],t=void 0===e?void 0:a.field(e).formatter();"function"==typeof t&&(x=x.map((e=>({...e,label:t(Math.abs(e.value))}))))}return{roundedMin:g,roundedMax:y,ticks:x}}),(()=>t.get("isPreRender")));return{values:()=>g().ticks,min:()=>u?l:g().roundedMin,max:()=>d?c:g().roundedMax}}function H9(e,{picasso:t,discrete:n,layoutService:r,dockService:i,viewModel:o,viewCache:a,reducedDataModel:s,colorService:l,themeService:c,viewState:u,chart:d,ds:f},{localeInfo:h,rtl:p}){const{meta:m}=r,{fields:g}=o,y=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,i.meta.chart.size["horizontal"===i.meta.major.orientation?"height":"width"]/4)},v=!("none"===r.getLayoutValue("measureAxis.show"))?(b=i.meta.minor.orientation,x=i.meta.minor.dock,"vertical"===b?"near"===x||"left"===x?0:1:"near"===x||"bottom"===x?1:0):.5;var b,x;const w={},S="vertical"===i.meta.minor.orientation&&p,k=l.getMain().getScales(),M=l.getMini().getScales();if(Object.assign(w,k,{reducedFill:M.reducedFill}),w[U8.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,viewModel:i,layoutService:o,themeService:a,ds:s},{rtl:l}){const c=B9({chart:e,dockService:n,viewCache:r,layoutService:o,themeService:a,viewModel:i,ds:s}),u={invert:"vertical"===n.meta.minor.orientation||l,ticks:{values:c.values},minorTicks:{count:1},min:c.min,max:c.max};return o.meta.isStacked||(u.data={source:"qHyperCube",fields:t.minor}),u}({chart:d,viewModel:o,dockService:i,viewCache:a,layoutService:r,themeService:c,ds:f},{rtl:p}),m.isGroupedByDimension)[U8.SCALE.MAIN.MAJOR_INNER,U8.SCALE.MAIN.MAJOR].forEach(((e,t)=>{w[e]={invert:S,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...o.selectionDimensionProp(t),group:m.isGroupedByDimension?{field:g.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:y,align:v}})),o.isDimensionLocked(0)||(w[U8.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(m.isGroupedByMeasure)w[U8.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:S,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:y,align:v};else if(m.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:i,picasso:o,viewState:a,localeInfo:s,themeService:l}=e,c=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),u=o.formatter("q-time"),d=l.getStyles(),f=e=>E9({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});i.set("qTimeAxisCache",[]);const h={get:(e,t=0)=>{const n=i.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{i.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(i.get("continuousMax")-i.get("continuousMin")),o=c().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...o].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:h},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:h}}}({picasso:t,localeInfo:h,viewState:u,viewModel:o,viewCache:a,themeService:c,layoutService:r},p);w[U8.SCALE.MAIN.MAJOR_INNER]=e,w[U8.SCALE.MAIN.MAJOR]=n}else m.isContinuous?w[U8.SCALE.MAIN.MAJOR]={type:"linear",invert:S,data:{extract:{key:"qHyperCube",field:g.majorNumeric}},ticks:{forceBounds:!0,count:u.get("zoom").min===u.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>u.get("zoom").min,max:()=>u.get("zoom").max}:w[U8.SCALE.MAIN.MAJOR]={invert:S,data:{extract:m.isDimensionless?g.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:m.isDimensionless?"band":void 0,maxPxStep:y,align:v};const{reducedMinor:C,reducedMajor:E}=q9(s,{major:w[U8.SCALE.MAIN.MAJOR],minor:w[U8.SCALE.MAIN.MINOR]},{majorScaleInvert:S,maxPxStep:y,align:v,getProp:a.get});return m.isDiscrete&&(w[U8.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,m.isGroupedByDimension&&(w[U8.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),w[s.scales.major]=E,w[s.scales.minor]=C,w}function V9(e,t,n){const{layoutService:r,colorService:i}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[k7(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?U8.COMPONENT.STACK_TOTAL_BAR:U8.COMPONENT.BAR,U8.COMPONENT.BAR_AXIS,U8.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",U8.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return U8.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[U8.COMPONENT.BAR_AXIS,U8.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===U8.COMPONENT.LEGEND_COLOR_CAT))?i.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function $9(e){const t=e.layoutService.meta.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1;return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=(({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}}))(n);return{interactions:[S7(n,t)],components:[r]}}({key:"lasso",componentTargetKey:U8.COMPONENT.BAR,components:[t?{key:U8.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:U8.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function W9(e){return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:i,dock:o}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"inside"},target:{components:i,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[C7(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:U8.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",U8.COMPONENT.BAR_AXIS,U8.COMPONENT.BAR],fillTargets:["group-axis",U8.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function U9(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:i}=t,o=void 0===n,a=r.getIsSingleSelect(n),s=V9(e,o,a);if(o||a)return{components:[...s.components],gestures:[...s.interactions]};const l=$9(e),c=function(e,t){return e.layoutService.meta.isStacked||e.layoutService.meta.isButterfly||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:E7({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",U8.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:U8.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,i),u=function(e){return e.layoutService.meta.isContinuous?E7({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",U8.COMPONENT.BAR]:["continuous-axis",U8.COMPONENT.BAR],fillTargets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis"]:["continuous-axis"],observeBrush:!0,multiple:!0,dock:e.dockService.meta.major.dock,scale:e.layoutService.meta.isTime?U8.SCALE.MAIN.MAJOR_INNER:U8.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const i=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(U8.FORMATTER.MINOR),o=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||o?"":"<"}${i(t)}`}},e):{components:[],interactions:[]}}(e),d=W9(e);return{components:[...s.components,...l.components,...c.components,...d.components,...u.components],gestures:[...l.interactions,...s.interactions,...c.interactions,...d.interactions,...u.interactions]}}const{isNumber:Y9}=eS;function K9({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:i}=e;if(!i.isStackedByDimension||i.isContinuous)return!1;const{fields:o}=t,a=e.getLayoutValue("components",null),s=a?a.filter((e=>"bar"===e.key))[0]:null;return{key:"shadow-bar",type:"box",data:{extract:[{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.filter((e=>Y9(e.qMaxPos))).map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Y9(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0}}},{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.filter((e=>Y9(e.qMinNeg))).map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Y9(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0}}}]},settings:{major:{scale:U8.SCALE.MAIN.MAJOR},minor:{scale:U8.SCALE.MAIN.MINOR},orientation:n.meta.minor.orientation,box:{width:null!=s&&null!==(r=s.style)&&void 0!==r&&r.width&&s.style.width>0?s.style.width:.7,fill:()=>({type:"pattern",fill:"rgba(165, 165, 165, 0.8)",width:4,height:4,shapes:[{type:"rect",x:0,y:3,width:1,height:1},{type:"rect",x:1,y:2,width:1,height:1},{type:"rect",x:2,y:1,width:1,height:1},{type:"rect",x:3,y:0,width:1,height:1}]})},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:t.animations.enabled,trackBy:zq.shadowBars.trackBy,compensateForLayoutChanges:zq.bars.compensateForLayoutChanges}}}const G9={min:"Min",max:"Max"};function X9(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?j7(e,t)||B7(e,t):n===H7?j7(e,t):B7(e,t)}(Number(r.toFixed(13)),e,t)}function J9(e,{barComponent:t,type:n,isStacked:r}){var i,o,a;const{viewCache:s,layoutService:l,dockService:c}=e,u=s.get("minorMinMax"),d=n===H7;if(function(e,t){return!e[`hasOther${G9[t]}`]}(u,n)){if(function(e,t){return!e[`hasExplicit${G9[t]}`]}(u,n))return!1;if(X9(u,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${G9[t]}`]&&r(e[`explicit${G9[t]}`])}(u,n,d))return!1;let f="end";r&&(f=d?"sumOfPositives":"sumOfNegatives");const h=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(U8.SCALE.MAIN.MINOR)[n]())),p=d?e=>e.datum[f].value>h():e=>e.datum[f].value<h(),m=U8.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===m))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?c.meta.minor.end:c.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:vg({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:p,width:I7({layoutService:e.layoutService,discrete:e.discrete}),strokeWidth:null!=y&&null!==(i=y.style)&&void 0!==i&&i.strokeWidth?L7.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:L7.BAR.STROKE.WIDTH.NONE,stroke:null!==(o=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==o?o:L7.BAR.STROKE.COLOR})}}}function Z9(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:i}=e.viewModel,o=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum";function a(t,n){const i=e.ds.field(t).raw(),a=e.ds.field(t).formatter(),s=Dg.shouldUseFormat(i),l=r.isButterfly&&n>0;return{field:t,reduceLabel:"none",value:e=>"NaN"===e[o]?0:(e=>l&&0!==e?-e:e)(e[o]),label:e=>s?(e=>"NaN"===e[o]?"-":a(e[o]))(e):e.qText}}function s(e){if(!r.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[o]<0}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;function c(e){return{field:e,reduceLabel:"none",reduce:"first",value:l}}const u={key:t,data:{extract:i.minor.map(((t,o)=>{const l=e.colorService.getMain().getDatumProps(o),u=e.colorService.getMini().getDatumProps(o),d=l[Object.keys(l)[0]],f=null==d?void 0:d.field,h=f?{field:f,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,p={field:r.isDimensionless?t:i.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:a(t,o),negative:s(t),null:c(t),segment:r.isStacked?a(t):void 0,group:r.isGroupedByDimension?{field:i.majorGroup}:void 0,stack:r.isStacked?{field:i.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:o,timeStart:r.isContinuous?{field:i.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:i.majorNumeric}:void 0,fillTooltip:h,...l,...u,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${o}`},customTooltipAttrExps:0!==r.dimensionCount?f6.getNode(e.layoutService.getLayout(),r):void 0}};return r.isDimensionless&&(p.value=o),void 0!==n&&(p.source=n),Dg.deleteUndefinedProperties(p.props),p})),filter:r.isButterfly?e=>!e.negative.value:void 0}};return r.isStacked&&(u.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),u}const{isNumber:Q9}=eS;function eee({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:i}=t;if(!r.isStacked)return!1;let o;return o=r.isStackedByMeasure?function(e,t){const n={field:0,props:{sumOfPositives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},null:{fields:t.minor.map((e=>({field:e}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"}}};if(e.isContinuous){const e={field:t.major,value:e=>e.qNum,reduceLabel:"none"};n.props.timeStart=e,n.props.timeEnd=e,n.value=e=>e.qNum}return n}(r,i):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>Q9(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0},sumOfNegatives:{value:e=>Q9(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0},null:{value:e=>{const{qSubNodes:t=[]}=e;return t.every((e=>"NaN"===((e.qSubNodes||[])[0]||{}).qValue))}}}};const n={field:t.majors[0],value:e=>e.qNum,reduceLabel:"none"};return{field:t.majorStack,trackBy:e=>e.qNum,reduce:e=>e[0],props:{sumOfPositives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t>0?e+t:e),0)},sumOfNegatives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t<0?e+t:e),0)},timeStart:n,timeEnd:n}}}(r,i),{key:n,data:{extract:o}}}const tee="main-collection",nee="stack-total-collection";function ree(e,{collectionKey:t}){const{layoutService:n,colorService:r,reducedDataModel:{fields:i,mode:o}}=e,{meta:a}=n,s=a.isStackedByDimension&&!a.isContinuous?"qValue":"qNum";function l(e,t){if(!a.isButterfly)return{field:e};const n=t>0;return{field:e,value:e=>"NaN"===e[s]?0:(e=>n&&0!==e?-e:e)(e[s])}}function c(e){if(!a.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[s]<0}}return{key:t,data:{extract:i.minor.map(((e,t)=>{const n=o.isReduced?{}:r.getMain().getDatumProps(t),a={start:0,end:l(e,t),negative:c(e),group:{field:i.majorGroup},measureIndex:t,...n},s={source:"miniCube",field:o.isDimensionless?e:i.major,props:a};return o.isDimensionless&&(s.value=t),s})),filter:a.isButterfly?e=>!e.negative.value:void 0}}}const iee="mini-collection",oee="mini-stack-collection",aee="mini-continuous-collection",see="miniCube",lee=(e,t)=>{const n=(e=>{const t=[Z9(e,{collectionKey:tee})];return e.layoutService.meta.isStacked&&t.push(eee(e,{collectionKey:nee})),t})(t),r=((e,t)=>{const n=[];return QK({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(Z9(t,{collectionKey:aee},see)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:i}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const o={end:{field:e,reduceLabel:"none"},...i.isStackedByMeasure&&!i.isReduced?n.getMain().getDatumProps(t):{}};return i.isContinuous&&(o.timeStart={field:r.major,value:e=>e.qNum},o.timeEnd=o.timeStart),{source:"miniCube",field:r.major,props:o}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:oee})):n.push(ree(t,{collectionKey:iee}))),n})(0,t);return n.concat(r)};function cee(e,t,n,r){const i=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}};i.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return i}function uee({layout:e,component:t},n,r){if(!t9(e,n))return!1;const{layoutService:i,chart:o,dockService:a,viewModel:s,themeService:l,styleService:c}=n,{meta:u}=i,d=!e9(e,n),f=l.getStyles(),h=c.label.getStyle(),p=h.useContrastColor;function m(e){const t=o.formatter(U8.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":m(e.data.sumOfPositives.value)},simplifiedPlacements:cee("outside",d,p,u.isContinuous),style:f.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":m(e.data.sumOfNegatives.value)},simplifiedPlacements:cee("opposite",d,p,u.isContinuous),style:f.label.value},v=[J7(vg(n,g)),J7(vg(n,y))];return{key:"stack-total-labels",type:"labels",renderer:Kq(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Q7(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(h.fontSize,10),fontFamily:h.fontFamily,linkData:zq.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:zq.labels.trackBy,compensateForLayoutChanges:zq.labels.compensateForLayoutChanges}}}function dee(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function fee({layout:e,type:t},n){const{layoutService:r,viewCache:i,themeService:o,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!e9(e,n)||l&&!t9(e,n))return!1;const c=i.get("minorMinMax");if(!c.hasExplicitMinMax||t===H7&&0===c.max||t===V7&&0===c.min)return!1;if(!W7(t===H7?c.implicitMax:c.implicitMin,c,t))return!1;const u=o.getStyles(),d=a.label.getStyle();let f=e=>e.data.end.label;s.isStacked&&(f=t===H7?function(e){if(W7(e.data.sumOfNegatives.value,c,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(U8.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(W7(e.data.sumOfPositives.value,c,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(U8.FORMATTER.MINOR);return r?r(t):t}return""});const h={label:f,simplifiedPlacements:dee("outside",0,s.isContinuous),styles:u},p={label:f,simplifiedPlacements:dee("opposite",0,s.isContinuous),styles:u},m=[J7(vg(n,h)),J7(vg(n,p))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${U8.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:m,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:zq.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:Kq(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:zq.labels.trackBy,compensateForLayoutChanges:zq.labels.compensateForLayoutChanges}}}function hee(e){return"all"===e||"title"===e}function pee(e,t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!hee(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:i,properties:o}=t,a={hyperCube:e.qHyperCube,hyperCubeDef:o&&o.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=i&&null!==(e=i.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},s=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(a.padding="0",a.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:q7[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:a,style:s}}function mee(e,t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!hee(e.measureAxis.show))return!1;const{layoutService:i,actions:o}=t,a=t.properties,s=i.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",l={hyperCube:i.getHyperCube(),hyperCubeDef:cC(a,s),isDimension:!1,disabled:()=>!o.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},c=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(l.padding="0",l.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:l,style:c}}function gee(e){return"all"===e||"title"===e}function yee(e,t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!gee(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const i=t.alternativeService.getAlternatives(),{actions:o}=t,a=t.styleService.axis.title.getStyle();return{type:"axis-title",key:"dimension-title",renderer:"react-qcm",layout:{minimumLayoutMode:q7[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},data:{infos:t.layoutService.getHyperCubeValue("qDimensionInfo"),alternatives:i.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>{var e;return!(null!=o&&null!==(e=o.interact)&&void 0!==e&&e.enabled())},isRTL:n,isSnapshot:t.layoutService.meta.isSnapshot,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize}}}}function vee(e,t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!gee(e.measureAxis.show))return!1;const i=t.alternativeService.getAlternatives(),{actions:o}=t,a=t.styleService.axis.title.getStyle();return{type:"axis-title",key:"measure-title",renderer:"react-qcm",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},data:{infos:t.layoutService.getHyperCubeValue("qMeasureInfo"),alternatives:i.measures},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>{var e;return!(null!=o&&null!==(e=o.interact)&&void 0!==e&&e.enabled())},isRTL:n,isSnapshot:t.layoutService.meta.isSnapshot,skipAttributeExpressions:!1,type:"measure"},style:{title:{color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize}}}}function bee({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:i,dockService:o,themeService:a,viewModel:s,chart:l}){const{theme:c,localeInfo:u}=e,d={resolveUIColor:i.getMain().getPaletteColor},f=a.getStyles(),h=s.animations.enabled;return[Vq({refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:U8.SCALE.MAIN.MINOR,axis:"horizontal"===o.meta.major.orientation?"y":"x",key:U8.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:q7.refLines.minimumLayoutMode}),Vq({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:U8.SCALE.MAIN.MAJOR,axis:"horizontal"===o.meta.major.orientation?"x":"y",rtl:t,key:U8.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:U8.COMPONENT.BAR,minimumLayoutMode:q7.refLines.minimumLayoutMode}),...Wq({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.minor.opposite,scale:U8.SCALE.MAIN.MINOR,style:f,formatter:U8.FORMATTER.MINOR,theme:c,localeInfo:u,rtl:t,key:U8.COMPONENT.MEASURE_REF_LINE_LABEL}),...Wq({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.major.opposite,scale:U8.SCALE.MAIN.MAJOR,style:f,theme:c,localeInfo:u,rtl:t,key:U8.COMPONENT.DIMENSION_REF_LINE_LABEL})]}function xee({dockService:e,layoutService:t,discrete:n,continuousDataModel:r,viewModel:i,flags:o}){if(null==o||!o.isEnabled("VIZ_199_ADD_SPACE_BETWEEN"))return!1;if(!!QK({layoutService:t}).none)return!1;const{rtl:a}=e.config,s="horizontal"===e.meta.chart.orientation,l=!s,{dock:c}=e.meta.major,{show:u}=t.getLayoutValue("dimensionAxis",{}),d="none"!==u;if(l&&d&&"bottom"===c)return!1;if(s&&d){if(!a&&"right"===c)return!1;if(a&&"left"===c)return!1}const f=a?"left":"right";return{type:"space",key:U8.COMPONENT.SPACE,layout:{dock:l?"bottom":f,minimumLayoutMode:"XSMALL"},show:()=>t.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{size:Math.max(6,Math.min(16,Math.floor(.025*e.meta.minor.size)))},animations:{enabled:i.animations.enabled,trackBy:()=>Math.random()}}}const wee=(e,t,n)=>{var r;const{layoutService:i,dockService:o,colorService:a,chart:s,actions:l,discrete:c,continuousDataModel:u,reducedDataModel:d,viewModel:f,viewState:h,viewCache:p,themeService:m,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:w}=t,{localeInfo:S}=n,k=function(e,t){const{disclaimerService:n,themeService:r,translator:i}=e,o=n.getDisclaimer();if(!o)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:o.alignment},settings:{isRTL:t,label:i.get(`Object.Disclaimer.${o.key}`)},style:{fontFamily:a}}}(t,v);if(w.getHasSuppressingDisclaimer())return{components:[k]};const M=H9(e,t,{localeInfo:S,rtl:v}),C=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),E=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:h,chart:s,styleReference:"object.barChart",styleOverrides:{title:t.styleService.legend.title.getStyle(),label:t.styleService.legend.label.getStyle()},rtl:v,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:C}),q=E.components[0];if(q){const{dock:e}=q.layout;if(M.fillRange&&(["right","left"].includes(e)||v)&&(M.fillRange.invert=!0),"legend-seq"===q.type&&void 0!==f.selectionDimensionIdx&&M.fillRange&&M.fillRange.min<M.fillRange.max){const e=E7({eventName:"legendRange",key:"legendRangeBrush",targets:[q.key],fillTargets:[q.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:q.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);E.components.push(...e.components),E.interactions.unshift(...e.interactions)}}else M.fillRange&&v&&(M.fillRange.invert=!0);const D=((e,{componentKey:t,collectionKey:n})=>{var r,i,o;const{meta:a}=e.layoutService,s=e.colorService.getMain().getPaletteColor;let l,c;a.isGroupedByDimension?l=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(l=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;a.isContinuous?(c={start:"timeStart",end:"timeEnd"},u=P7(e,t)):a.isStacked&&(c="stack");const d=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,f=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},h=e.layoutService.getLayoutValue("components",null),p=h?h.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:a.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:a.isContinuous||d?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:U8.SCALE.MAIN.MAJOR,fn:l,ref:c},minor:{scale:U8.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:I7({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>f(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:f(e)?.01:.3},strokeWidth:null!=p&&null!==(r=p.style)&&void 0!==r&&r.strokeWidth?L7.BAR.STROKE.WIDTH[p.style.strokeWidth.toUpperCase()]:L7.BAR.STROKE.WIDTH.NONE,stroke:null!=p&&null!==(i=p.style)&&void 0!==i&&null!==(i=i.strokeColor)&&void 0!==i&&i.color?s(null==p||null===(o=p.style)||void 0===o?void 0:o.strokeColor):L7.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:zq.bars.trackBy,compensateForLayoutChanges:zq.bars.compensateForLayoutChanges}}})(t,{componentKey:U8.COMPONENT.BAR,collectionKey:U8.COLLECTION.MAIN}),T=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let i=2;r.isContinuous&&(i=P7(e,t));const o={key:t,type:"box",data:{collection:n},settings:{major:{scale:U8.SCALE.MAIN.MAJOR},minor:{scale:U8.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:I7({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:i,opacity:0,fill:"none"},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:{consume:[{context:"selection",data:[""],style:{active:{strokeWidth:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:.3}}}}]}};return r.isContinuous&&(o.settings.major.ref={start:"timeStart",end:"timeEnd"}),o})(t,{componentKey:U8.COMPONENT.STACK_TOTAL_BAR,collectionKey:U8.COLLECTION.STACK_TOTAL}),N=U9(t,n,f.selectionDimensionIdx),{isStacked:O}=i.meta;let A;A=d.mode.isContinuous?U8.COLLECTION.MINI_CONTINUOUS:O?U8.COLLECTION.MINI_STACK:U8.COLLECTION.MINI;const _=O?T:D,L=g9(0,t),I=[...L,J9(t,{barComponent:_,type:"max",isStacked:O}),J9(t,{barComponent:_,type:"min",isStacked:O}),Y7(t,{barComponent:_,type:"max",isStacked:O}),Y7(t,{barComponent:_,type:"min",isStacked:O}),G7(t,{chart:s,type:"max",collectionKey:O?U8.COLLECTION.STACK_TOTAL:U8.COLLECTION.MAIN}),G7(t,{chart:s,type:"min",collectionKey:O?U8.COLLECTION.STACK_TOTAL:U8.COLLECTION.MAIN}),..._7(e,t,v,!!L[0]),D,T,K9({layoutService:i,viewModel:f,dockService:o}),pee(e,t,v),mee(e,t,v),yee(e,t,v),vee(e,t,v),...bee({environment:n,rtl:v,refLineModel:g,layoutService:i,colorService:a,dockService:o,themeService:m,viewModel:f,chart:s}),jw({viewState:h,viewCache:p,layoutService:i,dockService:o,rtl:v}),xee({dockService:o,layoutService:i,discrete:c,continuousDataModel:u,viewModel:f,flags:t.flags}),C9(D,t,{collectionKey:A}),eG({layoutService:i,dockService:o,discrete:c,continuousDataModel:u,viewState:h,viewCache:p,themeService:m,rtl:v,deviceType:n.deviceType}),...T8({majorScale:U8.SCALE.MAIN.MAJOR,minorScale:U8.SCALE.MAIN.MINOR,tooltipOverlay:U8.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:i,trendLineModel:x,dockService:o,animationsEnabled:f.animations.enabled}),...E.components,r9({layout:e,component:U8.COMPONENT.BAR,minorScale:M.minor},t,v),uee({layout:e,component:U8.COMPONENT.STACK_TOTAL_BAR},t,v),fee({layout:e,type:"max"},t),fee({layout:e,type:"min"},t),...N.components,o9(0,{...t,coloring:a.getMain().getSettings()},v),s9(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&k,_8({tooltip:U8.COMPONENT.TREND_LINES_TOOLTIP,formatter:U8.FORMATTER.MINOR},t,{rtl:v})].filter(Boolean);!function(e){if(e&&0!==e.length)for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(I);const R=[...E.interactions,...N.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:k9(t,{rtl:v,hammer:{gestures:R}}),scales:M,palettes:a.getMain().getPalettes(),components:y.extendComponents(I),strategy:Sg(0,{logicalSize:b,minCenterRatio:0}),formatters:l9(t,M),collections:lee(0,t)}};function See({picasso:t,chart:n,services:r,environment:i,viewState:o,viewCache:a,bootstrapped:s}){const{width:l,height:c}=e.useRect(),u=e.useModel(),d=e.useSelections(),f=e.useOptions(),[h,p]=e.useState(),[m,g]=e.useState(),[y,v]=e.useState(),[b,x]=e.useState(),w=e.useApp();function S(){if(!n.layoutComponents)return Promise.resolve();const{discrete:e,layoutService:s,viewModel:l}=r;a.set("isPreRender",!0);const c=function(e={}){const{alternativeService:s,selectionService:l,refLineModel:c,discrete:p,reducedDataModel:m,continuousDataModel:g,trendLineModel:y,pluginService:v,colorService:b,viewModel:x,dockService:S,themeService:k,customTooltipModel:M,layoutService:C,logicalSize:E,styleService:q,disclaimerService:D}=r,T=l.custom.getActions(),N=t.data("q")(h.prepPicassoDataSet()),O={picasso:t,ds:N,rtl:"rtl"===(null==f?void 0:f.direction),model:u,app:w,chart:n,actions:T,localeInfo:i.localeInfo,logicalSize:E,flags:i.flags,translator:i.translator,selections:d,isLocked:l.getIsSelectionLocked,viewCache:a,viewState:o,alternativeService:s,layoutService:C,dockService:S,viewModel:x,colorService:b,selectionService:l,themeService:k,trendLineModel:y,discrete:p,continuousDataModel:g,reducedDataModel:m.model(),customTooltipModel:M,debouncer:pC,refLineModel:c,pluginService:v,styleService:q,disclaimerService:D,...e};return wee(C.getLayout(),O,i)}(m);h.extractDataPages(),n.layoutComponents({settings:c,data:y}),a.set("isPreRender",!1),h.insertDataPages(),l.animations.hasSlicedHats=c.components.filter((e=>"box-sliced-hat"===e.type)).length>0;const p=[];return 1!==c.components.length&&s.meta.isDiscrete&&p.push(e.command.initialize()),Promise.all(p)}const[[k,M]=[]]=e.usePromise((()=>{var e;if(!(t&&n&&r&&i&&o&&a&&s))return Promise.resolve();const{alternativeService:l,layoutService:c,selectionService:u,refLineModel:d,discrete:f,continuous:h,reducedDataModel:p,continuousDataModel:m,trendLineModel:g,legendLayoutService:y,colorService:v,pluginService:b,viewModel:w,customTooltipModel:S,disclaimerService:k}=r;if(null==u||null===(e=u.custom)||void 0===e||!e.getActions())return Promise.resolve();const{properties:M}=s,C=null==M?void 0:M.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));C&&(S.useCustomTooltip=!1);const E=()=>{x(Date.now()),w.animations.isPartialUpdating=!0};o.onChanged("scrollOffset",(()=>{y&&y.setDataPages([f.query.getCurrentDataPage()]),d&&d.update(),E()})),o.onChanged("legendScrollOffset",E),o.intercept("zoom",h.event.onZoomIntercept({viewCache:a})),o.onChanged("zoom",h.event.onZoomChange({layoutService:c,continuousDataModel:m},E)),u.setLayout(c.getLayout());const q=[];c.meta.isContinuous&&(m.update(c.getLayout()),q.push(m.initialFetch())),g.command.update(),q.push(p.fetch().then((({reducedCube:e})=>{p.update(e)}))),k.initialize(),q.push(Promise.resolve({properties:s.properties}));return Promise.all(q).then((e=>Promise.all([b.initialize(),v.initialize(),l.initialize({properties:M}),x7({reducedDataModel:p,layoutService:c,continuousDataModel:m,trendLineModel:g})]).then((t=>[e,t.pop()]))))}),[s]);e.useEffect((()=>{var e;if(null==r||null===(e=r.colorService)||void 0===e||!e.getMain()||!M)return;const{layoutService:t,selectionService:n,reducedDataModel:o,continuousDataModel:s,trendLineModel:l,legendLayoutService:c,colorService:u,viewModel:d}=r;a.set("minorMinMax",M);const f=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():o.model().cube,{field:m}=u.getMain().getSettings(),y=!t.meta.isContinuous&&(o.model().mode.isReduced||t.meta.isStacked)&&c,v=y?c.getHyperCube():void 0;n.setBrushAliases({colorField:m,useLegendCube:y,legendAlias:`legendCube/${m}`});const b=function({mainCube:e,miniCube:t,legendCube:n,localeInfo:r,layoutService:i,viewModel:o,trendLineModel:a}){const s=i.refs.dataPages.split(".").pop();let l=[],c=[];const u=i.meta.isContinuous?[{key:o.fields.majorNumeric,from:i.meta.isStackedByDimension?o.fields.majorStack:o.fields.major,override:{value:e=>e.qNum}}]:void 0;return{prepPicassoDataSet:()=>({key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:u}}),prepPicassoData(i){const o=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:u}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:u}},...i];return n&&o.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:u}}),a.query.hasTrendLines()&&o.push({key:"trend",data:a.query.getData()}),o},extractDataPages(){l=e[s],c=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=c}}}({mainCube:f,miniCube:h,legendCube:v,localeInfo:i.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),x=k[k.length-1];g({localeInfo:i.localeInfo,...x}),p(b)}),[M]),e.useEffect((()=>{if(!r||!m||!h)return;const e=r.colorService.getMain();if(!e)return;h.prepPicassoDataSet();const t=h.prepPicassoData(e.getData());v(t)}),[m]),e.useEffect((()=>{var e;null!=r&&null!==(e=r.colorService)&&void 0!==e&&e.getMain()&&n.update&&h&&y&&S().then((()=>{const{layoutService:e,discrete:t,legendLayoutService:i}=r;if(i){1===e.getLayoutValue("scrollStartPos")&&i.setDataPages([t.query.getCurrentDataPage()])}n.update(),zq.cacheProperties({viewCache:a,layout:e.getLayout()})}))}),[y]),e.useEffect((()=>{if(!(l&&c&&h&&null!=n&&n.update&&null!=r&&r.colorService.getMain()))return;const{viewModel:e}=r;e.animations.isSizeChanging=!0;const{dockService:t,themeService:o}=r;t.update({width:l,height:c}),o.setTheme(i.theme),S().then((()=>{n.update&&n.update()}))}),[l,c]),e.useEffect((()=>{if(null==n||!n.update)return;const{viewModel:e}=r;n.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]}),e.animations.isPartialUpdating=!1}),[b])}const kee=e=>"[object Object]"===Object.prototype.toString.call(e),Mee=e=>Array.isArray(e);function Cee(e,t){if(e===t)return!0;if(Mee(e)){if(!Mee(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Cee(e[n],t[n]))return!1;return!0}if(kee(e)){if(!kee(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!Cee(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function Eee({enable:t=!0}={}){const n=e.useModel(),r=()=>Date.now().toString()+Math.random(),[i,o]=e.useState(r()),a={properties:void 0};return e.useEffect((()=>{if(!n||!n.getEffectiveProperties||!t)return()=>{};const e=()=>{n.getEffectiveProperties().then((e=>{const t=vg(!0,{},e);if(!a.properties)return void(a.properties=t);const n=function(e,t){var n,r,i,o;const a={properties:!1,exclude:!1};if(e===t)return a;const s=vg(!0,{},e),l=vg(!0,{},t);return a.exclude=!Cee(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,a.properties=!Cee(s,l),a}(a.properties,t);a.properties=t,n.exclude&&!n.properties&&o(r())}))};return n.on("changed",e),e(),()=>{n.removeListener("changed",e)}}),[t]),i}function qee({env:t,services:n}){var r;const i=e.useApp(),o=e.useModel(),a=e.useRenderState(),s=Eee({enable:!1===(null==n||null===(r=n.layoutService)||void 0===r||null===(r=r.meta)||void 0===r?void 0:r.isSnapshot)}),[l,c]=e.usePromise((async()=>{if(!t||!n)return Promise.resolve();const{layoutService:e}=n,{isSnapshot:r,isStacked:s,isContinuous:l}=e.meta,c=[];return r||c.push(o.getEffectiveProperties()),Promise.all(c).then((async t=>{const n=t[0]||void 0;if(null!=n&&n.qHyperCubeDef){const t=e.getLayout(),r=vg(!0,{},n),c=(({properties:e,layout:t,isStacked:n,isContinuous:r,model:i,layoutService:o})=>{var a,s;const l=t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),c=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=vg(!0,{},e);return((e,t,n)=>{const{color:{mode:r}}=n;e.length>1&&n.color?n.color.persistent=!0:"byDimension"===r&&t.length>1?n.color.mode="byMultiple":"byExpression"===r&&0===t.length?n.color.mode="primary":0===e.length&&t.length>0&&(n.color.byMeasureDef=void 0,n.color.byDimDef=void 0,1===t.length&&"byExpression"!==r&&(n.color.mode="primary"))})(l,c,e),l.length>1&&n&&!r&&"S"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="K"),l.length<2&&"K"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="S"),null===(a=i.colorSupport)||void 0===a||null===(s=a.colorByUpdater)||void 0===s||s.call(a,e,"qHyperCubeDef.",t),function({properties:e,layoutService:t}){const{filteredFields:n}=t.meta;if(!(n.measures.length>0))return;const{mode:r}=e.color||{};if("byExpression"===r){var i;if("colorByExpression"===(null===(i=t.getLayout().qHyperCube.qMeasureInfo)||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.qAttrExprInfo)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.id))return;const{current:r,target:o}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:i}=n.reduce(((e,n,r)=>{var i;return"colorByExpression"===(null===(i=n.qAttributeExpressions[0])||void 0===i?void 0:i.id)&&(e.current=r),void 0!==e.target||t.includes(r)||(e.target=r),e}),{current:void 0,target:void 0});return{current:r,target:i}}({properties:e,filtered:n.measures});if(void 0===r)return;const a=e.qHyperCubeDef.qMeasures[r].qAttributeExpressions[0];e.qHyperCubeDef.qMeasures[r].qAttributeExpressions.splice(0,1),e.qHyperCubeDef.qMeasures[o].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:o}),!Uw.compare(u,e,!0)&&JSON.stringify(u)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)})({properties:n,layout:t,isStacked:s,isContinuous:l,model:o,layoutService:e});if(c)return a.pending(),(e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))})(t)?o.setProperties(n).then((()=>{i.clearUndoBuffer()})):void await((e,t,n)=>{if(!e)return Promise.resolve();let r=Uw.generate(t,n);return vg(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0)):Promise.resolve()})(o,r,n);a.restore()}return{properties:n}}))}),[t,n,s]);if(c&&!c.isHandled)throw c;return l}var Dee={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Oe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const S={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}var C=t().bind(null,!0),E={},q=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===M(e)}function T(e){return void 0===e}function N(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?o:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){A(e[r],t[r])||(n=!1)})),n);if(q(e)&&q(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}E.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?C({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);A(o,a)||N(t,i)||(T(a)?r.push({op:"add",path:s,value:o}):D(o)&&D(a)?r=r.concat(E.generate(a,o,s)):q(o)&&q(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,i))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(E.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){T(t[i])&&!N(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},E.apply=function(e,t){t.forEach((function(t){var n,r,i=O(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(q(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(q(a)&&q(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return k(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!N(n,e)&&delete n[e]})),C(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=O(e,t.from);q(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(q(i)?i.splice(+o,1):delete i[o])}))},E.clone=function(e){return C({},e)},E.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},E.updateObject=function(e,t){Object.keys(e).length?E.apply(e,E.generate(e,t)):C(e,t)};const _=E,L=function(e,n,r){if(!e)return Promise.resolve();var i=_.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var I="accumulation";function R(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===I)return n[r]}function P(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===I)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=S.getNumStepComp(n,l),f=S.getAboveComp(n,l,u,d),h=S.getRangeComp("RangeSum",f);if(S.needDimension({modifier:n,properties:r,layout:i})){var p=S.getDimComp(c,1),m=S.getDimComp(c,0),g=S.getAggrComp(h,p,m);h=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(P(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(P(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(P(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(P(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=R(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=R(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(P(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(I))return!1;var o=R(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function B(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const $={translationKey:"properties.modifier.movingAverage",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=S.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=S.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=S.getNumStepComp(r,c),p=S.getAboveComp(r,c,f,h);if(r.nullSuppression)t=S.getRangeComp("RangeAvg",p);else{var m=S.getRangeComp("RangeSum",p),g=function(e,t){var n=S.getRowNoComp(e,t);if(!S.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(S.needDimension({modifier:r,properties:i,layout:a})){var v=S.getDimComp(u,1),b=S.getDimComp(u,0),x=S.getAggrComp(y,v,b);y=r.showExcludedValues?S.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=B(t,e);return o&&!o.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?S.generateTSDExpression(n,t,r):t},extractInputExpression:S.extractInputExpression,initModifier:function(e,t){S.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=S.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(W))return!1;var o=U(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=S.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(S.needDimension({modifier:n,properties:r,layout:i})){var h=S.getDimComp(c,1),p=S.getDimComp(c,0),m=S.getAggrComp(f,h,p);f=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(S.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(S.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=S.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",Se="qDef.qLabelExpression",ke="qDef.base.qLabel",Me="qDef.base.qLabelExpression",Ce="qDef.qAggrFunc",Ee="qDef.base.qAggrFunc",qe={initBase:function(e,t){(t||qe.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,ke,o(e,we)),n(e,Me,o(e,Se)))},restoreBase:function(e){qe.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,ke)),n(e,Se,o(e,Me)),o(e,Ce)&&o(e,Ee)&&n(e,Ce,o(e,Ee)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const De=qe;function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}var Ne={accumulation:F,movingAverage:$,difference:ee,normalization:ue,timeSeriesDecomposition:G};const Oe={modifiers:Ne,apply:_e,applyModifiers:Le,cleanUpMeasure:Ie,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Re,getActiveModifier:Pe,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ne[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ne[e]&&Ne[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Ze({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Ae={};function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var c=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Te(r))return Le({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Re({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Qe(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(n++,"object"!==Te(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ne[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&$e(t)&&S.simplifyExpression(t.qDef.base.qDef)!==S.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Le({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Te(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Ie(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Le(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Qe(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Re({measures:n,properties:r}))return n.forEach((function(e){return Ie(e)})),Promise.resolve();var l=a?void 0:Qe(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(s++,"object"!==Te(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ne[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ne[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ne[r.type].updateModifier&&Ne[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Ne[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Ve(n)):Ie(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Ie(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!Ne[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Re(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Pe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ne[r.type]&&!r.disabled)return r}}function ze(e){var t=Pe(e);return!t||Ne[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Be(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Pe(e);n&&(void 0!==n.outputExpression&&Be(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!Ne[t.type]&&Be(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function $e(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Te(e)||e.disabled||!Ne[e.type])&&(void 0===i[e.type]&&(i[e.type]=Ne[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):L(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&Ne[e.type]&&Ne[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=We(t);o&&n.push(o),i=i||Ze({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var w=n(229),S=n.n(w);function k(e,t){var n=S()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function M(e,t){return S()(!0,{},t,e)}function C(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var E=Math.pow(2,53)-1;function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const T=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},N=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},O=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},_=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=k(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=k(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},I=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=M(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=M(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},R=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=C(a.max,i.dimensions.length,E),l=C(a.min,i.dimensions.length,0);return{maxDimensions:C(o.max,s,E),minDimensions:C(o.min,l,0),maxMeasures:s,minMeasures:l}},P=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=S()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=S()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return q(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function $(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=R({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,S=b.maxMeasures,k=b.minMeasures,M=l.defaultDimension,C=void 0===M?A():M,E=l.defaultMeasure,q=void 0===E?_():E;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:k})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:k,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:C}),I({exportFormat:t,maxMeasures:S,minMeasures:k,newHyperCubeDef:v,defaultMeasure:q}),B({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),P({exportFormat:t,newHyperCubeDef:v}),N("qMaxStackedCells",y,v),N("qNoOfLeftDims",y,v),O("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),O("qMode",y,v,"S"),O("qReductionMode",y,v,"N"),O("qSortbyYValue",y,v),O("qIndentMode",y,v),O("qShowTotalsAbove",y,v),T(g,t,r),m.qProperty=g;var D=o.getValue(u||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:D}),f&&$(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&$(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}o.auto=!1,o.mode=a}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?$(n,"unsupportedAutoMinMax")||S()(n.measureAxis,t.measureAxis):$(n,"supportedAutoMinMax")||S()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&S()(s,n.properties.measureAxes[t[0].axis])):S()(s,n.properties.measureAxes[0])}},we=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Se={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function ke(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Me(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=ke(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=ke(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Ee="qHyperCubeDef.qMeasures",qe="conditionalColoring",De="measures",Te="qDef.conditionalColoring";const Ne={quarantine:function(e){Me({properties:e,arrayPath:Ee,quarantineName:qe,arrayName:De,itemPath:Te})},unquarantine:function(e){Ce({properties:e,arrayPath:Ee,itemPath:Te,arrayName:De,quarantineName:qe})}};var Oe="qHyperCubeDef.qMeasures",Ae="measures",_e="qHyperCubeDef.qDimensions",Le="dimensions",Ie="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Re="alternativeMeasures",Pe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const Be={quarantine:function(e){Me({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),Me({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},unquarantine:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),Ce({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},quarantineAlternative:function(e){Me({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),Me({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ce({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:W,colorChart:ye,axisChart:Se,quarantineProperty:x,unquarantineProperty:$,quarantineArrayProp:Me,unquarantineArrayProp:Ce,conditionalColoring:Ne,conditionalShow:Be}})(),r.default})()}(Dee);var Tee=og(Dee.exports);function Nee(e,t){if("custom"===e.dimensionAxis.axisDisplayMode){const n=t.layout.qHyperCube.qMeasureInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})).length,i=e.dimensionAxis.maxVisibleItems;i<1?e.dimensionAxis.maxVisibleItems=10:i>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(i,Math.floor(1e4/(r+n))))}}const Oee=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],Aee=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function _ee(e,t,n){const r=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=ck({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:e,translator:n,config:{id:"barChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]},flags:t});return{component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==t?void 0:t.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:Object.keys(Oee).map((e=>Oee[e])),defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",show:(e,t)=>!Ag.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue(e,t,n){const{properties:r}=n,{barGrouping:i,qHyperCubeDef:o}=r,a=o.qMeasures.length,s=o.qDimensions.length,l="grouped"===i.grouping&&s>0&&a+s>2;return Ag.continuous(r)?1:l?.9:.7},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:Aee("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:Aee("axis.label.name",r,e)}}},labelSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.labelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...Aee("label.value",r,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{legendTitleSection:{component:"items",ref:"components",key:"legend",items:Aee("legend.title",r,e)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{legendLabelSection:{component:"items",ref:"components",key:"legend",items:Aee("legend.label",r,e)}}}:void 0}}}function Lee(e){return{classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"LayerStyleEditor.style.strokeWidth",component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:Object.keys(Oee).map((e=>Oee[e])),schemaIgnore:!0,defaultValue:Oee[0].value},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891",index:-1},width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"items",show:(e,t)=>!Ag.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t,n)=>((e,t)=>{var n,r,i;const o=null===(n=t.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})).length,a=null===(r=t.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})).length,s="grouped"===(null===(i=e.barGrouping)||void 0===i?void 0:i.grouping)&&a>0&&o+a>2;return Ag.continuous(t)?1:s?.9:.7})(n.properties,n.layout)}}}}},optionsSection:{translation:"LayerStyleEditor.label.Options",component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollbar:{ref:"scrollbar",translation:"properties.scrollbar",component:"dropdown",type:"string",options:Object.keys(GK.OPTIONS).map((e=>GK.OPTIONS[e])),schemaIgnore:!0,defaultValue:GK.DEFAULT.value},scrollAlignment:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",schemaIgnore:!0,defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},gridLines:{type:"items",items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}}}}}}}}}function Iee(e,t,n,r=!1){return r?Lee(t):_ee(e,t,n)}const Ree=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6},Pee=(e,t)=>null==e?void 0:e.qHyperCube[t].filter((e=>Ree(e))),zee=e=>({get(t,n,r){const i="stacked";return"butterfly"===t(n.type)?Y8({layout:r.layout,flags:e})?t(n.type):i:Ag.continuous(r.layout)?i:t(n.type)},set(e,t,n){const r=Rg(n.type,n);t(n.type,e,r)}}),Fee=e=>{if(!e)return!1;const t=vg(!0,{},e);return t.qHyperCube.qMeasureInfo=Pee(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=Pee(e,"qDimensionInfo"),t&&!Ag.continuous(t)&&Ag.stacked(t)},jee=({translator:e,flags:t,anything:n})=>{var r,i,o;const a=null==n||null===(r=n.sense)||void 0===r||null===(i=r.isUnsupportedFeature)||void 0===i?void 0:i.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>Pee(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!Fee(t.layout)&&Pee(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>Fee(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,i){i.dataPoint.showSegmentLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>Fee(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,i){i.dataPoint.showTotalLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>Pee(n.layout,"qDimensionInfo").length&&Pee(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>Pee(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,i){i.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(o=n.sense)||void 0===o?void 0:o.theme,c={uses:"settings",items:{simpleStyling:Iee(l,t,e,!0),simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:Iee(l,t,e,!1),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:(e,n)=>{const r=[{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"}];return Y8({layout:n.layout,flags:t})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){const n=Pee(t.layout,"qMeasureInfo").length,r=Pee(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},globalChange(e,n,r){"butterfly"!==e.barGrouping.grouping||Y8({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),"butterfly"===e.barGrouping.grouping&&e.measureAxis&&"max"!==e.measureAxis.minMax&&!e.measureAxis.autoMinMax&&(e.measureAxis.minMax="max")},change(e,n,r){"butterfly"!==e.barGrouping.grouping||Y8({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),Pee(n.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>Ag.continuous(n.layout),convertFunctions:zee(t)},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)=>Ag.continuous(n.layout),convertFunctions:(u="vertical",{get:(e,t,n)=>Ag.continuous(n.layout)?u:e(t.type),set(e,t,n){const r=Rg(n.type,n);t(n.type,e,r)}})},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(GK.OPTIONS).map((e=>GK.OPTIONS[e])),defaultValue:GK.DEFAULT.value},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)=>!Ag.continuous(n.layout)}}},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}},valueLabels:{type:"items",snapshot:{tid:"property-valueLabels"},items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!1,options:[{value:!0,label:(t,n)=>((e,t,n)=>n&&n.get(Fee(t.layout)?"properties.on":"Common.Auto"))(0,n,e)},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&Fee(n.layout)},showTotalLabels:{ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&Fee(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:Gq}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,t,n)=>!Ag.continuous(n.layout),items:{axisDisplayMode:{ref:"dimensionAxis.axisDisplayMode",type:"string",translation:"properties.axis.displaymode",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:{ref:"dimensionAxis.maxVisibleItems",translation:"properties.axis.maxvisiblevalues",expression:"optional",type:"integer",invalid(e,t,n){const r=Pee(n.layout,"qMeasureInfo").length,i=Pee(n.layout,"qDimensionInfo").length,o=e.dimensionAxis.maxVisibleItems;return o<0||o>1e4/(i+r)},globalChange:Nee,defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}},continuousGroup:{items:{miniChart:null},show:!a}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};var u;return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(c.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"}]}}}),null!=t&&t.isEnabled("TLV_800_BUTTERFLY_CHART")&&(c.items.measureAxis={uses:"axis.flippableMeasureAxis",items:{minMax:{items:{minMax:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&!e.measureAxis.autoMinMax},min:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&["min","minMax"].includes(e.measureAxis.minMax)&&!e.measureAxis.autoMinMax},max:{invalid:e=>e.measureAxis&&"minMax"===e.measureAxis.minMax?e.measureAxis.min>=e.measureAxis.max:!(!e.measureAxis||"max"!==e.measureAxis.minMax||"butterfly"!==e.barGrouping.grouping)&&e.measureAxis.max<=0}}}}}),c},Bee={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){Uy(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:i}=e.qHyperCubeDef,{qCardinal:o}=t.layout.qHyperCube.qDimensionInfo[0],a=i.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&o>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},Hee={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},Vee=({translator:e,flags:t,anything:n})=>{var r,i;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var i,o;if(null!=n&&null!==(i=n.sense)&&void 0!==i&&null!==(o=i.isUnsupportedFeature)&&void 0!==o&&o.call(i,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const i=null===(n=t.layout)||void 0===n||null===(n=n.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.findIndex((e=>Ree(e)));return(null===(r=t.properties)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r[i])===e})(e,t),s=Ag.continuous(r.layout);return!(a&&s)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Dimensions.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0}}},measures:{items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Measures.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"trendlines")?void 0:z8({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function $ee({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:Vee({translator:e,flags:t,anything:n}),sorting:Bee,addons:Hee,settings:jee({translator:e,flags:t,anything:n})}}}const Wee=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6};function Uee({flags:e}){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t,n){const r=n.qHyperCube.qMeasureInfo.length,i=n.qHyperCube.qDimensionInfo.filter((e=>Wee(e))).length;return 1===r&&2===i&&0===e}}}}}},presentation:{uses:"presentation",items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:(t,n)=>{const r=[{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"}];return Y8({layout:null==n?void 0:n.layout,flags:e})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){return t.qHyperCube.qMeasureInfo.filter((e=>Wee(e))).length+t.qHyperCube.qDimensionInfo.filter((e=>Wee(e))).length>2&&!Ag.continuous(t)&&!((null==(n=t)||null===(r=n.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>Wee(e))).length)>1&&(null==n||null===(i=n.qHyperCube)||void 0===i?void 0:i.isHCEnabled));var n,r,i},change(e){e.qHyperCubeDef.qDimensions.length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"}},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)=>!Ag.continuous(t)}}},color:{uses:"color"}}}}function Yee(e){const t={},n=cC(e,"components"),r=cC(e,"dimensionAxis.axisDisplayMode"),i=cC(e,"dimensionAxis.maxVisibleItems"),o=n?n.filter((e=>"bar"===e.key))[0]:void 0,a=cC(e,"tooltip");if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),a){t.chart_tooltip_custom=!a.auto;const e=cC(a,"chart.object.refId");!a.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const Kee=e=>!!(e&&e.qHyperCube.qSize.qcy>0),Gee={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function Xee(){const e=[];return Object.keys(Gee).forEach((t=>{e.push(Gee[t])})),e}function Jee(e){return{definition:$ee(e),softDefinition:Uee(e),support:{snapshot:Kee,export:Kee,exportData:!0,sharing:Kee,viewData:!0,effects:!0,modifiers:Xee()},importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=Tee.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:D6(e),defaultPropertyValues:a,hypercubePath:i,extension:r}),l=s.qProperty;return l.qHyperCubeDef.qDimensions.length>1&&"stacked"===l.barGrouping.grouping&&(l.qHyperCubeDef.qMode="K",l.qHyperCubeDef.qAlwaysFullyExpanded=!0),Tee.conditionalShow.unquarantine(l),Tee.conditionalShow.unquarantineAlternative(l),s},exportProperties:(e,t,n)=>{Tee.conditionalShow.quarantine(e.qProperty),Tee.conditionalShow.quarantineAlternative(e.qProperty);return Tee.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(Uy),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(Uy)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:i}=e;if(t||!1!==i)return;const{continuousAuto:o}=n;(o||!o&&r)&&(e.scrollbar=GK.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:Yee}}return function(t){const n=X4();return{qae:T6(t),ext:Jee(t),component(){const r=O6({env:t}),{viewState:i,viewCache:o}=A6(),a=function({picasso:t}){const n=e.useElement(),r=e.useOptions(),[i,o]=e.useState();return e.useEffect((()=>{if(!t)return()=>{};n.style.overflow="hidden";const e=t({renderer:{prio:[(null==r?void 0:r.renderer)||"canvas"]}}).chart({element:n,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[r.renderer]),i}({picasso:n}),s=e7({picasso:n,chart:a,environment:r,viewState:i,viewCache:o}),l=qee({env:t,services:s});See({picasso:n,chart:a,services:s,environment:r,viewState:i,viewCache:o,bootstrapped:l}),(({environment:t,services:n,chart:r,viewState:i,bootstrapped:o})=>{e.onTakeSnapshot((e=>{if(!t||!n||!o)return;const{layoutService:a,dockService:s,colorService:l,discrete:c,continuousDataModel:u,reducedDataModel:d}=n,{width:f,height:h}=s.meta.chart.size;if(e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:f,h:h}},a.meta.isSnapshot)return Promise.resolve();e.snapshotData.content.chartData={scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:_g(r,U8.COMPONENT.LEGEND_COLOR_CAT)};const{properties:p}=o,m=null==p?void 0:p.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));return m&&(e.tooltip.auto=!0),a.meta.isDiscrete?(c.command.setSnapshotData(e),d.setSnapshotData(e)):u.setSnapshotData(e),l.getMain().getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))})),e.useImperativeHandle((()=>({getViewState(){if(i&&r)return{scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:_g(r,U8.COMPONENT.LEGEND_COLOR_CAT)}}})),[i,r])})({environment:r,services:s,chart:a,viewState:i,bootstrapped:l})}}}}));
|
|
122
|
+
`),O2.rippleVisible,z2,550,(({theme:e})=>e.transitions.easing.easeInOut),O2.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),O2.child,O2.childLeaving,F2,550,(({theme:e})=>e.transitions.easing.easeInOut),O2.childPulsate,j2,(({theme:e})=>e.transitions.easing.easeInOut)),V2=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=FT(n,A2),[s,l]=AD.useState([]),c=AD.useRef(0),u=AD.useRef(null);AD.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=AD.useRef(!1),f=x0(),h=AD.useRef(null),p=AD.useRef(null),m=AD.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,hZ.jsx(H2,{classes:{ripple:LQ(i.ripple,O2.ripple),rippleVisible:LQ(i.rippleVisible,O2.rippleVisible),ripplePulsate:LQ(i.ripplePulsate,O2.ripplePulsate),child:LQ(i.child,O2.child),childLeaving:LQ(i.childLeaving,O2.childLeaving),childPulsate:LQ(i.childPulsate,O2.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=AD.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=AD.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=AD.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return AD.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),hZ.jsx(B2,qT({className:LQ(O2.root,i.root,o),ref:p},a,{children:hZ.jsx(GW,{component:null,exit:!0,children:s})}))}));function $2(e){return RQ("MuiButtonBase",e)}const W2=PQ("MuiButtonBase",["root","disabled","focusVisible"]),U2=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Y2=f2("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${W2.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),K2=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:S,onMouseUp:k,onTouchEnd:M,onTouchMove:C,onTouchStart:E,tabIndex:q=0,TouchRippleProps:D,touchRippleRef:T,type:N}=n,O=FT(n,U2),A=AD.useRef(null),_=AD.useRef(null),L=g0(_,T),{isFocusVisibleRef:I,onFocus:R,onBlur:P,ref:z}=T0(),[F,j]=AD.useState(!1);l&&F&&j(!1),AD.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[B,H]=AD.useState(!1);AD.useEffect((()=>{H(!0)}),[]);const V=B&&!c&&!l;function $(e,t,n=u){return m0((r=>{t&&t(r);return!n&&_.current&&_.current[e](r),!0}))}AD.useEffect((()=>{F&&d&&!c&&B&&_.current.pulsate()}),[c,d,F,B]);const W=$("start",w),U=$("stop",m),Y=$("stop",g),K=$("stop",k),G=$("stop",(e=>{F&&e.preventDefault(),S&&S(e)})),X=$("start",E),J=$("stop",M),Z=$("stop",C),Q=$("stop",(e=>{P(e),!1===I.current&&j(!1),h&&h(e)}),!1),ee=m0((e=>{A.current||(A.current=e.currentTarget),R(e),!0===I.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=AD.useRef(!1),re=m0((e=>{d&&!ne.current&&F&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=m0((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(O.href||O.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===N?"button":N,ae.disabled=l):(O.href||O.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=g0(t,z,A),le=qT({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:q,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=N0({root:["root",t&&"disabled",n&&"focusVisible"]},$2,i);return n&&r&&(o.root+=` ${r}`),o})(le);return hZ.jsxs(Y2,qT({as:oe,className:LQ(ce.root,a),ownerState:le,onBlur:Q,onClick:p,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:W,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Z,onTouchStart:X,ref:se,tabIndex:l?-1:q,type:N},ae,O,{children:[o,V?hZ.jsx(V2,qT({ref:L,center:i},D)):null]}))}));function G2(e){return RQ("MuiTypography",e)}PQ("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const X2=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],J2=f2("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${qZ(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>qT({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Z2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Q2={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},e5=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiTypography"}),r=(e=>Q2[e]||e)(n.color),i=TQ(qT({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=Z2}=i,h=FT(i,X2),p=qT({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),m=s||(u?"p":f[d]||Z2[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return N0({root:["root",o,"inherit"!==e.align&&`align${qZ(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},G2,a)})(p);return hZ.jsx(J2,qT({as:m,ref:t,ownerState:p,className:LQ(g.root,a)},h))})),t5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function n5(e){const t=[],n=[];return Array.from(e.querySelectorAll(t5)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function r5(){return!0}function i5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=n5,isEnabled:a=r5,open:s}=e,l=AD.useRef(!1),c=AD.useRef(null),u=AD.useRef(null),d=AD.useRef(null),f=AD.useRef(null),h=AD.useRef(!1),p=AD.useRef(null),m=g0(t.ref,p),g=AD.useRef(null);AD.useEffect((()=>{s&&p.current&&(h.current=!n)}),[n,s]),AD.useEffect((()=>{if(!s||!p.current)return;const e=f0(p.current);return p.current.contains(e.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),AD.useEffect((()=>{if(!s||!p.current)return;const e=f0(p.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===p.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=p.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=o(p.current)),n.length>0){var i,s;const e=Boolean((null==(i=g.current)?void 0:i.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,a,s,o]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0};return hZ.jsxs(AD.Fragment,{children:[hZ.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),AD.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),hZ.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const o5=AD.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=AD.useState(null),s=g0(AD.isValidElement(n)?n.ref:null,t);if(c0((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),c0((()=>{if(o&&!i)return p0(t,o),()=>{p0(t,null)}}),[t,o,i]),i){if(AD.isValidElement(n)){const e={ref:s};return AD.cloneElement(n,e)}return hZ.jsx(AD.Fragment,{children:n})}return hZ.jsx(AD.Fragment,{children:o?MW.createPortal(n,o):o})}));function a5(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function s5(e){return parseInt(h0(e).getComputedStyle(e).paddingRight,10)||0}function l5(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&a5(e,i)}))}function c5(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function u5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=f0(e);return t.body===e?h0(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(f0(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${s5(r)+e}px`;const t=f0(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${s5(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=f0(r).body;else{const t=r.parentElement,n=h0(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const d5=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&a5(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);l5(t,e.mount,e.modalRef,r,!0);const i=c5(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=c5(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=u5(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=c5(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&a5(e.modalRef,t),l5(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&a5(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function f5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=d5,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=AD.useRef({}),h=AD.useRef(null),p=AD.useRef(null),m=g0(p,d),[g,y]=AD.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),w=()=>{i.mount(x(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=m0((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||f0(h.current).body;i.add(x(),e),p.current&&w()})),k=AD.useCallback((()=>i.isTopModal(x())),[i]),M=m0((e=>{h.current=e,e&&(u&&k()?w():p.current&&a5(p.current,b))})),C=AD.useCallback((()=>{i.remove(x(),b)}),[b,i]);AD.useEffect((()=>()=>{C()}),[C]),AD.useEffect((()=>{u?S():v&&o||C()}),[u,C,v,o,S]);const E=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},q=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=q2(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=qT({},n,t);return qT({role:"presentation"},r,{onKeyDown:E(r),ref:m})},getBackdropProps:(e={})=>qT({"aria-hidden":!0},e,{onClick:q(e),open:u}),getTransitionProps:()=>({onEnter:d0((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:d0((()=>{y(!0),s&&s(),o&&C()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:M,isTopModal:k,exited:g,hasTransition:v}}const h5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p5={entering:{opacity:1},entered:{opacity:1}},m5=AD.forwardRef((function(e,t){const n=L1(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:p,style:m,timeout:g=r,TransitionComponent:y=VW}=e,v=FT(e,h5),b=AD.useRef(null),x=g0(b,a.ref,t),w=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},S=w(d),k=w(((e,t)=>{x2(e);const r=w2({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),M=w(u),C=w(p),E=w((e=>{const t=w2({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),q=w(h);return hZ.jsx(y,qT({appear:o,in:l,nodeRef:b,onEnter:k,onEntered:M,onEntering:S,onExit:E,onExited:q,onExiting:C,addEndListener:e=>{i&&i(b.current,e)},timeout:g},v,{children:(e,t)=>AD.cloneElement(a,qT({style:qT({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},p5[e],m,a.props.style),ref:x},t))}))}));function g5(e){return RQ("MuiBackdrop",e)}PQ("MuiBackdrop",["root","invisible"]);const y5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],v5=f2("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>qT({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),b5=AD.forwardRef((function(e,t){var n,r,i;const o=I1({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:h={},slots:p={},TransitionComponent:m=m5,transitionDuration:g}=o,y=FT(o,y5),v=qT({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return N0({root:["root",n&&"invisible"]},g5,t)})(v),x=null!=(n=h.root)?n:u.root;return hZ.jsx(m,qT({in:f,timeout:g},y,{children:hZ.jsx(v5,qT({"aria-hidden":!0},x,{as:null!=(r=null!=(i=p.root)?i:c.Root)?r:l,className:LQ(b.root,s,null==x?void 0:x.className),ownerState:qT({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function x5(e){return RQ("MuiButton",e)}const w5=PQ("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),S5=AD.createContext({}),k5=AD.createContext(void 0),M5=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],C5=e=>qT({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),E5=f2(K2,{shouldForwardProp:e=>d2(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${qZ(n.color)}`],t[`size${qZ(n.size)}`],t[`${n.variant}Size${qZ(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return qT({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":qT({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:G0(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:G0(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:G0(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":qT({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${w5.focusVisible}`]:qT({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${w5.disabled}`]:qT({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${G0(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${w5.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${w5.disabled}`]:{boxShadow:"none"}})),q5=f2("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${qZ(n.size)}`]]}})((({ownerState:e})=>qT({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},C5(e)))),D5=f2("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${qZ(n.size)}`]]}})((({ownerState:e})=>qT({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},C5(e)))),T5=AD.forwardRef((function(e,t){const n=AD.useContext(S5),r=AD.useContext(k5),i=I1({props:s0(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=FT(i,M5),x=qT({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return qT({},a,N0({root:["root",o,`${o}${qZ(t)}`,`size${qZ(i)}`,`${o}Size${qZ(i)}`,`color${qZ(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${qZ(i)}`],endIcon:["icon","endIcon",`iconSize${qZ(i)}`]},x5,a))})(x),S=g&&hZ.jsx(q5,{className:w.startIcon,ownerState:x,children:g}),k=f&&hZ.jsx(D5,{className:w.endIcon,ownerState:x,children:f}),M=r||"";return hZ.jsxs(E5,qT({ownerState:x,className:LQ(n.className,w.root,l,M),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:LQ(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[S,o,k]}))}));function N5(e){return RQ("MuiModal",e)}PQ("MuiModal",["root","hidden","backdrop"]);const O5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],A5=f2("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>qT({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),_5=f2(b5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),L5=AD.forwardRef((function(e,t){var n,r,i,o,a,s;const l=I1({name:"MuiModal",props:e}),{BackdropComponent:c=_5,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:h,container:p,component:m,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:k=!1,hideBackdrop:M=!1,keepMounted:C=!1,onBackdropClick:E,open:q,slotProps:D,slots:T}=l,N=FT(l,O5),O=qT({},l,{closeAfterTransition:f,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:S,disableScrollLock:k,hideBackdrop:M,keepMounted:C}),{getRootProps:A,getBackdropProps:_,getTransitionProps:L,portalRef:I,isTopModal:R,exited:P,hasTransition:z}=f5(qT({},O,{rootRef:t})),F=qT({},O,{exited:P}),j=(e=>{const{open:t,exited:n,classes:r}=e;return N0({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},N5,r)})(F),B={};if(void 0===h.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();B.onEnter=e,B.onExited=t}const H=null!=(n=null!=(r=null==T?void 0:T.root)?r:g.Root)?n:A5,V=null!=(i=null!=(o=null==T?void 0:T.backdrop)?o:g.Backdrop)?i:c,$=null!=(a=null==D?void 0:D.root)?a:y.root,W=null!=(s=null==D?void 0:D.backdrop)?s:y.backdrop,U=N2({elementType:H,externalSlotProps:$,externalForwardedProps:N,getSlotProps:A,additionalProps:{ref:t,as:m},ownerState:F,className:LQ(d,null==$?void 0:$.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),Y=N2({elementType:V,externalSlotProps:W,additionalProps:u,getSlotProps:e=>_(qT({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:LQ(null==W?void 0:W.className,null==u?void 0:u.className,null==j?void 0:j.backdrop),ownerState:F});return C||q||z&&!P?hZ.jsx(o5,{ref:I,container:p,disablePortal:w,children:hZ.jsxs(H,qT({},U,{children:[!M&&c?hZ.jsx(V,qT({},Y)):null,hZ.jsx(i5,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:S,isEnabled:R,open:q,children:AD.cloneElement(h,B)})]}))}):null}));function I5(e){return RQ("MuiDivider",e)}PQ("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const R5=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],P5=f2("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>qT({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:G0(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>qT({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>qT({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>qT({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>qT({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),z5=f2("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>qT({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),F5=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,h=FT(n,R5),p=qT({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return N0({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},I5,r)})(p);return hZ.jsx(P5,qT({as:a,className:LQ(m.root,o),role:u,ref:t,ownerState:p},h,{children:i?hZ.jsx(z5,{className:m.wrapper,ownerState:p,children:i}):null}))}));F5.muiSkipListHighlight=!0;const j5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function B5(e){return`scale(${e}, ${e**2})`}const H5={entering:{opacity:1,transform:B5(1)},entered:{opacity:1,transform:"none"}},V5="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),$5=AD.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:f,style:h,timeout:p="auto",TransitionComponent:m=VW}=e,g=FT(e,j5),y=x0(),v=AD.useRef(),b=L1(),x=AD.useRef(null),w=g0(x,i.ref,t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=S(c),M=S(((e,t)=>{x2(e);const{duration:n,delay:r,easing:i}=w2({style:h,timeout:p,easing:o},{mode:"enter"});let a;"auto"===p?(a=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:V5?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)})),C=S(l),E=S(f),q=S((e=>{const{duration:t,delay:n,easing:r}=w2({style:h,timeout:p,easing:o},{mode:"exit"});let i;"auto"===p?(i=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=i):i=t,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:V5?i:.666*i,delay:V5?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=B5(.75),u&&u(e)})),D=S(d);return hZ.jsx(m,qT({appear:r,in:a,nodeRef:x,onEnter:M,onEntered:C,onEntering:k,onExit:q,onExited:D,onExiting:E,addEndListener:e=>{"auto"===p&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===p?null:p},g,{children:(e,t)=>AD.cloneElement(i,qT({style:qT({opacity:0,transform:B5(.75),visibility:"exited"!==e||a?void 0:"hidden"},H5[e],h,i.props.style),ref:w},t))}))}));$5.muiSupportAuto=!0;const W5=AD.createContext({});function U5(e){return RQ("MuiList",e)}PQ("MuiList",["root","padding","dense","subheader"]);const Y5=["children","className","component","dense","disablePadding","subheader"],K5=f2("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>qT({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),G5=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiList"}),{children:r,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=FT(n,Y5),u=AD.useMemo((()=>({dense:a})),[a]),d=qT({},n,{component:o,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return N0({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},U5,t)})(d);return hZ.jsx(W5.Provider,{value:u,children:hZ.jsxs(K5,qT({as:o,className:LQ(f.root,i),ref:t,ownerState:d},c,{children:[l,r]}))})}));function X5(e){return RQ("MuiListItemButton",e)}const J5=PQ("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Z5=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Q5=f2(K2,{shouldForwardProp:e=>d2(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>qT({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${J5.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:G0(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${J5.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:G0(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${J5.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:G0(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:G0(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${J5.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${J5.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),e3=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,h=FT(n,Z5),p=AD.useContext(W5),m=AD.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=AD.useRef(null);c0((()=>{i&&g.current&&g.current.focus()}),[i]);const y=qT({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return qT({},n,N0({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},X5,n))})(y),b=g0(g,t);return hZ.jsx(W5.Provider,{value:m,children:hZ.jsx(Q5,qT({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:LQ(v.focusVisible,u),ownerState:y,className:LQ(v.root,f)},h,{classes:v,children:a}))})}));function t3(e){return RQ("MuiListItemIcon",e)}PQ("MuiListItemIcon",["root","alignItemsFlexStart"]);const n3=["className"],r3=f2("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>qT({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),i3=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=FT(n,n3),o=qT({},n,{alignItems:AD.useContext(W5).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return N0({root:["root","flex-start"===t&&"alignItemsFlexStart"]},t3,n)})(o);return hZ.jsx(r3,qT({className:LQ(a.root,r),ownerState:o,ref:t},i))}));function o3(e){return RQ("MuiListItemText",e)}const a3=PQ("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),s3=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],l3=f2("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${a3.primary}`]:t.primary},{[`& .${a3.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>qT({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),c3=AD.forwardRef((function(e,t){const n=I1({props:e,name:"MuiListItemText"}),{children:r,className:i,disableTypography:o=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=FT(n,s3),{dense:f}=AD.useContext(W5);let h=null!=s?s:r,p=c;const m=qT({},n,{disableTypography:o,inset:a,primary:!!h,secondary:!!p,dense:f}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return N0({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},o3,t)})(m);return null==h||h.type===e5||o||(h=hZ.jsx(e5,qT({variant:f?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:h}))),null==p||p.type===e5||o||(p=hZ.jsx(e5,qT({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:p}))),hZ.jsxs(l3,qT({className:LQ(g.root,i),ownerState:m,ref:t},d,{children:[h,p]}))}));function u3(e){return RQ("MuiPopover",e)}PQ("MuiPopover",["root","paper"]);const d3=["onEntering"],f3=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],h3=["slotProps"];function p3(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function m3(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function g3(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function y3(e){return"function"==typeof e?e():e}const v3=f2(L5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),b3=f2(C2,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),x3=AD.forwardRef((function(e,t){var n,r,i;const o=I1({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:h,elevation:p=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:w=$5,transitionDuration:S="auto",TransitionProps:{onEntering:k}={},disableScrollLock:M=!1}=o,C=FT(o.TransitionProps,d3),E=FT(o,f3),q=null!=(n=null==b?void 0:b.paper)?n:y,D=AD.useRef(),T=g0(D,q.ref),N=qT({},o,{anchorOrigin:l,anchorReference:u,elevation:p,marginThreshold:m,externalPaperSlotProps:q,transformOrigin:x,TransitionComponent:w,transitionDuration:S,TransitionProps:C}),O=(e=>{const{classes:t}=e;return N0({root:["root"],paper:["paper"]},u3,t)})(N),A=AD.useCallback((()=>{if("anchorPosition"===u)return c;const e=y3(s),t=(e&&1===e.nodeType?e:f0(D.current).body).getBoundingClientRect();return{top:t.top+p3(t,l.vertical),left:t.left+m3(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),_=AD.useCallback((e=>({vertical:p3(e,x.vertical),horizontal:m3(e,x.horizontal)})),[x.horizontal,x.vertical]),L=AD.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=_(t);if("none"===u)return{top:null,left:null,transformOrigin:g3(n)};const r=A();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,l=o+t.width,c=h0(y3(s)),d=c.innerHeight-m,f=c.innerWidth-m;if(null!==m&&i<m){const e=i-m;i-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;i-=e,n.vertical+=e}if(null!==m&&o<m){const e=o-m;o-=e,n.horizontal+=e}else if(l>f){const e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:g3(n)}}),[s,u,A,_,m]),[I,R]=AD.useState(g),P=AD.useCallback((()=>{const e=D.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,R(!0)}),[L]);AD.useEffect((()=>(M&&window.addEventListener("scroll",P),()=>window.removeEventListener("scroll",P))),[s,M,P]);AD.useEffect((()=>{g&&P()})),AD.useImperativeHandle(a,(()=>g?{updatePosition:()=>{P()}}:null),[g,P]),AD.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{P()})),t=h0(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,P]);let z=S;"auto"!==S||w.muiSupportAuto||(z=void 0);const F=h||(s?f0(y3(s)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:v3,B=null!=(i=null==v?void 0:v.paper)?i:b3,H=N2({elementType:B,externalSlotProps:qT({},q,{style:I?q.style:qT({},q.style,{opacity:0})}),additionalProps:{elevation:p,ref:T},ownerState:N,className:LQ(O.paper,null==q?void 0:q.className)}),V=N2({elementType:j,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:E,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:N,className:LQ(O.root,f)}),{slotProps:$}=V,W=FT(V,h3);return hZ.jsx(j,qT({},W,!E2(j)&&{slotProps:$,disableScrollLock:M},{children:hZ.jsx(w,qT({appear:!0,in:g,onEntering:(e,t)=>{k&&k(e,t),P()},onExited:()=>{R(!1)},timeout:z},C,{children:hZ.jsx(B,qT({},H,{children:d}))}))}))}));function w3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S3(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function k3(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M3(){return M3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M3.apply(null,arguments)}function C3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C3(Object(n),!0).forEach((function(t){k3(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q3(){q3=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(N([])));w&&w!==n&&r.call(w,a)&&(b=w);var S=v.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(S,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(M.prototype),c(M.prototype,s,(function(){return this})),t.AsyncIterator=M,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new M(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function D3(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||O3(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T3(e){return function(e){if(Array.isArray(e))return w3(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O3(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N3(e){return N3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N3(e)}function O3(e,t){if(e){if("string"==typeof e)return w3(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w3(e,t):void 0}}var A3=function(e){var t=e.className,n=e.title,r=e.path,i=e.fillRule;return _D.createElement(b2,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},_D.createElement("path",{d:r}),n?_D.createElement("title",null,n):void 0,i?_D.createElement("use",{fillRule:i}):void 0)},_3={STYLE:{ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}}},L3={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},I3=function(e){return L3.R.test(e)||L3.AL.test(e)};function R3(e){for(var t,n,r=e?e.length:0,i=0;i<r;i++){if(n=t=e[i],L3.L.test(n))return"ltr";if(I3(t))return"rtl"}return"ltr"}var P3,z3,F3=f2(T5,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"0px",maxWidth:"640px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),j3=f2((function(e){var t=e.className;return _D.createElement(A3,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),B3=f2((function(e){var t=e.className;return _D.createElement(A3,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:_3.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),H3=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,i=e.source,o=i.styling,a=i.info.text,s=i.layout.direction,l=i.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,f=l.hasMultiple,h=l.isCyclic,p=l.isLocked,m=i.resources.translator,g=i.services.focus,y=i.settings.isDisabled,v=i.state.inSelections,b=!(!c.change||!u),x=!(!c.reload||!h),w=(b||x)&&!v&&!y(),S={pointerEvents:w?"auto":"none"},k=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,i=e.direction,o=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=o&&t.reload;return"ltr"===i&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===i&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:b,canReload:x,direction:s,hasCyclic:d,hasMultiple:f,isLocked:p}),M=k3(k3({},"rtl"===s?"endIcon":"startIcon",p&&_D.createElement(j3,{height:12})),"rtl"===s?"startIcon":"endIcon",(b||x)&&_D.createElement(B3,{className:"".concat(v||y()?"disabled":"")})),C=AD.useRef(),E=AD.useRef();AD.useEffect((function(){t||g.get()&&(C.current.focus(),E.current.focusVisible(),g.set(!1))}));var q=R3(a),D="Accessibility.".concat(w?"Alternative":"Normal",".Instructions");return _D.createElement(F3,M3({action:E,"aria-describedby":r,"aria-label":m.get(D),color:"inherit",direction:s,disabled:!w||y()||v,onClick:function(e){w&&n(e)},padding:k,ref:C,style:S,styling:o.title,title:a},M),_D.createElement("span",{dir:q,style:_3.STYLE.ELLIPSIS},a))},V3=function(e){var t=e.className,n=e.title;return _D.createElement(A3,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})},$3=f2(T5,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,i=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:i,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:i,opacity:1}}})),W3=f2(V3,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:_3.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),U3=f2((function(e){var t=e.className,n=e.title;return _D.createElement(A3,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:_3.STYLE.ICONS.COLOR.DISABLED}}})),Y3=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=D3(AD.useState(!1),2),r=n[0],i=n[1],o=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,f=d.allowed,h=d.isFirst,p=d.isLast,m=t.settings.isDisabled,g=t.state.inSelections;return AD.useEffect((function(){r&&i(!1)}),[l]),f.reload?_D.createElement($3,{direction:u,disabled:r||g||m(),isFirst:h,isLast:p,onClick:function(){return i(!0),void a()},styling:o.title,title:c,variant:"outlined"},_D.createElement(U3,{className:"".concat(r||g||m()?"disabled":"")})):_D.createElement(W3,{direction:u,isFirst:h,isLast:p,style:{flexShrink:0},title:c})},K3=function(e){var t=e.className,n=e.title;return _D.createElement(A3,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})},G3=f2(T5,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}})),X3={color:_3.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:_3.STYLE.ICONS.COLOR.DISABLED}},J3=f2((function(e){var t=e.className;return _D.createElement(A3,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return X3})),Z3=f2((function(e){var t=e.className;return _D.createElement(A3,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return X3})),Q3=f2(K3,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:_3.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),e4=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,i=t.info,o=i.breadcrumbs,a=i.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,f=t.state.inSelections,h=d()||f?"disabled":null,p=k3({},"rtl"===s?"startIcon":"endIcon","rtl"===s?_D.createElement(Z3,{className:h}):_D.createElement(J3,{className:h})),m=o.map((function(e,t){var i=R3(e);return _D.createElement(G3,M3({disabled:d()||f,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:o.length-e})}(t)},styling:n.title,title:e},p),_D.createElement("span",{dir:i,style:_3.STYLE.ELLIPSIS},e))}));return _D.createElement(_D.Fragment,null,"rtl"===s?m.reverse():void 0,_D.createElement(Q3,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:m)},t4=f2(e3,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":E3({},_3.STYLE.FOCUS)}})),n4=f2(i3)((function(){return{marginRight:0,justifyContent:"center"}})),r4=f2((function(e){var t=e.className;return _D.createElement(A3,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY}})),i4=f2(V3)((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY}})),o4=f2(K3)((function(){return{color:_3.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),a4=function(e){var t=e.id,n=e.meta,r=e.nested,i=e.onClick,o=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=E3({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},_3.STYLE.ELLIPSIS),d=R3(s),f=_D.createElement(n4,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?_D.createElement(r4,{height:12}):null!=t&&t.isCyclic?_D.createElement(i4,{height:12}):null!=t&&t.isDrillDown?_D.createElement(o4,{height:12}):void 0}({meta:n,selected:o}));return _D.createElement(_D.Fragment,{key:t},_D.createElement(t4,{autoFocus:o,nested:r,onClick:function(e){return null==i?void 0:i(e)},rtl:c,title:s},c&&f,_D.createElement(c3,{dir:d,primaryTypographyProps:{style:u}},s),!c&&f))},s4=f2(F5)((function(){return{marginTop:"-1px"}})),l4=function(e){var t=e.anchor,n=e.id,r=e.onClose,i=e.open,o=e.source,a=o.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=o.info,d=u.breadcrumbs,f=u.group,h=u.id,p=u.text,m=o.data.alternatives,g=o.meta,y=g.isCyclic,v=g.isDrillDown,b=o.resources.translator,x=o.services.focus,w=y||v,S=_D.createElement(a4,{id:h,key:h,meta:o.meta,onClick:r,selected:!w,source:o,text:w?f.name:p}),k=w&&f.items.map((function(e){return _D.createElement(a4,{id:e.id,nested:!0,onClick:function(t){return function(e,t){y&&c({fieldIndex:t.index}),v&&l({steps:d.length-t.index}),r()}(0,e)},selected:e.current,source:o,text:e.text})})),M=m.map((function(e,t){return _D.createElement(_D.Fragment,{key:e.id},_D.createElement(a4,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,"keydown"===n.type&&x.set(!0),void s({id:r});var n,r},source:o,text:e.text}),t<m.length-1&&_D.createElement(s4,{key:"divider-".concat(e.id)}))}));return _D.createElement(x3,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},id:n,onClose:r,open:i,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},_D.createElement(G5,{"aria-label":b.get("Accessibility.Popover.Instructions"),dense:!0},S,k,_D.createElement(s4,{key:"divider-".concat(h)}),M))},c4=function(e){var t=e.source,n=D3(AD.useState(null),2),r=n[0],i=n[1],o={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.services.focus,l=_D.createElement(Y3,{source:t}),c=_D.createElement(e4,{source:t});return _D.createElement(_D.Fragment,null,"rtl"===a?void 0:c,"rtl"===a?void 0:l,_D.createElement(H3,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&s.set(!0),i(t)},isOpen:o.isOpen,popoverId:o.id,source:t}),_D.createElement(l4,{anchor:r,id:o.id,onClose:function(){i(null)},open:o.isOpen,source:t}),"rtl"===a?c:void 0,"rtl"===a?l:void 0)};var u4=function(){if(z3)return P3;z3=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return P3=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},P3}(),d4=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(u4);function f4(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function h4(e){return Array.isArray(e)}function p4(e){return null!=e&&!Array.isArray(e)&&"object"===N3(e)}function m4(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function g4(e){return void 0===e}function y4(e,t){if(p4(e)&&p4(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,i=n.length;r<i;r+=1)if(!y4(e[n[r]],t[n[r]]))return!1;return!0}if(h4(e)&&h4(t)){if(e.length!==t.length)return!1;for(var o=0,a=e.length;o<a;o+=1)if(!y4(e[o],t[o]))return!1;return!0}return e===t}function v4(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,i=void 0===r?{}:r,o=e.basePath,a=void 0===o?"":o,s=[];return Object.keys(i).forEach((function(e){var t=function(e){return e?d4(!0,{},{value:e}).value:e}(i[e]),r=n[e],o="".concat(a,"/").concat(e);y4(t,r)||m4(i,e)||(g4(r)?s.push({op:"add",path:o,value:t}):p4(t)&&p4(r)?s.push.apply(s,T3(v4({oldData:r,newData:t,basePath:o}))):h4(t)&&h4(r)?s.push.apply(s,T3(function(e){var t=e.newArray,n=e.basePath,r=[];return y4(t,e.oldArray.slice())||(!g4(t[0])&&g4(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:o}))):s.push({op:"replace",path:o,value:t}))})),Object.keys(n).forEach((function(e){g4(i[e])&&!m4(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function b4(e){var t=e.model,n=v4({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function x4(e){return w4.apply(this,arguments)}function w4(){return(w4=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){S3(o,r,i,a,s,"next",e)}function s(e){S3(o,r,i,a,s,"throw",e)}a(void 0)}))}}(q3().mark((function e(t){var n,r,i,o,a,s,l,c,u,d,f,h;return q3().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.from,r=t.to,i=t.model,o=t.container,a=t.skipAttributeExpressions,s=t.onChange,e.next=3,i.getEffectiveProperties();case 3:return l=e.sent,c=l.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===r})),d=d4(!0,{},l),f=d.qHyperCubeDef[o][c],(h=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]).qAttributeDimensions=f.qAttributeDimensions,f.qAttributeDimensions=[],a||(h.qAttributeExpressions=f.qAttributeExpressions,f.qAttributeExpressions=[]),d.qHyperCubeDef[o][c]=h,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]=f,s({fromItem:f,toItem:h,oldProperties:l,newProperties:d,model:i}),e.next=17,f4({model:i,properties:d});case 17:i.colorSupport&&i.colorSupport.colorByUpdater(d,"qHyperCubeDef."),b4({model:i,oldProperties:l,newProperties:d});case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S4(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=i.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,i=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,f=e.qLocked,h=e.title,p="C"===r,m="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){p&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:p,isDrillDown:m,isLocked:!!f,isNormal:g},info:{id:n,text:g?d:i[a],position:a,breadcrumbs:i.slice(0,e.qGroupPos),group:{name:h,items:i.slice(0,m?e.qGroupPos+1:i.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(p?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return x4({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:o})},drillUp:function(e){var t=e.steps;m&&l&&(null==l||l.drillUp("/qHyperCubeDef",y,t))},stepCycle:function(){return v("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return v("setActiveField",t)}}}}))}function k4(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.model,l=i.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,text:n},action:{changeTo:function(e){var n=e.id;return x4({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:o})}}}}))}function M4(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:o}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=o.app,f=o.cache,h=o.model,p=a.forceAllowChange,m=a.isRTL,g=a.isSnapshot,y=a.type,v=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:m}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{get:function(){var e;return(null==t||null===(e=t.get)||void 0===e?void 0:e.call(t,n))||!1},set:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,e)}}}({cache:f,key:i}),x=("dimension"===y?S4:k4)({callbacks:t,data:n,resources:o,settings:a});"rtl"===v&&x.reverse();var w={allowed:{change:(!(!h.modifiers||!h.colorSupport)||p)&&!g,reload:!!d&&!g},hasAlternatives:!!c.length,hasCyclic:x.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return x.map((function(e,t){return E3(E3({data:n,layout:{direction:v},resources:{translator:o.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:E3(E3(E3({},w),e.meta),{},{isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:i,resources:a,settings:s,state:l,styling:c});return _D.createElement("div",{style:u},d.map((function(e){return _D.createElement(_D.Fragment,{key:e.info.id},_D.createElement(c4,{source:e}),!e.meta.isLast&&_D.createElement("span",{dir:e.layout.direction,style:E3(E3({},c.title),{},{lineHeight:"normal"})},", "))})))}var C4,E4='"Source Sans Pro", "Arial", "sans-serif"',q4="12px",D4=function(e){var t=e.rect,n=e.state,r=e.settings,i=r.callbacks,o=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return M4({callbacks:i,data:o,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},T4={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{forceAllowChange:!1,isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:E4,fontSize:q4},popover:{color:"#595959CC",fontFamily:E4,fontSize:q4}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,i=t.alternatives,o=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=i.length||"measure"!==o?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(D4(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return D4(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},N4=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return _D.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},O4={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return _D.createElement("div",{dir:o,style:a},_D.createElement(N4,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},A4={},_4=function(){if(C4)return A4;C4=1;var e=CW;return A4.createRoot=e.createRoot,A4.hydrateRoot=e.hydrateRoot,A4}(),L4=A1({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function I4(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function R4(){var e={rendererBox:I4(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=I4(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=_4.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return _D.createElement(_D.StrictMode,null,_D.createElement(p2,{theme:L4},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const P4={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",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(vg({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function z4({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=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 u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=vg({},{major:l,majorEnd:c},r.minor.items[e]);i.forEach((t=>{d[t]=r[t].items[e]}));const f=o?n:t,h=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:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),p=(u-h)/2,m=p+d.major+h/2;return{item:d,boxCenter:m,boxWidth:h,boxPadding:p,rendWidth:t,rendHeight:n}}function F4({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=vg(!0,{},n||{},r||{}),c={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},u=i.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:vg(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:vg(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{};let h;const p={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:vg(!0,{},{start:{scale:f.scale,ref:"start"},end:{scale:f.scale,ref:"end"},min:{scale:f.scale,ref:"min"},max:{scale:f.scale,ref:"max"},med:{scale:f.scale,ref:"med"}},f)})};for(let n=0,r=e.length;n<r;n++)h=e[n],p[h]=s.resolve({data:t,defaults:l[h],settings:i[h],scaled:c});return p}const j4=["oob"];const B4={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=F4({keys:j4,data:i,defaultSettings:{oob:P4.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=z4}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:u,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=c[u].data,g=[];if(d.oob.show){g.push(P4.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:g};l.push(e)}}return l}({width:e,height:t,flipXY:r,resolved:l,keys:j4,symbol:s,dockValue:n});return d}},H4={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},V4=["hat"];function $4(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 W4({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,c=i,u=e.hat.alignment||0;o&&(a="y",s="x",l=i,c=r,u=1-u);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const h=vg({},e.hat,{type:"path",d:$4(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[h,vg({},e.hat,{type:"path",d:$4(f)})]}const U4={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=F4({keys:V4,data:r,defaultSettings:H4,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=z4}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,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=[];c.hat.show&&m.push(...W4({item:c,boxWidth:u,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const g={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(g)}return a}({width:e,height:t,flipXY:n,resolved:a,keys:V4});return c}};var Y4={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};function K4(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:K4(i,t,n)},i}function G4(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),K4(i,a,l,e.invert)}))}function X4(){const e=hp();return e.use(tg),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",ig(e))};e.interaction("hammer",ig(Hammer))}(lg)),e.use((function(e){e.renderer("react",sY()),e.component("data-title",iY(e.renderer("svg")()))})),e.use(G4),e.renderer("react-qcm",R4),e.component("box-sliced-hat",U4),e.component("box-out-of-bounds",B4),e.component("disclaimer",O4),e.component("scrollbar",AG),e.component("scroll-hint",Fw),e.component("reference-line-labels",jS),e.component("axis-overlay",YK.picassoComponents.axisOverlay),e.component("time-axis",YK.picassoComponents.timeAxis),e.component("space",Y4),e.component("axis-title",T4),e.scale("q-time-axis",YK.picassoScales.time),e}const J4={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function Z4(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Q4={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=o[t]*(n>l?1:n/l),u=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function e6(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await Q4.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function t6(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return e6(u,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Z4(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await Q4.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Q4.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(Z4(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await Q4.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const n6={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(t6(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},r6={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await n6.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>n6.checkIfPromisesExist({customTooltipModel:e})};const i6=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:J4.CHART.CHART_PARENT_TYPE,qId:J4.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},o6=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:J4.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const a6={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=J4.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:J4.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await a6.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=J4.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=J4.CHART.STATE,a=i6(t,o),s=await e.createSessionObject(a),l=o6(t);if(s.id!==J4.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(J4.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await a6.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(a6.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(J4.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=J4.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function s6(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function l6(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=J4.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function c6(e){const t=l6();return e.filter((e=>t[e.id]))}const u6={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=u6.getAttrExprData(a);o.length||n.length?r6.handlePromises({customTooltipModel:i,nodes:u6.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&a6.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>r6.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[J4.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[J4.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[J4.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(c6(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[J4.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[J4.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=s6(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===c6(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let r=[];const i=s6(e)||[];[...i,t].forEach((e=>{const t=c6(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=l6(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Ug.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Ug.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function d6(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case J4.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case J4.CUSTOM.TITLE:case J4.CUSTOM.DESCRIPTION:case J4.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const f6={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>d6(t,e,r,n)}}};const h6={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[J4.CUSTOM.TITLE]:!0,[J4.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=u6.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===J4.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===J4.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Yg.getMeasure(e,t))),e,i)}};function p6({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(h6.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function m6(e){const t=J4.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function g6(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const y6={migrateProperties(e){var t,n;const r=vg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=g6(r);return o=function(e,t){return t.concat(e.map((e=>m6(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=m6(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(g6(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var v6={attrExpr:y6},b6=7005;const x6=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6},w6=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&Dg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},S6=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Dg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Dg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},k6=e=>{if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))},M6=(e,t)=>{const n=e.qHyperCubeDef.qDimensions,r=e.qHyperCubeDef.qMeasures;if(1===n.length&&1===r.length){const r=n[0];return r.qLibraryId?t.getDimension(r.qLibraryId).then((e=>e.getLayout())).then((t=>{if(t&&t.qDimInfos&&t.qDimInfos[0]){const n=t.qDimInfos[0].qCardinal;S6(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(S6(e,t),r)))),(()=>r))}return w6(e),Promise.resolve()};function C6(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?dC(e,"color.persistent",!0):"byDimension"===r&&n.length>1?dC(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?dC(e,"color.mode","primary"):0===t.length&&n.length>0&&(dC(e,"color.byMeasureDef",void 0),dC(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&dC(e,"color.mode","primary"))}const E6=(e,t)=>{C6(t),Uy(e),u6.addCallbackCustomTooltip(t)},q6=e=>{C6(e)};function D6({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,i){let o;const a=null!=i&&i.layout?i.layout.qHyperCube.qDimensionInfo.filter((e=>x6(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?o="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?o="Visualizations.Descriptions.Stack":(o="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):o="Visualizations.Descriptions.Bars",e.get(o)},add:(e,t,n)=>(t.qHyperCubeDef.qDimensions.length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),null!=n&&n.app?M6(t,n.app).then((()=>(E6(e,t),e))):(k6(t),E6(e,t),e)),move(e,t,n){n.layout.qHyperCube.qDimensionInfo.filter((e=>x6(e))).length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),w6(t),C6(t),u6.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;C6(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),u6.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){u6.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:e=>e>1?1:15,description:()=>e.get("Visualizations.Descriptions.LengthBars"),add:(e,t,n)=>null!=n&&n.app?M6(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,q6(t),e))):(k6(t),q6(t),e),move(e,t){w6(t),C6(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;C6(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function T6(e){return{properties:{version:"1.38.2",barGrouping:{grouping:"grouped"},color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[],dataPoint:{showLabels:!1,showSegmentLabels:!1,showTotalLabels:!0},dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},footnote:"",gridLine:{auto:!0,spacing:2},legend:{dock:"auto",show:!0,showTitle:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"all",spacing:1},orientation:"vertical",preferContinuousAxis:!0,qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},refLine:{refLines:[],dimRefLines:[]},scrollbar:"miniChart",scrollStartPos:0,showDetails:!0,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[{path:"/qHyperCubeDef",...D6(e)}]}}}var N6={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","ja-JP":"このチャートには表示できない負の値がデータ セットに含まれています。","ru-RU":"Набор данных содержит отрицательные значения, которые нельзя отобразить на этой диаграмме."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};function O6({env:t}){var n;const{flags:r}=t,i=null===(n=t.anything)||void 0===n||null===(n=n.sense)||void 0===n?void 0:n.isUnsupportedFeature,o=e.useTranslator();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(N6).forEach((t=>{e.add(N6[t])}))}}(t.translator);const a=e.useEmbed(),s=e.useTheme(),[l,c]=e.useState(),u=e.useDeviceType(),d=e.useAppLayout(),{qLocaleInfo:f}=d;return e.useEffect((()=>{c({translator:o,theme:s,embed:a,deviceType:u,localeInfo:f,isUnsupportedFeature:i,flags:r})}),[f,i,o.language(),s.name(),u]),l}function A6(){const[t]=e.useState((()=>fC())),[n]=e.useState((()=>function(e){var t=US({},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})));return{viewCache:t,viewState:n}}const _6="REJECTED",L6=()=>{},I6=2,R6=20,P6=200,z6=10;var F6={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),c=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-z6<=t.qTop,i=n.qLeft+n.qWidth+z6>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+z6>=t.qTop+t.qHeight,a=n.qLeft-z6<=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 j6={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-z6<=t.qTop,i=n.qTop+n.qHeight+z6>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var B6={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 H6="pages";const V6="discretePan";function $6({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:V6,pointers:1,threshold:10,enable(r,i){return this.started===V6||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${V6}start`](e){e.preventDefault(),this.started=V6;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},[`${V6}move`](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)},[`${V6}end`](e){e.preventDefault(),this.started=!1},[`${V6}cancel`](e){e.preventDefault(),this.started=!1}}}}function W6({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.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 U6({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(1e4/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(P6,n));return{width:e,height:Math.max(R6,Math.min(n*I6,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function Y6(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(_6),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(_6),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(_6),n=null)},i}const K6={command:{update:()=>{}}};function G6({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=K6,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,u=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:c}={})=>{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()&&c&&c();const u=r(l);return o(i(u)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:U6({layoutService:r}),request:c({definitionPath:o}),process:Y6(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=mC(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==_6)throw e}))}),50);return function(e,{onProcessing:t=L6,onDataPage:n=L6}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var X6={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 J6={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 Z6(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function Q6(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 e8(e){return Q6(e.qMatrix,(e=>e[0].qElemNumber))-1}var t8={inTotal:function({layoutService:e}){const t=Z6(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=Z6(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=Z6(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=e8(o),c=o.qArea.qHeight*i+l,u=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const n8=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function r8(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return n8(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:n8(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return n8(e,n);return Q6(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var i8={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=r8(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:c}=n,u=r8(t).area(e(),l,a.qArea),d=e8(a),f=a.qArea.qHeight+d,h=c===o?(r.inView-f)*s/i:(c+(a.qArea.qTop+u)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function o8({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:h}=r[n.meta.chart.mode],p="horizontal"===n.meta.major.orientation,{axisDisplayMode:m="auto",maxVisibleItems:g=10,label:y}=s,v=p?t.width:t.height,b=v/l>=f;switch(m){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/h:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return f>o;const h=(90-d)*(Math.PI/180);return f>Math.cos(h)*o}({chart:e,isHorizontal:p,axisKey:i,renderer:o,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}function a8({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?X6:n?r?t8:i8:J6}({layoutService:r}),h=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,p=e=>e?h()/e:0,m=(e,t)=>-(e-t)*p(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:o8({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(1e4/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return p(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,m(n,r))),o=r?Math.abs(r*i/h()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return m(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,Math.min(1,o+e/i)]}({viewSize:h(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:h(),upperBound:m(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&c?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>=m(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*p(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(p(r)*n)}}}}function s8({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:f,rtl:h}){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 p=a8({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:h}),m=()=>{const e=p.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=p.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=m(),a=g({pixelOffset:e,items:r}),s=p.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((p.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item})));f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.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=m();n.set("itemSize",p.getItemSize({items:a}));const c=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?p.getUpperBound({items:e}):0;if("number"==typeof n)return p.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return p.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),u=g({pixelOffset:c,items:a});f.preventSet("viewRange",p.getViewRange({pixelOffset:u.start.pixel,items:a}));const d=p.getArea({itemOffset:u.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",p.getScaleRange({offsets:u.start,items:a})),f.preventSet("scrollOffset",{start:u.start.item,end:u.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=p.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function l8({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:u="/qHyperCubeDef",getRect:d,axisKey:f,renderer:h,areaBuffer:p,processDataPage:m=()=>{}}={}}){const g=fC(),y=function({qMode:e}){switch(e){case"K":return j6;case"T":return B6;default:return F6}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(H6,[]),{add:t=>{const n=e.get(H6);n.length=0,n.push(t)},getCurrent:()=>e.get(H6)[0],getAll:()=>e.get(H6),contains:n=>t(e.get(H6)[0],n)}}({state:g,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:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:p}),x=G6({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:m}),w=s8({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,renderer:h,areaBuffer:b,viewState:l,rtl:c}),S=function({layoutService:e,dataStore:t}){return function(n){const r=cC(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),k=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[$6({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:W6({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:c,scroller:w});return{interactions:k,query:{getCanScroll:()=>w.enabled(),getItemSize:()=>w.itemSize(),getScaleRange:()=>w.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>w.initialize(),scrollTo:e=>w.scrollToRelative(e),setSnapshotData:e=>S(e)}}}var c8="AVERAGE",u8="LINEAR",d8="POLYNOMIAL2",f8="POLYNOMIAL3",h8="POLYNOMIAL4",p8="EXPONENTIAL",m8="LOG",g8="POWER";function y8({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:i}=n,o={x:e,y:i[2]*t**2+i[1]*t+i[0]};switch(r){case f8:return o.y+=i[3]*t**3,o;case h8:return o.y+=i[4]*t**4+i[3]*t**3,o;default:return o}}var v8={average:function({dimValue:e,qTrendLine:t}){return{x:e,y:t.qCoeff[0]}},linear:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]*t+n.qCoeff[0]}},polynomial2:y8,polynomial3:y8,polynomial4:y8,exponential:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:Math.exp(n.qCoeff[0]+t*n.qCoeff[1])}},log:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]+n.qCoeff[0]*Math.log(t)}},power:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:10**(n.qCoeff[0]+n.qCoeff[1]*Math.log(t)*Math.LOG10E)}}};function b8(e,t){const n=v8[t.qType.toLowerCase()],r=Math.max(1,e/500);let i=1/0,o=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});i=Math.min(e,i),o=Math.max(e,o)}return{min:i,max:o}}function x8(e){return v8[e.qType.toLowerCase()]}function w8(e,t){return e.meta.isContinuous?function(e,t){return{generate:(n,r,i)=>{var o,a;const s=[],l=x8(n),c=t.get("zoom"),u=null!==(o=n.start)&&void 0!==o?o:c.min,d=null!==(a=n.end)&&void 0!==a?a:c.max,f=(d-u)/100,h=e.meta.isButterfly&&i>0;if(f>0){const e=e=>{const t=l({dimValue:e,value:e,qTrendLine:n});h&&(t.y=-t.y),t.layerId=r,t.measureIndex=i,t.dimValue=e,s.push(t)};let t=u;for(let n=u;n<=d;n+=f)e(n),t=n;t!==d&&e(d)}return s},calculate:(e,t)=>x8(e)({dimValue:t,value:t,qTrendLine:e}),findMinMax(e,t){const n=this.generate(t).map((({y:e})=>e));return{min:Math.min(...n),max:Math.max(...n)}}}}(e,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qData[0].qSubNodes,s=o.qArea.qTop,l=v8[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const o=a[e],c=l({dimValue:o.qElemNo,value:e+s+1,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=o.qText,i.push(c)}return i},findMinMax:b8}}(e):function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qMatrix,s=o.qArea.qTop,l=v8[t.qType.toLowerCase()],c=e.meta.isButterfly&&r>0;for(let e=0;e<a.length;e++){const o=a[e][0],u=e+s+1,d=l({dimValue:o.qElemNumber,value:u,qTrendLine:t});c&&(d.y=-d.y),d.layerId=n,d.measureIndex=r,d.dimValue=o.qText,i.push(d)}return i},calculate:(e,t,n)=>(0,v8[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:b8}}(e)}var S8={TYPES:{AVERAGE:"properties.trendlines.types.average",LINEAR:"properties.trendlines.types.linear",POLYNOMIAL2:"properties.trendlines.types.polynomial2",POLYNOMIAL3:"properties.trendlines.types.polynomial3",POLYNOMIAL4:"properties.trendlines.types.polynomial4",EXPONENTIAL:"properties.trendlines.types.exponential",LOG:"properties.trendlines.types.logarithmic",POWER:"properties.trendlines.types.power"},STYLE:{DASHED:"properties.trendlines.style.dashed"},TYPE:"properties.trendlines.type",HEADER:"properties.trendlines",ADD_BUTTON:"properties.trendlines.button.add"},k8={color:"#f93f17",index:9};const{isDark:M8}=Wy,C8={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},E8=({layoutService:e,viewState:t,colorModel:n,chart:r,env:i,keys:{colorScale:o},isEnabled:a=()=>!1})=>{const{translator:s}=i,l=[C8],c=[],u=[],d=w8(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(c.push(...e.qTrendLines),u.push(...e.qTrendLines.map((()=>t))))}));const f=hC((e=>{const{style:t}=c[e]||{},i=n.settings();if(t.autoColor){if("measure"===i.mode){const t=u[e],n=r.scale(o)(t);return M8(n)?function(e){const t=Hy(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=Hy(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(k8)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!c.length&&a(),getData:()=>l,getStroke:f,getLineDash:e=>{const{style:t}=c[e]||{};return null==t?void 0:t.lineDash},getLineThickness:e=>{var t;const{style:n}=c[e]||{};return null!==(t=null==n?void 0:n.lineThickness)&&void 0!==t?t:2},getLabel:e=>(c[e]||{}).label,getType:e=>{const{qType:t}=c[e]||{};return s.get(S8.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return c.forEach((r=>{const i=d.findMinMax(e.meta.size.y,r);t=Math.min(i.min,t),n=Math.max(i.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=c[e];return d.calculate(r,t,n)}},command:{update:()=>{l.length=0,c.forEach(((e,t)=>{const n=d.generate(e,t,u[t]);l.push(...n)}))}}}};var q8={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const D8=({meta:e})=>e.isContinuous?({scale:e,datum:t})=>e(t.value):e.isGroupedByMeasure?({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2:({scale:e,datum:t})=>e(t.value)+e.bandwidth()/2,T8=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:i})=>{if(!n.query.hasTrendLines())return[];const o=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:i,animationsEnabled:o})=>{const a=D8(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:q8,settings:{connect:!0,orientation:i.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:({datum:e})=>n.query.getLineThickness(e.layer.value),stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:o,trackBy:zq.nonUpdatingNode.trackBy,compensateForLayoutChanges:zq.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:i}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:i})=>{const o=D8(r),a="horizontal"===i.meta.major.orientation,s={scale:e,fn:o},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:q8,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[o,a]};function N8(e,t){const{getLabel:n,getType:r,getLineDash:i,getStroke:o}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:o(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":i(t.data.layer.value)}},l={content:[{content:n(t.data.layer.value),style:{"font-weight":"bold"}},{content:r(t.data.layer.value)}],style:{"min-width":"136px"}};return{title:t.data.dimValue.label,row:[s,l,{content:a.formatter(e.formatter)(t.data.minor.value)}]}}}function O8(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Ug.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const i=function(e,t){return Array.isArray(t.content)?e("div",{style:{display:"flex","flex-direction":"column"}},t.content.map((t=>e("span",{style:t.style,direction:Ug.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:"16px",x2:"16px",y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},t)}(e):t.content}(t,e);return t("td",r,i)}))}function A8(e,t){return({h:n,data:r,style:i})=>{const o=r[0].title,a=r.filter((e=>e.title===o)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:Ug.detectTextDirection(t)},t);return e("tr",{},n)}(n,o),l=[s];if(a.slice(0,2).forEach((e=>{l.push(n("tr",{},O8(e.row,{h:n,style:i})))})),r.length>2){const i=r.length-2;l.push(...function(e,t,n,r){const i=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,o=Ug.detectTextDirection(i);return[e("tr",{},e("td",{style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:3},"")),e("tr",{},e("td",{style:{"font-weight":"bold","text-align":n?"right":"left",direction:o},colspan:3},i))]}(n,e,t,i))}return l}}function _8(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:i}=r,o=Hg({key:e.tooltip,rtl:i});return vg(!0,o,{settings:{extract:N8(e,t),content:A8(n,i),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function L8(e,t){const n=t.element.getBoundingClientRect();return{x:(e.center?e.center.x:e.clientX)-n.left,y:(e.center?e.center.y:e.clientY)-n.top}}function I8(e,{chart:t,viewState:n,trendLineModel:r,layoutService:i,rtl:o}){const{isContinuous:a}=i.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=L8(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:i}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=L8(r,t),c=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(c.length){const r=function(e,t,n,r){let i=(e.x-t.rect.computed.x)/t.rect.computed.width;i=r?1-i:i;const{min:o,max:a}=n.get("zoom");return o+(a-o)*i}(l,a,n,o),s=t.scale(e.majorInnerScale),u=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);c.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=u,e.data.minor.value=i(e.data.layer.value,r).y}))}return c}}return n=>{const r=t.component(e.tooltip);if(r&&(n=>t.componentsFromPoint({x:n.center?n.center.x:n.clientX,y:n.center?n.center.y:n.clientY}).some((t=>t.key===e.tooltipOverlay)))(n)){const e=l(n,r);return e.length?(r.emit("show",n,{nodes:e}),!0):(r.emit("hide"),!1)}return!1}}const R8=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},P8=e=>{R8(e),e.qMultiDimMode="Sum",e.qXColIx=0};function z8(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!Ag.dimensionless(n)&&!Ag.groupedByDimension(n)&&(r||!Ag.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:S8.HEADER,itemTitleRef:e=>{const n=typeof e.label;return"string"===n&&e.label?e.label:"object"===n?e.label.qStringExpression?e.label.qStringExpression.qExpr:e.label.qValueExpression.qExpr:t.get(S8.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:S8.ADD_BUTTON,add:P8,globalChange:e=>{const t=cC(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!cC(e,"dimensionAxis.continuousAuto",!1)&&e.preferContinuousAxis)(e)?"Possible":"Never";t.forEach((e=>{e.qContinuousXAxis=r})),n.onGlobalChange(e,t)},items:{label:{ref:"label",type:"string",expression:"optional",translation:"Common.Label",defaultValue:""},type:{ref:"qType",type:"string",component:"dropdown",translation:S8.TYPE,options:[{value:c8,translation:S8.TYPES.AVERAGE},{value:u8,translation:S8.TYPES.LINEAR},{value:d8,translation:S8.TYPES.POLYNOMIAL2},{value:f8,translation:S8.TYPES.POLYNOMIAL3},{value:h8,translation:S8.TYPES.POLYNOMIAL4},{value:p8,translation:S8.TYPES.EXPONENTIAL},{value:m8,translation:S8.TYPES.LOG},{value:g8,translation:S8.TYPES.POWER}],defaultValue:c8},autoColor:{ref:"style.autoColor",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},paletteColor:{ref:"style.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:k8,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:S8.STYLE.DASHED,type:"boolean",defaultValue:!0,change:R8}}}}var F8={};function j8(){j8.init.call(this)}F8.isObject=function(e){return"object"==typeof e&&null!==e},F8.isNumber=function(e){return"number"==typeof e},F8.isUndefined=function(e){return void 0===e},F8.isFunction=function(e){return"function"==typeof e};var B8=j8;j8.EventEmitter=j8,j8.prototype._events=void 0,j8.prototype._maxListeners=void 0,j8.defaultMaxListeners=10,j8.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},j8.prototype.setMaxListeners=function(e){if(!F8.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},j8.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],F8.isUndefined(n))return!1;if(F8.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(F8.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},j8.prototype.addListener=function(e,t){var n;if(!F8.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,F8.isFunction(t.listener)?t.listener:t),this._events[e]?F8.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,F8.isObject(this._events[e])&&!this._events[e].warned)&&((n=F8.isUndefined(this._maxListeners)?j8.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,F8.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),F8.isFunction(console.trace)&&console.trace()));return this},j8.prototype.on=j8.prototype.addListener,j8.prototype.once=function(e,t){if(!F8.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},j8.prototype.removeListener=function(e,t){var n,r,i,o;if(!F8.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||F8.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(F8.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},j8.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],F8.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},j8.prototype.listeners=function(e){return this._events&&this._events[e]?F8.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},j8.listenerCount=function(e,t){return e._events&&e._events[t]?F8.isFunction(e._events[t])?1:e._events[t].length:0};var H8=og(B8);const V8={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"}}]};function $8(){const[t]=e.useState({}),[n]=e.useState({}),r=function(){var t,n;const r=e.useLayout(),i=e.useTranslator(),o=!(null==r||null===(t=r.qSelectionInfo)||void 0===t||!t.qInSelections),a=!(null==r||null===(n=r.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n||null===(n=n[0])||void 0===n||!n.qIsOneAndOnlyOne),[s,l]=e.useState(!1),[c,u]=e.useState(!1),[d,f]=e.useState({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),h=e=>{u("boolean"==typeof e?e:!c)};return e.useAction((()=>(f({key:"lasso",action:h,enabled:()=>s,active:()=>c}),{key:"lasso",label:i.get(c?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:V8,hidden:!s||!o||a,active:c,action:h})),[o,a,c,s,i.language()]),{get:()=>d,setAllows:e=>{l(!!e)}}}(),[i,o]=e.useState();return e.useEffect((()=>{const e={};e.scroll={key:"scroll",isActive:!0,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled(){const{layoutService:e,discrete:r}=t;return n.allowScroll&&((null==e?void 0:e.meta.isContinuous)||(null==r?void 0:r.query.getCanScroll()))}},e.interact={key:"interact",isEnabled:!0,enabled:()=>n.allowInteract},e.tooltip={key:"tooltip",isActive:!0,isEnabled:!0,action(e){this.isActive=!!e},active(){return this.isActive},enabled:()=>n.allowTooltip},e.select={key:"select",isActive:!1,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled:()=>n.allowSelect},e.lasso=r.get(),Object.keys(e).forEach((t=>{return n=e[t],Object.keys(H8.prototype).forEach((e=>{n[e]=H8.prototype[e]})),H8.init(n),n;var n})),o(e)}),[]),e.useEffect((()=>{i&&r&&(i.lasso={...i.lasso,...r.get()})}),[r]),{get:()=>i,setAllows:e=>{Object.assign(n,e),r.setAllows(null==e?void 0:e.allowSelect)},setContext:e=>{Object.assign(t,e)},destroy:()=>{Object.keys(i).forEach((e=>i[e].removeAllListeners()))}}}var W8={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}},U8={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",BAR_AXIS:"bar-axis",GROUP_AXIS:"group-axis",BAR_OOB_MAX:"bar-oob-max",BAR_OOB_MIN:"bar-oob-min",STACK_TOTAL_BAR:"stack-total-bar",BASE_TOOLTIP:"tooltip",SPACE:"space",LEGEND_CAT_TOOLTIP:"legend-cat-tooltip",LEGEND_COLOR_CAT:"legend-color-cat",MEASURE_REF_LINE:"mes-ref-line",DIMENSION_REF_LINE:"dim-ref-line",MEASURE_REF_LINE_LABEL:"mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label",TREND_LINES_TOOLTIP:"trend-lines-tooltip",TREND_LINES_TOOLTIP_OVERLAY:"trend-lines-tooltip-overlay"},COLLECTION:{MAIN:"main-collection",MINI:"mini-collection",MINI_STACK:"mini-stack-collection",MINI_CONTINUOUS:"mini-continuous-collection",STACK_TOTAL:"stack-total-collection"},FORMATTER:{MINOR:"bar",COLOR:"fill"}};const Y8=({layout:e,flags:t})=>{var n,r,i,o;if(null==t||!t.isEnabled("TLV_800_BUTTERFLY_CHART"))return!1;const a=null==e||null===(n=e.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})),s=null==e||null===(r=e.qHyperCube)||void 0===r||null===(r=r.qMeasureInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})),l=null!==(i=null==a?void 0:a.length)&&void 0!==i?i:0,c=null!==(o=null==s?void 0:s.length)&&void 0!==o?o:0;return 1===l&&2===c},K8=e=>({layout:t})=>{var n;const r=Cg.canBeContinuous(t),i=Ag.continuous(t),o=Ag.dimensionless(t),a=Y8({layout:t,flags:e})&&"butterfly"===(null==t||null===(n=t.barGrouping)||void 0===n?void 0:n.grouping);return{canBeContinuous:r,isDiscrete:!i,isContinuous:i,isTime:Cg.isTime(i,t),isDimensionless:o,isSimple:Ag.simple(t),isGrouped:!a&&Ag.grouped(t),isGroupedByMeasure:!a&&Ag.groupedByMeasure(t),isGroupedByDimension:!a&&Ag.groupedByDimension(t),isStacked:!a&&Ag.stacked(t),isStackedByDimension:!a&&Ag.stackedByDimension(t),isStackedByMeasure:!a&&Ag.stackedByMeasure(t),isSnapshot:Ag.snapshot(t),isButterfly:a}};function G8(e,t,n="/qHyperCubeDef"){return{fetch(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Lg).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"),l=o?[]:t.getHyperCubeValue("qColumnOrder");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"),qColumnOrder:l}}}))}(e,t,this.settings())},settings(){const e=t.getHyperCubeValue("qDimensionInfo"),r=t.meta.isStacked&&e.length>1?1:0,i=t.getHyperCubeValue("qMeasureInfo");return{path:n,rect:{qTop:0,qLeft:r,qWidth:e.length+i.length+r,qHeight:Math.min(2e3,1e4/(i.length+1))},zoomLevel:-1,filter:"D1"}}}}function X8({enigma:e,layoutService:t,viewModel:n,definitionPath:r,reducedHyperCubePath:i},o={}){const a=G8(e,t,r),s=function(e,t="reducedHyperCube"){return{fetch:()=>Promise.resolve({reducedCube:e.getLayoutValue(t)||e.getHyperCube()})}}(t,i),l=function(e){return{fetch:()=>{const t=e.getHyperCube(),n={...t,qDataPages:t.qDataPages.slice()};return Promise.resolve({reducedCube:n})}}}(t),c=function({layoutService:e}){const{isSnapshot:t,isStackedByDimension:n}=e.meta,r=e=>{e.qDimensionInfo.unshift({key:"dummy-patch-dimension"})};return r.should=e=>t&&n&&1===e.qDimensionInfo.length,r}({layoutService:t}),u={mode:{isReduced:!1}};return{fetch(){if(t.meta.isSnapshot)return s.fetch();if(t.meta.isContinuous)return l.fetch();if(!t.meta.isStacked){if(t.getHyperCubeValue("qSize.qcy",NaN)===t.getHyperCubeValue("qDataPages.0.qArea.qHeight",NaN))return l.fetch()}return a.fetch()},model:()=>u,update(e){var r;c.should(e)&&c(e),u.mode=vg(u.mode,t.meta),u.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,u.mode.isStackedByDimension=u.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),u.mode.isStackedByMeasure=u.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),u.fields={major:u.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:u.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},u.scales={major:U8.SCALE.REDUCED.MAJOR,minor:U8.SCALE.REDUCED.MINOR},u.cube=e,o.qDataPages=e.qDataPages},fetchMinMaxData(){if(o.qDataPages)return Promise.resolve(o.qDataPages);let n=a.settings();const r="K"===t.getHyperCubeValue("qMode")?1:n.rect.qHeight;return n=vg(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=u.cube}}}function J8({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:i}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==i.event&&r({componentName:"continuousRangeBrush",brushName:!1})}function Z8({layout:e,defaultAuto:t}){return e.qHyperCube.qDimensionInfo.length>1?{mode:"byDimension",useDimColVal:!0,useBaseColors:"dimension",byDimDef:{activeDimensionIndex:1}}:e.qHyperCube.qMeasureInfo.length>1?{mode:"primary",useBaseColors:"measure",paletteColor:null}:t(e)}const Q8={getMaxGlyphCount(e,t){const{qDimensionInfo:n}=e,{qApprMaxGlyphCount:r}=n[t];return r},getDimensionSize(e){var t;const n=null==e||null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal,{qLocked:r=0,qOption:i=0,qSelected:o=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+i+o:n}};function e7({picasso:t,chart:n,environment:r,viewState:i,viewCache:o}){const a=e.useStaleLayout(),s=e.useModel(),l=e.useApp(),c=e.usePlugins(),u=e.useSelections(),d=e.useOptions(),[f,h]=e.useState(),[p,m]=e.useState(),[g,y]=e.useState(),v=e.useConstraints(),b=$8();return e.useEffect((()=>{if(!n)return()=>{};const e=b.get(),t=function({chart:e,actions:t,selections:n}){const r=e.scale(U8.SCALE.MAIN.MAJOR),i=Eq({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:J8},custom:{getActions:()=>t},setBrushAliases({defaultFunc:e,brush:t}){e(),t.addKeyAlias("miniCube/qDimensionInfo/0","qHyperCube/qDimensionInfo/0"),t.addKeyAlias("miniCube/qDimensionInfo/1","qHyperCube/qDimensionInfo/1")}}});return i}({chart:n,actions:e,selections:u});return m(e),y(t),()=>{t.destroy(),b.destroy()}}),[n]),e.useEffect((()=>{if(!v)return;const e={allowScroll:!v.active,allowInteract:!v.active,allowTooltip:!v.passive,allowSelect:!v.select&&!v.active};b.setAllows(e)}),[v]),e.useEffect((()=>{if(!g||!r)return;const{theme:e,translator:u,localeInfo:f,flags:m,embed:y}=r,{direction:v="ltr"}=d,x=xC({source:a,metaAdditionsFn:K8(m),experimental:{filter:!0}});g.setFilteredFields(x.meta.filteredFields);const w=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(x.getLayout())?xC({source:x.getLayout()}):void 0,S=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:a,options:d}),k=function({layoutService:e,viewCache:t,options:n}){const r={};return r.fields=function(e){const{meta:t}=e,n={majorGroup:t.isGroupedByDimension?"qDimensionInfo/0":void 0,majorStack:t.isStacked?"qDimensionInfo/0":void 0,major:t.isDimensionless?void 0:"qDimensionInfo/"+(t.dimensionCount-1),majors:e.getHyperCubeValue("qDimensionInfo").map(((e,t)=>`qDimensionInfo/${t}`)),minor:e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>`qMeasureInfo/${t}`))};return n.majorNumeric=`${t.isStackedByDimension?n.majorStack:n.major}:numeric`,n}(e),r.selectionDimensionIdx=(e=>{const t=e.qDimensionInfo.length;for(let n=0;n<t;n++){const r=e.qDimensionInfo[n];if(!(r.qLocked||r.qCardinalities.qHypercubeCardinal<=1&&n<t-1))return n}})(e.getHyperCube()),r.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,r.selectionDimensionProp=e=>void 0===r.selectionDimensionIdx||void 0!==e&&r.selectionDimensionIdx!==e?{}:{selectionDimension:{field:r.selectionDimensionIdx}},r.animations={enabled:()=>!(!1===n.chartAnimations||r.animations.isPartialUpdating||r.animations.isSizeChanging||r.animations.hasSlicedHats||zq.propertiesHaveChanged({viewCache:t,layout:e.getLayout()})),isPartialUpdating:!1,isSizeChanging:!1,hasSlicedHats:!1},r}({layoutService:x,viewCache:o,options:d}),M=lC({chart:n,layoutService:x,config:{logicalSize:S,rtl:"rtl"===v},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),C=function({layoutService:e}){return ZM({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0,LimitedData:{condition:()=>{const{isContinuous:t,isTwoDimensional:n}=e.meta;if(!t||!n)return!1;const r=e.getLayout().qHyperCube.qDimensionInfo[1];return Q8.getDimensionSize(r)>Cg.maxNumberOfLines}},OnlyNegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.every((e=>{const{qMin:t,qMax:n}=e;return t<0&&n<0}))}return!1},alignment:"center"},NegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.some((e=>{const{qMin:t}=e;return t<0}))}return!1}}}}})}({layoutService:x}),E=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:_q(a),styles:void 0};return d.styles=Iq({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=Iq({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:e,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),q=YK.model({model:s,layoutService:x,viewCache:o,viewState:i}),D=X8({enigma:s,layoutService:x,viewModel:k});!function({layoutService:e,viewState:t,viewStateOptions:n={}}){const r=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):n;t.preventSet("scrollOffset",r.scrollOffset),t.preventSet("legendScrollOffset",r.legendScrollOffset||0),r.zoom&&t.preventSet("zoom",r.zoom)}({layoutService:x,viewState:i,viewStateOptions:null==d?void 0:d.viewState});const T=function({app:e,model:t,translator:n,picasso:r,localeInfo:i,theme:o,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:c}){const{isContinuous:u,isStacked:d}=s.meta,f={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const h=[],{isReduced:p}=c.model().mode,m=u||p||d,g=!u&&(p||d)&&l?l.getHyperCube():void 0,y=g?"legendCube":void 0;return f.main=YM({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:Z8,key:U8.SCALE.MAIN.COLOR},createConfig:()=>({hc:m?g||s.getHyperCube():c.model().cube,source:m?y:"miniCube",theme:o})}),h.push(f.main.initialize()),u&&(f.mini=YM({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:Z8,key:U8.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:o})}),h.push(f.mini.initialize())),Promise.all(h)},getMain:()=>f.main,getMini:()=>f.mini}}({picasso:t,model:s,app:l,translator:u,localeInfo:f,theme:e,continuousDataModel:q,layoutService:x,legendLayoutService:w,reducedDataModel:D}),N=function(e){var t,n=e.app,r=e.translator,i={initialized:!1,dimensions:[],measures:[]};return{initialize:(t=VS(KS().mark((function e(t){var o,a,s,l,c,u,d;return KS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.properties,!i.initialized){e.next=3;break}return e.abrupt("return");case 3:return s=[hk(a={app:n,translator:r,properties:o}),gk(a)],e.next=7,Promise.all(s);case 7:l=e.sent,c=GS(l,2),u=c[0],d=c[1],i.dimensions=u,i.measures=d,i.initialized=!0;case 12:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),getAlternatives:function(){return{dimensions:XS(i.dimensions),measures:XS(i.measures)}}}}({app:l,translator:u}),O=function({layoutService:e,themeService:t,colorService:n}){const r=t.getStyles(),i=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,o,a;const s=null===(e=i("axis"))||void 0===e||null===(e=e.axis)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.axis.title.fontFamily,fontSize:null!==(o=null==s?void 0:s.fontSize)&&void 0!==o?o:r.axis.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.axis.title.color}}},label:{getStyle:()=>{var e,t,o,a;const s=null===(e=i("axis"))||void 0===e||null===(e=e.axis)||void 0===e||null===(e=e.label)||void 0===e?void 0:e.name,l=n.getMain().getPaletteColor;return{fill:null!=s&&null!==(t=s.color)&&void 0!==t&&t.color?l(null==s?void 0:s.color):r.axis.label.name.color,fontSize:null!==(o=null==s?void 0:s.fontSize)&&void 0!==o?o:r.axis.label.name.fontSize,fontFamily:null!==(a=null==s?void 0:s.fontFamily)&&void 0!==a?a:r.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,o,a;const s=null===(e=i("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.title.fontFamily,fontSize:null!==(o=null==s?void 0:s.fontSize)&&void 0!==o?o:r.legend.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.title.color}}},label:{getStyle:()=>{var e,t,o,a;const s=null===(e=i("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.label,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.label.fontFamily,fontSize:null!==(o=null==s?void 0:s.fontSize)&&void 0!==o?o:r.legend.label.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.label.color}}}},label:{getStyle:()=>{var e,t,o,a,s;const l=null===(e=i("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.value,c=n.getMain().getPaletteColor;return{fill:null!=l&&null!==(t=l.color)&&void 0!==t&&t.color?c(null==l?void 0:l.color):r.label.value.color,useContrastColor:null===(o=null==l?void 0:l.useContrastColor)||void 0===o||o,fontSize:null!==(a=null==l?void 0:l.fontSize)&&void 0!==a?a:r.label.value.fontSize,fontFamily:null!==(s=null==l?void 0:l.fontFamily)&&void 0!==s?s:r.label.value.fontFamily}}}}}({layoutService:x,themeService:E,colorService:T}),A=E8({layoutService:x,viewState:i,colorModel:{settings:()=>T.getMain().getSettings(),resolveUIColor:e=>T.getMain().getPaletteColor(e)},chart:n,env:r,keys:{colorScale:U8.SCALE.MAIN.COLOR},isEnabled:()=>!x.meta.isGroupedByDimension&&(!x.meta.isStackedByDimension||m.isEnabled("TRENDLINES_STACKED_DIM"))&&!x.meta.isDimensionless});v6.attrExpr.updateProperties(s,a);const _=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:u6,miniChartToken:{},embed:s}}({layout:a,app:l,model:s,picasso:t,chart:n,translator:u,localeInfo:f,embed:y});let L;x.meta.isDiscrete&&(L=l8({chart:n,actions:p,componentKey:U8.COMPONENT.BAR,enigmaModel:s,layoutService:x,dockService:M,trendLineModel:A,itemWidths:W8,viewState:i,rtl:"rtl"===v,options:{axisKey:U8.COMPONENT.BAR_AXIS,renderer:t.renderer("svg")()}}));const I=Uq({layoutService:x,discreteModel:L}),R=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:U8.SCALE.MAIN.MINOR,MAJOR:U8.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:U8.COMPONENT.BAR,BAR_AXIS:U8.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:U8.COLLECTION.MAIN}}}}(x),P=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 VS(KS().mark((function e(){var r,a,s,l;return KS().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=VS(KS().mark((function e(n){var r;return KS().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(US({},i));case 4:if("object"===JS(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(US({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,XS(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=GS(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=bk(!0,{},n.brush);bk(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===JS(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=wC({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=wC({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:c||[],pluginArgs:R});b.setContext({discrete:L,layoutService:x}),h({alternativeService:N,discrete:L,continuous:YK,legendLayoutService:w,layoutService:x,viewModel:k,dockService:M,themeService:E,styleService:O,continuousDataModel:q,reducedDataModel:D,colorService:T,trendLineModel:A,refLineModel:I,pluginService:P,customTooltipModel:_,selectionService:g,logicalSize:S,disclaimerService:C})}),[g,d,r,a]),f}function t7(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function n7(e){return e.some(t7)}function r7(e,t){let n=NaN,r=NaN;return e.forEach((e=>{n7(e)||e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(n=Number.isNaN(n)?e.qNum:Math.min(e.qNum,n),r=Number.isNaN(r)?e.qNum:Math.max(e.qNum,r))}))})),{min:n,max:r}}function i7(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");e.meta.isButterfly||"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"),e.meta.isButterfly&&(t=-n))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function o7(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!n7(e)){let i=0,o=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?o+=e.qNum:i+=e.qNum)})),n=Number.isNaN(n)?i:Math.min(i,n),r=Number.isNaN(r)?o:Math.max(o,r)}})),{min:n,max:r}}function a7(e,t){const n={};e.forEach((e=>{if(!n7(e)){const r=e[0].qElemNumber;n[r]=n[r]?n[r]:{min:0,max:0,cId:r},e.slice(t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?n[r].max+=e.qNum:n[r].min+=e.qNum)}))}}));let r=NaN,i=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),i=Number.isNaN(i)?n[e].max:Math.max(n[e].max,i)})),{min:r,max:i}}function s7(e){return"number"==typeof e&&!Number.isNaN(e)}function l7(e){const{meta:t}=e,n=e.getHyperCubeValue("qMeasureInfo");return t.isButterfly?{min:Math.min(0,s7(n[1].qMax)?-n[1].qMax:0),max:Math.max(0,s7(n[0].qMax)?n[0].qMax:0)}:{min:Math.min(...n.filter((e=>s7(e.qMin))).map((e=>e.qMin))),max:Math.max(...n.filter((e=>s7(e.qMax))).map((e=>e.qMax)))}}const{isNumber:c7}=eS;function u7(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function d7(e){return!Number.isNaN(+e.qNum)}function f7(e){return e.qNum}function h7(e){return!Number.isNaN(+e.qNum)}function p7(e){return e.qNum}function m7(e,t){return e.push(...t),e}const{getValueWithOffset:g7,isNumber:y7}=eS;function v7(e,t){return Math.abs(e/t)<5||0===t}function b7({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=o7,stackedByDimensionExtractor:i=a7,straightExtractor:o=r7,measureInfoExtractor:a=l7,explicitExtractor:s=i7}=n,{meta:l}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:i}){let o,a;if(Array.isArray(n)?({min:o,max:a}=this.extractFromStacked(n)):({min:o,max:a}=this.extractFromStraight(e,i)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();o=Number.isFinite(e)?Math.min(o,e):o,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),c=this.extractExplicit(),u=[0,o,a].filter((e=>y7(e)));let d=Math.min(...u),f=Math.max(...u);d=v7(s,d)?Math.min(d,s):d,f=v7(l,f)?Math.max(f,l):f;const h=[c.explicitMin,c.explicitMax,d,f].filter((e=>y7(e)));return o=Number.isNaN(c.explicitMin)?Math.min(...h):c.explicitMin,a=Number.isNaN(c.explicitMax)?Math.max(...h):c.explicitMax,o===a&&(Number.isNaN(c.explicitMin)?o=g7(o,-.2):Number.isNaN(c.explicitMax)&&(a=g7(a,.2))),{min:o,max:a,implicitMin:d,implicitMax:f,otherMin:s,otherMax:l,hasOtherMin:s<o,hasOtherMax:l>a,...c}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:i}=s(e);return{hasExplicitMinMax:r||i,hasExplicitMin:r,hasExplicitMax:i,explicitMin:t,explicitMax:n}},extractFromStacked:e=>function(e){return e.length?{min:Math.min(...e[0].qSubNodes.filter((e=>c7(e.qMinNeg))).map((e=>e.qMinNeg))),max:Math.max(...e[0].qSubNodes.filter((e=>c7(e.qMaxPos))).map((e=>e.qMaxPos)))}:{min:0,max:0}}(e.length?e[0].qData:[]),extractFromStraight(t,n){const s=t.length?t[0].qMatrix:[];return l.isStackedByMeasure?r(s,n):l.isStackedByDimension?i(s,n):e.getHyperCubeValue("qHasOtherValues")?o(s,n):a(e)},extractOthers:e=>l.isStackedByDimension?function(e){const t=u7(cC(e,"0.qData.0.qSubNodes",[]),t7,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):l.isGroupedByDimension?function(e){const t=cC(e,"0.qMatrix",[]).filter(n7).reduce(m7,[]).filter(h7).map(p7);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=u7(cC(e,"0.qMatrix",[]),n7,[]).filter(d7).map(f7);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function x7(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:i}=t,o=e=>!e.length&&r.mode.K,a=e=>{const t=i("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=i("qMeasureInfo").length,s=i("qDimensionInfo").length,l=i("qHasOtherValues");if(!r.isStacked&&!l)return Promise.resolve({qDataPages:[{}],count:t});if(r.isContinuous){const e=r.isStackedByDimension?s:t;return n.fetchMinMaxData().then((t=>({qDataPages:t,count:e})))}const c=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(o(e))return a(l);let t=[];return l&&(t=r.mode.K?i("qStackedDataPages",[]):i("qDataPages",[])),{qDataPages:e,count:c,others:t}}))}}}(e),n=b7(e);return t.resolve().then((e=>n.extract(e)))}const w7="lasso",S7=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:w7,enable(e,n){if(this.started===w7||!n)return!0;if(!i.actions.select.enabled()||!i.actions.lasso.enabled()||!i.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==w7&&(i.actions.select.emit("start",w7),this.chart.component(e).emit("lassoStart",t),this.started=w7)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof i.updateOnMove&&i.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),i.actions.select.emit("end",w7),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const k7=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:i="tap"},o)=>{let a;const s=o.customTooltipModel?o.customTooltipModel.utils:void 0,l=s?o.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:i,interval:10,pointers:1,enable(t,n){return!n||!(!o.actions.select.enabled()&&!o.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[i](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}(t,this.chart),c=o.hitRadius?o.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=o.shapesAt?o.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),f=this.chart.component("tooltip"),h="mouse"!==t.pointerType&&f&&f.show;if(!o.isLocked(a)&&!o.tooltipOnly&&o.actions.select.enabled()){const e=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}),n=e.some((e=>"legend-cat"===e.type));if(!d.length&&n||(this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1,o.actions.select.emit("start",i,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),o.actions.select.emit("end",i),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:o.largeDataService,chart:this.chart})}}if(f&&o.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=o;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,f,{nodes:n,opts:o,customTooltipModel:e})}else f.emit("show",t,{nodes:d})}else h&&f.emit("hide")}}}};const M7=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},i)=>({prio:1,key:`event:${e}-tap`,type:"Tap",requireFailure:t,recognizeWith:n,options:{event:`${r}-${e}-tap`,interval:10,pointers:1,enable:(t,n)=>!!n&&(!!i.actions.select.enabled()&&(!(!n.target||"INPUT"!==n.target.nodeName)||!(!n.target||!n.target.hasAttribute("data-other-value"))&&(n.target.getAttribute("data-key")||"").split("-bubble")[0]===e))},events:{[`${r}-${e}-tap`](t){(t.target.getAttribute("data-key")||"").split("-bubble")[0]&&(t.preventDefault(),this.chart.component(e).emit("bubbleStart",t))}}});const C7=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:i},o,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:i,options:{event:e,enable(r,i){if(this.started===e||!i)return!0;if(!o.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((e=>-1!==n.indexOf(e.key))),s=0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(`${t}-`))}(i,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),o.actions.select.emit("start",e),this.chart.component(t).emit(`${a}Start`,n),this.started=e},[`${e}move`](e){e.preventDefault(),this.chart.component(t).emit(`${a}Move`,e),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),o.actions.select.emit("end",e),this.started=!1,"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});function E7(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:i,targetFillSelector:o,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:f}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:f?{bubbleEnd(){f()}}:{},settings:{brush:c?{context:"selection",observe:!0}:"selection",scale:s,multiple:u,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:i,fillSelector:o,fill:"rgba(82,204,82,0.2)"}}}}(e),r=C7(e,t,"range");return{interactions:[e.onEdited?M7(e,t):null,r].filter(Boolean),components:[n]}}const q7={refLines:{minimumLayoutMode:"SPARK"},measureAxisTitle:{minimumLayoutMode:"XSMALL"},dimensionAxisTitle:{minimumLayoutMode:"XSMALL"},measureAxis:{minimumLayoutMode:"XSMALL"},dimensionAxis:{minimumLayoutMode:"XSMALL"},gridLines:{minimumLayoutMode:"XSMALL"},refLinesLabels:{minimumLayoutMode:"SMALL"},horizontalDimensionAxis:{minimumLayoutMode:{width:"XSMALL",height:"SMALL"}},verticalDimensionAxis:{minimumLayoutMode:{width:"SMALL",height:"XSMALL"}},horizontalDimensionAxisTitle:{minimumLayoutMode:{width:"XSMALL",height:"MEDIUM"}},verticalDimensionAxisTitle:{minimumLayoutMode:{width:"MEDIUM",height:"XSMALL"}}},D7="inner-time-axis",T7="outer-time-axis";const N7={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=Q8.getMaxGlyphCount(e,r)}else e.qMeasureInfo.forEach((e=>{n=Math.max(n,e.qFallbackTitle.length)}));return n},getAxisData(e,t){let n;return n=e.qDimensionInfo.length?cC(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=N7.getAxisData(e,t),r=!e.qDimensionInfo.length,i=r||t?void 0:e.qDimensionInfo.length-1,o=N7.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Fg.getAdjustedMaxGlyphCount(o,n,i,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=N7.getAxisData(e),n=Q8.getMaxGlyphCount(e,0);return Fg.getAdjustedMaxGlyphCount(n,t,0)}};var O7=3,A7=13;function _7(e,t,n,r){const{meta:i}=t.layoutService,o=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);i.isContinuous?o.push(...function(e,t,n,r){const{meta:i}=t.layoutService,{axis:o,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:c}=t.layoutService.getLayoutValue("gridLine",{}),u=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,f=q7[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,h={type:"grid-line",x:{},layout:{minimumLayoutMode:q7.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:zq.lines.trackBy,compensateForLayoutChanges:zq.lines.compensateForLayoutChanges}},p=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(i.isTime){if(d){const e=n?"end":"start",r=n?1:0,i="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:o.line.major.color},minorGuideLine:{stroke:o.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:i,justify:r},guideLine:{major:{justify:r},minor:{align:i}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:zq.axes.trackBy({isTime:!0}),compensateForLayoutChanges:zq.axes.compensateForLayoutChanges({isTime:!0})}};u.push(vg(!0,{},d,{key:D7,scale:U8.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===c}},style:vg(!0,{},a,{line:{stroke:o.line.major.color},majorGuideLine:{stroke:o.line.minor.color},minorGuideLine:{stroke:o.line.major.color}})})),u.push(vg(!0,{},d,{key:T7,scale:U8.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),u.push({type:"axis-overlay",key:"outer-axis-overlay",scale:U8.SCALE.MAIN.MAJOR,layout:{dock:`@${T7}`,minimumLayoutMode:f}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:U8.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${D7}`,minimumLayoutMode:f}}),u.push(p)}return u.push(vg(!0,{},h,{key:"inner-time-grid",x:{scale:U8.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),u.push(vg(!0,{},h,{key:"outer-time-grid",x:{scale:U8.SCALE.MAIN.MAJOR}})),u}if(i.isContinuous){const e="continuous-axis";d&&(u.push({type:"axis",key:e,renderer:Kq(t.flags),scale:U8.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:o.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:zq.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:zq.axes.compensateForLayoutChanges({isContinuous:!0})}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:U8.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:f}}),u.push(p)),u.push(vg(!0,{},h,{key:"continuous-grid",x:{scale:U8.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return u}(e,t,n,r)):o.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:i}=t.layoutService,o=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),c="horizontal"===t.dockService.meta.major.orientation,u=c?e.dimensionAxis.label:"auto",d="horizontal"===u?void 0:t.dockService.meta.minor.size/4,f=t.styleService.axis.label.getStyle(),h={type:"axis",renderer:Kq(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:q7[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:u,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...f},line:{show:!r,stroke:o.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:zq.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:zq.axes.compensateForLayoutChanges({isHorizontal:c})}};l&&a.push(vg(!0,{},h,{key:"group-axis",scale:U8.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":h.settings.labels.mode,maxGlyphCount:N7.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(c||!s)&&h.settings.line.show}}}));const p=N7.getBarAxisMaxGlyphCount(e.qHyperCube,i.isStackedByDimension);return s&&a.push(vg(!0,{},h,{key:U8.COMPONENT.BAR_AXIS,scale:U8.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:p,maxLengthPx:d,tiltThreshold:p>O7&&p<A7?1:void 0},line:{show:!(c&&l)&&h.settings.line.show}}})),c||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),c=t.styleService.axis.label.getStyle();return a&&o.push({type:"axis",key:"y-axis",renderer:Kq(t.flags),formatter:U8.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:q7.measureAxis.minimumLayoutMode},scale:U8.SCALE.MAIN.MINOR,settings:{labels:{show:s,...c},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}},animations:{enabled:t.viewModel.animations.enabled,trackBy:zq.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:zq.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),o}var L7={BAR:{STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};function I7({layoutService:e,discrete:t}){var n;const{isContinuous:r,isGrouped:i}=e.meta;if(r)return 1;const o=(e.getLayoutValue("components",[])||[]).filter((e=>"bar"===e.key))[0];if(null!=o&&null!==(n=o.style)&&void 0!==n&&n.width){const{style:e}=o;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=L7.BAR.STROKE.WIDTH[e.strokeWidth.toUpperCase()]/t.query.getItemSize(),r=e.width+n;return r>1?e.width-(r-1):e.width}:e.width}return i?.9:.7}const R7={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function P7(e,t,n={}){return({data:r})=>{const i=e.chart.component(t).rect;if(!r.items.length||!i)return 2;const{min:o,max:a}=e.viewState.get("zoom");if(n[[o,a]])return n[[o,a]];const s=R7[wg.getLayoutMode(i.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-o),c=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===c)return s;const u=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/c/.2,1));return n[[o,a]]=Math.max(2,Math.min(s,u)),n[[o,a]]}}function z7(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function F7(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function j7(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function B7(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const H7="max",V7="min",$7={min:"Min",max:"Max"};function W7(e,t,n){return void 0===n?z7(e,t)||F7(e,t):n===H7?z7(e,t):F7(e,t)}function U7({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${$7[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===H7?e.implicitMax:e.implicitMin;return!W7(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function Y7(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:i,dockService:o,themeService:a}=e,s=i.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===H7?s.implicitMax:s.implicitMin;if(!W7(Number(l.toFixed(13)),s,n))return!1;const{orientation:c}=t.settings,u=n===H7?o.meta.minor.end:o.meta.minor.start;let d="end";r&&(d=n===H7?"sumOfPositives":"sumOfNegatives");const f=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:u},data:t.data,brush:t.brush,settings:{orientation:c,major:t.settings.major,minor:t.settings.minor,dockValue:Ig.getDockValue(u),oob:vg({},t.settings.box,{fill:f.outOfRange.color,alignment:1,opacity:1,show:function(e){var t;return!0!==(null===(t=e.datum.null)||void 0===t?void 0:t.value)&&((!r||0!==e.datum[d].value)&&W7(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:zq.barOobs.compensateForLayoutChanges}}}function K7(e){return Math.min(Math.max(0,e),1)}const G7=(e,{chart:t,type:n,componentKey:r,collectionKey:i})=>{const{layoutService:o,dockService:a,viewCache:s}=e,{isStacked:l}=o.meta,c=s.get("minorMinMax"),{meta:u}=e.layoutService;if(!U7({minorMinMax:c,type:n}))return!1;let d;u.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:u.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const f={type:"box",key:`${U8.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:i},settings:{orientation:a.meta.minor.orientation,major:{scale:U8.SCALE.MAIN.MAJOR,fn:d},minor:{scale:U8.SCALE.MAIN.MINOR,start(e){var n;return K7(t.scale(U8.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(n=n.start)||void 0===n?void 0:n.value)||0))},end(e){const r=t.scale(U8.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r[n]();return K7(r(o))}},box:{width:I7({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(U8.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r.max();return"max"===n?o>r.max():o<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return f};function X7(e,t){const{style:n,styleService:r,dockService:i}=t,o=r.label.getStyle(),a=o.useContrastColor&&!e.onBackground?function(e){return function(t){return Wy.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):o.fill,s="horizontal"===i.meta.major.orientation,l=e.padding||{left:s?0:4,right:s?0:4,top:s?4:0,bottom:s?4:0};return{position:e.position,justify:e.justify,fill:a,overflow:e.overflow,background:e.background,padding:l}}function J7(e){return{placements:e.simplifiedPlacements.map((t=>X7(t,e))),label:e.label}}function Z7(e,t){if(t){if(function(e,t){return z7(e,t)}(e,t))return-1;if(function(e,t){return F7(e,t)}(e,t))return 1}return function(e,t){if(t&&0===e){const{min:e,max:n}=t;return 0===n&&0===e?1:n<=0?-1:e>=0||n>=-e?1:-1}return e>=0?1:-1}(e,t)}function Q7(e,t,n,r){const i=Z7(e,r);let o="up";return"vertical"===t&&i<0?o="down":"horizontal"===t&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}function e9(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!r||!i&&!!n.showSegmentLabels}function t9(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!!r&&(!!i||!1!==n.showTotalLabels)}function n9(e,t,n,r){const i=[];return void 0!==e&&(i[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(i[t]={position:"inside",onBackground:!1,justify:n}),i}function r9({layout:e,component:t,minorScale:n},r,i){if(!e9(e,r))return!1;const{viewModel:o,ds:a,viewCache:s,layoutService:l,dockService:c,themeService:u}=r,{meta:d}=l,f=s.get("minorMinMax"),h=u.getStyles(),p=r.styleService.label.getStyle();let m;!d.isStacked&&(m=d.isStacked?1:0);const g=0===m?1:0,y=d.isStacked?.5:1,v=o.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,w=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>w?b(e.data.segment.value):""}:function(e){return e.data.end.label};const S={label:x,simplifiedPlacements:n9(m,g,y,d.isContinuous),style:h.label.value},k=[J7(vg(r,S))],M={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Q7(e.data.end.value,c.meta.minor.orientation,i,f),labels:k,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily,linkData:zq.labels.linkData}}},C=[M],E={key:"bar-labels",type:"labels",renderer:Kq(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:C},animations:{enabled:r.viewModel.animations.enabled,trackBy:zq.labels.trackBy,compensateForLayoutChanges:zq.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(E.beforeRender=()=>{w=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",i=t.chart.component(e),o=i&&i.rect?i.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/o}(t,r,n)}),E}const i9={isSameMeasureAndColorRow:(e,t,n)=>t&&e&&t[0].content[0]===e[0].content[0]&&t[0].content[1]===e[0].content[1]&&t[1].content[n?0:1]===e[1].content[0],getTitle(e,t){const n=e.data;let r;return t.isStackedByDimension?r=n.stack?n.stack.label:void 0:t.isGroupedByDimension&&(r=n.group?n.group.label:void 0),void 0!==r?`${n.label}, ${r}`:n.label},getMeasure(e,t,n,r,i){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const o=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:o.measureIndex.value]:void 0,s=n.isStacked?{source:{key:o.source.key,field:a},label:!0===(null===(l=o.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&i?i(o.segment.value):o.segment.label}:o.end;var l;return Yg.getMeasure(e,s)},getMeasures(e,t,n,r,i){const o=e.resources.dataset;return t.map((e=>i9.getMeasure(o,e,n,r,i))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return p6({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,i){const o={title:i9.getTitle(t,n),color:Yg.getColor(e,t,r),measures:i9.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,i)};if(i9.useCustomTooltip(r)){var a,s;const n=i9.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);o.customMeasures=n.customTooltipAttrExpsArr,o.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===J4.CUSTOM.TITLE)),o.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===J4.CUSTOM.DESCRIPTION));let i=[];(t.childrenNodes?t.childrenNodes:[t]).forEach((e=>{var t;(null===(t=e.data.customTooltipImages)||void 0===t?void 0:t.length)>0&&!Array.isArray(e.data.customTooltipImages[0])&&(i=e.data.customTooltipImages)})),i.length>0&&(o.customImages=i);const d=r.layoutService.getLayout();var l,c,u;if(null!==(a=d.tooltip)&&void 0!==a&&null!==(a=a.chart)&&void 0!==a&&null!==(a=a.object)&&void 0!==a&&a.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(s=r.customTooltipModel.model)||void 0===s?void 0:s.getEffectiveProperties))if(null!==(l=(c=r.app).isInModalSelection)&&void 0!==l&&l.call(c)){if((null==d||null===(u=d.qHyperCube)||void 0===u||null===(u=u.qDimensionInfo)||void 0===u?void 0:u.length)>0){a6.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");o.customLimitation=e}}else{const t=a6.createContainer({ctx:e,layout:d});o.customChart=t}}return o},getTotalStackTitle:(e,t)=>e>0?t?t.get("Object.ChartTooltip.sumOfPositives"):"Sum of positives":e<0?t?t.get("Object.ChartTooltip.sumOfNegatives"):"Sum of negatives":"",extractStackTotalBarTooltipData(e,t,n){const r=e.data.label,i=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${i9.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:i}},extractTooltipData(e,t){const n=t.chart.formatter(U8.FORMATTER.MINOR),{meta:r}=t.layoutService,i=e.node.childrenNodes?e.node.childrenNodes:[e.node],o=Math.max(0,i.length-6);i.length=Math.min(i.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>i9.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:i.map((i=>i9.extractBarTooltipData(e,i,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:o}},extractBarNodeData(e,t,n,r,i,o,a){let s=!i&&Yg.getTitleRow(t,r);const l=Yg.hideColorRow(t,n),c=!o&&!l&&Yg.getColorRow(e,t,r),u=t.measures.map((i=>!a&&Yg.getMeasureRow(i,e,t,r,l&&i.field===n.coloring.field))),d=u.filter((e=>!i9.isSameMeasureAndColorRow(e,c,r)));if(i9.useCustomTooltip(n)){const n=i?[]:t.customMeasures.map((n=>Yg.getMeasureRow(n,e,t,r,!1))),o=!(!t.customTitle[0]||i)&&Yg.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||i)&&Yg.getDescriptionRow(t.customDescription[0],r);s=!i9.shouldIgnoreTitleRowForCtt(o,a,d,n)&&s;const l=[o,a,s,c,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(u6.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>u6.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,c,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&Yg.getTitleRow(t,n),i=t.measures.map((r=>Yg.getMeasureRow(r,e,t,n,!1)));return[r,...i].filter(Boolean)},useCustomTooltip:e=>cC(e,"customTooltipModel.useCustomTooltip",!1),shouldIgnoreTitleRow:(e,t)=>e.isDimensionless||t>0&&!e.isGroupedByDimension&&!e.isStackedByDimension,shouldIgnoreTitleRowForCtt:(e,t,n,r)=>!1===n[0]&&0===r.length&&(e.length>0||t.length>0),shouldIgnoreColorRow:(e,t)=>t>0&&(e.isGroupedByMeasure||e.isStackedByMeasure),shouldIgnoreMeasureRow:(e,t,n)=>e&&t.measures.some((e=>e.field===n.coloring.field)),shouldIgnoreDefaultRows:(e,t)=>i9.useCustomTooltip(t)&&cC(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:i}=t.layoutService,o=t.layoutService.getLayout(),a=r.length;let s,l,c=[];const u=i9.shouldIgnoreDefaultRows(o,t);for(s=0;s<a;s++){l=r[s];const o=i9.shouldIgnoreTitleRow(i,s),d=u||i9.shouldIgnoreColorRow(i,s),f=u||i9.shouldIgnoreMeasureRow(d,l,t);if(c=c.concat(i9.extractBarNodeData(e,l,t,n,o,d,f)),c.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:c,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:c,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(i9.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:i,stackTotalBarTooltipData:o}=i9.extractTooltipData(e,t),a=i9.extractStackTotalBarsData(e,n,o);a.length&&a.push(Yg.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=i9.extractBarsData(e,t,n,r),c=a.concat(s),u=i+l;return u&&c.push(Yg.getNMoreRow(u,t.translator,n)),c},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return Yq.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:i,groupProp:o}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",c=e.chart.scale(n).pxScale(a[l]);let u,d,f;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;u=i.value,d=n===r&&void 0!==u?(c([u,0])+c([u,t-1]))/2:0,f=n===r&&void 0!==u?c.bandwidth([u,0]):0}else{const{value:e}=i;u=i[o]?i[o].value:void 0,d=c(n===r&&void 0!==u?[u,e]:e),f=n===r&&void 0!==u?c.bandwidth([u,e]):c.bandwidth(e)}const h=(d+f/2)*a[l],p={width:0,height:0};return"horizontal"===s?(p.x=h,p.y=a.height):(p.y=h,p.x=0),p},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:i,majorScale:o,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let c;return c=l.length?i9.calculateBoundsFromBars(l):i9.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===i?o:a,majorScale:o,data:t[0].data,groupProp:s}),c},filterNodesOnKeys:(e,t)=>e.filter((e=>e.data&&t.indexOf(e.key)>-1)),isBarMatchingLabel:(e,t)=>t.data.value===e.data.value,isBarMatchingLabelOnProp:(e,t,n)=>t.data.value===(e.data[n]?e.data[n].value:e.data.value),findBarsMatchingLabels(e,t,n,r){const i=e.filter((e=>t.some((t=>n(e,t,r)))));return i},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=i9.isBarMatchingLabelOnProp;return i9.findBarsMatchingLabels(e,t,r,n)},findBarsFromBarLabelsInGroupedByDim:(e,t,n)=>e.filter((e=>t.some((t=>t.data.group&&t.data.group.value===e.data[n].value&&t.data.value===e.data.value)))),findBarsFromLabelsInSingleDim(e,t){const n=i9.isBarMatchingLabel;return i9.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const i=t.filter((e=>e.key===n)),o=t.filter((e=>e.key!==n)),a=i9.findBarsFromBarLabelsInGroupedByDim(e,i,r),s=i9.findBarsFromGroupLabelsInGroupedByDim(e,o,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=i9.isBarMatchingLabel;return i9.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=i9.isBarMatchingLabel;return i9.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=i9.isBarMatchingLabelOnProp;return i9.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>i9.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:i,stackProp:o}){const{meta:a}=t.layoutService,s=i9.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?i9.findBarsFromLabelsInStackedByDim(s,e,o):a.isStackedByMeasure?i9.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?i9.findBarsFromLabelsInGroupedByDim(s,e,r,i):i9.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const i=i9.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?i9.findStackTotalBarsFromLabelsInStackedByDim(i,e):i9.findStackTotalBarsFromLabelsInStackedByMeasure(i,e)}return[]},isSingleBarMode:(e,t)=>(e.isSimple||1===t.length)&&t[0].children&&t[0].children.length,filterNodesOnLabels({labels:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:c,majorInnerScale:u,filterFn:d}){const{meta:f}=t.layoutService;if(e.length){let h=i9.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(h=h.filter(d)),i9.isSingleBarMode(f,h))return[h[0]];if(h.length){let f=i9.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,o,a],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});d&&(f=f.filter(d));const p=i9.calculateTotalBounds({opts:t,labels:e,bars:f,barKey:n,barAxisKey:i,groupProp:s,majorScale:c,majorInnerScale:u}),m=i9.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:p,childrenNodes:h,data:h.map((e=>e.data)),stackTotalBarNodes:m};return[g]}return[]}return[]},filterNodesForOob:(e,t,n)=>e.key===t&&0===e.children.length||e.key===n,filterNodes({nodes:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,groupAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d}){let f=i9.filterNodesOnKeys(e,[i,o]),h=f&&f.length?[f[0]]:[];const p=i9.filterNodesOnLabels({labels:h,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d});if(p&&p.length)return p;const{meta:m}=t.layoutService;if(m.isStackedByMeasure){f=i9.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>i9.filterNodesForOob(e,n,a),p=i9.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}if(m.isStackedByDimension){f=i9.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>i9.filterNodesForOob(e,n,a),p=i9.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}const g=i9.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function o9(e,t={},n){let r=[];const i=Hg({key:U8.COMPONENT.BASE_TOOLTIP,rtl:n});return vg(!0,i,{scale:U8.SCALE.MAIN.COLOR,settings:{filter:e=>i9.filterNodes({nodes:e,opts:t,barKey:U8.COMPONENT.BAR,stackTotalBarKey:U8.COMPONENT.STACK_TOTAL_BAR,barAxisKey:U8.COMPONENT.BAR_AXIS,groupAxisKey:U8.COMPONENT.GROUP_AXIS,barOobMaxKey:U8.COMPONENT.BAR_OOB_MAX,barOobMinKey:U8.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],i9.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:i,properties:o,customTooltipModel:a}=t;i&&(null===(e=i.isInModalSelection)||void 0===e||!e.call(i))&&a.useCustomTooltip&&a.embed&&a6.show({app:i,properties:o,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const a9={extractData:(e,t)=>[Yg.getTitleRow({title:e.node.data.label},t)],filterNodes(e,t){const n=e.filter((e=>e.data&&e.key===t));return n.length?[n[0]]:[]}};function s9(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Hg({key:U8.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return vg(!0,r,{scale:U8.SCALE.MAIN.COLOR,settings:{filter:e=>a9.filterNodes(e,U8.COMPONENT.LEGEND_COLOR_CAT),extract:e=>a9.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function l9(e,{fill:t}){return{[U8.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[U8.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const c9=1,u9=3;function d9(e){return e.getLayoutValue("gridLine.auto")}function f9(e){return!d9(e)&&e.getLayoutValue("gridLine.spacing")===c9}function h9(e){return!d9(e)&&e.getLayoutValue("gridLine.spacing")===u9}const p9=e=>({enabled:e.animations.enabled,trackBy:zq.lines.trackBy,compensateForLayoutChanges:zq.lines.compensateForLayoutChanges}),m9=(e,{themeService:t,layoutService:n,dockService:r,viewModel:i})=>{if(!d9(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:o}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:q7.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!f9(n)||((e,t)=>t%2==0),stroke:o.line.major.color},minorTicks:{show:h9(n),stroke:o.line.minor.color},animations:p9(i)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=U8.SCALE.MAIN.MINOR,a};function g9(e,t){const n=[m9(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const i=n.get("minorMinMax");if(i.min>0||i.max<0)return!1;const o=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:U8.SCALE.MAIN.MINOR,line:{stroke:o.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:U8.SCALE.MAIN.MINOR,lines:a,animations:p9(r)}})(t)),n}const y9="areaPan",v9=e=>({type:"Pan",key:"panorama",options:{event:y9,pointers:1,threshold:10,enable(t,n){return this.started===y9||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===U8.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=y9;const n=e.viewState.get("zoom");this[y9]={min:n.min,max:n.max,size:e.chart.component(U8.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:i,size:o}=this[y9],a=-t.deltaX/o;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(i+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function b9(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:i}=e,{rtl:o}=t,a=YK.event.onZoom({viewCache:n,viewState:r,chart:i},{threshold:100,rtl:o,targetKey:U8.COMPONENT.BAR}),s={last:0};return{type:"Pinch",key:"continuous-pinch-zoom",options:{event:"zoom",pointers:2,threshold:0,enable:(t,n)=>!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===U8.COMPONENT.BAR))},events:{zoomstart(e){s.last=e.scale,e.preventDefault()},zoommove(e){const t=e.scale-s.last;(function(e){return Math.abs(e)>.01})(t)&&a(e.center,t>0?1:-1),e.preventDefault(),s.last=e.scale}}}}function x9({chart:e},t,n){const r=e.component(U8.COMPONENT.BASE_TOOLTIP);var i;r&&r.show&&(r.emit("hide"),null!=n&&null!==(i=n.customTooltipModel)&&void 0!==i&&i.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const o=e.component(U8.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&o.emit("hide");const a=e.component(U8.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function w9(e,t){const{viewCache:n,viewState:r,chart:i,trendLineModel:o,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?YK.event.onZoom({viewCache:n,viewState:r,chart:i},{rtl:s,threshold:50,targetKey:U8.COMPONENT.BAR}):void 0,c=I8({majorInnerScale:U8.SCALE.MAIN.MAJOR_INNER,tooltip:U8.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:U8.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:i,viewState:r,trendLineModel:o,layoutService:a,rtl:s}),u=[U8.COMPONENT.BAR,U8.COMPONENT.BAR_AXIS,U8.COMPONENT.GROUP_AXIS,U8.COMPONENT.BAR_OOB_MAX,U8.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,f=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const i={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(i).filter((e=>e.key===U8.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(i,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===U8.COMPONENT.LEGEND_COLOR_CAT)),n&&(r=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,n))),r&&t.preventDefault(),x9(e,f,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(c(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(U8.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>u.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const i=d.getNodes(t,this.chart);f(t,r,{nodes:i,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const i=this.chart.component(U8.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&(n.some((e=>e.key===U8.COMPONENT.LEGEND_COLOR_CAT))?i.emit("show",t):i.emit("hide"))}},mouseup(t){2===t.button&&x9(this,f,e)},mouseleave(){x9(this,f,e)}}}}const S9=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...fG({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[v9(e),b9(e,t)]]});function k9(e,t){const n=[S9(e,t),w9(e,t),fG({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const M9=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:zq.bars.compensateForLayoutChanges});const C9=(e,t,{collectionKey:n})=>{if(!QK({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r,viewModel:i},{collectionKey:o}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:o},settings:{box:vg(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:vg(!0,{},e.settings.major,{scale:t.scales.major}),minor:e.settings.minor,orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:M9(i)}}(e,t,{collectionKey:n});const{mode:r,scales:i}=t.reducedDataModel;let o;return r.isGroupedByDimension&&!r.isReduced?o=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(o=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2),{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>t.discrete.query.getCanScroll(),data:{collection:n},settings:{box:{...e.settings.box,fill:r.isReduced||r.isStackedByDimension?t.colorService.getMain().getSettings().others:t.colorService.getMain().getColor(),strokeWidth:0},major:{scale:i.major,fn:o},minor:{scale:i.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:M9(t.viewModel)}},{measureText:E9}=hp.renderer("svg")();function q9(e,t,n){const r=function(e){const t=vg(!0,{},e);return delete t.data,t}(t.minor),i=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:i,getProp:o}){let a={invert:n,data:{extract:e.mode.isDimensionless?e.fields.minor.map(((e,t)=>({field:e,value:t}))):{source:"miniCube",field:"qDimensionInfo/0"}},type:e.mode.isDimensionless?"band":void 0,maxPxStep:r,align:i};return e.mode.isStackedByDimension?a.data.extract.field="qDimensionInfo/1":e.mode.isGroupedByDimension?e.mode.isReduced||(a.data={source:"miniCube",hierarchy:{value:e=>e.qElemNumber}}):e.mode.isGroupedByMeasure?(a=vg(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=vg(!0,{},t,{min:()=>o("continuousMin"),max:()=>o("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:i}}const D9=50,T9=100,N9=200;function O9(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return D9;case 1:return T9;case 2:return N9;default:return 125*t}}(t);return Math.max(1,Math.round(e/n))}function A9(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function _9(e,t,n){return 0===t||0===e||t===n.length-1}function L9(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function I9(e,t,n,r,i){e.domain([t,n]),e.nice(10);const[o,a]=e.domain();let s=e.ticks(10);const l=function(e){return e.length%2==0}(s),c=function(e){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}(s),u=c?_9:A9;s=s.filter(u),l&&!c&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=i?i.formatter(U8.FORMATTER.MINOR):void 0;return L9(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:o,roundedMax:a,ticks:s}}function R9(e,t,n,r,i,o,a,s){const l=o.formatter(U8.FORMATTER.MINOR),c=s.getStyles(),u="horizontal"===a.meta.major.orientation?"height":"width",d=e=>E9({text:e,fontSize:c.axis.label.name.fontSize,fontFamily:c.axis.label.name.fontFamily})[u];let[f,h]=e.domain(),p=e.ticks(r);function m(){const e=p.map(l);return!L9(e)&&function(e){const t=i/p.length;return Math.max(...e.map(d))<=t}(e)}for(let i=r-1;i>0&&!m();i--)e.domain([t,n]),e.nice(i),[f,h]=e.domain(),p=e.ticks(i);return{roundedMin:f,roundedMax:h,ticks:p}}const P9=(e,t)=>e.value-t.value,z9=e=>({value:e,isMinor:!1}),F9=e=>({value:e,isMinor:!0});function j9(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2;return e.filter((e=>(e=>Number.isNaN(t)||e>=t)(e)&&(e=>Number.isNaN(n)||e<=n)(e))).length<=r}function B9({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:i,viewModel:o,ds:a}){const{isButterfly:s}=r.meta,{explicitMin:l,explicitMax:c,hasExplicitMin:u,hasExplicitMax:d}=t.get("minorMinMax"),{min:f,max:h}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),p=s?Math.max(Math.abs(f),Math.abs(h)):h,m=s?-p:f,g=hC((()=>{const s=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(U8.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),f=O9(s,r),h=function(e,t,n){const r=Eb().domain([e,t]);return r.nice(n),r}(m,p,f);let g,y,v=[];"SPARK"===n.meta.chart.mode?({roundedMin:g,roundedMax:y}=function(e,t){return{roundedMin:e,roundedMax:t}}(m,p)):(({roundedMin:g,roundedMax:y,ticks:v}=R9(h,m,p,f,s,e,n,i)),j9(v,l,c)&&({roundedMin:g,roundedMax:y,ticks:v}=I9(h,m,p,u||d,e)));const b=function(e,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}(v,1);v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(u,l,v),v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(d,c,v);let x=function(e,t){return[...e.map(z9),...t.map(F9)].sort(P9)}(v,b);if(r.meta.isButterfly){const e=o.fields.minor[0],t=void 0===e?void 0:a.field(e).formatter();"function"==typeof t&&(x=x.map((e=>({...e,label:t(Math.abs(e.value))}))))}return{roundedMin:g,roundedMax:y,ticks:x}}),(()=>t.get("isPreRender")));return{values:()=>g().ticks,min:()=>u?l:g().roundedMin,max:()=>d?c:g().roundedMax}}function H9(e,{picasso:t,discrete:n,layoutService:r,dockService:i,viewModel:o,viewCache:a,reducedDataModel:s,colorService:l,themeService:c,viewState:u,chart:d,ds:f},{localeInfo:h,rtl:p}){const{meta:m}=r,{fields:g}=o,y=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,i.meta.chart.size["horizontal"===i.meta.major.orientation?"height":"width"]/4)},v=!("none"===r.getLayoutValue("measureAxis.show"))?(b=i.meta.minor.orientation,x=i.meta.minor.dock,"vertical"===b?"near"===x||"left"===x?0:1:"near"===x||"bottom"===x?1:0):.5;var b,x;const w={},S="vertical"===i.meta.minor.orientation&&p,k=l.getMain().getScales(),M=l.getMini().getScales();if(Object.assign(w,k,{reducedFill:M.reducedFill}),w[U8.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,viewModel:i,layoutService:o,themeService:a,ds:s},{rtl:l}){const c=B9({chart:e,dockService:n,viewCache:r,layoutService:o,themeService:a,viewModel:i,ds:s}),u={invert:"vertical"===n.meta.minor.orientation||l,ticks:{values:c.values},minorTicks:{count:1},min:c.min,max:c.max};return o.meta.isStacked||(u.data={source:"qHyperCube",fields:t.minor}),u}({chart:d,viewModel:o,dockService:i,viewCache:a,layoutService:r,themeService:c,ds:f},{rtl:p}),m.isGroupedByDimension)[U8.SCALE.MAIN.MAJOR_INNER,U8.SCALE.MAIN.MAJOR].forEach(((e,t)=>{w[e]={invert:S,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...o.selectionDimensionProp(t),group:m.isGroupedByDimension?{field:g.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:y,align:v}})),o.isDimensionLocked(0)||(w[U8.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(m.isGroupedByMeasure)w[U8.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:S,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:y,align:v};else if(m.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:i,picasso:o,viewState:a,localeInfo:s,themeService:l}=e,c=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),u=o.formatter("q-time"),d=l.getStyles(),f=e=>E9({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});i.set("qTimeAxisCache",[]);const h={get:(e,t=0)=>{const n=i.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{i.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(i.get("continuousMax")-i.get("continuousMin")),o=c().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...o].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:h},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:h}}}({picasso:t,localeInfo:h,viewState:u,viewModel:o,viewCache:a,themeService:c,layoutService:r},p);w[U8.SCALE.MAIN.MAJOR_INNER]=e,w[U8.SCALE.MAIN.MAJOR]=n}else m.isContinuous?w[U8.SCALE.MAIN.MAJOR]={type:"linear",invert:S,data:{extract:{key:"qHyperCube",field:g.majorNumeric}},ticks:{forceBounds:!0,count:u.get("zoom").min===u.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>u.get("zoom").min,max:()=>u.get("zoom").max}:w[U8.SCALE.MAIN.MAJOR]={invert:S,data:{extract:m.isDimensionless?g.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:m.isDimensionless?"band":void 0,maxPxStep:y,align:v};const{reducedMinor:C,reducedMajor:E}=q9(s,{major:w[U8.SCALE.MAIN.MAJOR],minor:w[U8.SCALE.MAIN.MINOR]},{majorScaleInvert:S,maxPxStep:y,align:v,getProp:a.get});return m.isDiscrete&&(w[U8.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,m.isGroupedByDimension&&(w[U8.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),w[s.scales.major]=E,w[s.scales.minor]=C,w}function V9(e,t,n){const{layoutService:r,colorService:i}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[k7(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?U8.COMPONENT.STACK_TOTAL_BAR:U8.COMPONENT.BAR,U8.COMPONENT.BAR_AXIS,U8.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",U8.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return U8.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[U8.COMPONENT.BAR_AXIS,U8.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===U8.COMPONENT.LEGEND_COLOR_CAT))?i.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function $9(e){const t=e.layoutService.meta.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1;return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=(({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}}))(n);return{interactions:[S7(n,t)],components:[r]}}({key:"lasso",componentTargetKey:U8.COMPONENT.BAR,components:[t?{key:U8.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:U8.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function W9(e){return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:i,dock:o}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"inside"},target:{components:i,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[C7(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:U8.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",U8.COMPONENT.BAR_AXIS,U8.COMPONENT.BAR],fillTargets:["group-axis",U8.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function U9(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:i}=t,o=void 0===n,a=r.getIsSingleSelect(n),s=V9(e,o,a);if(o||a)return{components:[...s.components],gestures:[...s.interactions]};const l=$9(e),c=function(e,t){return e.layoutService.meta.isStacked||e.layoutService.meta.isButterfly||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:E7({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",U8.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:U8.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,i),u=function(e){return e.layoutService.meta.isContinuous?E7({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",U8.COMPONENT.BAR]:["continuous-axis",U8.COMPONENT.BAR],fillTargets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis"]:["continuous-axis"],observeBrush:!0,multiple:!0,dock:e.dockService.meta.major.dock,scale:e.layoutService.meta.isTime?U8.SCALE.MAIN.MAJOR_INNER:U8.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const i=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(U8.FORMATTER.MINOR),o=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||o?"":"<"}${i(t)}`}},e):{components:[],interactions:[]}}(e),d=W9(e);return{components:[...s.components,...l.components,...c.components,...d.components,...u.components],gestures:[...l.interactions,...s.interactions,...c.interactions,...d.interactions,...u.interactions]}}const{isNumber:Y9}=eS;function K9({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:i}=e;if(!i.isStackedByDimension||i.isContinuous)return!1;const{fields:o}=t,a=e.getLayoutValue("components",null),s=a?a.filter((e=>"bar"===e.key))[0]:null;return{key:"shadow-bar",type:"box",data:{extract:[{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.filter((e=>Y9(e.qMaxPos))).map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Y9(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0}}},{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.filter((e=>Y9(e.qMinNeg))).map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Y9(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0}}}]},settings:{major:{scale:U8.SCALE.MAIN.MAJOR},minor:{scale:U8.SCALE.MAIN.MINOR},orientation:n.meta.minor.orientation,box:{width:null!=s&&null!==(r=s.style)&&void 0!==r&&r.width&&s.style.width>0?s.style.width:.7,fill:()=>({type:"pattern",fill:"rgba(165, 165, 165, 0.8)",width:4,height:4,shapes:[{type:"rect",x:0,y:3,width:1,height:1},{type:"rect",x:1,y:2,width:1,height:1},{type:"rect",x:2,y:1,width:1,height:1},{type:"rect",x:3,y:0,width:1,height:1}]})},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:t.animations.enabled,trackBy:zq.shadowBars.trackBy,compensateForLayoutChanges:zq.bars.compensateForLayoutChanges}}}const G9={min:"Min",max:"Max"};function X9(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?j7(e,t)||B7(e,t):n===H7?j7(e,t):B7(e,t)}(Number(r.toFixed(13)),e,t)}function J9(e,{barComponent:t,type:n,isStacked:r}){var i,o,a;const{viewCache:s,layoutService:l,dockService:c}=e,u=s.get("minorMinMax"),d=n===H7;if(function(e,t){return!e[`hasOther${G9[t]}`]}(u,n)){if(function(e,t){return!e[`hasExplicit${G9[t]}`]}(u,n))return!1;if(X9(u,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${G9[t]}`]&&r(e[`explicit${G9[t]}`])}(u,n,d))return!1;let f="end";r&&(f=d?"sumOfPositives":"sumOfNegatives");const h=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(U8.SCALE.MAIN.MINOR)[n]())),p=d?e=>e.datum[f].value>h():e=>e.datum[f].value<h(),m=U8.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===m))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?c.meta.minor.end:c.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:vg({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:p,width:I7({layoutService:e.layoutService,discrete:e.discrete}),strokeWidth:null!=y&&null!==(i=y.style)&&void 0!==i&&i.strokeWidth?L7.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:L7.BAR.STROKE.WIDTH.NONE,stroke:null!==(o=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==o?o:L7.BAR.STROKE.COLOR})}}}function Z9(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:i}=e.viewModel,o=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum";function a(t,n){const i=e.ds.field(t).raw(),a=e.ds.field(t).formatter(),s=Dg.shouldUseFormat(i),l=r.isButterfly&&n>0;return{field:t,reduceLabel:"none",value:e=>"NaN"===e[o]?0:(e=>l&&0!==e?-e:e)(e[o]),label:e=>s?(e=>"NaN"===e[o]?"-":a(e[o]))(e):e.qText}}function s(e){if(!r.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[o]<0}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;function c(e){return{field:e,reduceLabel:"none",reduce:"first",value:l}}const u={key:t,data:{extract:i.minor.map(((t,o)=>{const l=e.colorService.getMain().getDatumProps(o),u=e.colorService.getMini().getDatumProps(o),d=l[Object.keys(l)[0]],f=null==d?void 0:d.field,h=f?{field:f,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,p={field:r.isDimensionless?t:i.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:a(t,o),negative:s(t),null:c(t),segment:r.isStacked?a(t):void 0,group:r.isGroupedByDimension?{field:i.majorGroup}:void 0,stack:r.isStacked?{field:i.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:o,timeStart:r.isContinuous?{field:i.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:i.majorNumeric}:void 0,fillTooltip:h,...l,...u,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${o}`},customTooltipAttrExps:0!==r.dimensionCount?f6.getNode(e.layoutService.getLayout(),r):void 0}};return r.isDimensionless&&(p.value=o),void 0!==n&&(p.source=n),Dg.deleteUndefinedProperties(p.props),p})),filter:r.isButterfly?e=>!e.negative.value:void 0}};return r.isStacked&&(u.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),u}const{isNumber:Q9}=eS;function eee({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:i}=t;if(!r.isStacked)return!1;let o;return o=r.isStackedByMeasure?function(e,t){const n={field:0,props:{sumOfPositives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},null:{fields:t.minor.map((e=>({field:e}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"}}};if(e.isContinuous){const e={field:t.major,value:e=>e.qNum,reduceLabel:"none"};n.props.timeStart=e,n.props.timeEnd=e,n.value=e=>e.qNum}return n}(r,i):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>Q9(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0},sumOfNegatives:{value:e=>Q9(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0},null:{value:e=>{const{qSubNodes:t=[]}=e;return t.every((e=>"NaN"===((e.qSubNodes||[])[0]||{}).qValue))}}}};const n={field:t.majors[0],value:e=>e.qNum,reduceLabel:"none"};return{field:t.majorStack,trackBy:e=>e.qNum,reduce:e=>e[0],props:{sumOfPositives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t>0?e+t:e),0)},sumOfNegatives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t<0?e+t:e),0)},timeStart:n,timeEnd:n}}}(r,i),{key:n,data:{extract:o}}}const tee="main-collection",nee="stack-total-collection";function ree(e,{collectionKey:t}){const{layoutService:n,colorService:r,reducedDataModel:{fields:i,mode:o}}=e,{meta:a}=n,s=a.isStackedByDimension&&!a.isContinuous?"qValue":"qNum";function l(e,t){if(!a.isButterfly)return{field:e};const n=t>0;return{field:e,value:e=>"NaN"===e[s]?0:(e=>n&&0!==e?-e:e)(e[s])}}function c(e){if(!a.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[s]<0}}return{key:t,data:{extract:i.minor.map(((e,t)=>{const n=o.isReduced?{}:r.getMain().getDatumProps(t),a={start:0,end:l(e,t),negative:c(e),group:{field:i.majorGroup},measureIndex:t,...n},s={source:"miniCube",field:o.isDimensionless?e:i.major,props:a};return o.isDimensionless&&(s.value=t),s})),filter:a.isButterfly?e=>!e.negative.value:void 0}}}const iee="mini-collection",oee="mini-stack-collection",aee="mini-continuous-collection",see="miniCube",lee=(e,t)=>{const n=(e=>{const t=[Z9(e,{collectionKey:tee})];return e.layoutService.meta.isStacked&&t.push(eee(e,{collectionKey:nee})),t})(t),r=((e,t)=>{const n=[];return QK({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(Z9(t,{collectionKey:aee},see)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:i}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const o={end:{field:e,reduceLabel:"none"},...i.isStackedByMeasure&&!i.isReduced?n.getMain().getDatumProps(t):{}};return i.isContinuous&&(o.timeStart={field:r.major,value:e=>e.qNum},o.timeEnd=o.timeStart),{source:"miniCube",field:r.major,props:o}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:oee})):n.push(ree(t,{collectionKey:iee}))),n})(0,t);return n.concat(r)};function cee(e,t,n,r){const i=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}};i.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return i}function uee({layout:e,component:t},n,r){if(!t9(e,n))return!1;const{layoutService:i,chart:o,dockService:a,viewModel:s,themeService:l,styleService:c}=n,{meta:u}=i,d=!e9(e,n),f=l.getStyles(),h=c.label.getStyle(),p=h.useContrastColor;function m(e){const t=o.formatter(U8.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":m(e.data.sumOfPositives.value)},simplifiedPlacements:cee("outside",d,p,u.isContinuous),style:f.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":m(e.data.sumOfNegatives.value)},simplifiedPlacements:cee("opposite",d,p,u.isContinuous),style:f.label.value},v=[J7(vg(n,g)),J7(vg(n,y))];return{key:"stack-total-labels",type:"labels",renderer:Kq(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Q7(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(h.fontSize,10),fontFamily:h.fontFamily,linkData:zq.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:zq.labels.trackBy,compensateForLayoutChanges:zq.labels.compensateForLayoutChanges}}}function dee(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function fee({layout:e,type:t},n){const{layoutService:r,viewCache:i,themeService:o,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!e9(e,n)||l&&!t9(e,n))return!1;const c=i.get("minorMinMax");if(!c.hasExplicitMinMax||t===H7&&0===c.max||t===V7&&0===c.min)return!1;if(!W7(t===H7?c.implicitMax:c.implicitMin,c,t))return!1;const u=o.getStyles(),d=a.label.getStyle();let f=e=>e.data.end.label;s.isStacked&&(f=t===H7?function(e){if(W7(e.data.sumOfNegatives.value,c,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(U8.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(W7(e.data.sumOfPositives.value,c,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(U8.FORMATTER.MINOR);return r?r(t):t}return""});const h={label:f,simplifiedPlacements:dee("outside",0,s.isContinuous),styles:u},p={label:f,simplifiedPlacements:dee("opposite",0,s.isContinuous),styles:u},m=[J7(vg(n,h)),J7(vg(n,p))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${U8.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:m,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:zq.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:Kq(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:zq.labels.trackBy,compensateForLayoutChanges:zq.labels.compensateForLayoutChanges}}}function hee(e){return"all"===e||"title"===e}function pee(e,t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!hee(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:i,properties:o}=t,a={hyperCube:e.qHyperCube,hyperCubeDef:o&&o.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=i&&null!==(e=i.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},s=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(a.padding="0",a.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:q7[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:a,style:s}}function mee(e,t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!hee(e.measureAxis.show))return!1;const{layoutService:i,actions:o}=t,a=t.properties,s=i.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",l={hyperCube:i.getHyperCube(),hyperCubeDef:cC(a,s),isDimension:!1,disabled:()=>!o.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},c=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(l.padding="0",l.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:l,style:c}}function gee(e){return"all"===e||"title"===e}function yee(e,t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!gee(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const i=t.alternativeService.getAlternatives(),{actions:o}=t,a=t.styleService.axis.title.getStyle();return{type:"axis-title",key:"dimension-title",renderer:"react-qcm",layout:{minimumLayoutMode:q7[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},data:{infos:t.layoutService.getHyperCubeValue("qDimensionInfo"),alternatives:i.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>{var e;return!(null!=o&&null!==(e=o.interact)&&void 0!==e&&e.enabled())},isRTL:n,isSnapshot:t.layoutService.meta.isSnapshot,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize}}}}function vee(e,t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!gee(e.measureAxis.show))return!1;const i=t.alternativeService.getAlternatives(),{actions:o}=t,a=t.styleService.axis.title.getStyle();return{type:"axis-title",key:"measure-title",renderer:"react-qcm",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},data:{infos:t.layoutService.getHyperCubeValue("qMeasureInfo"),alternatives:i.measures},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>{var e;return!(null!=o&&null!==(e=o.interact)&&void 0!==e&&e.enabled())},isRTL:n,isSnapshot:t.layoutService.meta.isSnapshot,skipAttributeExpressions:!1,type:"measure"},style:{title:{color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize}}}}function bee({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:i,dockService:o,themeService:a,viewModel:s,chart:l}){const{theme:c,localeInfo:u}=e,d={resolveUIColor:i.getMain().getPaletteColor},f=a.getStyles(),h=s.animations.enabled;return[Vq({refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:U8.SCALE.MAIN.MINOR,axis:"horizontal"===o.meta.major.orientation?"y":"x",key:U8.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:q7.refLines.minimumLayoutMode}),Vq({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:U8.SCALE.MAIN.MAJOR,axis:"horizontal"===o.meta.major.orientation?"x":"y",rtl:t,key:U8.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:U8.COMPONENT.BAR,minimumLayoutMode:q7.refLines.minimumLayoutMode}),...Wq({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.minor.opposite,scale:U8.SCALE.MAIN.MINOR,style:f,formatter:U8.FORMATTER.MINOR,theme:c,localeInfo:u,rtl:t,key:U8.COMPONENT.MEASURE_REF_LINE_LABEL}),...Wq({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.major.opposite,scale:U8.SCALE.MAIN.MAJOR,style:f,theme:c,localeInfo:u,rtl:t,key:U8.COMPONENT.DIMENSION_REF_LINE_LABEL})]}function xee({dockService:e,layoutService:t,discrete:n,continuousDataModel:r,viewModel:i,flags:o}){if(null==o||!o.isEnabled("VIZ_199_ADD_SPACE_BETWEEN"))return!1;if(!!QK({layoutService:t}).none)return!1;const{rtl:a}=e.config,s="horizontal"===e.meta.chart.orientation,l=!s,{dock:c}=e.meta.major,{show:u}=t.getLayoutValue("dimensionAxis",{}),d="none"!==u;if(l&&d&&"bottom"===c)return!1;if(s&&d){if(!a&&"right"===c)return!1;if(a&&"left"===c)return!1}const f=a?"left":"right";return{type:"space",key:U8.COMPONENT.SPACE,layout:{dock:l?"bottom":f,minimumLayoutMode:"XSMALL"},show:()=>t.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{size:Math.max(6,Math.min(16,Math.floor(.025*e.meta.minor.size)))},animations:{enabled:i.animations.enabled,trackBy:()=>Math.random()}}}const wee=(e,t,n)=>{var r;const{layoutService:i,dockService:o,colorService:a,chart:s,actions:l,discrete:c,continuousDataModel:u,reducedDataModel:d,viewModel:f,viewState:h,viewCache:p,themeService:m,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:w}=t,{localeInfo:S}=n,k=function(e,t){const{disclaimerService:n,themeService:r,translator:i}=e,o=n.getDisclaimer();if(!o)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:o.alignment},settings:{isRTL:t,label:i.get(`Object.Disclaimer.${o.key}`)},style:{fontFamily:a}}}(t,v);if(w.getHasSuppressingDisclaimer())return{components:[k]};const M=H9(e,t,{localeInfo:S,rtl:v}),C=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),E=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:h,chart:s,styleReference:"object.barChart",styleOverrides:{title:t.styleService.legend.title.getStyle(),label:t.styleService.legend.label.getStyle()},rtl:v,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:C}),q=E.components[0];if(q){const{dock:e}=q.layout;if(M.fillRange&&(["right","left"].includes(e)||v)&&(M.fillRange.invert=!0),"legend-seq"===q.type&&void 0!==f.selectionDimensionIdx&&M.fillRange&&M.fillRange.min<M.fillRange.max){const e=E7({eventName:"legendRange",key:"legendRangeBrush",targets:[q.key],fillTargets:[q.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:q.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);E.components.push(...e.components),E.interactions.unshift(...e.interactions)}}else M.fillRange&&v&&(M.fillRange.invert=!0);const D=((e,{componentKey:t,collectionKey:n})=>{var r,i,o;const{meta:a}=e.layoutService,s=e.colorService.getMain().getPaletteColor;let l,c;a.isGroupedByDimension?l=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(l=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;a.isContinuous?(c={start:"timeStart",end:"timeEnd"},u=P7(e,t)):a.isStacked&&(c="stack");const d=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,f=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},h=e.layoutService.getLayoutValue("components",null),p=h?h.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:a.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:a.isContinuous||d?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:U8.SCALE.MAIN.MAJOR,fn:l,ref:c},minor:{scale:U8.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:I7({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>f(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:f(e)?.01:.3},strokeWidth:null!=p&&null!==(r=p.style)&&void 0!==r&&r.strokeWidth?L7.BAR.STROKE.WIDTH[p.style.strokeWidth.toUpperCase()]:L7.BAR.STROKE.WIDTH.NONE,stroke:null!=p&&null!==(i=p.style)&&void 0!==i&&null!==(i=i.strokeColor)&&void 0!==i&&i.color?s(null==p||null===(o=p.style)||void 0===o?void 0:o.strokeColor):L7.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:zq.bars.trackBy,compensateForLayoutChanges:zq.bars.compensateForLayoutChanges}}})(t,{componentKey:U8.COMPONENT.BAR,collectionKey:U8.COLLECTION.MAIN}),T=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let i=2;r.isContinuous&&(i=P7(e,t));const o={key:t,type:"box",data:{collection:n},settings:{major:{scale:U8.SCALE.MAIN.MAJOR},minor:{scale:U8.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:I7({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:i,opacity:0,fill:"none"},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:{consume:[{context:"selection",data:[""],style:{active:{strokeWidth:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:.3}}}}]}};return r.isContinuous&&(o.settings.major.ref={start:"timeStart",end:"timeEnd"}),o})(t,{componentKey:U8.COMPONENT.STACK_TOTAL_BAR,collectionKey:U8.COLLECTION.STACK_TOTAL}),N=U9(t,n,f.selectionDimensionIdx),{isStacked:O}=i.meta;let A;A=d.mode.isContinuous?U8.COLLECTION.MINI_CONTINUOUS:O?U8.COLLECTION.MINI_STACK:U8.COLLECTION.MINI;const _=O?T:D,L=g9(0,t),I=[...L,J9(t,{barComponent:_,type:"max",isStacked:O}),J9(t,{barComponent:_,type:"min",isStacked:O}),Y7(t,{barComponent:_,type:"max",isStacked:O}),Y7(t,{barComponent:_,type:"min",isStacked:O}),G7(t,{chart:s,type:"max",collectionKey:O?U8.COLLECTION.STACK_TOTAL:U8.COLLECTION.MAIN}),G7(t,{chart:s,type:"min",collectionKey:O?U8.COLLECTION.STACK_TOTAL:U8.COLLECTION.MAIN}),..._7(e,t,v,!!L[0]),D,T,K9({layoutService:i,viewModel:f,dockService:o}),pee(e,t,v),mee(e,t,v),yee(e,t,v),vee(e,t,v),...bee({environment:n,rtl:v,refLineModel:g,layoutService:i,colorService:a,dockService:o,themeService:m,viewModel:f,chart:s}),jw({viewState:h,viewCache:p,layoutService:i,dockService:o,rtl:v}),xee({dockService:o,layoutService:i,discrete:c,continuousDataModel:u,viewModel:f,flags:t.flags}),C9(D,t,{collectionKey:A}),eG({layoutService:i,dockService:o,discrete:c,continuousDataModel:u,viewState:h,viewCache:p,themeService:m,rtl:v,deviceType:n.deviceType}),...T8({majorScale:U8.SCALE.MAIN.MAJOR,minorScale:U8.SCALE.MAIN.MINOR,tooltipOverlay:U8.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:i,trendLineModel:x,dockService:o,animationsEnabled:f.animations.enabled}),...E.components,r9({layout:e,component:U8.COMPONENT.BAR,minorScale:M.minor},t,v),uee({layout:e,component:U8.COMPONENT.STACK_TOTAL_BAR},t,v),fee({layout:e,type:"max"},t),fee({layout:e,type:"min"},t),...N.components,o9(0,{...t,coloring:a.getMain().getSettings()},v),s9(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&k,_8({tooltip:U8.COMPONENT.TREND_LINES_TOOLTIP,formatter:U8.FORMATTER.MINOR},t,{rtl:v})].filter(Boolean);!function(e){if(e&&0!==e.length)for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(I);const R=[...E.interactions,...N.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:k9(t,{rtl:v,hammer:{gestures:R}}),scales:M,palettes:a.getMain().getPalettes(),components:y.extendComponents(I),strategy:Sg(0,{logicalSize:b,minCenterRatio:0}),formatters:l9(t,M),collections:lee(0,t)}};function See({picasso:t,chart:n,services:r,environment:i,viewState:o,viewCache:a,bootstrapped:s}){const{width:l,height:c}=e.useRect(),u=e.useModel(),d=e.useSelections(),f=e.useOptions(),[h,p]=e.useState(),[m,g]=e.useState(),[y,v]=e.useState(),[b,x]=e.useState(),w=e.useApp();function S(){if(!n.layoutComponents)return Promise.resolve();const{discrete:e,layoutService:s,viewModel:l}=r;a.set("isPreRender",!0);const c=function(e={}){const{alternativeService:s,selectionService:l,refLineModel:c,discrete:p,reducedDataModel:m,continuousDataModel:g,trendLineModel:y,pluginService:v,colorService:b,viewModel:x,dockService:S,themeService:k,customTooltipModel:M,layoutService:C,logicalSize:E,styleService:q,disclaimerService:D}=r,T=l.custom.getActions(),N=t.data("q")(h.prepPicassoDataSet()),O={picasso:t,ds:N,rtl:"rtl"===(null==f?void 0:f.direction),model:u,app:w,chart:n,actions:T,localeInfo:i.localeInfo,logicalSize:E,flags:i.flags,translator:i.translator,selections:d,isLocked:l.getIsSelectionLocked,viewCache:a,viewState:o,alternativeService:s,layoutService:C,dockService:S,viewModel:x,colorService:b,selectionService:l,themeService:k,trendLineModel:y,discrete:p,continuousDataModel:g,reducedDataModel:m.model(),customTooltipModel:M,debouncer:pC,refLineModel:c,pluginService:v,styleService:q,disclaimerService:D,...e};return wee(C.getLayout(),O,i)}(m);h.extractDataPages(),n.layoutComponents({settings:c,data:y}),a.set("isPreRender",!1),h.insertDataPages(),l.animations.hasSlicedHats=c.components.filter((e=>"box-sliced-hat"===e.type)).length>0;const p=[];return 1!==c.components.length&&s.meta.isDiscrete&&p.push(e.command.initialize()),Promise.all(p)}const[[k,M]=[]]=e.usePromise((()=>{var e;if(!(t&&n&&r&&i&&o&&a&&s))return Promise.resolve();const{alternativeService:l,layoutService:c,selectionService:u,refLineModel:d,discrete:f,continuous:h,reducedDataModel:p,continuousDataModel:m,trendLineModel:g,legendLayoutService:y,colorService:v,pluginService:b,viewModel:w,customTooltipModel:S,disclaimerService:k}=r;if(null==u||null===(e=u.custom)||void 0===e||!e.getActions())return Promise.resolve();const{properties:M}=s,C=null==M?void 0:M.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));C&&(S.useCustomTooltip=!1);const E=()=>{x(Date.now()),w.animations.isPartialUpdating=!0};o.onChanged("scrollOffset",(()=>{y&&y.setDataPages([f.query.getCurrentDataPage()]),d&&d.update(),E()})),o.onChanged("legendScrollOffset",E),o.intercept("zoom",h.event.onZoomIntercept({viewCache:a})),o.onChanged("zoom",h.event.onZoomChange({layoutService:c,continuousDataModel:m},E)),u.setLayout(c.getLayout());const q=[];c.meta.isContinuous&&(m.update(c.getLayout()),q.push(m.initialFetch())),g.command.update(),q.push(p.fetch().then((({reducedCube:e})=>{p.update(e)}))),k.initialize(),q.push(Promise.resolve({properties:s.properties}));return Promise.all(q).then((e=>Promise.all([b.initialize(),v.initialize(),l.initialize({properties:M}),x7({reducedDataModel:p,layoutService:c,continuousDataModel:m,trendLineModel:g})]).then((t=>[e,t.pop()]))))}),[s]);e.useEffect((()=>{var e;if(null==r||null===(e=r.colorService)||void 0===e||!e.getMain()||!M)return;const{layoutService:t,selectionService:n,reducedDataModel:o,continuousDataModel:s,trendLineModel:l,legendLayoutService:c,colorService:u,viewModel:d}=r;a.set("minorMinMax",M);const f=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():o.model().cube,{field:m}=u.getMain().getSettings(),y=!t.meta.isContinuous&&(o.model().mode.isReduced||t.meta.isStacked)&&c,v=y?c.getHyperCube():void 0;n.setBrushAliases({colorField:m,useLegendCube:y,legendAlias:`legendCube/${m}`});const b=function({mainCube:e,miniCube:t,legendCube:n,localeInfo:r,layoutService:i,viewModel:o,trendLineModel:a}){const s=i.refs.dataPages.split(".").pop();let l=[],c=[];const u=i.meta.isContinuous?[{key:o.fields.majorNumeric,from:i.meta.isStackedByDimension?o.fields.majorStack:o.fields.major,override:{value:e=>e.qNum}}]:void 0;return{prepPicassoDataSet:()=>({key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:u}}),prepPicassoData(i){const o=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:u}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:u}},...i];return n&&o.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:u}}),a.query.hasTrendLines()&&o.push({key:"trend",data:a.query.getData()}),o},extractDataPages(){l=e[s],c=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=c}}}({mainCube:f,miniCube:h,legendCube:v,localeInfo:i.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),x=k[k.length-1];g({localeInfo:i.localeInfo,...x}),p(b)}),[M]),e.useEffect((()=>{if(!r||!m||!h)return;const e=r.colorService.getMain();if(!e)return;h.prepPicassoDataSet();const t=h.prepPicassoData(e.getData());v(t)}),[m]),e.useEffect((()=>{var e;null!=r&&null!==(e=r.colorService)&&void 0!==e&&e.getMain()&&n.update&&h&&y&&S().then((()=>{const{layoutService:e,discrete:t,legendLayoutService:i}=r;if(i){1===e.getLayoutValue("scrollStartPos")&&i.setDataPages([t.query.getCurrentDataPage()])}n.update(),zq.cacheProperties({viewCache:a,layout:e.getLayout()})}))}),[y]),e.useEffect((()=>{if(!(l&&c&&h&&null!=n&&n.update&&null!=r&&r.colorService.getMain()))return;const{viewModel:e}=r;e.animations.isSizeChanging=!0;const{dockService:t,themeService:o}=r;t.update({width:l,height:c}),o.setTheme(i.theme),S().then((()=>{n.update&&n.update()}))}),[l,c]),e.useEffect((()=>{if(null==n||!n.update)return;const{viewModel:e}=r;n.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]}),e.animations.isPartialUpdating=!1}),[b])}const kee=e=>"[object Object]"===Object.prototype.toString.call(e),Mee=e=>Array.isArray(e);function Cee(e,t){if(e===t)return!0;if(Mee(e)){if(!Mee(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Cee(e[n],t[n]))return!1;return!0}if(kee(e)){if(!kee(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!Cee(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function Eee({enable:t=!0}={}){const n=e.useModel(),r=()=>Date.now().toString()+Math.random(),[i,o]=e.useState(r()),a={properties:void 0};return e.useEffect((()=>{if(!n||!n.getEffectiveProperties||!t)return()=>{};const e=()=>{n.getEffectiveProperties().then((e=>{const t=vg(!0,{},e);if(!a.properties)return void(a.properties=t);const n=function(e,t){var n,r,i,o;const a={properties:!1,exclude:!1};if(e===t)return a;const s=vg(!0,{},e),l=vg(!0,{},t);return a.exclude=!Cee(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,a.properties=!Cee(s,l),a}(a.properties,t);a.properties=t,n.exclude&&!n.properties&&o(r())}))};return n.on("changed",e),e(),()=>{n.removeListener("changed",e)}}),[t]),i}function qee({env:t,services:n}){var r;const i=e.useApp(),o=e.useModel(),a=e.useRenderState(),s=Eee({enable:!1===(null==n||null===(r=n.layoutService)||void 0===r||null===(r=r.meta)||void 0===r?void 0:r.isSnapshot)}),[l,c]=e.usePromise((async()=>{if(!t||!n)return Promise.resolve();const{layoutService:e}=n,{isSnapshot:r,isStacked:s,isContinuous:l}=e.meta,c=[];return r||c.push(o.getEffectiveProperties()),Promise.all(c).then((async t=>{const n=t[0]||void 0;if(null!=n&&n.qHyperCubeDef){const t=e.getLayout(),r=vg(!0,{},n),c=(({properties:e,layout:t,isStacked:n,isContinuous:r,model:i,layoutService:o})=>{var a,s;const l=t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),c=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=vg(!0,{},e);return((e,t,n)=>{const{color:{mode:r}}=n;e.length>1&&n.color?n.color.persistent=!0:"byDimension"===r&&t.length>1?n.color.mode="byMultiple":"byExpression"===r&&0===t.length?n.color.mode="primary":0===e.length&&t.length>0&&(n.color.byMeasureDef=void 0,n.color.byDimDef=void 0,1===t.length&&"byExpression"!==r&&(n.color.mode="primary"))})(l,c,e),l.length>1&&n&&!r&&"S"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="K"),l.length<2&&"K"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="S"),null===(a=i.colorSupport)||void 0===a||null===(s=a.colorByUpdater)||void 0===s||s.call(a,e,"qHyperCubeDef.",t),function({properties:e,layoutService:t}){const{filteredFields:n}=t.meta;if(!(n.measures.length>0))return;const{mode:r}=e.color||{};if("byExpression"===r){var i;if("colorByExpression"===(null===(i=t.getLayout().qHyperCube.qMeasureInfo)||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.qAttrExprInfo)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.id))return;const{current:r,target:o}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:i}=n.reduce(((e,n,r)=>{var i;return"colorByExpression"===(null===(i=n.qAttributeExpressions[0])||void 0===i?void 0:i.id)&&(e.current=r),void 0!==e.target||t.includes(r)||(e.target=r),e}),{current:void 0,target:void 0});return{current:r,target:i}}({properties:e,filtered:n.measures});if(void 0===r)return;const a=e.qHyperCubeDef.qMeasures[r].qAttributeExpressions[0];e.qHyperCubeDef.qMeasures[r].qAttributeExpressions.splice(0,1),e.qHyperCubeDef.qMeasures[o].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:o}),!Uw.compare(u,e,!0)&&JSON.stringify(u)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)})({properties:n,layout:t,isStacked:s,isContinuous:l,model:o,layoutService:e});if(c)return a.pending(),(e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))})(t)?o.setProperties(n).then((()=>{i.clearUndoBuffer()})):void await((e,t,n)=>{if(!e)return Promise.resolve();let r=Uw.generate(t,n);return vg(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0)):Promise.resolve()})(o,r,n);a.restore()}return{properties:n}}))}),[t,n,s]);if(c&&!c.isHandled)throw c;return l}var Dee={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Oe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const S={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}var C=t().bind(null,!0),E={},q=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===M(e)}function T(e){return void 0===e}function N(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?o:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){A(e[r],t[r])||(n=!1)})),n);if(q(e)&&q(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}E.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?C({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);A(o,a)||N(t,i)||(T(a)?r.push({op:"add",path:s,value:o}):D(o)&&D(a)?r=r.concat(E.generate(a,o,s)):q(o)&&q(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,i))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(E.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){T(t[i])&&!N(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},E.apply=function(e,t){t.forEach((function(t){var n,r,i=O(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(q(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(q(a)&&q(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return k(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!N(n,e)&&delete n[e]})),C(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=O(e,t.from);q(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(q(i)?i.splice(+o,1):delete i[o])}))},E.clone=function(e){return C({},e)},E.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},E.updateObject=function(e,t){Object.keys(e).length?E.apply(e,E.generate(e,t)):C(e,t)};const _=E,L=function(e,n,r){if(!e)return Promise.resolve();var i=_.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var I="accumulation";function R(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===I)return n[r]}function P(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===I)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=S.getNumStepComp(n,l),f=S.getAboveComp(n,l,u,d),h=S.getRangeComp("RangeSum",f);if(S.needDimension({modifier:n,properties:r,layout:i})){var p=S.getDimComp(c,1),m=S.getDimComp(c,0),g=S.getAggrComp(h,p,m);h=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(P(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(P(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(P(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(P(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=R(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=R(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(P(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(I))return!1;var o=R(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function B(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const $={translationKey:"properties.modifier.movingAverage",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=S.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=S.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=S.getNumStepComp(r,c),p=S.getAboveComp(r,c,f,h);if(r.nullSuppression)t=S.getRangeComp("RangeAvg",p);else{var m=S.getRangeComp("RangeSum",p),g=function(e,t){var n=S.getRowNoComp(e,t);if(!S.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(S.needDimension({modifier:r,properties:i,layout:a})){var v=S.getDimComp(u,1),b=S.getDimComp(u,0),x=S.getAggrComp(y,v,b);y=r.showExcludedValues?S.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=B(t,e);return o&&!o.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?S.generateTSDExpression(n,t,r):t},extractInputExpression:S.extractInputExpression,initModifier:function(e,t){S.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=S.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(W))return!1;var o=U(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=S.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(S.needDimension({modifier:n,properties:r,layout:i})){var h=S.getDimComp(c,1),p=S.getDimComp(c,0),m=S.getAggrComp(f,h,p);f=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(S.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(S.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=S.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",Se="qDef.qLabelExpression",ke="qDef.base.qLabel",Me="qDef.base.qLabelExpression",Ce="qDef.qAggrFunc",Ee="qDef.base.qAggrFunc",qe={initBase:function(e,t){(t||qe.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,ke,o(e,we)),n(e,Me,o(e,Se)))},restoreBase:function(e){qe.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,ke)),n(e,Se,o(e,Me)),o(e,Ce)&&o(e,Ee)&&n(e,Ce,o(e,Ee)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const De=qe;function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}var Ne={accumulation:F,movingAverage:$,difference:ee,normalization:ue,timeSeriesDecomposition:G};const Oe={modifiers:Ne,apply:_e,applyModifiers:Le,cleanUpMeasure:Ie,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Re,getActiveModifier:Pe,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ne[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ne[e]&&Ne[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Ze({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Ae={};function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var c=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Te(r))return Le({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Re({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Qe(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(n++,"object"!==Te(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ne[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&$e(t)&&S.simplifyExpression(t.qDef.base.qDef)!==S.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Le({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Te(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Ie(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Le(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Qe(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Re({measures:n,properties:r}))return n.forEach((function(e){return Ie(e)})),Promise.resolve();var l=a?void 0:Qe(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(s++,"object"!==Te(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ne[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ne[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ne[r.type].updateModifier&&Ne[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Ne[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Ve(n)):Ie(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Ie(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!Ne[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Re(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Pe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ne[r.type]&&!r.disabled)return r}}function ze(e){var t=Pe(e);return!t||Ne[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Be(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Pe(e);n&&(void 0!==n.outputExpression&&Be(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!Ne[t.type]&&Be(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function $e(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Te(e)||e.disabled||!Ne[e.type])&&(void 0===i[e.type]&&(i[e.type]=Ne[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):L(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&Ne[e.type]&&Ne[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=We(t);o&&n.push(o),i=i||Ze({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var w=n(229),S=n.n(w);function k(e,t){var n=S()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function M(e,t){return S()(!0,{},t,e)}function C(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var E=Math.pow(2,53)-1;function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const T=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},N=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},O=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},_=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=k(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=k(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},I=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=M(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=M(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},R=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=C(a.max,i.dimensions.length,E),l=C(a.min,i.dimensions.length,0);return{maxDimensions:C(o.max,s,E),minDimensions:C(o.min,l,0),maxMeasures:s,minMeasures:l}},P=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=S()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=S()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return q(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function $(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=R({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,S=b.maxMeasures,k=b.minMeasures,M=l.defaultDimension,C=void 0===M?A():M,E=l.defaultMeasure,q=void 0===E?_():E;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:k})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:k,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:C}),I({exportFormat:t,maxMeasures:S,minMeasures:k,newHyperCubeDef:v,defaultMeasure:q}),B({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),P({exportFormat:t,newHyperCubeDef:v}),N("qMaxStackedCells",y,v),N("qNoOfLeftDims",y,v),O("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),O("qMode",y,v,"S"),O("qReductionMode",y,v,"N"),O("qSortbyYValue",y,v),O("qIndentMode",y,v),O("qShowTotalsAbove",y,v),T(g,t,r),m.qProperty=g;var D=o.getValue(u||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:D}),f&&$(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&$(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}o.auto=!1,o.mode=a}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?$(n,"unsupportedAutoMinMax")||S()(n.measureAxis,t.measureAxis):$(n,"supportedAutoMinMax")||S()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&S()(s,n.properties.measureAxes[t[0].axis])):S()(s,n.properties.measureAxes[0])}},we=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Se={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function ke(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Me(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=ke(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=ke(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Ee="qHyperCubeDef.qMeasures",qe="conditionalColoring",De="measures",Te="qDef.conditionalColoring";const Ne={quarantine:function(e){Me({properties:e,arrayPath:Ee,quarantineName:qe,arrayName:De,itemPath:Te})},unquarantine:function(e){Ce({properties:e,arrayPath:Ee,itemPath:Te,arrayName:De,quarantineName:qe})}};var Oe="qHyperCubeDef.qMeasures",Ae="measures",_e="qHyperCubeDef.qDimensions",Le="dimensions",Ie="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Re="alternativeMeasures",Pe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const Be={quarantine:function(e){Me({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),Me({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},unquarantine:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),Ce({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},quarantineAlternative:function(e){Me({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),Me({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ce({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:W,colorChart:ye,axisChart:Se,quarantineProperty:x,unquarantineProperty:$,quarantineArrayProp:Me,unquarantineArrayProp:Ce,conditionalColoring:Ne,conditionalShow:Be}})(),r.default})()}(Dee);var Tee=og(Dee.exports);function Nee(e,t){if("custom"===e.dimensionAxis.axisDisplayMode){const n=t.layout.qHyperCube.qMeasureInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})).length,i=e.dimensionAxis.maxVisibleItems;i<1?e.dimensionAxis.maxVisibleItems=10:i>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(i,Math.floor(1e4/(r+n))))}}const Oee=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],Aee=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function _ee(e,t,n){const r=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=ck({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:e,translator:n,config:{id:"barChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]},flags:t});return{component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==t?void 0:t.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:Object.keys(Oee).map((e=>Oee[e])),defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",show:(e,t)=>!Ag.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue(e,t,n){const{properties:r}=n,{barGrouping:i,qHyperCubeDef:o}=r,a=o.qMeasures.length,s=o.qDimensions.length,l="grouped"===i.grouping&&s>0&&a+s>2;return Ag.continuous(r)?1:l?.9:.7},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:Aee("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:Aee("axis.label.name",r,e)}}},labelSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.labelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...Aee("label.value",r,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{legendTitleSection:{component:"items",ref:"components",key:"legend",items:Aee("legend.title",r,e)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{legendLabelSection:{component:"items",ref:"components",key:"legend",items:Aee("legend.label",r,e)}}}:void 0}}}function Lee(e){return{classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"LayerStyleEditor.style.strokeWidth",component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:Object.keys(Oee).map((e=>Oee[e])),schemaIgnore:!0,defaultValue:Oee[0].value},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891",index:-1},width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"items",show:(e,t)=>!Ag.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t,n)=>((e,t)=>{var n,r,i;const o=null===(n=t.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})).length,a=null===(r=t.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6})).length,s="grouped"===(null===(i=e.barGrouping)||void 0===i?void 0:i.grouping)&&a>0&&o+a>2;return Ag.continuous(t)?1:s?.9:.7})(n.properties,n.layout)}}}}},optionsSection:{translation:"LayerStyleEditor.label.Options",component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollbar:{ref:"scrollbar",translation:"properties.scrollbar",component:"dropdown",type:"string",options:Object.keys(GK.OPTIONS).map((e=>GK.OPTIONS[e])),schemaIgnore:!0,defaultValue:GK.DEFAULT.value},scrollAlignment:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",schemaIgnore:!0,defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},gridLines:{type:"items",items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}}}}}}}}}function Iee(e,t,n,r=!1){return r?Lee(t):_ee(e,t,n)}const Ree=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6},Pee=(e,t)=>null==e?void 0:e.qHyperCube[t].filter((e=>Ree(e))),zee=e=>({get(t,n,r){const i="stacked";return"butterfly"===t(n.type)?Y8({layout:r.layout,flags:e})?t(n.type):i:Ag.continuous(r.layout)?i:t(n.type)},set(e,t,n){const r=Rg(n.type,n);t(n.type,e,r)}}),Fee=e=>{if(!e)return!1;const t=vg(!0,{},e);return t.qHyperCube.qMeasureInfo=Pee(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=Pee(e,"qDimensionInfo"),t&&!Ag.continuous(t)&&Ag.stacked(t)},jee=({translator:e,flags:t,anything:n})=>{var r,i,o;const a=null==n||null===(r=n.sense)||void 0===r||null===(i=r.isUnsupportedFeature)||void 0===i?void 0:i.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>Pee(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!Fee(t.layout)&&Pee(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>Fee(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,i){i.dataPoint.showSegmentLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>Fee(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,i){i.dataPoint.showTotalLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>Pee(n.layout,"qDimensionInfo").length&&Pee(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>Pee(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,i){i.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(o=n.sense)||void 0===o?void 0:o.theme,c={uses:"settings",items:{simpleStyling:Iee(l,t,e,!0),simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:Iee(l,t,e,!1),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:(e,n)=>{const r=[{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"}];return Y8({layout:n.layout,flags:t})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){const n=Pee(t.layout,"qMeasureInfo").length,r=Pee(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},globalChange(e,n,r){"butterfly"!==e.barGrouping.grouping||Y8({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),"butterfly"===e.barGrouping.grouping&&e.measureAxis&&"max"!==e.measureAxis.minMax&&!e.measureAxis.autoMinMax&&(e.measureAxis.minMax="max")},change(e,n,r){"butterfly"!==e.barGrouping.grouping||Y8({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),Pee(n.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>Ag.continuous(n.layout),convertFunctions:zee(t)},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)=>Ag.continuous(n.layout),convertFunctions:(u="vertical",{get:(e,t,n)=>Ag.continuous(n.layout)?u:e(t.type),set(e,t,n){const r=Rg(n.type,n);t(n.type,e,r)}})},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(GK.OPTIONS).map((e=>GK.OPTIONS[e])),defaultValue:GK.DEFAULT.value},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)=>!Ag.continuous(n.layout)}}},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}},valueLabels:{type:"items",snapshot:{tid:"property-valueLabels"},items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!1,options:[{value:!0,label:(t,n)=>((e,t,n)=>n&&n.get(Fee(t.layout)?"properties.on":"Common.Auto"))(0,n,e)},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&Fee(n.layout)},showTotalLabels:{ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&Fee(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:Gq}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,t,n)=>!Ag.continuous(n.layout),items:{axisDisplayMode:{ref:"dimensionAxis.axisDisplayMode",type:"string",translation:"properties.axis.displaymode",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:{ref:"dimensionAxis.maxVisibleItems",translation:"properties.axis.maxvisiblevalues",expression:"optional",type:"integer",invalid(e,t,n){const r=Pee(n.layout,"qMeasureInfo").length,i=Pee(n.layout,"qDimensionInfo").length,o=e.dimensionAxis.maxVisibleItems;return o<0||o>1e4/(i+r)},globalChange:Nee,defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}},continuousGroup:{items:{miniChart:null},show:!a}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};var u;return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(c.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"}]}}}),null!=t&&t.isEnabled("TLV_800_BUTTERFLY_CHART")&&(c.items.measureAxis={uses:"axis.flippableMeasureAxis",items:{minMax:{items:{minMax:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&!e.measureAxis.autoMinMax},min:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&["min","minMax"].includes(e.measureAxis.minMax)&&!e.measureAxis.autoMinMax},max:{invalid:e=>e.measureAxis&&"minMax"===e.measureAxis.minMax?e.measureAxis.min>=e.measureAxis.max:!(!e.measureAxis||"max"!==e.measureAxis.minMax||"butterfly"!==e.barGrouping.grouping)&&e.measureAxis.max<=0}}}}}),c},Bee={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){Uy(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:i}=e.qHyperCubeDef,{qCardinal:o}=t.layout.qHyperCube.qDimensionInfo[0],a=i.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&o>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},Hee={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},Vee=({translator:e,flags:t,anything:n})=>{var r,i;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var i,o;if(null!=n&&null!==(i=n.sense)&&void 0!==i&&null!==(o=i.isUnsupportedFeature)&&void 0!==o&&o.call(i,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const i=null===(n=t.layout)||void 0===n||null===(n=n.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.findIndex((e=>Ree(e)));return(null===(r=t.properties)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r[i])===e})(e,t),s=Ag.continuous(r.layout);return!(a&&s)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Dimensions.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0}}},measures:{items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Measures.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"trendlines")?void 0:z8({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function $ee({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:Vee({translator:e,flags:t,anything:n}),sorting:Bee,addons:Hee,settings:jee({translator:e,flags:t,anything:n})}}}const Wee=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==b6};function Uee({flags:e}){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t,n){const r=n.qHyperCube.qMeasureInfo.length,i=n.qHyperCube.qDimensionInfo.filter((e=>Wee(e))).length;return 1===r&&2===i&&0===e}}}}}},presentation:{uses:"presentation",items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:(t,n)=>{const r=[{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"}];return Y8({layout:null==n?void 0:n.layout,flags:e})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){return t.qHyperCube.qMeasureInfo.filter((e=>Wee(e))).length+t.qHyperCube.qDimensionInfo.filter((e=>Wee(e))).length>2&&!Ag.continuous(t)&&!((null==(n=t)||null===(r=n.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>Wee(e))).length)>1&&(null==n||null===(i=n.qHyperCube)||void 0===i?void 0:i.isHCEnabled));var n,r,i},change(e){e.qHyperCubeDef.qDimensions.length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"}},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)=>!Ag.continuous(t)}}},color:{uses:"color"}}}}function Yee(e){const t={},n=cC(e,"components"),r=cC(e,"dimensionAxis.axisDisplayMode"),i=cC(e,"dimensionAxis.maxVisibleItems"),o=n?n.filter((e=>"bar"===e.key))[0]:void 0,a=cC(e,"tooltip");if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),a){t.chart_tooltip_custom=!a.auto;const e=cC(a,"chart.object.refId");!a.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const Kee=e=>!!(e&&e.qHyperCube.qSize.qcy>0),Gee={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function Xee(){const e=[];return Object.keys(Gee).forEach((t=>{e.push(Gee[t])})),e}function Jee(e){return{definition:$ee(e),softDefinition:Uee(e),support:{snapshot:Kee,export:Kee,exportData:!0,sharing:Kee,viewData:!0,effects:!0,modifiers:Xee()},importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=Tee.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:D6(e),defaultPropertyValues:a,hypercubePath:i,extension:r}),l=s.qProperty;return l.qHyperCubeDef.qDimensions.length>1&&"stacked"===l.barGrouping.grouping&&(l.qHyperCubeDef.qMode="K",l.qHyperCubeDef.qAlwaysFullyExpanded=!0),Tee.conditionalShow.unquarantine(l),Tee.conditionalShow.unquarantineAlternative(l),s},exportProperties:(e,t,n)=>{Tee.conditionalShow.quarantine(e.qProperty),Tee.conditionalShow.quarantineAlternative(e.qProperty);return Tee.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(Uy),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(Uy)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:i}=e;if(t||!1!==i)return;const{continuousAuto:o}=n;(o||!o&&r)&&(e.scrollbar=GK.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:Yee}}return function(t){const n=X4();return{qae:T6(t),ext:Jee(t),component(){const r=O6({env:t}),{viewState:i,viewCache:o}=A6(),a=function({picasso:t}){const n=e.useElement(),r=e.useOptions(),[i,o]=e.useState();return e.useEffect((()=>{if(!t)return()=>{};n.style.overflow="hidden";const e=t({renderer:{prio:[(null==r?void 0:r.renderer)||"canvas"]}}).chart({element:n,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[r.renderer]),i}({picasso:n}),s=e7({picasso:n,chart:a,environment:r,viewState:i,viewCache:o}),l=qee({env:t,services:s});See({picasso:n,chart:a,services:s,environment:r,viewState:i,viewCache:o,bootstrapped:l}),(({environment:t,services:n,chart:r,viewState:i,bootstrapped:o})=>{e.onTakeSnapshot((e=>{if(!t||!n||!o)return;const{layoutService:a,dockService:s,colorService:l,discrete:c,continuousDataModel:u,reducedDataModel:d}=n,{width:f,height:h}=s.meta.chart.size;if(e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:f,h:h}},a.meta.isSnapshot)return Promise.resolve();e.snapshotData.content.chartData={scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:_g(r,U8.COMPONENT.LEGEND_COLOR_CAT)};const{properties:p}=o,m=null==p?void 0:p.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));return m&&(e.tooltip.auto=!0),a.meta.isDiscrete?(c.command.setSnapshotData(e),d.setSnapshotData(e)):u.setSnapshotData(e),l.getMain().getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))})),e.useImperativeHandle((()=>({getViewState(){if(i&&r)return{scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:_g(r,U8.COMPONENT.LEGEND_COLOR_CAT)}}})),[i,r])})({environment:r,services:s,chart:a,viewState:i,bootstrapped:l})}}}}));
|