1(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{C3UU:function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"append",function(){return Wo}),n.d(i,"arabicToRoman",function(){return Zo}),n.d(i,"createPromise",function(){return Jo}),n.d(i,"defined",function(){return Qo}),n.d(i,"definitionId",function(){return es}),n.d(i,"deg",function(){return os}),n.d(i,"encodeBase64",function(){return ls}),n.d(i,"eventCoordinates",function(){return hs}),n.d(i,"eventElement",function(){return cs}),n.d(i,"isTransparent",function(){return ps}),n.d(i,"last",function(){return us}),n.d(i,"limitValue",function(){return fs}),n.d(i,"mergeSort",function(){return ds}),n.d(i,"promiseAll",function(){return gs}),n.d(i,"rad",function(){return vs}),n.d(i,"round",function(){return ys}),n.d(i,"valueOrDefault",function(){return ms}),n.d(i,"bindEvents",function(){return xs}),n.d(i,"elementOffset",function(){return bs}),n.d(i,"elementSize",function(){return Cs}),n.d(i,"elementStyles",function(){return _s}),n.d(i,"unbindEvents",function(){return Ss}),n.d(i,"DEG_TO_RAD",function(){return ns}),n.d(i,"MAX_NUM",function(){return is}),n.d(i,"MIN_NUM",function(){return rs}),n.d(i,"LRUCache",function(){return ks}),n.d(i,"TextMetrics",function(){return zs}),n.d(i,"measureText",function(){return Es}),n.d(i,"objectKey",function(){return Ps}),n.d(i,"hashKey",function(){return Ts}),n.d(i,"normalizeText",function(){return Os});var r={};n.r(r),n.d(r,"swing",function(){return Xl}),n.d(r,"linear",function(){return Wl}),n.d(r,"easeOutElastic",function(){return Yl});var o={};n.r(o),n.d(o,"Circle",function(){return oa}),n.d(o,"Arc",function(){return _a}),n.d(o,"Rect",function(){return Zs}),n.d(o,"Point",function(){return $s}),n.d(o,"Segment",function(){return Ua}),n.d(o,"Matrix",function(){return Us}),n.d(o,"Size",function(){return Ws}),n.d(o,"toMatrix",function(){return Gs}),n.d(o,"Transformation",function(){return Ks}),n.d(o,"transform",function(){return Qs});var s={};n.r(s),n.d(s,"Surface",function(){return Ph}),n.d(s,"RootNode",function(){return Mh}),n.d(s,"Node",function(){return xh}),n.d(s,"GroupNode",function(){return jh}),n.d(s,"ArcNode",function(){return Bh}),n.d(s,"CircleNode",function(){return Fh}),n.d(s,"RectNode",function(){return Nh}),n.d(s,"ImageNode",function(){return Uh}),n.d(s,"TextNode",function(){return Xh}),n.d(s,"PathNode",function(){return Eh}),n.d(s,"MultiPathNode",function(){return Yh}),n.d(s,"DefinitionNode",function(){return kh}),n.d(s,"ClipNode",function(){return Sh}),n.d(s,"GradientStopNode",function(){return bh}),n.d(s,"LinearGradientNode",function(){return wh}),n.d(s,"RadialGradientNode",function(){return Ch}),n.d(s,"exportGroup",function(){return Zh});var a={};n.r(a),n.d(a,"Surface",function(){return uc}),n.d(a,"RootNode",function(){return rc}),n.d(a,"Node",function(){return Qh}),n.d(a,"GroupNode",function(){return ec}),n.d(a,"ArcNode",function(){return vc}),n.d(a,"CircleNode",function(){return mc}),n.d(a,"RectNode",function(){return bc}),n.d(a,"ImageNode",function(){return wc}),n.d(a,"TextNode",function(){return Sc}),n.d(a,"PathNode",function(){return dc}),n.d(a,"MultiPathNode",function(){return Mc});var l={};n.r(l),n.d(l,"PathParser",function(){return nl}),n.d(l,"Surface",function(){return oh}),n.d(l,"BaseNode",function(){return sh}),n.d(l,"SurfaceFactory",function(){return nh}),n.d(l,"OptionsStore",function(){return Ds}),n.d(l,"exportImage",function(){return Ac}),n.d(l,"exportSVG",function(){return Oc}),n.d(l,"QuadNode",function(){return sc}),n.d(l,"ShapesQuadTree",function(){return lc}),n.d(l,"ObserversMixin",function(){return fo}),n.d(l,"svg",function(){return s}),n.d(l,"canvas",function(){return a}),n.d(l,"util",function(){return i}),n.d(l,"Element",function(){return ea}),n.d(l,"Circle",function(){return fa}),n.d(l,"Arc",function(){return al}),n.d(l,"Path",function(){return rl}),n.d(l,"MultiPath",function(){return Xa}),n.d(l,"Text",function(){return pl}),n.d(l,"Image",function(){return fl}),n.d(l,"Group",function(){return vl}),n.d(l,"Layout",function(){return Cl}),n.d(l,"Rect",function(){return kl}),n.d(l,"align",function(){return Al}),n.d(l,"vAlign",function(){return Ol}),n.d(l,"stack",function(){return jl}),n.d(l,"vStack",function(){return Rl}),n.d(l,"wrap",function(){return zl}),n.d(l,"vWrap",function(){return El}),n.d(l,"fit",function(){return Ll}),n.d(l,"LinearGradient",function(){return Gl}),n.d(l,"RadialGradient",function(){return $l}),n.d(l,"GradientStop",function(){return Vl}),n.d(l,"Gradient",function(){return Hl}),n.d(l,"Animation",function(){return th}),n.d(l,"AnimationFactory",function(){return Jl});var h=n("LoAr"),c=function(){},p=n("C9Ky"),u=n("LTrr"),f=n("LcNk");function d(t){return t.ownerDocument||t.document||t}var g=function(t){return d(t).defaultView},v=function(t){return d(t).documentElement},y=0;function m(){if(!y&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),y=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return y}
1function x(t){var e=g(t),n=v(t),i={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=m()),i}var b=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||v(t)},_=function(t){var e=t.getBoundingClientRect(),n=e.left,i=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,i=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var o=t.getBoundingClientRect();return t.style.display=n,t.style.left=i,t.style.position=r,o}(t)),{top:i,left:n,height:e.height,width:e.width}},w=function(t,e){for(var n=[],i=t.parentNode;i&&(n.push(i),i!==e);)i=i.parentNode;return n};function C(t){var e=v(t),n=g(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var S=function(t){return t===(t.ownerDocument||{}).body?C(t):{x:t.scrollLeft,y:t.scrollTop}},k=function(t,e,n){var i=0;return t+e>n&&(i=n-(t+e)),t<0&&(i=-t),i},M=function(t){var e=t.offset,n=t.size,i=t.anchorSize,r=t.viewPortSize,o=t.anchorAlignPoint,s=t.elementAlignPoint,a=0,l=2*t.margin;if(s!==o&&"center"!==s&&"middle"!==s&&"center"!==o&&"middle"!==o){var h="top"===o||"left"===o;e<0&&h?e+(a=n+i+l)+n>r&&(a=0):e>=0&&!h&&(e+n>r&&(a+=-(i+n+l)),e+a<0&&(a=0))}return a},A=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},O=n("YfSF"),P=n("qpXW"),T=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},j=function(){return"undefined"!=typeof document&&!!document.body},R=function(){return"undefined"!=typeof window},I=/auto|scroll/,z=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},E=function(){if(!j())return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e}(),L=function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},B=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],D=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.addScroll=function(t,e){return function(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}(t,e)},t.prototype.align=function(t){return function(e){var n=t.anchorRect,i=t.anchorAlign,r=t.elementRect,o=t.elementAlign,s=t.margin;void 0===s&&(s={});var a=i.horizontal,l=i.vertical,h=o.horizontal,c=o.vertical,p=s.horizontal||0,u=s.vertical||0,f=n.top,d=n.left;return"bottom"===l&&(f+=n.height),"center"!==l&&"middle"!==l||(f+=Math.round(n.height/2)),"bottom"===c&&(f-=r.height,u*=-1),"center"!==c&&"middle"!==c||(f-=Math.round(r.height/2),u*=-1),"right"===a&&(d+=n.width),"center"!==a&&"middle"!==a||(d+=Math.round(n.width/2)),"right"===h&&(d-=r.width,p*=-1),"center"!==h&&"middle"!==h||(d-=Math.round(r.width/2),p*=-1),{top:f+u,left:d+p}}()},t.prototype.boundingOffset=function(t){return function(t){if(!t.getBoundingClientRect){var e=x(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}}(this.nativeElement(t))},t.prototype.getFontStyles=function(t){var e=this.getWindow();if(!e||!t)return[];var n=e.getComputedStyle(this.nativeElement(t));return B.map(function(t){return{key:t,value:n[t]}})},t.prototype.getWindow=function(){return R()?window:null},t.prototype.hasOffsetParent=function(t){return!!t&&!!this.nativeElement(t).offsetParent},t.prototype.offset=function(t){return t?_(this.nativeElement(t)):null},t.prototype.offsetAtPoint=function(t,e){if(!t)return null;var n=this.nativeElement(t),i=n.style,r=i.left,o=i.top,s=i.transition;n.style.transition="none",n.style.left=e.left+"px",n.style.top=e.top+"px";var a=_(n);return n.style.left=r,n.style.top=o,n.style.transition=s,a},t.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},t.prototype.position=function(t,e,n){return void 0===n&&(n=1),t&&e?function(t,e,n){void 0===n&&(n=1);var i=e?b(e):null,r=function(t,e){var n=g(t),i=n.getComputedStyle(t),r=_(t),o=e||b(t),s=t.ownerDocument,a={top:0,left:0};if("fixed"!==i.position&&o!==s.body&&o!==s.documentElement){var l=n.getComputedStyle(o);(a=_(o)).top+=parseInt(l.borderTopWidth,10),a.left+=parseInt(l.borderLeftWidth,10)}
1return{top:r.top-a.top,left:r.left-a.left,height:r.height,width:r.width}}(t,i),o=r.top,s=r.left,a=r.height,l=r.width,h=function(t,e){return t?S(t):function(t){var e=b(t);return e?S(e):{x:0,y:0}}(e)}(i,t),c=t.ownerDocument,p=i===c.body||i===c.documentElement?1:n;return{top:o+h.y*p,left:s+h.x*p,height:a,width:l}}(this.nativeElement(t),this.nativeElement(e),n):null},t.prototype.removeScroll=function(t,e){return function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}(t,e)},t.prototype.restrictToView=function(t){return function(e){var n=t.anchorRect,i=t.anchorAlign,r=t.elementRect,o=t.elementAlign,s=t.collisions,a=t.viewPort,l=t.margin;void 0===l&&(l={});var h=r.top,c=r.left,p=r.height,u=r.width,f=a.height,d=a.width,g=l.horizontal||0,v=l.vertical||0,y=0,m=0,x="flip"===s.horizontal,b="flip"===s.vertical;"fit"===s.vertical&&(m+=k(h,p,f)),"fit"===s.horizontal&&(y+=k(c,u,d)),b&&(m+=M({margin:v,offset:h,size:p,anchorSize:n.height,viewPortSize:f,anchorAlignPoint:i.vertical,elementAlignPoint:o.vertical})),x&&(y+=M({margin:g,offset:c,size:u,anchorSize:n.width,viewPortSize:d,anchorAlignPoint:i.horizontal,elementAlignPoint:o.horizontal}));var _=x&&0!==y,w=b&&0!==m;return{flipped:_||w,flip:{horizontal:_,vertical:w},offset:{left:y,top:m}}}()},t.prototype.scrollPosition=function(t){return C(this.nativeElement(t))},t.prototype.scrollableParents=function(t){return function(t){var e=[];if(!j()||!R())return e;for(var n=t.parentElement;n;)(I.test(z(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e}(this.nativeElement(t))},t.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?_(e):null},t.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},t.prototype.getRelativeContextElement=function(t){if(!t||!E)return null;for(var e=this.nativeElement(t).parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},t.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},t.prototype.windowViewPort=function(t){return x(this.nativeElement(t))},t.prototype.zIndex=function(t,e){return function(t,e){if(!t||!j()||!R())return null;var n=function(t,e){for(var n,i,r=w(t),o=e;o&&(n=A(o),!(i=r.reduce(function(t,e){return t.concat(n.filter(function(t){return t===e}))},[])[0]));)o=o.parentElement;return i}(t,e);if(!n)return null;var i=[t].concat(w(t,n)).reduce(function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,i=parseInt(n,10);return i>t?i:t},0);return i?i+1:null}(this.nativeElement(t),this.nativeElement(e))},t.prototype.zoomLevel=function(){return j()&&R()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t}(),F=new h.InjectionToken("Popup Document Scale"),V=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.alignElement=function(t){var e=t.anchor,n=t.element,i=t.anchorAlign,r=t.elementAlign,o=t.margin,s=t.offset,a=this.scale||1,l="fixed"!==t.positionMode&&this._dom.hasOffsetParent(n)?this.relativeRect(e,n,s,a):this.absoluteRect(e,n,s,a),h=L(this._dom.offset(n),a);return this._dom.align({anchorAlign:i,anchorRect:l,elementAlign:r,elementRect:h,margin:o})},t.prototype.absoluteRect=function(t,e,n,i){var r=this.elementScrollPosition(t,e),o=T(this._dom.offset(t),n),s=2*i,a=this._dom.stackingElementScroll(e);1!==i&&a&&(a.x/=s,a.y/=s);var l=this._dom.stackingElementOffset(e);return 1!==i&&l&&(l.left/=s,l.top/=s),this._dom.removeScroll(this._dom.addScroll(function(t,e){return l?{height:t.height,left:t.left-l.left,top:t.top-l.top,width:t.width}:t}(L(o,i)),a),r)},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,n,i){var r=T(this._dom.position(t,e,i),n);return L(r,i)},t}(),N=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.positionElement=function(t){var e=t.anchor,n=t.currentLocation,i=t.element,r=t.anchorAlign,o=t.elementAlign,s=t.collisions,a=t.margin,l=this._dom,h=this.scale||1,c=l.offsetAtPoint(i,n),p=L(c,h),u=L(l.offset(e),h),f=T(u,n),d=t.viewPort||l.
1windowViewPort(i);d.width=d.width/h,d.height=d.height/h;var g=l.restrictToView({anchorAlign:r,anchorRect:f,collisions:s,elementAlign:o,elementRect:p,margin:a,viewPort:d}),v=l.addOffset(n,g.offset);return{flip:g.flip,flipped:g.flipped,offset:v}},t}(),H=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.subscribe=function(t){var e=this;j()&&this._zone.runOutsideAngular(function(){e.subscription=Object(f.fromEvent)(e._dom.getWindow(),"resize").pipe(Object(O.a)(1e3/60)).subscribe(function(){return t()})})},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},t}(),U=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.forElement=function(t){return this.unsubscribe(),this.element=t,this},t.prototype.subscribe=function(t){var e=this;if(t&&j()&&this.element){var n=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(function(){var r=i.map(function(t){return Object(f.fromEvent)(t,"scroll").pipe(Object(O.a)(1e3/60))});e.subscription=f.merge.apply(void 0,r).subscribe(function(r){var o=r.target,s=i.filter(function(t){return t===o}).length>0,a=o===document,l=o===window;(s||a||l)&&t(e.isVisible(n,o))})})}},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isVisible=function(t,e){var n=this._dom.boundingOffset(t),i=this._dom.boundingOffset(e);return!(1<i.top-n.bottom||1<n.top-i.bottom||1<n.left-i.right||1<i.left-n.r
1ight)},t}(),G={expand:function(t){var e="up"===t||"down"===t?"scaleY":"scaleX";return{start:{transform:e+"(0)",transformOrigin:"down"===t?"top":"left"===t?"right":"right"===t?"left":"bottom"},end:{transform:e+"(1)"}}},slide:function(t){var e="left"===t||"right"===t?"translateX":"translateY";return{start:{transform:e+"("+("right"===t||"down"===t?-100:100)+"%)"},end:{transform:e+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},q=function(){function t(t){this.animationBuilder=t,this.start=new h.EventEmitter,this.end=new h.EventEmitter}return t.prototype.play=function(t,e,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var i=e.type||"slide",r=G[i];if(r){var o=r(this.getDirection(n,e));this.playStates(t,o,e)}else if(Object(h.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},t.prototype.ngOnDestroy=function(){this.stopPlayer()},t.prototype.playStates=function(t,e,n){var i=this;this.stopPlayer();var r=n.duration||100,o=this.animationBuilder.build([Object(P.h)(e.start),Object(P.e)(r+"ms ease-in",Object(P.h)(e.end))]),s=this.player=o.create(t);s.onDone(function(){i.end.emit(),i.stopPlayer()}),this.start.emit(),s.play()},t.prototype.getDirection=function(t,e){var n=e.direction||"down";return t.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),t.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},t.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},t}(),$={left:-1e4,top:0},X="k-animation-container",W=function(t){return t.observers.length>0},Y=function(){function t(t,e,n,i,r,o,s,a,l){this.container=t,this._alignService=e,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=o,this.animationService=s,this._renderer=a,this._zone=l,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=$,this.anchorViewportLeave=new h.EventEmitter,this.close=new h.EventEmitter,this.open=new h.EventEmitter,this.positionChange=new h.EventEmitter,this.resolvedPromise=Promise.resolve(null),this._renderer.addClass(t.nativeElement,X),this.updateFixedClass()}return t.prototype.ngOnInit=function(){this.repositionCallback=this.reposition.bind(this),this._resizeService.subscribe(this.repositionCallback),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=$,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()},t.prototype.ngOnChanges=function(t){t.copyAnchorStyles&&this.copyFontStyles(),t.positionMode&&this.updateFixedClass()},t.prototype.ngAfterViewInit=function(){var t=this;this.reposition(),this.animate||this.resolvedPromise.then(function(){t.onAnimationEnd()})},t.prototype.ngAfterViewChecked=function(){var t=this;this._zone.runOutsideAngular(function(){t.repositionSubscription&&t.repositionSubscription.unsubscribe(),t.repositionSubscription=Object(f.from)(t.resolvedPromise).subscribe(t.repositionCallback)})},t.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.repositionSubscription&&this.repositionSubscription.unsubscribe(),this.animationSubscriptions.unsubscribe()},t.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},t.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(t.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(t){this.setContainerStyle("left",t.left+"px"),this.setContainerStyle("top",t.top+"px"),this._currentOffset=t},enumerable:!0,configurable:!0}),t.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},t.prototype.reposition=function(){var t=this;if(j()){var e,n,i,r,o=this.position(),s=o.flip,a=o.offset;(!this._currentOffset||(i=(e=this._currentOffset).top,r=(n=a).top,Math.abs(e.left-n.left)>=1||Math.abs(i-r)>=1))&&(this.currentOffset=a,W(this.positionChange)&&this._zone.run(function(){return t.positionChange.emit({offset:a,flip:s})})),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,s)}},t.prototype.position=function(){var t=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:t,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},t.prototype.onScroll=function(t){var e=this,n=W(this.anchorViewportLeave);t||!n?this.reposition():n&&this._zone.run(function(){e.anchorViewportLeave.emit()})},t.prototype.copyFontStyles=function(){var t=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach(function(e){return t.setContainerStyle(e.key,e.value)})},t.prototype.updateFixedClass=function(){this._renderer["fixed"===this.positionMode?"addClass":"removeClass"](this.container.nativeElement,"k-animation-container-fixed")},t.prototype.setContainerStyle=function(t,e){this._renderer.setStyle(this.container.nativeElement,t,e)},t}(),Z=new h.InjectionToken("Popup Container"),J=function(){function t(t,e,n,i){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n,this.container=i}return Object.defineProperty(t.prototype,"rootViewContainer",{get:function(){var t=this.applicationRef.components||[];
1if(t[0])return t[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),t.prototype.open=function(t){void 0===t&&(t={});var e=this.contentFrom(t.content),n=e.component,i=this.appendPopup(e.nodes,t.appendTo),r=i.instance;this.projectComponentInputs(i,t),i.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var o=this.getComponentRootNode(i);return{close:function(){var t;n?n.destroy():i.hostView.destroyed||(i.instance.content=null,i.changeDetectorRef.detectChanges()),i.destroy(),(t=o)&&t.parentNode&&t.parentNode.removeChild(t)},content:n,popup:i,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:o,popupOpen:r.open,popupPositionChange:r.positionChange}},t.prototype.appendPopup=function(t,e){var n=this.createComponent(Y,t,e);return e||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},t.prototype.getComponentRootNode=function(t){return t.hostView.rootNodes[0]},t.prototype.getComponentFactory=function(t){return this.componentFactoryResolver.resolveComponentFactory(t)},t.prototype.createComponent=function(t,e,n){var i=this.getComponentFactory(t);if(n)return n.createComponent(i,void 0,this.injector,e);var r=i.create(this.injector,e);return this.applicationRef.attachView(r.hostView),r},t.prototype.projectComponentInputs=function(t,e){return Object.getOwnPropertyNames(e).filter(function(t){return"content"!==t||e.content instanceof h.TemplateRef}).map(function(n){t.instance[n]=e[n]}),t},t.prototype.contentFrom=function(t){if(!t||t instanceof h.TemplateRef)return{component:null,nodes:[[]]};var e=this.createComponent(t);return{component:e,nodes:[e?[e.location.nativeElement]:[]]}},t}(),K=function(){},Q=n("WT9V"),tt=h["\u0275crt"]({encapsulation:2,styles:[],data:{}});function et(t){return h["\u0275vid"](0,[(t()(),h["\u0275and"](0,null,null,0))],null,null)}function nt(t){return h["\u0275vid"](0,[h["\u0275qud"](402653184,1,{contentContainer:0}),(t()(),h["\u0275eld"](1,0,[[1,0],["container",1]],null,5,"div",[["class","k-popup"]],null,null,null,null,null)),h["\u0275did"](2,278528,null,0,Q.NgClass,[h.IterableDiffers,h.KeyValueDiffers,h.ElementRef,h.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),h["\u0275ncd"](null,0),(t()(),h["\u0275and"](16777216,null,null,2,null,et)),h["\u0275did"](5,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275did"](6,540672,null,0,Q.NgTemplateOutlet,[h.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null)],function(t,e){var n=e.component;t(e,2,0,"k-popup",n.popupClass),t(e,5,0,n.content),t(e,6,0,n.content)},null)}var it=h["\u0275ccf"]("kendo-popup",Y,function(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,7,"kendo-popup",[],null,null,null,nt,tt)),h["\u0275prd"](512,null,D,D,[]),h["\u0275prd"](512,null,V,V,[D,[2,F]]),h["\u0275prd"](512,null,N,N,[D,[2,F]]),h["\u0275prd"](512,null,H,H,[D,h.NgZone]),h["\u0275prd"](512,null,U,U,[D,h.NgZone]),h["\u0275prd"](131584,null,q,q,[P.b]),h["\u0275did"](7,13352960,null,0,Y,[h.ElementRef,V,D,N,H,U,q,h.Renderer2,h.NgZone],null,null)],function(t,e){t(e,7,0)},null)},{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",popupClass:"popupClass",positionMode:"positionMode",offset:"offset",margin:"margin"},{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},["*"]),rt=n("gy4G"),ot=n("6Rvf"),st=n("A/IU"),at=n("QVEh"),lt=n("981U"),ht=n("D57K"),ct=n("VIZP"),pt=n("GovN"),ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.getNewsLoading=function(){return this.select(function(t){return t.news.loading})},e.prototype.getNews=function(){return this.select(function(t){return t.news.entities})},e.prototype.isHasNews=function(){return this.select(function(t){return t.news.entities.length>0})},e.prototype.getSocialMediaLoading=function(){return this.select(function(t){return t.socialMedia.loading})},e.prototype.isHasSocialMedia=function(){return this.select(function(t){var e=t.socialMedia.entities;return e.twitter.length>0&&e.youtube.length>0&&e.instagram.length>0})},e.prototype.getTwitterData=function(){return this.select(function(t){return t.socialMedia.entities.twitter})},e.prototype.getYoutubeData=function(){return this.select(function(t){return t.socialMedia.entities.youtube})},e.prototype.getInstagramData=function(){return this.select(function(t){return t.socialMedia.entities.instagram})},e.prototype.getEmploymentStatistic=function(){return this.select(function(t){return t.statistic.entity.employment})},e.prototype.getTrainingStatistic=function(){return this.select(function(t){return t.statistic.entity.training})},e.prototype.getIndustrialStatistic=function(){return this.select(function(t){return t.statistic.entity.industrial})},e.prototype.getJobSectorLoading=function(){return this.select(function(t){return t.jobSector.loading})},e.prototype.getJobSectors=function(){return this.select(function(t){return t.jobSector.entities})},e.prototype.getHighlightedCompanyLoading=function(){return this.select(function(t){return t.highlightedCompany.loading})},e.prototype.getHighlightedCompanies=function(){return this.select(function(t){return t.highlightedCompany.entities})},e.prototype.getProjectCategoryLoading=function(){return this.select(function(t){return t.projectCategory.loading})},e.prototype.getProjectCategoryStatistics=function(){return this.select(function(t){return t.projectCategory.statistics})},e.prototype.getTrainingLoading=function(){return this.select(function(t){return t.training.loading})},e.prototype.getTrainings=function(){return this.select(function(t){return t.training.entities})},e.prototype.selectState=function(){return Object(pt.D)("front")},Object(ht.c)([Object(ct.e)("front")],e)}(ct.c),ft=function(){function t(t,e){this.frontStore=t,this.route=e,this.loading$=this.frontStore.getNewsLoading(),this.news$=this.frontStore.getNews(),this.isHasNews$=this.frontStore.isHasNews()}
1return t.prototype.ngOnInit=function(){this.page=this.route.snapshot.data.page},t}(),dt=h["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%] .news[_ngcontent-%COMP%]{background:#fff;overflow:visible}[_nghost-%COMP%] .news[_ngcontent-%COMP%] .loading-box[_ngcontent-%COMP%]{min-height:150px}"]],data:{}});function gt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,1,"ubud-loader-component",[],null,null,null,rt.b,rt.a)),h["\u0275did"](2,49152,null,0,ot.a,[],null,null)],null,null)}function vt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,1,null,null,null,null,null,null,null)),(t()(),h["\u0275ted"](-1,null,[" Berita tidak ditemukan "]))],null,null)}function yt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,7,"div",[["class","col-12 d-flex justify-content-center align-items-center"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,2,null,gt)),h["\u0275did"](2,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275and"](16777216,null,null,3,null,vt)),h["\u0275did"](5,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef])],function(t,e){var n=e.component;t(e,2,0,h["\u0275unv"](e,2,0,h["\u0275nov"](e,3).transform(n.loading$))),t(e,5,0,!h["\u0275unv"](e,5,0,h["\u0275nov"](e,6).transform(n.loading$))&&!h["\u0275unv"](e,5,0,h["\u0275nov"](e,7).transform(n.isHasNews$)))},null)}function mt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,3,null,null,null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,2,"kemnaker-news-grid-component",[["class","col-12"]],null,null,null,st.b,st.a)),h["\u0275did"](2,49152,null,0,at.a,[],{news:[0,"news"],mergeFirstRow:[1,"mergeFirstRow"],firstFull:[2,"firstFull"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef])],function(t,e){var n=e.component;t(e,2,0,h["\u0275unv"](e,2,0,h["\u0275nov"](e,3).transform(n.news$)),!0,!0)},null)}function xt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,13,"section",[["class","news"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,8,"div",[["class","row align-items-center"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,3,null,yt)),h["\u0275did"](3,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275and"](16777216,null,null,3,null,mt)),h["\u0275did"](7,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275eld"](10,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),h["\u0275eld"](11,0,null,null,2,"a",[["routerLink","/news/all"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==h["\u0275nov"](t,12).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),h["\u0275did"](12,671744,null,0,lt.p,[lt.o,lt.a,Q.LocationStrategy],{routerLink:[0,"routerLink"]},null),(t()(),h["\u0275ted"](-1,null,[" Lihat lebih banyak berita "]))],function(t,e){var n=e.component;t(e,3,0,!(h["\u0275unv"](e,3,0,h["\u0275nov"](e,4).transform(n.isHasNews$))&&!h["\u0275unv"](e,3,0,h["\u0275nov"](e,5).transform(n.loading$)))),t(e,7,0,h["\u0275unv"](e,7,0,h["\u0275nov"](e,8).transform(n.isHasNews$))&&!h["\u0275unv"](e,7,0,h["\u0275nov"](e,9).transform(n.loading$))),t(e,12,0,"/news/all")},function(t,e){t(e,11,0,h["\u0275nov"](e,12).target,h["\u0275nov"](e,12).href)})}var bt=n("wErA"),_t=n("r3E6"),wt=n("kaJY"),Ct=function(){return function(t){this.store=t,this.loading$=this.store.loading(),this.services$=this.store.getFrontServices(2),this.allServices$=this.store.getServices(),this.isHasServices$=this.store.isHasServices(),this.mainServices=[new wt.a({id:"",description:"Dapatkan pengalaman baru dengan magang di dalam negeri.",name:"Maganghub",icon:"assets/images/services/magang_icon.svg",url:"https://maganghub.kemnaker.go.id/",order:1}),new wt.a({id:"",description:"Dapatkan informasi mengenai berbagai lowongan pekerjaan.",name:"Karirhub",icon:"assets/images/services/karirhub-lower.svg",url:"https://karirhub.kemnaker.go.id/",order:2}),new wt.a({id:"",description:"Berbagai pelatihan untuk meningkatkan keterampilanmu.",name:"Skillhub",icon:"assets/images/services/skillhub-lower.svg",url:"https://pelatihan.kemnaker.go.id/",order:3}),new wt.a({id:"",description:"Sertifikasi profesimu.",name:"Sertihub",icon:"assets/images/services/sertihub-lower.svg",url:"https://bnsp.go.id/",order:4}),new wt.a({id:"",description:"Perluasan kesempatan kerja.",name:"Bizhub",icon:"assets/images/services/bizhub-lower.svg",url:"https://bizhub.kemnaker.go.id/",order:5})]}}(),St=h["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%] .loading-box[_ngcontent-%COMP%]{min-height:450px}[_nghost-%COMP%] .service-wrapper[_ngcontent-%COMP%]{margin-top:56px}[_nghost-%COMP%] .service-wrapper[_ngcontent-%COMP%] .service-wrapper-title[_ngcontent-%COMP%]{font-size:20px;line-height:120%;font-weight:400}@media (max-width:768px){[_nghost-%COMP%] .services[_ngcontent-%COMP%]{padding-top:0!important}[_nghost-%COMP%] .service-wrapper[_ngcontent-%COMP%]{margin-top:32px}[_nghost-%COMP%] .service-wrapper[_ngcontent-%COMP%] .service-wrapper-title[_ngcontent-%COMP%]{font-size:16px}}[_nghost-%COMP%] .service-wrapper[_ngcontent-%COMP%] .service-wrapper-link[_ngcontent-%COMP%]{font-weight:600;font-size:14px}[_nghost-%COMP%] .service-wrapper[_ngcontent-%COMP%] .service-wrapper-content[_ngcontent-%COMP%]{margin-top:40px}@media (max-width:768px){[_nghost-%COMP%] .service-wrapper[_ngcontent-%COMP%] .service-wrapper-link[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .service-wrapper[_ngcontent-%COMP%] .service-wrapper-content[_ngcontent-%COMP%]{margin-top:24px}}[_nghost-%COMP%] .service-card[_ngcontent-%COMP%] .service-icon[_ngcontent-%COMP%]{border-radius:8px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#213f67}[_nghost-%COMP%] .service-card[_ngcontent-%COMP%] .service-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:16px;height:16px;-o-object-fit:contain;object-fit:contain}[_nghost-%COMP%] .service-card[_ngcontent-%COMP%] .service-title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:16px;font-size:16px}[_nghost-%COMP%] .service-card[_ngcontent-%COMP%] .service-description[_ngcontent-%COMP%]{font-weight:400;font-size:14px;height:45px;overflow:hidden;text-overflow:ellipsis;margin-top:6px;color:#6c727f}@media (max-width:768px){[_nghost-%COMP%] .service-card[_ngcontent-%COMP%] .service-title[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .service-card[_ngcontent-%COMP%] .service-description[_ngcontent-%COMP%]{font-size:12px;height:36px}}[_nghost-%COMP%] .service-card[_ngcontent-%COMP%] .service-link[_ngcontent-%COMP%]{margin-top:24px}[_nghost-%COMP%] .main-service[_ngcontent-%COMP%]{box-shadow:0 4px 3px rgba(0,0,0,.02),0 2px 2px rgba(0,0,0,.03),0 0 1px rgba(0,0,0,.03),0 0 0 rgba(0,0,0,.03);border:1px solid #f3f4f6;background:#fff;border-radius:8px;position:relative;padding:26px 30px}[_nghost-%COMP%] .main-service[_ngcontent-%COMP%]:hover{background:#f5f5f5}[_nghost-%COMP%] .main-service[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:auto;height:40px}[_nghost-%COMP%] .main-service[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .main-service[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{margin-top:16px;font-size:14px;margin-left:40px}[_nghost-%COMP%] .main-service[_ngcontent-%COMP%] i.fa[_ngcontent-%COMP%]{position:absolute;top:36px;right:24px;font-size:20px;color:#6c757d}[_nghost-%COMP%] .jkp-wrapper[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .jkp-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:8px}[_nghost-%COMP%] .jkp-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .service-row.row[_ngcontent-%COMP%]{margin:0 -12px}[_nghost-%COMP%] .service-row.row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:0 12px}[_nghost-%COMP%] .service-row[_ngcontent-%COMP%] .service-card[_ngcontent-%COMP%]{width:50%}@media (max-width:992px){[_nghost-%COMP%] .service-row.row[_ngcontent-%COMP%]{margin:-32px -8px}[_nghost-%COMP%] .service-row.row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:32px 8px}[_nghost-%COMP%] .service-row[_ngcontent-%COMP%] .service-card[_ngcontent-%COMP%]{width:50%}}@media (max-width:768px){[_nghost-%COMP%] .main-service-row.row[_ngcontent-%COMP%]{margin:-6px
1-8px}[_nghost-%COMP%] .main-service-row.row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:6px 8px}}[_nghost-%COMP%] .main-service-item[_ngcontent-%COMP%]:not(:last-child){margin-bottom:20px}[_nghost-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:36px}[_nghost-%COMP%] .title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:48px;width:auto;-o-object-fit:contain;object-fit:contain}[_nghost-%COMP%] .title[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;margin-top:16px}"]],data:{}});function kt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,6,"div",[["class","col-12 main-service-item"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,5,"div",[["class","main-service"]],[[8,"title",0]],null,null,null,null)),(t()(),h["\u0275eld"](2,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(t()(),h["\u0275eld"](3,0,null,null,0,"a",[],[[8,"href",4]],null,null,null,null)),(t()(),h["\u0275eld"](4,0,null,null,1,"div",[["class","desc"]],null,null,null,null,null)),(t()(),h["\u0275ted"](5,null,[" "," "])),(t()(),h["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-chevron-right"]],null,null,null,null,null))],null,function(t,e){t(e,1,0,e.context.$implicit.name),t(e,2,0,e.context.$implicit.icon),t(e,3,0,e.context.$implicit.url),t(e,5,0,e.context.$implicit.description)})}function Mt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,2,"div",[["class","loading-box d-flex justify-content-center align-items-center"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,1,"ubud-loader-component",[],null,
1null,null,rt.b,rt.a)),h["\u0275did"](2,49152,null,0,ot.a,[],null,null)],null,null)}function At(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,1,"div",[["class","loading-box d-flex justify-content-center align-items-center"]],null,null,null,null,null)),(t()(),h["\u0275ted"](-1,null,[" Layanan tidak ditemukan "]))],null,null)}function Ot(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,1,"a",[],[[8,"href",4]],null,null,null,null)),(t()(),h["\u0275ted"](1,null,[" "," "]))],null,function(t,e){t(e,0,0,e.parent.context.$implicit.url),t(e,1,0,e.parent.context.$implicit.name)})}function Pt(t){return h["\u0275vid"](0,[(t()(),h["\u0275ted"](0,null,[" "," "]))],null,function(t,e){t(e,0,0,e.parent.context.$implicit.name)})}function Tt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,9,null,null,null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,8,"div",[["class","service-card"]],null,null,null,null,null)),(t()(),h["\u0275eld"](2,0,null,null,1,"div",[["class","service-icon"]],null,null,null,null,null)),(t()(),h["\u0275eld"](3,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(t()(),h["\u0275eld"](4,0,null,null,3,"h5",[["class","service-title"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,1,null,Ot)),h["\u0275did"](6,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),h["\u0275and"](0,[["noUrlTpl",2]],null,0,null,Pt)),(t()(),h["\u0275eld"](8,0,null,null,1,"p",[["class","service-description"]],null,null,null,null,null)),(t()(),h["\u0275ted"](9,null,["",""]))],function(t,e){t(e,6,0,e.context.$implicit.url,h["\u0275nov"](e,7))},function(t,e){t(e,3,0,e.context.$implicit.icon),t(e,9,0,e.context.$implicit.description)})}function jt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,3,"div",[["class","row service-row"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,2,null,Tt)),h["\u0275did"](2,278528,null,0,Q.NgForOf,[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef])],function(t,e){var n=e.component;t(e,2,0,h["\u0275unv"](e,2,0,h["\u0275nov"](e,3).transform(n.services$)))},null)}function Rt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,6,null,null,null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,2,null,At)),h["\u0275did"](2,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275and"](16777216,null,null,2,null,jt)),h["\u0275did"](5,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275and"](0,null,null,0))],function(t,e){var n=e.component;t(e,2,0,!h["\u0275unv"](e,2,0,h["\u0275nov"](e,3).transform(n.isHasServices$))),t(e,5,0,h["\u0275unv"](e,5,0,h["\u0275nov"](e,6).transform(n.isHasServices$)))},null)}function It(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,21,"section",[["class","services"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,3,"div",[["class","title"]],null,null,null,null,null)),(t()(),h["\u0275eld"](2,0,null,null,0,"img",[["src","assets/img/siaker-logo-blue.svg"]],null,null,null,null,null)),(t()(),h["\u0275eld"](3,0,null,null,1,"div",[["class","desc"]],null,null,null,null,null)),(t()(),h["\u0275ted"](-1,null,[" One Stop Solution untuk menyikapi tuntutan perubahan yang mengarah pada otomasi dan digitalisasi layanan ketenagakerjaan. "])),(t()(),h["\u0275eld"](5,0,null,null,3,"div",[["class","main-service-wrapper"]],null,null,null,null,null)),(t()(),h["\u0275eld"](6,0,null,null,2,"div",[["class","row"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,1,null,kt)),h["\u0275did"](8,278528,null,0,Q.NgForOf,[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),h["\u0275eld"](9,0,null,null,12,"div",[["class","service-wrapper"]],null,null,null,null,null)),(t()(),h["\u0275eld"](10,0,null,null,11,"div",[["class","service-wrapper-content"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,2,null,Mt)),h["\u0275did"](12,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275and"](16777216,null,null,2,null,Rt)),h["\u0275did"](15,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275eld"](17,0,null,null,4,"div",[["class","mt-4"]],null,null,null,null,null)),(t()(),h["\u0275eld"](18,0,null,null,3,"a",[["class","text-primary service-wrapper-link"],["nakerServicePicker",""]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==h["\u0275nov"](t,19).onClick()&&i),i},null,null)),h["\u0275did"](19,16384,null,0,bt.b,[bt.d],null,null),(t()(),h["\u0275ted"](-1,null,[" Lihat Semua Layanan "])),(t()(),h["\u0275eld"](21,0,null,null,0,"i",[["class","fas fa-chevron-right ml-2"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,8,0,n.mainServices),t(e,12,0,h["\u0275unv"](e,12,0,h["\u0275nov"](e,13).transform(n.loading$))),t(e,15,0,!h["\u0275unv"](e,15,0,h["\u0275nov"](e,16).transform(n.loading$)))},null)}var zt,Et=n("HVy+"),Lt=n("BFAM"),Bt=n("9V3/"),Dt=n("/YGt"),Ft=n("exnB"),Vt=n("T+0/"),Nt=n("5WZX"),Ht=function(){function t(t){this.config=t}return t.prototype.transform=function(t){return this.config.environment[t]},t}
1(),Ut=n("ZELD"),Gt=n("ybcB"),qt=n("hfjw"),$t=n("duwk");!function(t){t.INDUSTRIAL="industrial_vacancy",t.MICRO="micro_vacancy"}(zt||(zt={})),function(t){t.getValues=function(){return[{id:t.INDUSTRIAL,color:"bg-primary",text:"Industrial"},{id:t.MICRO,color:"bg-secondary",text:"Usaha Mikro"}]},t.find=function(e){return t.getValues().find(function(t){return t.id===e})||{id:null,text:"",color:""}}}(zt||(zt={}));var Xt=function(){function t(){}return Object.defineProperty(t.prototype,"ninjaVacancyType",{get:function(){return zt},enumerable:!0,configurable:!0}),t}(),Wt=h["\u0275crt"]({encapsulation:0,styles:[[".container-job-sectors[_ngcontent-%COMP%]{padding:0 1.15rem}@media (min-width:992px){.container-job-sectors[_ngcontent-%COMP%] .row-job-sectors[_ngcontent-%COMP%] .wrapper-job-sector[_ngcontent-%COMP%]:nth-child(n+4) .job-sector[_ngcontent-%COMP%]{border-top:.5px solid #e7e7e7}}@media (max-width:1199.98px){.container-job-sectors[_ngcontent-%COMP%] .row-job-sectors[_ngcontent-%COMP%] .wrapper-job-sector[_ngcontent-%COMP%]:nth-child(n+3) .job-sector[_ngcontent-%COMP%]{border-top:.5px solid #e7e7e7}}@media (max-width:575.98px){.container-job-sectors[_ngcontent-%COMP%] .row-job-sectors[_ngcontent-%COMP%] .wrapper-job-sector[_ngcontent-%COMP%]:nth-child(n+2) .job-sector[_ngcontent-%COMP%]{border-top:.5px solid #e7e7e7}}.container-job-sectors[_ngcontent-%COMP%] .row-job-sectors[_ngcontent-%COMP%] .wrapper-job-sector[_ngcontent-%COMP%] .job-sector[_ngcontent-%COMP%]{display:flex;align-items:center;padding:1.15rem 0}.container-job-sectors[_ngcontent-%COMP%] .row-job-sectors[_ngcontent-%COMP%] .wrapper-job-sector[_ngcontent-%COMP%] .job-sector.all-sector[_ngcontent-%COMP%]{background:#dce3e9;padding-left:16px;position:relative;color:#15406a;border-top:0;height:100%;border-radius:5px 0;margin-right:-16px}@media (max-width:767.98px){.container-job-sectors[_ngcontent-%COMP%] .row-job-sectors[_ngcontent-%COMP%] .wrapper-job-sector[_ngcontent-%COMP%] .job-sector.all-sector[_ngcontent-%COMP%]{margin:0 -16px;border-radius:0}}.container-job-sectors[_ngcontent-%COMP%] .row-job-sectors[_ngcontent-%COMP%] .wrapper-job-sector[_ngcontent-%COMP%] .job-sector.all-sector[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:inherit}.container-job-sectors[_ngcontent-%COMP%] .row-job-sectors[_ngcontent-%COMP%] .wrapper-job-sector[_ngcontent-%COMP%] .job-sector.all-sector[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.container-job-sectors[_ngcontent-%COMP%] .row-job-sectors[_ngcontent-%COMP%] .wrapper-job-sector[_ngcontent-%COMP%] .job-sector[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:12px;font-size:1.2rem;color:#dcdcdc}.container-job-sectors[_ngcontent-%COMP%] .row-job-sectors[_ngcontent-%COMP%] .wrapper-job-sector[_ngcontent-%COMP%] .job-sector[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{flex:1;font-weight:500;color:#000;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:150px}"]],data:{}});function Yt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,3,"div",[["class","job-sector"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,2,"a",[["target","_blank"]],[[8,"href",4]],null,null,null,null)),h["\u0275ppd"](2,1),(t()(),h["\u0275ted"](3,null,[" ",""]))],null,function(t,e){var n=e.component;t(e,1,0,h["\u0275inlineInterpolate"](3,"",h["\u0275unv"](e,1,0,t(e,2,0,h["\u0275nov"](e.parent.parent,0),"ninja_app_url")),"vacancies?jobFunctions=",null==e.parent.context.$implicit?null:e.parent.context.$implicit.id.toString(),"&type=",n.ninjaVacancyType.INDUSTRIAL,"")),t(e,3,0,null==e.parent.context.$implicit?null:e.parent.context.$implicit.name)})}function Zt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,2,"div",[["class","job-sector"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,1,"a",[["class","loading-placeholder"],["href","#"]],null,null,null,null,null)),(t()(),h["\u0275ted"](-1,null,["\xa0"]))],null,null)}function Jt(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,3,"div",[["class","wrapper-job-sector col-sm-6 col-lg-4"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,1,null,Yt)),h["\u0275did"](2,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),h["\u0275and"](0,[["loadingBar",2]],null,0,null,Zt))],function(t,e){t(e,2,0,!e.component.loading,h["\u0275nov"](e,3))},null)}function Kt(t){return h["\u0275vid"](2,[h["\u0275pid"](0,Ht,[Nt.a]),(t()(),h["\u0275eld"](1,0,null,null,13,"kemnaker
1-card",[],null,null,null,Ut.b,Ut.a)),h["\u0275did"](2,49152,null,0,Gt.a,[],null,null),(t()(),h["\u0275eld"](3,0,null,3,11,"kemnaker-card-content",[],null,null,null,qt.b,qt.a)),h["\u0275did"](4,49152,null,0,$t.a,[],null,null),(t()(),h["\u0275eld"](5,0,null,0,9,"div",[["class","container-job-sectors"]],null,null,null,null,null)),(t()(),h["\u0275eld"](6,0,null,null,8,"div",[["class","row row-job-sectors"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,1,null,Jt)),h["\u0275did"](8,278528,null,0,Q.NgForOf,[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),h["\u0275eld"](9,0,null,null,5,"div",[["class","wrapper-job-sector col-sm-6 col-lg-4"]],null,null,null,null,null)),(t()(),h["\u0275eld"](10,0,null,null,4,"a",[["target","_blank"]],[[8,"href",4]],null,null,null,null)),h["\u0275ppd"](11,1),(t()(),h["\u0275eld"](12,0,null,null,2,"div",[["class","job-sector all-sector"]],null,null,null,null,null)),(t()(),h["\u0275ted"](-1,null,["Lihat Sektor Pekerjaan Lainnya "])),(t()(),h["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-chevron-right"]],null,null,null,null,null))],function(t,e){t(e,8,0,e.component.jobSectors)},function(t,e){var n=e.component;t(e,10,0,h["\u0275inlineInterpolate"](2,"",h["\u0275unv"](e,10,0,t(e,11,0,h["\u0275nov"](e,0),"ninja_app_url")),"vacancies?type=",n.ninjaVacancyType.INDUSTRIAL,""))})}var Qt=function(){},te=h["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%] .sponsors-column[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center}[_nghost-%COMP%] .sponsors-column[_ngcontent-%COMP%] .sponsor-image-wrapper[_ngcontent-%COMP%]{padding:10px;flex:1 1 15%;max-width:15%}@media screen and (max-width:767px){[_nghost-%COMP%] .sponsors-column[_ngcontent-%COMP%]{flex-direction:column}[_nghost-%COMP%] .sponsors-column[_ngcontent-%COMP%] .sponsor-image-wrapper[_ngcontent-%COMP%]{flex:1 1 60%;max-width:60%;padding:30px 10px}[_nghost-%COMP%] .sponsors-column[_ngcontent-%COMP%] .sponsor-image-wrapper[_ngcontent-%COMP%] .sponsor-image[_ngcontent-%COMP%]{height:50px}[_nghost-%COMP%] .sponsors-column[_ngcontent-%COMP%] .sponsor-image-wrapper[_ngcontent-%COMP%] .sponsor-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{-o-object-fit:contain;object-fit:contain}}"]],data:{}});function ee(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,4,"div",[["class","sponsor-image-wrapper"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,3,"div",[["class","sponsor-image"]],null,null,null,null,null)),(t()(),h["\u0275eld"](2,0,null,null,2,"a",[["target","_blank"]],[[8,"href",4]],null,null,null,null)),h["\u0275ppd"](3,1),(t()(),h["\u0275eld"](4,0,null,null,0,"img",[["class","contain"]],[[8,"src",4],[8,"alt",0]],null,null,null,null))],null,function(t,e){t(e,2,0,h["\u0275inlineInterpolate"](2,"",h["\u0275unv"](e,2,0,t(e,3,0,h["\u0275nov"](e.parent,0),"ninja_app_url")),"companies/",e.context.$implicit.company.id.toString(),"")),t(e,4,0,e.context.$implicit.logo,null==e.context.$implicit?null:e.context.$implicit.company.name)})}function ne(t){return h["\u0275vid"](2,[h["\u0275pid"](0,Ht,[Nt.a]),(t()(),h["\u0275eld"](1,0,null,null,2,"div",[["class","sponsors-column"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,1,null,ee)),h["\u0275did"](3,278528,null,0,Q.NgForOf,[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,3,0,e.component.highlightedCompanies)},null)}var ie=function(t){this.store=t,this.limitEachRow=3,this.jobSectorLoading$=this.store.getJobSectorLoading(),this.jobSectors$=this.store.getJobSectors(),this.highlightedCompanyLoading$=this.store.getHighlightedCompanyLoading(),this.highlightedCompanies$=this.store.getHighlightedCompanies()},re=h["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%] .jobs-functions[_ngcontent-%COMP%]{background:url(/assets/images/section-background-1.png) 0 0/100% no-repeat #fff;padding:50px 0;margin-top:100px}@media (max-width:991.98px){[_nghost-%COMP%] .jobs-functions[_ngcontent-%COMP%]{background:0 0;margin-top:0;padding:20px 0}}"]],data:{}});function oe(t){return h["\u0275vid"](2,[(t()(),h["\u0275eld"](0,0,null,null,23,"section",[["class","jobs-functions"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,22,"div",[["class","container"]],null,null,null,null,null)),(t()(),h["\u0275eld"](2,0,null,null,21,"div",[["class","row align-items-center"]],null,null,null,null,null)),(t()(),h["\u0275eld"](3,0,null,null,11,"kemnaker
1-page-title-wrapper",[["class","col-12"]],null,null,null,Et.b,Et.a)),h["\u0275did"](4,49152,null,0,Lt.a,[],null,null),(t()(),h["\u0275eld"](5,0,null,0,4,"kemnaker-page-title",[],null,null,null,Bt.b,Bt.a)),h["\u0275did"](6,49152,null,0,Dt.a,[],null,null),(t()(),h["\u0275ted"](-1,0,[" Temukan Pekerjaan "])),(t()(),h["\u0275eld"](8,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),h["\u0275ted"](-1,0,[" Favoritmu dengan mudah "])),(t()(),h["\u0275eld"](10,0,null,0,4,"kemnaker-page-title-description",[],null,null,null,Ft.b,Ft.a)),h["\u0275did"](11,49152,null,0,Vt.a,[],null,null),(t()(),h["\u0275ted"](-1,0,[" Cari lowongan kerja berkualitas yang sesuai "])),(t()(),h["\u0275eld"](13,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),h["\u0275ted"](-1,0,[" dengan keahlian mu. "])),(t()(),h["\u0275eld"](15,0,null,null,4,"div",[["class","col-12 mt-2 mt-sm-4"]],null,null,null,null,null)),(t()(),h["\u0275eld"](16,0,null,null,3,"kemnaker-job-sector-catalog-component",[],null,null,null,Kt,Wt)),h["\u0275did"](17,49152,null,0,Xt,[],{limitEachRow:[0,"limitEachRow"],jobSectors:[1,"jobSectors"],loading:[2,"loading"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275eld"](20,0,null,null,3,"div",[["class","col-12 mt-4"]],null,null,null,null,null)),(t()(),h["\u0275eld"](21,0,null,null,2,"kemnaker-highlighted-companies-component",[],null,
1null,null,ne,te)),h["\u0275did"](22,49152,null,0,Qt,[],{highlightedCompanies:[0,"highlightedCompanies"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef])],function(t,e){var n=e.component;t(e,17,0,n.limitEachRow,h["\u0275unv"](e,17,1,h["\u0275nov"](e,18).transform(n.jobSectors$)),h["\u0275unv"](e,17,2,h["\u0275nov"](e,19).transform(n.jobSectorLoading$))),t(e,22,0,h["\u0275unv"](e,22,0,h["\u0275nov"](e,23).transform(n.highlightedCompanies$)))},null)}var se=n("7eKx"),ae=h["\u0275crt"]({encapsulation:2,styles:[],data:{}});function le(t){return h["\u0275vid"](2,[h["\u0275ncd"](null,0)],null,null)}var he=n("+m5J"),ce=n("/ELC"),pe=n("1mrr"),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),Object.defineProperty(e.prototype,"acceptedProgress",{get:function(){return this.accepted/this.capacity*100},enumerable:!0,configurable:!0}),e}(pe.b),fe=function(){function t(t){this.store=t,this.loading$=this.store.getTrainingLoading(),this.availableTrainings$=this.store.getTrainings()}return Object.defineProperty(t.prototype,"skeleton",{get:function(){return new Array(6)},enumerable:!0,configurable:!0}),t}(),de=h["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%] .trainings-section[_ngcontent-%COMP%] kemnaker-card[_ngcontent-%COMP%]{margin-bottom:30px}@media (max-width:767.98px){[_nghost-%COMP%] .trainings-section[_ngcontent-%COMP%] kemnaker-card[_ngcontent-%COMP%]{margin-bottom:10px}}[_nghost-%COMP%] .trainings-section[_ngcontent-%COMP%] kemnaker-card[_ngcontent-%COMP%] kemnaker-card-thumbnail[_ngcontent-%COMP%]{height:105px;position:relative}[_nghost-%COMP%] .trainings-section[_ngcontent-%COMP%] kemnaker-card[_ngcontent-%COMP%] kemnaker-card-thumbnail[_ngcontent-%COMP%] .training-vocation[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;padding:4px 20px;background:rgba(0,0,0,.7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .trainings-section[_ngcontent-%COMP%] kemnaker-card[_ngcontent-%COMP%] kemnaker-card-thumbnail[_ngcontent-%COMP%] .training-vocation[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;font-size:.8rem}[_nghost-%COMP%] .trainings-section[_ngcontent-%COMP%] kemnaker-card[_ngcontent-%COMP%] kemnaker-card-content[_ngcontent-%COMP%]{padding:20px}[_nghost-%COMP%] .trainings-section[_ngcontent-%COMP%] kemnaker-card[_ngcontent-%COMP%] kemnaker-card-content[_ngcontent-%COMP%] .training-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .trainings-section[_ngcontent-%COMP%] kemnaker-card[_ngcontent-%COMP%] kemnaker-card-content[_ngcontent-%COMP%] .training-info[_ngcontent-%COMP%]{color:#8f8f93}"]],data:{}});function ge(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,5,null,null,null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,4,"a",[["target","_blank"]],[[8,"href",4]],null,null,null,null)),h["\u0275ppd"](2,1),(t()(),h["\u0275eld"](3,0,null,null,2,"span",[],null,null,null,null,null)),(t()(),h["\u0275ted"](4,null,["",""])),h["\u0275ppd"](5,1)],null,function(t,e){t(e,1,0,h["\u0275inlineInterpolate"](2,"",h["\u0275unv"](e,1,0,t(e,2,0,h["\u0275nov"](e.parent.parent.parent.parent,0),"pelatihan_app_url")),"programs?vocationals=",null==e.parent.parent.context.$implicit.subVocational.vocational?null:e.parent.parent.context.$implicit.subVocational.vocational.id,"")),t(e,4,0,h["\u0275unv"](e,4,0,t(e,5,0,h["\u0275nov"](e.parent.parent.parent.parent,1),e.parent.parent.context.$implicit.subVocational.name)))})}function ve(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,5,null,null,null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,4,"a",[["target","_blank"]],[[8,"href",4]],null,null,null,null)),h["\u0275ppd"](2,1),(t()(),h["\u0275eld"](3,0,null,null,2,"span",[],null,null,null,null,null)),(t()(),h["\u0275ted"](4,null,["",""])),h["\u0275ppd"](5,1)],null,function(t,e){t(e,1,0,h["\u0275inlineInterpolate"](2,"",h["\u0275unv"](e,1,0,t(e,2,0,h["\u0275nov"](e.parent.parent.parent.parent,0),"pelatihan_app_url")),"programs?vocationals=",e.parent.parent.context.$implicit.vocationalId,"")),t(e,4,0,h["\u0275unv"](e,4,0,t(e,5,0,h["\u0275nov"](e.parent.parent.parent.parent,1),e.parent.parent.context.$implicit.vocational.name)))})}function ye(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,5,null,
1null,null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,4,"div",[["class","training-vocation"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,1,null,ge)),h["\u0275did"](3,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),h["\u0275and"](16777216,null,null,1,null,ve)),h["\u0275did"](5,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,3,0,e.parent.context.$implicit.subVocational&&e.parent.context.$implicit.vocational),t(e,5,0,!e.parent.context.$implicit.subVocational&&e.parent.context.$implicit.vocational)},null)}function me(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,20,null,null,null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,19,"div",[["class","col-12 col-md-4"]],null,null,null,null,null)),(t()(),h["\u0275eld"](2,0,null,null,18,"kemnaker-card",[],null,null,null,Ut.b,Ut.a)),h["\u0275did"](3,49152,null,0,Gt.a,[],null,null),(t()(),h["\u0275eld"](4,0,null,1,5,"kemnaker-card-thumbnail",[],null,null,null,le,ae)),h["\u0275did"](5,49152,null,0,se.a,[],null,null),(t()(),h["\u0275eld"](6,0,null,0,1,"kemnaker-image-async",[["class","cover"]],null,null,null,he.b,he.a)),h["\u0275did"](7,573440,null,0,ce.a,[],{path:[0,"path"],class:[1,"class"]},null),(t()(),h["\u0275and"](16777216,null,0,1,null,ye)),h["\u0275did"](9,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),h["\u0275eld"](10,0,null,3,10,"kemnaker-card-content",[],null,
1null,null,qt.b,qt.a)),h["\u0275did"](11,49152,null,0,$t.a,[],null,null),(t()(),h["\u0275eld"](12,0,null,0,6,"div",[["class","training-header"]],null,null,null,null,null)),(t()(),h["\u0275eld"](13,0,null,null,5,"a",[["target","_blank"]],[[8,"href",4]],null,null,null,null)),h["\u0275ppd"](14,1),(t()(),h["\u0275eld"](15,0,null,null,3,"h5",[],[[8,"title",0]],null,null,null,null)),h["\u0275ppd"](16,1),(t()(),h["\u0275ted"](17,null,["",""])),h["\u0275ppd"](18,1),(t()(),h["\u0275eld"](19,0,null,0,1,"div",[["class","training-info mt-3"]],null,null,null,null,null)),(t()(),h["\u0275ted"](20,null,[" "," penyelenggara pelatihan "]))],function(t,e){t(e,7,0,null==e.context.$implicit?null:e.context.$implicit.coverImage,"cover"),t(e,9,0,e.context.$implicit.vocational||e.context.$implicit.subVocational)},function(t,e){t(e,13,0,h["\u0275inlineInterpolate"](2,"",h["\u0275unv"](e,13,0,t(e,14,0,h["\u0275nov"](e.parent.parent,0),"pelatihan_app_url")),"programs/",e.context.$implicit.id.toString(),"/detail")),t(e,15,0,h["\u0275inlineInterpolate"](1,"",h["\u0275unv"](e,15,0,t(e,16,0,h["\u0275nov"](e.parent.parent,2),e.context.$implicit.title)),"")),t(e,17,0,h["\u0275unv"](e,17,0,t(e,18,0,h["\u0275nov"](e.parent.parent,2),e.context.$implicit.title))),t(e,20,0,null==e.context.$implicit?null:e.context.$implicit.totalOpenInstitutions)})}function xe(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,3,null,null,null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,2,null,me)),h["\u0275did"](2,278528,null,0,Q.NgForOf,[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275and"](0,null,null,0))],function(t,e){var n=e.component;t(e,2,0,h["\u0275unv"](e,2,0,h["\u0275nov"](e,3).transform(n.availableTrainings$)))},null)}function be(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,7,"div",[["class","col-12 col-md-4 text-center"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,6,"a",[["href","#"]],null,null,null,null,null)),(t()(),h["\u0275eld"](2,0,null,null,5,"kemnaker-card",[],null,null,null,Ut.b,Ut.a)),h["\u0275did"](3,49152,null,0,Gt.a,[],null,null),(t()(),h["\u0275eld"](4,0,null,3,3,"kemnaker-card-content",[],null,
1null,null,qt.b,qt.a)),h["\u0275did"](5,49152,null,0,$t.a,[],null,null),(t()(),h["\u0275eld"](6,0,null,0,1,"ubud-loader-component",[],null,null,null,rt.b,rt.a)),h["\u0275did"](7,49152,null,0,ot.a,[],null,null)],null,null)}function _e(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,2,"div",[["class","row"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,1,null,be)),h["\u0275did"](2,278528,null,0,Q.NgForOf,[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.skeleton)},null)}function we(t){return h["\u0275vid"](2,[h["\u0275pid"](0,Ht,[Nt.a]),h["\u0275pid"](0,Q.UpperCasePipe,[]),h["\u0275pid"](0,Q.TitleCasePipe,[]),(t()(),h["\u0275eld"](3,0,null,null,23,"section",[["class","content trainings-section"]],null,null,null,null,null)),(t()(),h["\u0275eld"](4,0,null,null,22,"div",[["class","container"]],null,null,null,null,null)),(t()(),h["\u0275eld"](5,0,null,null,12,"div",[["class","row align-items-end"]],null,null,null,null,null)),(t()(),h["\u0275eld"](6,0,null,null,11,"kemnaker-page-title-wrapper",[["class","col-12"]],null,null,null,Et.b,Et.a)),h["\u0275did"](7,49152,null,0,Lt.a,[],null,null),(t()(),h["\u0275eld"](8,0,null,0,4,"kemnaker-page-title",[],null,null,null,Bt.b,Bt.a)),h["\u0275did"](9,49152,null,0,Dt.a,[],null,null),(t()(),h["\u0275ted"](-1,0,[" Tingkatkan Keahlianmu "])),(t()(),h["\u0275eld"](11,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),h["\u0275ted"](-1,0,[" Dengan Mengikuti Pelatihan "])),(t()(),h["\u0275eld"](13,0,null,0,4,"kemnaker-page-title-description",[],null,null,null,Ft.b,Ft.a)),h["\u0275did"](14,49152,null,0,Vt.a,[],null,null),(t()(),h["\u0275ted"](-1,0,[" Cari pelatihan - pelatihan yang kamu inginkan sesuai dengan. "])),(t()(),h["\u0275eld"](16,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),h["\u0275ted"](-1,0,[" Tingkatkan keterampilan kamu sekarang juga. "])),(t()(),h["\u0275eld"](18,0,null,null,4,"div",[["class","row mt-2 mt-md-4"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,2,null,xe)),h["\u0275did"](20,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275and"](0,[["isLoading",2]],null,0,null,_e)),(t()(),h["\u0275eld"](23,0,null,null,3,"div",[["class","row justify-content-center mt-4"]],null,null,null,null,null)),(t()(),h["\u0275eld"](24,0,null,null,2,"a",[["class","btn btn-md btn-primary"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),h["\u0275ppd"](25,1),(t()(),h["\u0275ted"](-1,null,[" Lihat lebih banyak "]))],function(t,e){var n=e.component;t(e,20,0,!h["\u0275unv"](e,20,0,h["\u0275nov"](e,21).transform(n.loading$)),h["\u0275nov"](e,22))},function(t,e){t(e,24,0,h["\u0275inlineInterpolate"](1,"",h["\u0275unv"](e,24,0,t(e,25,0,h["\u0275nov"](e,0),"pelatihan_app_url")),"programs"))})}var Ce=n("JByc"),Se=n("DA5a"),ke=n("ZuE4"),Me=n("/Bq5"),Ae=function(){function t(t,e,n){this.frontStore=t,this.rootStore=e,this.route=n,this.instagrams$=this.frontStore.getInstagramData(),this.youtubes$=this.frontStore.getYoutubeData(),this.loading$=this.frontStore.getSocialMediaLoading(),this.isHasSocialMedia$=this.frontStore.isHasSocialMedia(),this.siteSocialMediaContact$=this.rootStore.getSiteSocialMediaContact()}return t.prototype.ngOnInit=function(){this.page=this.route.snapshot.data.page},t}(),Oe=h["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function Pe(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,1,"ubud-loader-component",[],null,
1null,null,rt.b,rt.a)),h["\u0275did"](2,49152,null,0,ot.a,[],null,null)],null,null)}function Te(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,1,null,null,null,null,null,null,null)),(t()(),h["\u0275ted"](-1,null,[" Sosial Media tidak ditemukan "]))],null,null)}function je(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,7,"div",[["class","col-12 d-flex justify-content-center align-items-center"]],null,null,null,null,null)),(t()(),h["\u0275and"](16777216,null,null,2,null,Pe)),h["\u0275did"](2,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275and"](16777216,null,null,3,null,Te)),h["\u0275did"](5,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef])],function(t,e){var n=e.component;t(e,2,0,h["\u0275unv"](e,2,0,h["\u0275nov"](e,3).transform(n.loading$))),t(e,5,0,!h["\u0275unv"](e,5,0,h["\u0275nov"](e,6).transform(n.loading$))&&!h["\u0275unv"](e,5,0,h["\u0275nov"](e,7).transform(n.isHasSocialMedia$)))},null)}function Re(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,3,"kemnaker-social-media-list",[["class","col-12"]],null,null,null,Ce.b,Ce.a)),h["\u0275did"](2,49152,null,0,Se.a,[],{instagrams:[0,"instagrams"],youtubes:[1,"youtubes"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef])],function(t,e){var n=e.component;t(e,2,0,h["\u0275unv"](e,2,0,h["\u0275nov"](e,3).transform(n.instagrams$)),h["\u0275unv"](e,2,1,h["\u0275nov"](e,4).transform(n.youtubes$)))},null)}function Ie(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,18,"section",[["class","social"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,17,"div",[["class","container"]],null,null,null,null,null)),(t()(),h["\u0275eld"](2,0,null,null,16,"div",[["class","row align-items-center"]],null,null,null,null,null)),(t()(),h["\u0275eld"](3,0,null,null,2,"kemnaker-social-media-header",[["class","col-12 col-lg-6"]],null,null,null,ke.b,ke.a)),h["\u0275did"](4,49152,null,0,Me.a,[],{description:[0,"description"],siteSocialMediaContact:[1,"siteSocialMediaContact"],title:[2,"title"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275eld"](6,0,null,null,4,"div",[["class","col-12 col-lg-6 d-flex justify-content-lg-end justify-content-center order-3 order-lg-0"]],null,null,null,null,null)),(t()(),h["\u0275eld"](7,0,null,null,3,"a",[["routerLink","/social-media"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==h["\u0275nov"](t,8).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),h["\u0275did"](8,671744,null,0,lt.p,[lt.o,lt.a,Q.LocationStrategy],{routerLink:[0,"routerLink"]},null),(t()(),h["\u0275eld"](9,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,null,null,null,null)),(t()(),h["\u0275ted"](-1,null,["Lihat lebih banyak"])),(t()(),h["\u0275and"](16777216,null,null,3,null,je)),h["\u0275did"](12,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),(t()(),h["\u0275and"](16777216,null,null,3,null,Re)),h["\u0275did"](16,16384,null,0,Q.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef]),h["\u0275pid"](131072,Q.AsyncPipe,[h.ChangeDetectorRef])],function(t,e){var n=e.component;t(e,4,0,null==n.page?null:null==n.page.content?null:n.page.content.socialMediaDescription,h["\u0275unv"](e,4,1,h["\u0275nov"](e,5).transform(n.siteSocialMediaContact$)),null==n.page?null:null==n.page.content?null:n.page.content.socialMediaTitle),t(e,8,0,"/social-media"),t(e,12,0,!(h["\u0275unv"](e,12,0,h["\u0275nov"](e,13).transform(n.isHasSocialMedia$))&&!h["\u0275unv"](e,12,0,h["\u0275nov"](e,14).transform(n.loading$)))),t(e,16,0,h["\u0275unv"](e,16,0,h["\u0275nov"](e,17).transform(n.isHasSocialMedia$))&&!h["\u0275unv"](e,16,0,h["\u0275nov"](e,18).transform(n.loading$)))},function(t,e){t(e,7,0,h["\u0275nov"](e,8).target,h["\u0275nov"](e,8).href)})}var ze=function(){function t(){}return t.prototype.ngAfterViewInit=function(){var t=document.createElement("script");t.type="text/javascript",t.src="https://widget.komdigi.go.id/gpr-widget-kominfo.min.js",document.getElementsByTagName("head")[0].appendChild(t)},t}(),Ee=h["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%] section.social[_ngcontent-%COMP%]{padding:16px 0}[_nghost-%COMP%] section.social[_ngcontent-%COMP%] .gpr-content[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] section.social[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px;line-height:1.2;margin:0 0 12px}[_nghost-%COMP%] #gpr-kominfo-widget-container[_ngcontent-%COMP%]{margin:0 auto;width:100%;max-width:100%!important;position:relative;background-color:#23277b!important}[_nghost-%COMP%] #gpr-kominfo-widget-container[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:1}[_nghost-%COMP%] #gpr-kominfo-widget-container[_ngcontent-%COMP%] #gpr-kominfo-widget-header{height:110px!important;background-color:#23277b!important;background-image:none!important;border:none!important;margin:0!important;padding:0!important}[_nghost-%COMP%] #gpr-kominfo-widget-container[_ngcontent-%COMP%] #gpr-kominfo-widget-body{padding:0!important;margin:0 5px!important}[_nghost-%COMP%] #gpr-kominfo-widget-container[_ngcontent-%COMP%] #gpr-kominfo-widget-footer{height:55px!important;background-color:#23277b!important;background-image:none!important;margin:0!important}[_nghost-%COMP%] #gpr-kominfo-widget-container[_ngcontent-%COMP%] #gpr-kominfo-widget-list{max-height:200px;overflow-y:auto}[_nghost-%COMP%] #gpr-kominfo-widget-container[_ngcontent-%COMP%] li.gpr-kominfo-widget-list-item{border-bottom:1px solid #e4e7ea!important}"]],data:{}});function Le(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,6,"section",[["class","social"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,5,"div",[["class","container"]],null,null,null,null,null)),(t()(),h["\u0275eld"](2,0,null,null,4,"div",[["class","row"]],null,null,null,null,null)),(t()(),h["\u0275eld"](3,0,null,null,3,"div",[["class","col-12 gpr-content"]],null,null,null,null,null)),(t()(),h["\u0275eld"](4,0,null,null,1,"h1",[],null,
1null,null,null,null)),(t()(),h["\u0275ted"](-1,null,["Government Public Relations (GPR)"])),(t()(),h["\u0275eld"](6,0,null,null,0,"div",[["id","gpr-kominfo-widget-container"]],null,null,null,null,null))],null,null)}var Be=n("IkG5"),De=n("fQLH"),Fe=n("mhnT"),Ve=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return Ve({},t,{news:Ve({},t.news,{loading:!0})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),He=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return He({},t,{socialMedia:He({},t.socialMedia,{loading:!0})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),Ge=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},qe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return Ge({},t,{jobSector:Ge({},t.jobSector,{loading:!0})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),$e=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Xe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return $e({},t,{training:$e({},t.training,{loading:!0})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),We=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return We({},t,{projectCategory:We({},t.projectCategory,{loading:!0})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),Ze=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Je=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return Ze({},t,{highlightedCompany:Ze({},t.highlightedCompany,{loading:!0})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),Ke=function(){function t(t,e,n,i,r,o){var s=this;this.frontStore=t,this.router=e,this.route=n,this.util=i,this.window=r,this.destroyed$=new De.a,this.router.events.pipe(Object(Fe.a)(this.destroyed$.asObservable())).subscribe(function(t){t instanceof lt.e&&Object(Q.isPlatformBrowser)(o)&&s.window.scrollTo(0,0)})}return t.prototype.ngOnInit=function(){this.page=this.route.snapshot.data.page,this.util.updatePageMeta([this.route.snapshot.data.title],this.route.snapshot.data.meta),this.frontStore.dispatch(new Ne),this.frontStore.dispatch(new Ue),this.frontStore.dispatch(new qe),this.frontStore.dispatch(new Xe),this.frontStore.dispatch(new Je),this.frontStore.dispatch(new Ye)},t.prototype.ngOnDestroy=function(){this.destroyed$.next(),this.destroyed$.complete()},t}(),Qe=n("7S6g"),tn=h["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%] .siaker[_ngcontent-%COMP%]{padding:0!important;background:linear-gradient(79.33deg,#09b8a7 0,#04756b 100%)}[_nghost-%COMP%] .siaker[_ngcontent-%COMP%] .siaker-wrapper[_ngcontent-%COMP%]{position:relative;background:url(/assets/images/siaker-pattern.png) 100% 60% no-repeat;background-size:70%,100%;overflow:hidden}@media (max-width:567px){[_nghost-%COMP%] .siaker[_ngcontent-%COMP%] .siaker-wrapper[_ngcontent-%COMP%]{background-position:-30% bottom;background-size:150%,100%}}[_nghost-%COMP%] .siaker[_ngcontent-%COMP%] .siaker-wrapper[_ngcontent-%COMP%] .banner-content[_ngcontent-%COMP%]{width:53.78%}[_nghost-%COMP%] .siaker[_ngcontent-%COMP%] .siaker-wrapper[_ngcontent-%COMP%] .banner-info-content[_ngcontent-%COMP%]{margin:16px -4px -4px}[_nghost-%COMP%] .siaker[_ngcontent-%COMP%] .siaker-wrapper[_ngcontent-%COMP%] .banner-info-badge[_ngcontent-%COMP%]{padding:7px 12px;border:1px solid rgba(255,255,255,.4);border-radius:64px;color:#fff;font-weight:500;margin:4px}[_nghost-%COMP%] .siaker[_ngcontent-%COMP%] .banner-overlay[_ngcontent-%COMP%]{width:90%;position:absolute;bottom:-60px;right:-30%;-o-object-fit:contain;object-fit:contain}@media (max-width:992px){[_nghost-%COMP%] .siaker[_ngcontent-%COMP%] .siaker-wrapper[_ngcontent-%COMP%]{padding-bottom:0!important}[_nghost-%COMP%] .siaker[_ngcontent-%COMP%] .siaker-wrapper[_ngcontent-%COMP%] .banner-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .siaker[_ngcontent-%COMP%] .banner-overlay[_ngcontent-%COMP%]{width:150%;position:relative;max-height:600px;bottom:-40px;right:0}}@media (max-width:480px){[_nghost-%COMP%] .siaker[_ngcontent-%COMP%] .banner-overlay[_ngcontent-%COMP%]{max-height:350px}}"]],data:{}});function en(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,7,"div",[["class","container-med"]],null,null,null,null,null)),(t()(),h["\u0275eld"](1,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),h["\u0275eld"](2,0,null,null,2,"div",[["class","col-12 col-md-8"]],null,null,null,null,null)),(t()(),h["\u0275eld"](3,0,null,null,1,"kemnaker
1-news-container",[],null,null,null,xt,dt)),h["\u0275did"](4,114688,null,0,ft,[ut,lt.a],null,null),(t()(),h["\u0275eld"](5,0,null,null,2,"div",[["class","col-12 col-md-4"]],null,null,null,null,null)),(t()(),h["\u0275eld"](6,0,null,null,1,"kemnaker-services-container",[],null,null,null,It,St)),h["\u0275did"](7,49152,null,0,Ct,[_t.a],null,null),(t()(),h["\u0275eld"](8,0,null,null,1,"kemnaker-jobs-container",[],null,null,null,oe,re)),h["\u0275did"](9,49152,null,0,ie,[ut],null,null),(t()(),h["\u0275eld"](10,0,null,null,1,"kemnaker-trainings-container",[],null,null,null,we,de)),h["\u0275did"](11,49152,null,0,fe,[ut],null,null),(t()(),h["\u0275eld"](12,0,null,null,1,"kemnaker-social-media-container",[],null,null,null,Ie,Oe)),h["\u0275did"](13,114688,null,0,Ae,[ut,_t.a,lt.a],null,null),(t()(),h["\u0275eld"](14,0,null,null,1,"kemnaker-kominfo-gpr-container",[],null,null,null,Le,Ee)),h["\u0275did"](15,4243456,null,0,ze,[],null,null)],function(t,e){t(e,4,0),t(e,13,0)},null)}var nn=h["\u0275ccf"]("kemnaker-index-page",Ke,function(t){return h["\u0275vid"](0,[(t()(),h["\u0275eld"](0,0,null,null,1,"kemnaker
1-index-page",[],null,null,null,en,tn)),h["\u0275did"](1,245760,null,0,Ke,[ut,lt.o,lt.a,Be.a,Qe.a,h.PLATFORM_ID],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),rn=n("zqAf"),on=function(){function t(t){this.zone=t}return Object.defineProperty(t.prototype,"StockPanel",{get:function(){return AmCharts.StockPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"StockGraph",{get:function(){return AmCharts.StockGraph},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"StockEvent",{get:function(){return AmCharts.StockEvent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"StockLegend",{get:function(){return AmCharts.StockLegend},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseHref",{get:function(){return AmCharts.baseHref},set:function(t){AmCharts.baseHref=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useUTC",{get:function(){return AmCharts.useUTC},set:function(t){AmCharts.useUTC=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dayNames",{get:function(){return AmCharts.dayNames},set:function(t){AmCharts.dayNames=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"monthNames",{get:function(){return AmCharts.monthNames},set:function(t){AmCharts.monthNames=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shortDayNames",{get:function(){return AmCharts.shortDayNames},set:function(t){AmCharts.shortDayNames=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shortMonthNames",{get:function(){return AmCharts.shortMonthNames},set:function(t){AmCharts.shortMonthNames=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return AmCharts.theme},set:function(t){AmCharts.theme=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processDelay",{get:function(){return AmCharts.processDelay},set:function(t){AmCharts.processDelay=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"charts",{get:function(){return AmCharts.charts},enumerable:!0,configurable:!0}),t.prototype.addInitHandler=function(t,e){AmCharts.addInitHandler(t,e)},t.prototype.addPrefix=function(t,e,n,i){return AmCharts.addPrefix(t,e,n,i)},t.prototype.clear=function(){AmCharts.clear()},t.prototype.formatDate=function(t,e){return AmCharts.formatDate(t,e)},t.prototype.formatNumber=function(t,e,n){return AmCharts.formatNumber(t,e,n)},t.prototype.stringToDate=function(t,e){return AmCharts.stringToDate(t,e)},t.prototype.makeChart=function(t,e,n){return this.zone.runOutsideAngular(function(){return AmCharts.makeChart(t,e,n)})},t.prototype.addListener=function(t,e,n){var i=this,r=function(t){i.zone.run(function(){n(t)})};return this.zone.runOutsideAngular(function(){t.addListener(e,r)}),function(){i.zone.runOutsideAngular(function(){t.removeListener(t,e,r)})}},t.prototype.updateChart=function(t,e){this.zone.runOutsideAngular(function(){e(),t.validateNow(!0)})},t.prototype.destroyChart=function(t){this.zone.runOutsideAngular(function(){t.clear()})},t}(),sn=function(){},an=n("IfiR"),ln=n("EyCS"),hn=n("vLwX"),cn=n("kVv0"),pn=n("eXL1"),un=n("C7Lb"),fn=(n("fESl"),function(){function t(t){this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return t.prototype.schedule=function(t,e){var n=this;this.scheduled.push({instance:t,method:e}),this.subscription||this.ngZone.runOutsideAngular(function(){n.subscription=Object(f.from)(n.resolvedPromise).subscribe(n.flush)})},t.prototype.isScheduled=function(t){return Boolean(this.scheduled.find(function(e){return e.instance===t}))},t.prototype.cancel=function(t){for(var e=this.scheduled,n=e.length,i=0;i<n;i++)if(e[i].instance===t)return e.splice(i,1),void(e.length||this.unsubscribe())},t.prototype.ngOnDestroy=function(){this.unsubscribe()},t.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},t.prototype.flush=function(){this.scheduled.forEach(function(t){t.method.call(t.instance)}),this.scheduled=[],this.unsubscribe()},t}()),dn=function(){};function gn(t){return"string"==typeof t}var vn=/\{(\d+)}?\}/g,yn=function(t){var e=t.name,n=t.message;if(!e||!n)throw new Error("{ name: string, message: string } object is required!");this.name=e,this.message=n};yn.prototype.formatMessage=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=mn(t),i=this.message.replace(vn,function(t,e){return n[parseInt(e,10)]});return this.name+": "+i},yn.prototype.error=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new Error(this.formatMessage(t))};var mn=function(t){return t.reduce(function(t,e){return t.concat(e)},[])},xn=function(t){return Object.keys(t).reduce(function(e,n){return e[n]=new yn({name:n,message:t[n]}),e},{})}({NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."}),bn={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"}
1,decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"\u20ac","symbol-alt-narrow":"\u20ac"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"}
1,hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function _n(t){return gn(t)?wn(t):t}function wn(t){if(bn[t])return bn[t];if(bn.supplemental.likelySubtags){var e=t.split("-"),n=e[0],i=e.slice(1),r=function(t,e){for(var n=bn.supplemental.likelySubtags,i=0;i<e.length;i++){var r=n[t+"-"+e[i]];if(r)return r}if(n[t])return n[t]}(n,i),o=r?function(t,e){var n=t.split("-"),i=n[0],r=n[1],o=n[2];return bn[t]||-1!==e.indexOf(o)&&bn[i+"-"+o]||-1!==e.indexOf(r)&&bn[i+"-"+r]||bn[i]}(r,i):null;if(o)return o}throw xn.NoLocale.error(t)}var Cn="decimal",Sn="currency",kn="accounting",Mn="percent",An="scientific",On="$",Pn="%",Tn="n",jn=";",Rn=",",In=".",zn="",En="en";function Ln(t){if(t.territory)return t.territory;var e,n=t.identity;return e=n&&n.territory?n.territory:function(t,e){var n=bn.supplemental.likelySubtags,i=t.split("-");if(n){var r=n[t]||n[i[0]];r&&(i=r.split("-"))}if(e)for(var o=i.length-1;o>=1;o--){var s=i[o];s!==e.variant&&s!==e.script||i.splice(o,1)}var a=i.length;if(a>1)return i[a-1].toUpperCase()}(t.name,n),t.territory=e,e}function Bn(t,e){var n,i=e.type,r=e.nameType,o=e.standAlone,s=e.lower,a=_n(t),l=(s?"lower-":zn)+r,h=a.calendar[i][o?"stand-alone":"format"],c=h[l];return!c&&s&&(c=h[l]=(n=h[r],Array.isArray(n)?function(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].toLowerCase());return e}(n):function(t){var e={};for(var n in t)e[n]=t[n].toLowerCase();return e}(n))),c}function Dn(t){var e=t.split("-"),n=parseInt(e[0],10),i=parseInt(e[1],10)-1,r=parseInt(e[2],10);return new Date(n,i,r)}var Fn=xn.NoCurrency,Vn=xn.NoCurrencyDisplay,Nn=xn.NoSupplementalCurrency,Hn=xn.NoCurrencyRegion,Un=xn.NoValidCurrency,Gn=2,qn="symbol",$n="XXX",Xn={"001":"USD",150:"EUR"};function Wn(t,e,n){var i=_n(t).numbers.currencies;if(i){var r=i[e];if(r)return r;if(n)throw Vn.error()}else if(n)throw Fn.error()}function Yn(t,e){return e.length-t.length}function Zn(t,e){var n=_n(t),i=n.numbers;if(!i.localeCurrency){var r=function(t,e){if(void 0===e&&(e=!0),Xn[t])return Xn[t];var n=bn.supplemental.currencyData;if(n){var i=n.region[t];if(i)return function(t){for(var e,n,i,r,o=0;o<t.length;o++){var s=t[o],a=Object.keys(s)[0],l=s[a];if(a!==$n&&"false"!==l._tender&&l._from)if(l._to){if(!i){var h=Dn(l._from),c=Dn(l._to);(!n||n.to<c||n.from<h)&&(e=a,n={from:h,to:c})}}else{var p=Dn(l._from);(!r||r<p)&&(i=a,r=p)}}return i||e}(i);if(e)throw Hn.error(t)}else if(e)throw Nn.error()}(Ln(n),e);if(!r&&e)throw Un.error(n.name);i.localeCurrency=r}return i.localeCurrency}var Jn=["sun","mon","tue","wed","thu","fri","sat"],Kn="001",Qn=xn.NoWeekData,ti=xn.NoFirstDay;function ei(t){var e=_n(t);if(!isNaN(e.firstDay))return e.firstDay;var n=bn.supplemental.weekData;if(!n)throw Qn.error();var i=n.firstDay[Ln(e)]||n.firstDay[Kn];if(!i)throw ti.error();return e.firstDay=Jn.indexOf(i),e.firstDay}function ni(t,e){return void 0===e&&(e={}),e.currency||(e.currency=Zn(t,!0)),function(t,e){var n=e.value,i=e.currency,r=e.currencyDisplay;if(void 0===r&&(r=qn),"code"===r)return i;var o=Wn(t,i,!0);return r===qn?o["symbol-alt-narrow"]||o[qn]:void 0===typeof n||1!==n?o["displayName-count-other"]:o["displayName-count-one"]}(t,e)}function ii(t,e,n,i,r){var o=r.numbers.symbols,s=t.indexOf(o.decimal),a=i.groupSize.slice(),l=a.shift(),h=-1!==s?s:n+1,c=t.substring(e,h),p=t,u=c.length;if(u>=l){for(var f=u,d=[];f>-1;){var g=c.substring(f-l,f);g&&d.push(g),f-=l;var v=a.shift();if(0===(l=void 0!==v?v:l)){(g=c.substring(0,f))&&d.push(g);break}}c=d.reverse().join(o.group),p=t.substring(0,e)+c+t.substring(h)}return p}function ri(t){return t===Sn||t===kn}function oi(t,e,n){void 0===e&&(e=2),void 0===n&&(n=!1);var i=e-String(t).length,r=t;if(i>0){var o=new Array(i+1).join("0");r=n?t+o:o+t}return r}var si=20;function ai(t,e){var n=t,i=e||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+i:i)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-i:-i))).toFixed(Math.min(i,si))}var li=3,hi=0,ci=/0+$/;var pi="__??__",ui="#",fi="0",di=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,gi=/(\.(?:[0-9]*[1-9])?)0+$/g,vi=/\.$/,yi=/\,/g;function mi(t,e,n){return-1===t&&-1!==e?e:-1!==t&&-1===e?t:n?Math.min(t,e):Math.max(t,e)}var xi=/^(n|c|p|e|a)(\d*)$/i;function bi(t){return gn(t)?function(t){var e=xi.exec(t);if(e){var n={style:Cn},i=e[1].toLowerCase();return"c"===i?n.style=Sn:"a"===i?n.style=kn:"p"===i?n.style=Mn:"e"===i&&(n.style=An),e[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(e[2],10)),n}}(t):t}function _i(t,e,n){if(void 0===e&&(e=Tn),void 0===n&&(n=En),void 0===t||null===t)return zn;if(!isFinite(t))return String(t);var i=wn(n),r=bi(e);return r?function(t,e,n){var i=n.numbers.symbols,r=e.style,o=ri(r);if(r===An)return(void 0!==e.minimumFractionDigits?t.toExponential(e.minimumFractionDigits):t.toExponential()).replace(In,i.decimal);var s,a=t;o&&(e.value=a,s=ni(n,e)),r===Mn&&(a*=100,s=i.percentSign);var l=function(t){var e,n=t.minimumFractionDigits,i=t.maximumFractionDigits,r=t.style,o=ri(r);return o&&(e=function(e){var n=Gn,i=Gn,r=((bn.supplemental.currencyData||{}).fractions||{})[t.currency];return r&&r._digits&&(i=n=parseInt(r._digits,10)),{minimumFractionDigits:n,maximumFractionDigits:i}}()),void 0===n&&(n=o?e.minimumFractionDigits:0),void 0===i&&(i=r===Mn?Math.max(n,hi):o?Math.max(n,e.maximumFractionDigits):Math.max(n,li)),{minimumFractionDigits:n,maximumFractionDigits:i}}(e),h=l.minimumFractionDigits,c=(a=ai(a,l.maximumFractionDigits))<0,p=a.split(In),u=p[0],f=
1oi(p[1]?p[1].replace(ci,zn):zn,h,!0);c&&(u=u.substring(1)),e.minimumIntegerDigits&&(u=oi(u,e.minimumIntegerDigits));var d,g=!1!==e.useGrouping?ii(u,0,u.length,e,n):u;if(f&&(g+=i.decimal+f),o&&"name"===e.currencyDisplay)d=function(e,n){var i=e.numbers.currency,r=1!==t?i["unitPattern-count-other"]:i["unitPattern-count-one"];return t<0&&(r=r.replace(Tn,"-"+Tn)),r}(n);else{var v=e.patterns;d=c?v[1]||"-"+v[0]:v[0]}return d!==Tn||c?function(t,e,n){for(var i=zn,r=0,o=e.length;r<o;r++){var s=e.charAt(r);i+=s===Tn?t:s===On||s===Pn?n:s}return i}(g,d,s):g}(t,Object.assign({},i.numbers[r.style||Cn],r),i):function(t,e,n){var i={negative:t<0,number:Math.abs(t),format:e};return function(t){var e=t.number,n=t.format;if(n=n.split(jn),t.negative&&n[1])n=n[1],t.hasNegativeFormat=!0;else if(0===e){var i=n[2];n=i||n[0],i&&function(t){return-1===t.indexOf(ui)&&-1===t.indexOf(fi)}(i)&&(t.constant=i)}else n=n[0];t.format=n}(i),i.constant?i.constant:(function(t){var e=t.format;if(e.indexOf("'")>-1||e.indexOf('"')>-1||e.indexOf("\\")>-1){var n=t.literals=[];t.format=e.replace(di,function(t){var e=t.charAt(0).replace("\\",zn),i=t.slice(1).replace(e,zn);return n.push(i),pi})}}(i),function(t,e){var n=t.format;-1!==n.indexOf(Pn)&&(t.style=Mn,t.symbol=e.numbers.symbols.percentSign,t.number*=100),-1!==n.indexOf(On)&&(t.style=Sn,t.symbol=ni(e))}(i,n),function(t){t.hasGroup=t.format.indexOf(Rn)>-1,t.hasGroup&&(t.format=t.format.replace(yi,zn))}(i),function(t){var e,n,i,r=t.number,o=t.format,s=o.indexOf(In);if(-1!==s){var a=o.lastIndexOf(fi)-s,l=o.lastIndexOf(ui)-s,h=a>-1,c=l>-1,p=r.toString().split("e"),u=(p=(p=p[1]?ai(r,Math.abs(p[1])):p[0]).split(In)[1]||zn).length,f=-1;h||c?h&&a>l?u=a:l>a&&(c&&u>l?u=l:h&&u<a&&(u=a),f=h?a:0):(t.format=o.substring(0,s)+o.substring(s+1),s=-1,u=0),u>-1&&(r=ai(r,u),f>-1&&(e=r,i=0===(n=f)?gi:new RegExp("(\\.[0-9]{"+n+"}[1-9]*)0+$","g"),r=e.replace(i,"$1").replace(vi,zn)))}else r=ai(r);t.negative&&-1*r>=0&&(t.negative=!1),t.number=r,t.decimalIndex=s}(i),function(t){var e=t.format,n=e.indexOf(ui),i=e.indexOf(fi),r=mi(n,i,!0),o=mi(n=e.lastIndexOf(ui),i=e.lastIndexOf(fi));r===e.length&&(o=r),t.start=r,t.end=o,t.lastZeroIndex=i}(i),function(t,e){var n=t.number;return-1!==t.start&&(n=function(t,e){var n=t;if(e)for(var i=e.length,r=0;r<i;r++)n=n.replace(pi,e[r]);return n}(n=function(t,e,n){var i=t;if(e===Sn||e===Mn){i=zn;for(var r=0,o=t.length;r<o;r++){var s=t.charAt(r);i+=s===On||s===Pn?n:s}}return i}(n=function(t,e){var n=t.start,i=t.end,r=t.negative,o=t.format,s=t.decimalIndex,a=t.lastZeroIndex,l=t.hasNegativeFormat,h=t.hasGroup,c=t.number,p=c.toString().split(In),u=o.length,f=p[0],d=p[1]||zn,g=f.length,v=zn;c=o.substring(0,n),r&&!l&&(c+="-");for(var y=n;y<u;y++){var m=o.charAt(y);if(-1===s){if(i-y<g){c+=f;break}}else if(-1!==a&&a<y&&(v=zn),s-y<=g&&s-y>-1&&(c+=f,y=s),s===y){c+=(d?e.numbers.symbols.decimal:zn)+d,y+=i-s+1;continue}m===fi?(c+=m,v=m):m===ui&&(c+=v)}return h&&(c=ii(c,n+(r&&!l?1:0),Math.max(i,g+n),e.numbers.decimal,e)),i>=n&&(c+=o.substring(i+1)),c}(t,e),t.style,t.symbol),t.literals)),n}(i,n))}(t,e,i)}function wi(t){return"number"==typeof t}var Ci=/[eE][\-+]?[0-9]+/,Si=/\u00A0/g;function ki(t,e){if(e.length>1){var n=(e[1]||zn).replace(On,zn).split(Tn);if(t.indexOf(n[0])>-1&&t.indexOf(n[1])>-1)return t.replace(n[0],zn).replace(n[1],zn)}}var Mi=/\{(\d+)}/g;function Ai(t){var e=arguments;return t.replace(Mi,function(t,n){return e[parseInt(n,10)+1]})}var Oi=120,Pi=20,Ti=[2,1,5,3,4],ji={};ji[(-2).toString()]=8,ji[(-1).toString()]=6,ji[2..toString()]=6,ji[1..toString()]=3;var Ri={numeric:1,"2-digit":2,short:3,long:4,narrow:5},Ii=/[hHmsSzZoOvVxX]/,zi=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(t){return t.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],Ei={e:"c",E:"c",M:"L",Q:"q"},Li={},Bi={};function Di(t){return Li[t]||(Li[t]=new RegExp(t+"+")),Li[t]}function Fi(t){for(var e=[],n=t.charAt(0),i=n,r=1;r<t.length;r++){var o=t.charAt(r);o===i?n+=o:(e.push(n),n=i=o)}return e.push(n),e}function Vi(t,e){var n,i,r=t.length,o=-Number.MAX_VALUE;for(var s in e){for(var a=[],l=s.replace("v","z"),h=0,c=0;c<r;c++){var p=t[c],u=(Di(p[0]).exec(l)||[])[0];if(u){if(l=l.replace(u,zn),u.length!==p.length){var f=Math.max(Math.min(Ti[u.length]-Ti[p.length],2),-2);h-=ji[f]}}else h-=Oi;if(a.push(u),h<o)break}l.length&&(h-=Fi(l).length*Pi),h>o&&(o=h,n=a,i=e[s])}i=i.replace("v","z");for(var d=0;d<r;d++){var g=n[d];if(g&&g!==t[d]){var v=n[d][0];i=i.replace(Di(v),t[d]),Ei[v]&&(i=i.replace(Di(Ei[v]),t[d]))}}return i}function Ni(t,e){var n,i=e.calendar;if(gn(t))n=i.patterns[t]?i.patterns[t]:t;else if(t){if(t.pattern)return t.pattern;var r=t.skeleton;r||(t.datetime?n=Ai(i.dateTimeFormats[t.datetime],i.timeFormats[t.datetime],i.dateFormats[t.datetime]):t.date?n=i.dateFormats[t.date]:t.time?n=i.timeFormats[t.time]:r=function(t){for(var e=[],n=0;n<zi.length;n++){var i=zi[n],r=t[i.key];if(r){var o=i.specifier||i.getSpecifier(t);e.push(o.repeat(Ri[r]))}}return e.join(zn)}(t)),r&&(n=function(t,e){var n=e.calendar.dateTimeFormats.availableFormats;if(n[t])return n[t];
1if(Bi[e.name]&&Bi[e.name][t])return Bi[e.name][t];var i,r=t.search(Ii);if(r>0){var o=t.substr(0,r),s=t.substr(r);i=Ai(e.calendar.dateTimeFormats.short,n[s]||Vi(Fi(s),n),n[o]||Vi(Fi(o),n))}else i=Vi(Fi(t),n);return function(t,e,n){Bi[n]||(Bi[n]={}),Bi[n][t]=e}(t,i,e.name),i}(r,e))}return n||(n=i.patterns.d),n}function Hi(t){var e;return t<=3?e="abbreviated":4===t?e="wide":5===t?e="narrow":6===t&&(e="short"),e}function Ui(t,e,n,i,r){return Bn(t,{type:e,nameType:Hi(n),standAlone:i,lower:r})}function Gi(t){return"function"==typeof t}function qi(t){return Boolean(t)&&Gi(t.getTime)&&Gi(t.getMonth)}var $i={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:"weekday",c:"weekday",e:"weekday",h:"hour",H:"hour",k:"hour",K:"hour",m:"minute",s:"second",a:"dayperiod",x:"zone",X:"zone",z:"zone",Z:"zone"},Xi=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function Wi(t,e,n,i){return e<=2?oi(t+1,e):Ui(n,"months",e,i)[t]}function Yi(t,e,n,i){var r=Math.floor(t.getMonth()/3);return e<3?r+1:Ui(n,"quarters",e,i)[r]}function Zi(t,e,n){var i=n.shortHours,r=n.optionalMinutes,o=n.separator,s=n.localizedName,a=n.zZeroOffset,l=t.getTimezoneOffset()/60;if(0===l&&a)return"Z";var h=l<=0?"+":"-",c=Math.abs(l).toString().split("."),p=c[1]||0,u=h+(i?c[0]:oi(c[0],2));return!p&&r||(u+=(o?":":zn)+oi(p,2)),s&&(u=Ai(0===l?e.calendar.gmtZeroFormat:e.calendar.gmtFormat,u)),u}function Ji(t,e,n,i){var r,o;return e<3?((r=t.getDay())<(o=ei(n))?7-o+r:r-o)+1:Ui(n,"days",e,i)[t.getDay()]}var Ki={};function Qi(t,e,n){if(void 0===n&&(n=En),!qi(t))return void 0===t||null===t?zn:t;var i=wn(n);return Ni(e,i).replace(Xi,function(e){var n=e.length;return e.includes("'")||e.includes('"')?e.slice(1,n-1):Ki[e[0]](t,n,i)})}function tr(t,e,n){var i=t.getTimezoneOffset(),r=new Date(t.getTime()+6e4*(e-n)),o=r.getTimezoneOffset();return new Date(r.getTime()+6e4*(o-i))}Ki.d=function(t,e){return oi(t.getDate(),e)},Ki.E=function(t,e,n){return Ui(n,"days",e)[t.getDay()]},Ki.M=function(t,e,n){return Wi(t.getMonth(),e,n,!1)},Ki.L=function(t,e,n){return Wi(t.getMonth(),e,n,!0)},Ki.y=function(t,e){var n=t.getFullYear();return 2===e&&(n%=100),oi(n,e)},Ki.h=function(t,e){return oi(t.getHours()%12||12,e)},Ki.H=function(t,e){return oi(t.getHours(),e)},Ki.k=function(t,e){return oi(t.getHours()||24,e)},Ki.K=function(t,e){return oi(t.getHours()%12,e)},Ki.m=function(t,e){return oi(t.getMinutes(),e)},Ki.s=function(t,e){return oi(t.getSeconds(),e)},Ki.S=function(t,e){return 0!==t.getMilliseconds()?String(t.getMilliseconds()/1e3).split(".")[1].substr(0,e):oi(zn,e)},Ki.a=function(t,e,n){return Ui(n,"dayPeriods",e)[t.getHours()<12?"am":"pm"]},Ki.z=function(t,e,n){return Zi(t,n,{shortHours:e<4,optionalMinutes:e<4,separator:!0,localizedName:!0})},Ki.Z=function(t,e,n){return Zi(t,n,{separator:e>3,localizedName:4===e,zZeroOffset:5===e})},Ki.x=function(t,e,n){return Zi(t,n,{optionalMinutes:1===e,separator:3===e||5===e})},Ki.X=function(t,e,n){return Zi(t,n,{optionalMinutes:1===e,separator:3===e||5===e,zZeroOffset:!0})},Ki.G=function(t,e,n){var i=t.getFullYear()>=0?1:0;return Ui(n,"eras",e)[i]},Ki.e=Ji,Ki.c=function(t,e,n){return Ji(t,e,n,!0)},Ki.q=function(t,e,n){return Yi(t,e,n,!0)},Ki.Q=Yi;var er=/([+|\-]\d{1,2})(:?)(\d{2})?/,nr=/^\/Date\((.*?)\)\/$/,ir=/[+-]\d*/,rr={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},or=/\d+/,sr="{0}",ar=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],lr=["G","g","F","Y","y","M","m","D","d","y","T","t"];function hr(t,e,n){return!(t>=e&&t<=n)}function cr(t,e){for(var n=e.format,i=e.idx,r=0;n[i]===t;)r++,i++;return r>0&&(i-=1),e.idx=i,r}function pr(t,e){var n=t?rr[t]||new RegExp("^\\d{1,"+t+"}"):or,i=e.value.substr(e.valueIdx,t).match(n);return i?(e.valueIdx+=(i=i[0]).length,parseInt(i,10)):null}function ur(t,e,n){for(var i,r,o,s=0,a=t.length,l=0,h=0;s<a;s++)o=e.value.substr(e.valueIdx,r=(i=t[s]).length),n&&(o=o.toLowerCase()),o===i&&r>l&&(l=r,h=s);return l?(e.valueIdx+=l,h+1):null}function fr(t){var e=!1;return t.value.charAt(t.valueIdx)===t.format[t.idx]&&(t.valueIdx++,e=!0),e}function dr(t,e,n){var i=n.shortHours,r=n.noSeparator,o=n.optionalMinutes,s=n.localizedName,a=n.zLiteral;if(t.UTC=!0,a&&"Z"===t.value.charAt(t.valueIdx))return t.valueIdx++,!1;if(s&&!ur(function(t){var e=t.gmtFormat,n=t.gmtZeroFormat;if(!e)throw xn.NoGMTInfo.error();return[e.replace(sr,zn).toLowerCase(),n.replace(sr,zn).toLowerCase()]}(e.calendar),t,!0))return!0;var l=er.exec(t.value.substr(t.valueIdx,6));if(!l)return!s;var h=l[1],c=l[3],p=parseInt(h,10),u=l[2],f=parseInt(c,10);return!!(isNaN(p)||!i&&3!==h.length||!o&&isNaN(f)||r&&u)||(isNaN(f)&&(f=null),!!(hr(p,-12,13)||f&&hr(f,0,59))||(t.valueIdx+=l[0].length,t.hoursOffset=p,void(t.minutesOffset=f)))}function gr(t,e,n){var i=cr(t,e),r=Ui(n,"months",i,"L"===t,!0),o=i<3?pr(2,e):ur(r,e,!0);if(null===o||hr(o,1,12))return!0;e.month=o-1}function vr(t,e,n){var i=cr(t,e),r=Ui(n,"days",i,"c"===t,!0),o=i<3?pr(1,e):ur(r,e,!0);if(!o&&0!==o||hr(o,1,7))return!0}var yr={};function mr(t,e,n){for(var i=Ni(e,n).split(zn),r={format:i,idx:0,value:t,valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},o=i.length,s=!1;r.idx<o;r.idx++){var a=i[r.idx];if(s)"'"===a&&(s=!1),fr(r);else if(yr[a]){if(yr[a](r,n))return null}else if("'"===a)s=!0,fr(r);else if(!fr(r))return null}return r.valueIdx<t.length?null:function(t){var e,n=t.year,i=t.month,r=t.day,o=t.hours,s=t.minutes,a=t.seconds,l=t.milliseconds,h=t.pmHour,c=t.UTC,p=t.hoursOffset,u=t.minutesOffset,f=null!==o||null!==s||a||null,d=new Date;return null===n&&null===i&&null===r&&f?(n=d.getFullYear(),i=d.getMonth(),r=d.getDate()):(null===n&&(n=d.getFullYear()),null===r&&(r=1)),h&&o<12&&(o+=12),c?(p&&(o+=-p),u&&(s+=-u*(p<0?-1:1)),e=new Date(Date.UTC(n,i,r,o,s,a,l))):function(t,e){e||23!==t.getHours()||t.setHours(t.getHours()+2)}(e=new Date(n,i,r,o,s,a,l),o),n<100&&e.setFullYear(n),e.getDate()!==r&&void 0===c?null:e}(r)||null}yr.d=function(t){cr("d",t);var e=pr(2,t);if(null===e||hr(e,1,31))return!0;null===t.day&&(t.day=e)}
1,yr.E=function(t,e){if(null===ur(Ui(e,"days",cr("E",t),!1,!0),t,!0))return!0},yr.M=function(t,e){return gr("M",t,e)},yr.L=function(t,e){return gr("L",t,e)},yr.y=function(t){var e=cr("y",t),n=pr(1===e?void 0:e,t);if(null===n)return!0;if(2===e){var i=(new Date).getFullYear();(n=i-i%100+n)>2029&&(n-=100)}t.year=n},yr.h=function(t){cr("h",t);var e=pr(2,t);if(12===e&&(e=0),null===e||hr(e,0,11))return!0;t.hours=e},yr.K=function(t){cr("K",t);var e=pr(2,t);if(null===e||hr(e,0,11))return!0;t.hours=e},yr.a=function(t,e){var n=Ui(e,"dayPeriods",cr("a",t),!1,!0),i=ur([n.pm],t,!0);if(!i&&!ur([n.am],t,!0))return!0;t.pmHour=i},yr.H=function(t){cr("H",t);var e=pr(2,t);if(null===e||hr(e,0,23))return!0;t.hours=e},yr.k=function(t){cr("k",t);var e=pr(2,t);if(null===e||hr(e,1,24))return!0;t.hours=24===e?0:e},yr.m=function(t){cr("m",t);var e=pr(2,t);if(null===e||hr(e,0,59))return!0;t.minutes=e},yr.s=function(t){cr("s",t);var e=pr(2,t);if(null===e||hr(e,0,59))return!0;t.seconds=e},yr.S=function(t){var e=cr("S",t),n=t.value.substr(t.valueIdx,e),i=null;if(isNaN(parseInt(n,10))||(i=ai(i=parseFloat("0."+n,10),3),i*=1e3,t.valueIdx+=e),null===i||hr(i,0,999))return!0;t.milliseconds=i},yr.z=function(t,e){var n=cr("z",t)<4,i=dr(t,e,{shortHours:n,optionalMinutes:n,localizedName:!0});if(i)return i},yr.Z=function(t,e){var n=cr("Z",t),i=dr(t,e,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(i)return i},yr.x=function(t,e){var n=cr("x",t),i=dr(t,e,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(i)return i},yr.X=function(t,e){var n=cr("X",t),i=dr(t,e,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(i)return i},yr.G=function(t,e){var n=Ui(e,"eras",cr("G",t),!1,!0);if(null===ur([n[0],n[1]],t,!0))return!0},yr.e=function(t,e){return vr("e",t,e)},yr.c=function(t,e){return vr("c",t,e)};var xr={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},br="literal";function _r(t,e){var n=t[t.length-1];n&&n.type===br?n.pattern+=e:t.push({type:br,pattern:e})}function wr(t){return"h"===t||"K"===t}var Cr=/\{(\d+)(:[^\}]+)?\}/g;function Sr(t,e,n){if(e){if(qi(t))return Qi(t,e,n);if(wi(t))return _i(t,e,n)}return void 0!==t&&null!==t?t:zn}var kr=function(){function t(){this.changes=new h.EventEmitter}return t.prototype.notify=function(){this.changes.emit()},t}(),Mr="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",Ar={NoCurrency:"Solution: "+Mr+"#toc-no-currency",NoCurrencyDisplay:"Solution: "+Mr+"#toc-no-currency-display",NoCurrencyRegion:"Solution: "+Mr+"#toc-no-currency-region",NoDateFieldNames:"Solution: "+Mr+"#toc-no-date-filed-names",NoFirstDay:"Solution: "+Mr+"#toc-no-first-day",NoGMTInfo:"Solution: "+Mr+"#toc-no-gmt-info",NoLocale:"Solution: "+Mr+"#toc-no-locale",NoValidCurrency:"Solution: "+Mr+"#toc-no-valid-currency",NoWeekData:"Solution: "+Mr+"#toc-no-week-data"};function Or(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return t.apply(null,e)}catch(t){throw t.message=function(t){var e=t.message,n=Ar[Object.keys(Ar).filter(function(t){return 0===e.indexOf(t)})[0]];return n?e+" "+n:e}(t),t}}}var Pr=Or(Bn),Tr=Or(function(t,e){void 0===e&&(e=En);var n=wn(e).calendar.dateFields;if(!n)throw xn.NoDateFieldNames.error();var i=n[t.type]||{};return i[t.nameType]||i.wide}),jr=Or(ei),Rr=Or(function(t,e,n){return t.replace(Cr,function(t,i,r){return Sr(e[parseInt(i,10)],r?r.substring(1):zn,n)})}),Ir=Or(Qi),zr=Or(_i),Er=Or(function(t){return _n(t).numbers.symbols}),Lr=Or(function(t,e,n){if(void 0===n&&(n=En),!t)return null;if(qi(t))return t;var i=String(t).trim(),r=function(t){if(t&&0===t.indexOf("/D")){var e=nr.exec(t);if(e){var n=ir.exec((e=e[1]).substring(1));return e=new Date(parseInt(e,10)),n&&(r="-"===(i=n[0]).substr(0,1)?-1:1,o=i.substring(1),n=r*(o=60*parseInt(o.substr(0,2),10)+parseInt(o.substring(2),10)),e=tr(e=tr(e,e.getTimezoneOffset(),0),0,-1*n)),e}}var i,r,o}(i);if(r)return r;for(var o=wn(n),s=e||function(t){for(var e=[],n=o.calendar.patterns,i=lr.length,r=0;r<i;r++)e.push(n[lr[r]]);return e.concat(ar)}(),a=(s=Array.isArray(s)?s:[s]).length,l=0;l<a;l++)if(r=mr(i,s[l],o))return r;return r}),Br=Or(function(t,e,n){if(void 0===e&&(e=En),void 0===n&&(n={}),!t&&0!==t)return null;if(wi(t))return t;var i,r=wn(e),o=r.numbers.symbols,s=t.toString();if(Ci.test(s))return s=parseFloat(s.replace(o.decimal,In)),isNaN(s)?null:s;var a=s.indexOf("-");if(a>0)return null;var l=a>-1,h=function(t,e,n){var i,r=bi(n)||{},o=ri(r.style),s=t,a=r.currency||Zn(e,o);if(a){var l=function(t,n,i){void 0===i&&(i=!0);var r=Wn(e,n,i);if(r){if(!r.displays){var o=[n];for(var s in r)o.push(r[s]);o.sort(Yn),r.displays=o}return r.displays}}(0,a,o);if(l)for(var h=0;h<l.length;h++){var c=l[h];if(s.includes(c)){s=s.replace(c,zn),o=!0;break}}if(o){var p=ki(s,e.numbers.currency.patterns)||ki(s,e.numbers.accounting.patterns);p&&(i=!0,s=p)}}return{number:s,negative:i}}(s,r,n),c=h.negative;return s=h.number,l=void 0!==c?c:l,(n.style===Mn||s.indexOf(o.percentSign)>-1)&&(s=s.replace(o.percentSign,zn),i=!0),s=s.replace("-",zn).replace(Si," ").split(o.group.replace(Si," ")).join(zn).replace(o.decimal,In),s=parseFloat(s),isNaN(s)?s=null:l&&(s*=-1),s&&i&&(s/=100),s}),Dr=Or(function(t,e){void 0===e&&(e=En);for(var n=Ni(t,wn(e)),i=[],r=Xi.lastIndex=0,o=Xi.exec(n);o;){var s=o[0];if(r<o.index&&_r(i,n.substring(r,o.index)),s.startsWith('"')||s.startsWith("'"))_r(i,s);else{var a=s[0],l=$i[a],h={type:l,pattern:s};"hour"===l&&(h.hour12=wr(s));var c=xr[l];if(c){var p=wi(c.minLength)?c.minLength:c.minLength[a],u=s.length;u>=p&&(h.names={type:c.type,nameType:Hi(u),standAlone:c.standAlone===a})}i.push(h)}r=Xi.lastIndex,o=Xi.exec(n)}return r<n.length&&_r(i,n.substring(r)),i}),Fr=Or(Sr),Vr=/_/g,Nr=function(t){function e(e){var n=t.call(this)||this;return n.localeId=e,n}return Object(ht.d)(e,t),Object.defineProperty(e.prototype,"localeId",{get:function(){return this.locale},set:function(t){var e=t.replace(Vr,"-");e!==this.locale&&(this.locale=e,this.notify())},enumerable:!0,configurable:!0}),e.prototype.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Rr(t,e,this.localeId)},e.prototype.toString=function(t,e,n){return Fr(t,e,n||this.localeId)},e.prototype.formatDate=function(t,e,n){return Ir(t,e,n||this.localeId)},e.prototype.parseDate=function(t,e,n){return Lr(t,e,n||this.localeId)},e.prototype.parseNumber=function(t,e,n){return Br(t,n||this.localeId,e)},e.prototype.formatNumber=function(t,e,n){return zr(t,e,n||this.localeId)},e.prototype.dateFieldName=function(t,e){return Tr(t,e||this.localeId)},e.prototype.dateFormatNames=function(t,e){return Pr(e||this.localeId,t)},e.prototype.splitDateFormat=function(t,e){return Dr(t,e||this.localeId)},e.prototype.numberSymbols=function(t){return Er(t||this.localeId)},e.prototype.firstDay=function(t){return jr(t||this.localeId)},e}(kr),Hr=function(){},Ur=n("l7qm"),Gr="arc",qr="#000",$r="bottom",Xr="center",Wr="circle",Yr=3,Zr="date",Jr=10,Kr=/\{\d+:?/,Qr="left",to=Number.MAX_VALUE,eo=-Number.MAX_VALUE,no="none",io="right",ro="str
1ing",oo="top",so="value",ao="#fff",lo="x",ho="y";function co(t){return Array.isArray(t)}function po(t,e){for(var n=co(e)?e:[e],i=0;i<n.length;i++){var r=n[i];-1===t.className.indexOf(r)&&(t.className+=" "+r)}}var uo=/\s+/g,fo={extend:function(t){for(var e in this)"extend"!==e&&(t[e]=this[e])},observers:function(){return this._observers=this._observers||[],this._observers},addObserver:function(t){return this._observers?this._observers.push(t):this._observers=[t],this},removeObserver:function(t){var e=this.observers(),n=e.indexOf(t);return-1!==n&&e.splice(n,1),this},trigger:function(t,e){var n=this._observers;if(n&&!this._suspended)for(var i=0;i<n.length;i++){var r=n[i];r[t]&&r[t](e)}return this},optionsChange:function(t){void 0===t&&(t={}),t.element=this,this.trigger("optionsChange",t)},geometryChange:function(){this.trigger("geometryChange",{element:this})},suspend:function(){return this._suspended=(this._suspended||0)+1,this},resume:function(){return this._suspended=Math.max((this._suspended||0)-1,0),this},_observerField:function(t,e){this[t]&&this[t].removeObserver(this),this[t]=e,e.addObserver(this)}},go="undefined"!=typeof window?window:{},vo=go.requestAnimationFrame||go.webkitRequestAnimationFrame||go.mozRequestAnimationFrame||go.oRequestAnimationFrame||go.msRequestAnimationFrame||function(t){setTimeout(t,1e3/60)};function yo(t){vo.call(go,t)}var mo=function(){},xo=/&/g,bo=/</g,_o=/"/g,wo=/'/g,Co=/>/g;function So(t){return String(t).replace(xo,"&").replace(bo,"<").replace(Co,">").replace(_o,""").replace(wo,"'")}function ko(t){var e=window.console;void 0!==e&&e.log&&e.log(t)}function Mo(t){return"function"==typeof t}function Ao(t){return"string"==typeof t?[t]:t}function Oo(){this._defaultPrevented=!0}function Po(){return!0===this._defaultPrevented}var To=function(t){function e(){t.call(this),this._events={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.bind=function(t,e,n){var i=arguments,r=this,o=Ao(t),s=Mo(e),a=o.length;if(void 0===e){for(var l in t)r.bind(l,t[l]);return this}for(var h=function(t){var a=o[t],l=s?e:e[a];if(l){if(n){var h=l;(l=function(){r.unbind(a,l),h.apply(r,i)}).original=h}(r._events[a]=r._events[a]||[]).push(l)}},c=0;c<a;c++)h(c);return this},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){for(var n=Ao(t),i=Mo(e),r=0,o=n.length;r<o;r++){var s=n[r],a=i?e:e[s];a&&(this._events[s]=this._events[s]||[]).unshift(a)}return this},e.prototype.trigger=function(t,e){void 0===e&&(e={});var n=this._events[t];if(n){var i=n.length;e.sender=this,e._defaultPrevented=!1,e.preventDefault=Oo,e.isDefaultPrevented=Po,n=n.slice();for(var r=0;r<i;r++)n[r].call(this,e);return!0===e._defaultPrevented}return!1},e.prototype.unbind=function(t,e){var n=this._events[t];if(void 0===t)this._events={};else if(n)if(e)for(var i=n.length-1;i>=0;i--)n[i]!==e&&n[i].original!==e||n.splice(i,1);else this._events[t]=[];return this},e}(mo),jo={};"undefined"!=typeof window&&(jo.browser=function(t){var e,n={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var i in n)if(n.hasOwnProperty(i)){var r=t.match(n[i]);if(r){(e={})[i]=!0,e[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.documentMode||r[2],10);break}}return e}(window.navigator.userAgent));var Ro=jo;function Io(){return(new Date).getTime()}function zo(t,e){var n,i=0;if(!e||e<=0)return t;var r=function(){var r=Io()-i,o=arguments,s=function(){t.apply(null,o),i=Io()};if(!i)return s();n&&clearTimeout(n),r>e?s():n=setTimeout(s,e-r)};return r.cancel=function(){clearTimeout(n)},r}var Eo={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee9
10",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},Lo=Ro.browser,Bo=function(t){var e=Object.keys(Eo);e.push("transparent");var n=new RegExp("^("+e.join("|")+")(\\W|$)","i");return Bo=function(t){return n.exec(t)},n.exec(t)},Do=function(t){function e(){t.call(this)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toHSV=function(){return this},e.prototype.toRGB=function(){return this},e.prototype.toHex=function(){return this.toBytes().toHex()},e.prototype.toBytes=function(){return this},e.prototype.toCss=function(){return"#"+this.toHex()},e.prototype.toCssRgba=function(){var t=this.toBytes();return"rgba("+t.r+", "+t.g+", "+t.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},e.prototype.toDisplay=function(){return Lo.msie&&Lo.version<9?this.toCss():this.toCssRgba()},e.prototype.equals=function(t){return t===this||null!==t&&this.toCssRgba()===qo(t).toCssRgba()},e.prototype.diff=function(t){if(null===t)return NaN;var e=this.toBytes(),n=t.toBytes();return Math.sqrt(Math.pow(.3*(e.r-n.r),2)+Math.pow(.59*(e.g-n.g),2)+Math.pow(.11*(e.b-n.b),2))},e.prototype.clone=function(){var t=this.toBytes();return t===this&&(t=new Vo(t.r,t.g,t.b,t.a)),t},e}(mo),Fo=function(t){function e(e,n,i,r){t.call(this),this.r=e,this.g=n,this.b=i,this.a=r}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toHSV=function(){var t,e,n=this.r,i=this.g,r=this.b,o=Math.min(n,i,r),s=Math.max(n,i,r),a=s-o,l=s;return 0===a?new Ho(0,0,l,this.a):(0!==s?(e=a/s,t=n===s?(i-r)/a:i===s?2+(r-n)/a:4+(n-i)/a,(t*=60)<0&&(t+=360)):(e=0,t=-1),new Ho(t,e,l,this.a))},e.prototype.toHSL=function(){var t,e,n=this.r,i=this.g,r=this.b,o=Math.max(n,i,r),s=Math.min(n,i,r),a=(o+s)/2;if(o===s)t=e=0;else{var l=o-s;switch(e=a>.5?l/(2-o-s):l/(o+s),o){case n:t=(i-r)/l+(i<r?6:0);break;case i:t=(r-n)/l+2;break;case r:t=(n-i)/l+4}t*=60,e*=100,a*=100}return new Uo(t,e,a,this.a)},e.prototype.toBytes=function(){return new Vo(255*this.r,255*this.g,255*this.b,this.a)},e}(Do),Vo=function(t){function e(e,n,i,r){t.call(this,Math.round(e),Math.round(n),Math.round(i),r)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toRGB=function(){return new t(this.r/255,this.g/255,this.b/255,this.a)},e.prototype.toHSV=function(){return this.toRGB().toHSV()},e.prototype.toHSL=function(){return this.toRGB().toHSL()},e.prototype.toHex=function(){return No(this.r,2)+No(this.g,2)+No(this.b,2)},e.prototype.toBytes=function(){return this},e}(Fo);function No(t,e,n){void 0===n&&(n="0");for(var i=t.toString(16);e>i.length;)i=n+i;return i}var Ho=function(t){function e(e,n,i,r){t.call(this),this.h=e,this.s=n,this.v=i,this.a=r}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toRGB=function(){var t,e,n,i=this.h,r=this.s,o=this.v;if(0===r)t=e=n=o;else{i/=60;var s=Math.floor(i),a=i-s,l=o*(1-r),h=o*(1-r*a),c=o*(1-r*(1-a));switch(s){case 0:t=o,e=c,n=l;break;case 1:t=h,e=o,n=l;break;case 2:t=l,e=o,n=c;break;case 3:t=l,e=h,n=o;break;case 4:t=c,e=l,n=o;break;default:t=o,e=l,n=h}}return new Fo(t,e,n,this.a)},e.prototype.toHSL=function(){return this.toRGB().toHSL()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}
1(Do),Uo=function(t){function e(e,n,i,r){t.call(this),this.h=e,this.s=n,this.l=i,this.a=r}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toRGB=function(){var t,e,n,i=this.h,r=this.s,o=this.l;if(0===r)t=e=n=o/100;else{i/=360,r/=100;var s=(o/=100)<.5?o*(1+r):o+r-o*r,a=2*o-s;t=Go(a,s,i+1/3),e=Go(a,s,i),n=Go(a,s,i-1/3)}return new Fo(t,e,n,this.a)},e.prototype.toHSV=function(){return this.toRGB().toHSV()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}(Do);function Go(t,e,n){var i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function qo(t,e){var n,i;if(null==t||"none"===t)return null;if(t instanceof Do)return t;var r=t.toLowerCase();if(n=Bo(r))return(r="transparent"===n[1]?new Fo(1,1,1,0):qo(Eo[n[1]],e)).match=[n[1]],r;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(r))?i=new Vo(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(r))?i=new Vo(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(r))?i=new Vo(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(r))?i=new Vo(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(r))?i=new Fo(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(r))&&(i=new Fo(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),i)i.match=n;else if(!e)throw new Error("Cannot parse color: "+r);return i}var $o=function(t){function e(n){if(t.call(this),1===arguments.length)for(var i=e.formats,r=this.resolveColor(n),o=0;o<i.length;o++){var s=i[o].process,a=i[o].re.exec(r);if(a){var l=s(a);this.r=l[0],this.g=l[1],this.b=l[2]}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toHex=function(){var t=this.padDigit,e=this.r.toString(16),n=this.g.toString(16),i=this.b.toString(16);return"#"+t(e)+t(n)+t(i)},e.prototype.resolveColor=function(t){var n=t||"black";return"#"===n.charAt(0)&&(n=n.substr(1,6)),n=(n=n.replace(/ /g,"")).toLowerCase(),e.namedColors[n]||n},e.prototype.normalizeByte=function(t){return t<0||isNaN(t)?0:t>255?255:t},e.prototype.padDigit=function(t){return 1===t.length?"0"+t:t},e.prototype.brightness=function(t){var e=Math.round;return this.r=e(this.normalizeByte(this.r*t)),this.g=e(this.normalizeByte(this.g*t)),this.b=e(this.normalizeByte(this.b*t)),this},e.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},e.fromBytes=function(t,e,n,i){return new Vo(t,e,n,null!=i?i:1)},e.fromRGB=function(t,e,n,i){return new Fo(t,e,n,null!=i?i:1)},e.fromHSV=function(t,e,n,i){return new Ho(t,e,n,null!=i?i:1)},e.fromHSL=function(t,e,n,i){return new Uo(t,e,n,null!=i?i:1)},e}(mo);$o.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],$o.namedColors=Eo;var Xo=$o;function Wo(t,e){return t.push.apply(t,e),t}var Yo={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1000:"m"};function Zo(t){for(var e=[1e3,900,800,700,600,500,400,300,200,100,9
10,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],n="";t>0;)t<e[0]?e.shift():(n+=Yo[e[0]],t-=e[0]);return n}function Jo(){var t,e,n=new Promise(function(i,r){t=function(t){return n._state="resolved",i(t),n},e=function(t){return n._state="rejected",r(t),n}});return n._state="pending",n.resolve=t,n.reject=e,n.state=function(){return n._state},n}var Ko="undefined";function Qo(t){return typeof t!==Ko}var ts=1;function es(){return"kdef"+ts++}var ns=Math.PI/180,is=Number.MAX_VALUE,rs=-Number.MAX_VALUE;function os(t){return t/ns}var ss="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",as=String.fromCharCode;function ls(t){for(var e="",n=0,i=function(t){for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e+=as(i):i<2048?(e+=as(192|i>>>6),e+=as(128|63&i)):i<65536&&(e+=as(224|i>>>12),e+=as(128|i>>>6&63),e+=as(128|63&i))}return e}(t);n<i.length;){var r=i.charCodeAt(n++),o=i.charCodeAt(n++),s=i.charCodeAt(n++),a=r>>2,l=(3&r)<<4|o>>4,h=(15&o)<<2|s>>6,c=63&s;isNaN(o)?h=c=64:isNaN(s)&&(c=64),e=e+ss.charAt(a)+ss.charAt(l)+ss.charAt(h)+ss.charAt(c)}return e}function hs(t){return Qo((t.x||{}).location)?{x:t.x.location,y:t.y.location}:{x:t.pageX||t.clientX||0,y:t.pageY||t.clientY||0}}function cs(t){return void 0===t&&(t={}),t.touch?t.touch.initialTouch:t.target}function ps(t){return""===t||null===t||"none"===t||"transparent"===t||!Qo(t)}function us(t){if(t)return t[t.length-1]}function fs(t,e,n){return Math.max(Math.min(t,n),e)}function ds(t,e){return t.length<2?t.slice():function t(n){if(n.length<=1)return n;var i=Math.floor(n.length/2),r=n.slice(0,i),o=n.slice(i);return function(t,n){for(var i=[],r=0,o=0,s=0;r<t.length&&o<n.length;)e(t[r],n[o])<=0?i[s++]=t[r++]:i[s++]=n[o++];return r<t.length&&i.push.apply(i,t.slice(r)),o<n.length&&i.push.apply(i,n.slice(o)),i}(r=t(r),o=t(o))}(t)}function gs(t){return Promise.all(t)}function vs(t){return t*ns}function ys(t,e){var n,i=(n=e)?Math.pow(10,n):1;return Math.round(t*i)/i}function ms(t,e){return Qo(t)?t:e}function xs(t,e){for(var n in e)for(var i=n.trim().split(" "),r=0;r<i.length;r++)t.addEventListener(i[r],e[n],!1)}function bs(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{top:e.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0),left:e.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}}function _s(t,e){for(var n={},i=window.getComputedStyle(t)||{},r=Array.isArray(e)?e:[e],o=0;o<r.length;o++){var s=r[o];n[s]=i[s]}return n}function ws(t){return isNaN(t)?t:t+"px"}function Cs(t,e){if(!e){var n=_s(t,["width","height"]);return{width:parseInt(n.width,10),height:parseInt(n.height,10)}}var i=e.width,r=e.height;Qo(i)&&(t.style.width=ws(i)),Qo(r)&&(t.style.height=ws(r))}function Ss(t,e){for(var n in void 0===e&&(e={}),e)for(var i=n.trim().split(" "),r=0;r<i.length;r++)t.removeEventListener(i[r],e[n],!1)}var ks=function(t){function e(e){t.call(this),this._size=e,this._length=0,this._map={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.put=function(t,e){var n=this._map,i={key:t,value:e};n[t]=i,this._head?(this._tail.newer=i,i.older=this._tail,this._tail=i):this._head=this._tail=i,this._length>=this._size?(n[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},e.prototype.get=function(t){var e=this._map[t];if(e)return e===this._head&&e!==this._tail&&(this._head=e.newer,this._head.older=null),e!==this._tail&&(e.older&&(e.older.newer=e.newer,e.newer.older=e.older),e.older=this._tail,e.newer=null,this._tail.newer=e,this._tail=e),e.value},e}(mo),Ms=/\r?\n|\r|\t/g,As=" ";function Os(t){return String(t).replace(Ms,As)}function Ps(t){var e=[];for(var n in t)e.push(n+t[n]);return e.sort().join("")}function Ts(t){for(var e=2166136261,n=0;n<t.length;++n)e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24),e^=t.charCodeAt(n);return e>>>0}var js,Rs={baselineMarkerSize:1};"undefined"!=typeof document&&((js=document.createElement("div")).style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");var Is=function(t){function e(e){t.call(this),this._cache=new ks(1e3),this.options=Object.assign({},Rs,e)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.measure=function(t,e,n){if(void 0===n&&(n={}),!t)return{width:0,height:0,baseline:0};var i=Ts(t+Ps(e)),r=this._cache.get(i);if(r)return r;var o={width:0,height:0,baseline:0},s=n.box||js,a=this._baselineMarker().cloneNode(!1);for(var l in e){var h=e[l];void 0!==h&&(s.style[l]=h)}var c=!1!==n.normalizeText?Os(t):String(t);return s.textContent=c,s.appendChild(a),document.body.appendChild(s),c.length&&(o.width=s.offsetWidth-this.options.baselineMarkerSize,o.height=s.offsetHeight,o.baseline=a.offsetTop+this.options.baselineMarkerSize),o.width>0&&o.height>0&&this._cache.put(i,o),s.parentNode.removeChild(s),o},e.prototype._baselineMarker=function(){var t=document.createElement("div");return t.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",t},e}(mo);
vendor: 10,947 bytes, line 1
1Is.current=new Is;var zs=Is;function Es(t,e,n){return zs.current.measure(t,e,n)}var Ls={}.toString,Bs=function(t){function e(e,n){for(var i in void 0===n&&(n=""),t.call(this),this.prefix=n,e){var r=e[i];r=this._wrap(r,i),this[i]=r}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){for(var e=t.split("."),n=this;e.length&&n;)n=n[e.shift()];return n},e.prototype.set=function(t,e){this.get(t)!==e&&(this._set(t,this._wrap(e,t)),this.optionsChange({field:this.prefix+t,value:e}))},e.prototype._set=function(t,n){var i=this,r=t;if(t.indexOf(".")>=0){for(var o=r.split("."),s=this.prefix;o.length>1;){var a=i[r=o.shift()];a||((a=new e({},s+=r+".")).addObserver(this),i[r]=a),i=a}r=o[0]}i._clear(r),i[r]=n},e.prototype._clear=function(t){var e=this[t];e&&e.removeObserver&&e.removeObserver(this)},e.prototype._wrap=function(n,i){var r=Ls.call(n),o=n;return null!==o&&Qo(o)&&"[object Object]"===r&&(n instanceof e||n instanceof t||(o=new e(o,this.prefix+i+".")),o.addObserver(this)),o},e}(mo);fo.extend(Bs.prototype);var Ds=Bs;function Fs(t){return function(e){return this[t]!==e&&(this[t]=e,this.geometryChange()),this}}function Vs(t){return function(){return this[t]}}function Ns(t,e){for(var n=0;n<e.length;n++){var i=e[n],r=i.charAt(0).toUpperCase()+i.substring(1,i.length);t["set"+r]=Fs(i),t["get"+r]=Vs(i)}}var Hs=function(t){function e(e,n,i,r,o,s){void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===s&&(s=0),t.call(this),this.a=e,this.b=n,this.c=i,this.d=r,this.e=o,this.f=s}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.multiplyCopy=function(t){return new e(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)},e.prototype.invert=function(){var t=this.a,n=this.b,i=this.c,r=this.d,o=this.e,s=this.f,a=t*r-n*i;return 0===a?null:new e(r/a,-n/a,-i/a,t/a,(i*s-r*o)/a,(n*o-t*s)/a)},e.prototype.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},e.prototype.equals=function(t){return!!t&&this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d&&this.e===t.e&&this.f===t.f},e.prototype.round=function(t){return this.a=ys(this.a,t),this.b=ys(this.b,t),this.c=ys(this.c,t),this.d=ys(this.d,t),this.e=ys(this.e,t),this.f=ys(this.f,t),this},e.prototype.toArray=function(t){var e=[this.a,this.b,this.c,this.d,this.e,this.f];if(Qo(t))for(var n=0;n<e.length;n++)e[n]=ys(e[n],t);return e},e.prototype.toString=function(t,e){return void 0===e&&(e=","),this.toArray(t).join(e)},e.translate=function(t,n){return new e(1,0,0,1,t,n)},e.unit=function(){return new e(1,0,0,1,0,0)},e.rotate=function(t,n,i){var r=new e;return r.a=Math.cos(vs(t)),r.b=Math.sin(vs(t)),r.c=-r.b,r.d=r.a,r.e=n-n*r.a+i*r.b||0,r.f=i-i*r.a-n*r.b||0,r},e.scale=function(t,n){return new e(t,0,0,n,0,0)},e}(mo);Hs.IDENTITY=Hs.unit();var Us=Hs;function Gs(t){return t&&"function"==typeof t.matrix?t.matrix():t}var qs=function(t){function e(e,n){t.call(this),this.x=e||0,this.y=n||0}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={ZERO:{configurable:!0}};return e.prototype.equals=function(t){return t&&t.x===this.x&&t.y===this.y},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.rotate=function(t,n){var i=e.create(n)||e.ZERO;return this.transform(Us.rotate(t,i.x,i.y))},e.prototype.translate=function(t,e){return this.x+=t,this.y+=e,this.geometryChange(),this},e.prototype.translateWith=function(t){return this.translate(t.x,t.y)},e.prototype.move=function(t,e){return this.x=this.y=0,this.translate(t,e)},e.prototype.scale=function(t,e){return void 0===e&&(e=t),this.x*=t,this.y*=e,this.geometryChange(),this},e.prototype.scaleCopy=function(t,e){return this.clone().scale(t,e)},e.prototype.transform=function(t){var e=Gs(t),n=this.x,i=this.y;return this.x=e.a*n+e.c*i+e.e,this.y=e.b*n+e.d*i+e.f,this.geometryChange(),this},e.prototype.transformCopy=function(t){var e=this.clone();return t&&e.transform(t),e},e.prototype.distanceTo=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},e.prototype.round=function(t){return this.x=ys(this.x,t),this.y=ys(this.y,t),this.geometryChange(),this},e.prototype.toArray=function(t){var e=Qo(t);return[e?ys(this.x,t):this.x,e?ys(this.y,t):this.y]},e.prototype.toString=function(t,e){void 0===e&&(e=" ");var n=this.x,i=this.y;return Qo(t)&&(n=ys(n,t),i=ys(i,t)),n+e+i},e.create=function(t,n){if(Qo(t))return t instanceof e?t:1===arguments.length&&2===t.length?new e(t[0],t[1]):new e(t,n)},e.min=function(){for(var t=arguments,n=is,i=is,r=0;r<arguments.length;r++){var o=t[r];n=Math.min(o.x,n),i=Math.min(o.y,i)}return new e(n,i)},e.max=function(){for(var t=arguments,n=rs,i=rs,r=0;r<arguments.length;r++){var o=t[r];n=Math.max(o.x,n),i=Math.max(o.y,i)}return new e(n,i)},e.minPoint=function(){return new e(rs,rs)},e.maxPoint=function(){return new e(is,is)},n.ZERO.get=function(){return new e(0,0)},Object.defineProperties(e,n),e}(mo);Ns(qs.prototype,["x","y"]),fo.extend(qs.prototype);var $s=qs,Xs=function(t){function e(e,n){t.call(this),this.width=e||0,this.height=n||0}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={ZERO:{configurable:!0}};return e.prototype.equals=function(t){return t&&t.width===this.width&&t.height===this.height},e.prototype.clone=function(){return new e(this.width,this.height)},e.prototype.toArray=function(t){var e=Qo(t);return[e?ys(this.width,t):this.width,e?ys(this.height,t):this.height]},e.create=function(t,n){if(Qo(t))return t instanceof e?t:1===arguments.length&&2===t.length?new e(t[0],t[1]):new e(t,n)},n.ZERO.get=function(){return new e(0,0)},Object.defineProperties(e,n),e}(mo);Ns(Xs.prototype,["width","height"]),fo.extend(Xs.prototype);var Ws=Xs,Ys=function(t){function e(e,n){void 0===e&&(e=new $s),void 0===n&&(n=new Ws),t.call(this),this.setOrigin(e),this.setSize(n)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.origin.clone(),this.size.clone())},e.prototype.equals=function(t){return t&&t.origin.equals(this.origin)&&t.size.equals(this.size)},e.prototype.setOrigin=function(t){return this._observerField("origin",$s.create(t)),this.geometryChange(),this},e.prototype.getOrigin=function(){return this.origin},e.prototype.setSize=function(t){return this._observerField("size",Ws.create(t)),this.geometryChange(),this},e.prototype.getSize=function(){return this.size},e.prototype.width=function(){return this.size.width},e.prototype.height=function(){return this.size.height},e.prototype.topLeft=function(){return this.origin.clone()},e.prototype.bottomRight=function(){return this.origin.clone().translate(this.width(),this.height())},e.prototype.topRight=function(){return this.origin.clone().translate(this.width(),0)},e.prototype.bottomLeft=function(){return this.origin.clone().translate(0,this.height())},e.prototype.center=function(){return this.origin.clone().translate(this.width()/2,this.height()/2)},e.prototype.bbox=function(t){var n=this.topLeft().transformCopy(t),i=this.topRight().transformCopy(t),r=this.bottomRight().transformCopy(t),o=this.bottomLeft().transformCopy(t);return e.fromPoints(n,i,r,o)},e.prototype.transformCopy=function(t){return e.fromPoints(this.topLeft().transform(t),this.bottomRight().transform(t))},e.prototype.expand=function(t,e){return void 0===e&&(e=t),this.size.width+=2*t,this.size.height+=2*e,this.origin.translate(-t,-e),this},e.prototype.expandCopy=function(t,e){return this.clone().expand(t,e)},e.prototype.containsPoint=function(t){var e=this.origin,n=this.bottomRight();return!(t.x<e.x||t.y<e.y||n.x<t.x||n.y<t.y)},e.prototype._isOnPath=function(t,e){var n=this.expandCopy(e,e),i=this.expandCopy(-e,-e);return n.containsPoint(t)&&!i.containsPoint(t)},e.fromPoints=function(){var t=$s.min.apply(null,arguments),n=$s.max.apply(null,arguments);return new e(t,new Ws(n.x-t.x,n.y-t.y))},e.union=function(t,n){return e.fromPoints($s.min(t.topLeft(),n.topLeft()),$s.max(t.bottomRight(),n.bottomRight()))},e.intersect=function(t,n){var i={left:t.topLeft().x,top:t.topLeft().y,right:t.bottomRight().x,bottom:t.bottomRight().y},r={left:n.topLeft().x,top:n.topLeft().y,right:n.bottomRight().x,bottom:n.bottomRight().y};if(i.left<=r.right&&r.left<=i.right&&i.top<=r.bottom&&r.top<=i.bottom)return e.fromPoints(new $s(Math.max(i.left,r.left),Math.max(i.top,r.top)),new $s(Math.min(i.right,r.right),Math.min(i.bottom,r.bottom)))},e}(mo);fo.extend(Ys.prototype);var Zs=Ys,Js=function(t){function e(e){void 0===e&&(e=Us.unit()),t.call(this),this._matrix=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this._matrix.clone())},e.prototype.equals=function(t){return t&&t._matrix.equals(this._matrix)},e.prototype.translate=function(t,e){return this._matrix=this._matrix.multiplyCopy(Us.translate(t,e)),this._optionsChange(),this},e.prototype.scale=function(t,e,n){void 0===e&&(e=t),void 0===n&&(n=null);var i=n;return i&&(i=$s.create(i),this._matrix=this._matrix.multiplyCopy(Us.translate(i.x,i.y))),this._matrix=this._matrix.multiplyCopy(Us.scale(t,e)),i&&(this._matrix=this._matrix.multiplyCopy(Us.translate(-i.x,-i.y))),this._optionsChange(),this},e.prototype.rotate=function(t,e){var n=$s.create(e)||$s.ZERO;return this._matrix=this._matrix.multiplyCopy(Us.rotate(t,n.x,n.y)),this._optionsChange(),this},e.prototype.multiply=function(t){var e=Gs(t);return this._matrix=this._matrix.multiplyCopy(e),this._optionsChange(),this},e.prototype.matrix=function(t){return t?(this._matrix=t,this._optionsChange(),this):this._matrix},e.prototype._optionsChange=function(){this.optionsChange({field:"transform",value:this})},e}(mo);fo.extend(Js.prototype);var Ks=Js;function Qs(t){return null===t?null:t instanceof Ks?t:new Ks(t)}var ta=function(t){function e(e){t.call(this),this._initOptions(e)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._initOptions=function(t){void 0===t&&(t={});var e=t.clip,n=t.transform;n&&(t.transform=Qs(n)),e&&!e.id&&(e.id=es()),this.options=new Ds(t),this.options.addObserver(this)},e.prototype.transform=function(t){if(!Qo(t))return this.options.get("transform");this.options.set("transform",Qs(t))},e.prototype.parentTransform=function(){for(var t,e=this;e.parent;){var n=(e=e.parent).transform();n&&(t=n.matrix().multiplyCopy(t||Us.unit()))}if(t)return Qs(t)},e.prototype.currentTransform=function(t){void 0===t&&(t=this.parentTransform());var e,n=Gs(this.transform()),i=Gs(t);if(e=n&&i?i.multiplyCopy(n):n||i)return Qs(e)},e.prototype.visible=function(t){return Qo(t)?(this.options.set("visible",t),this):!1!==this.options.get("visible")},e.prototype.clip=function(t){var e=this.options;return Qo(t)?(t&&!t.id&&(t.id=es()),e.set("clip",t),this):e.get("
1clip")},e.prototype.opacity=function(t){return Qo(t)?(this.options.set("opacity",t),this):ms(this.options.get("opacity"),1)},e.prototype.clippedBBox=function(t){var e=this._clippedBBox(t);if(e){var n=this.clip();return n?Zs.intersect(e,n.bbox(t)):e}},e.prototype.containsPoint=function(t,e){if(this.visible()){var n=this.currentTransform(e),i=t;return n&&(i=t.transformCopy(n.matrix().invert())),this._hasFill()&&this._containsPoint(i)||this._isOnPath&&this._hasStroke()&&this._isOnPath(i)}return!1},e.prototype._hasFill=function(){var t=this.options.fill;return t&&!ps(t.color)},e.prototype._hasStroke=function(){var t=this.options.stroke;return t&&t.width>0&&!ps(t.color)},e.prototype._clippedBBox=function(t){return this.bbox(t)},e}(mo);ta.prototype.nodeType="Element",fo.extend(ta.prototype);var ea=ta;function na(t,e,n,i){var r=0,o=0;return i&&(r=Math.atan2(i.c*n,i.a*e),0!==i.b&&(o=Math.atan2(i.d*n,i.b*e))),{x:r,y:o}}var ia=Math.PI/2,ra=function(t){function e(e,n){void 0===e&&(e=new $s),void 0===n&&(n=0),t.call(this),this.setCenter(e),this.setRadius(n)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setCenter=function(t){return this._observerField("center",$s.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.equals=function(t){return t&&t.center.equals(this.center)&&t.radius===this.radius},e.prototype.clone=function(){return new e(this.center.clone(),this.radius)},e.prototype.pointAt=function(t){return this._pointAt(vs(t))},e.prototype.bbox=function(t){for(var e=na(0,this.radius,this.radius,t),n=$s.maxPoint(),i=$s.minPoint(),r=0;r<4;r++){var o=this._pointAt(e.x+r*ia).transformCopy(t),s=this._pointAt(e.y+r*ia).transformCopy(t),a=new $s(o.x,s.y);n=$s.min(n,a),i=$s.max(i,a)}return Zs.fromPoints(n,i)},e.prototype._pointAt=function(t){var e=this.center,n=this.radius;return new $s(e.x+n*Math.cos(t),e.y+n*Math.sin(t))},e.prototype.containsPoint=function(t){var e=this.center,n=this.radius;return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(n,2)},e.prototype._isOnPath=function(t,e){var n=this.radius,i=this.center.distanceTo(t);return n-e<=i&&i<=n+e},e}(mo);Ns(ra.prototype,["radius"]),fo.extend(ra.prototype);var oa=ra,sa={extend:function(t){t.fill=this.fill,t.stroke=this.stroke},fill:function(t,e){var n=this.options;if(Qo(t)){if(t&&"Gradient"!==t.nodeType){var i={color:t};Qo(e)&&(i.opacity=e),n.set("fill",i)}else n.set("fill",t);return this}return n.get("fill")},stroke:function(t,e,n){return Qo(t)?(this.options.set("stroke.color",t),Qo(e)&&this.options.set("stroke.width",e),Qo(n)&&this.options.set("stroke.opacity",n),this):this.options.get("stroke")}},aa=Us.IDENTITY.toString(),la={extend:function(t){t.bbox=this.bbox,t.geometryChange=this.geometryChange},bbox:function(t){var e,n=Gs(this.currentTransform(t)),i=n?n.toString():aa;this._bboxCache&&this._matrixHash===i?e=this._bboxCache.clone():(e=this._bbox(n),this._bboxCache=e?e.clone():null,this._matrixHash=i);var r=this.options.get("stroke.width");return r&&e&&e.expand(r/2),e},geometryChange:function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}};function ha(t){var e="_"+t;return function(t){return Qo(t)?(this._observerField(e,t),this.geometryChange(),this):this[e]}}function ca(t,e){for(var n=0;n<e.length;n++)t[e[n]]=ha(e[n])}var pa="#000",ua=function(t){function e(e,n){void 0===e&&(e=new oa),void 0===n&&(n={}),t.call(this,n),this.geometry(e),Qo(this.options.stroke)||this.stroke(pa)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.rawBBox=function(){return this._geometry.bbox()},e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype._containsPoint=function(t){return this.geometry().containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},e}(ea);ua.prototype.nodeType="Circle",sa.extend(ua.prototype),la.extend(ua.prototype),ca(ua.prototype,["geometry"]);var fa=ua,da=10;function ga(t,e,n){return void 0===n&&(n=da),0===ys(Math.abs(t-e),n)}function va(t,e,n){return t<e||ga(t,e,n)}var ya=Math.pow,ma=function(t){function e(e,n){void 0===e&&(e=new $s),void 0===n&&(n={}),t.call(this),this.setCenter(e),this.radiusX=n.radiusX,this.radiusY=n.radiusY||n.radiusX,this.startAngle=n.startAngle,this.endAngle=n.endAngle,this.anticlockwise=n.anticlockwise||!1,this.xRotation=n.xRotation}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})},e.prototype.setCenter=function(t){return this._observerField("center",$s.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.pointAt=function(t){var e=this.center,n=vs(t);return new $s(e.x+this.radiusX*Math.cos(n),e.y+this.radiusY*Math.sin(n))},e.prototype.curvePoints=function(){var t,e=this.startAngle,n=this.anticlockwise?-1:1,i=[this.pointAt(e)],r=this._arcInterval(),o=r.endAngle-r.startAngle,s=Math.ceil(o/45),a=o/s,l=e;this.xRotation&&(t=Qs().rotate(this.xRotation,this.center));for(var h=1;h<=s;h++){var c=l+n*a,p=this._intervalCurvePoints(l,c,t);i.push(p.cp1,p.cp2,p.p2),l=c}return i},e.prototype.bbox=function(t){for(var e=this._arcInterval(),n=e.startAngle,i=e.endAngle,r=na(0,this.radiusX,this.radiusY,t),o=os(r.x),s=os(r.y),a=this.pointAt(i).transformCopy(t),l=ba(o,n),h=ba(s,n),c=this.pointAt(n).transformCopy(t),p=$s.min(c,a),u=$s.max(c,a);l<i||h<i;){var f=void 0;l<i&&(f=this.pointAt(l).transformCopy(t),l+=90);var d=void 0;h<i&&(d=this.pointAt(h).transformCopy(t),h+=90),c=new $s(f.x,d.y),p=$s.min(p,c),u=$s.max(u,c)}return Zs.fromPoints(p,u)},e.prototype._arcInterval=function(){var t=this.startAngle,e=this.endAngle,n=this.anticlockwise;if(n){var i=t;t=e,e=i}return(t>e||n&&t===e)&&(e+=360),{startAngle:t,endAngle:e}},e.prototype._intervalCurvePoints=function(t,e,n){var i=this.pointAt(t),r=this.pointAt(e),o=this._derivativeAt(t),s=this._derivativeAt(e),a=(vs(e)-vs(t))/3,l=new $s(i.x+a*o.x,i.y+a*o.y),h=new $s(r.x-a*s.x,r.y-a*s.y);return n&&(i.transform(n),r.transform(n),l.transform(n),h.transform(n)),{p1:i,cp1:l,cp2:h,p2:r}},e.prototype._derivativeAt=function(t){var e=vs(t);return new $s(-this.radiusX*Math.sin(e),this.radiusY*Math.cos(e))},e.prototype.containsPoint=function(t){var e,n=this._arcInterval(),i=n.endAngle-n.startAngle,r=this.center,o=this.radiusX,s=this.radiusY,a=r.distanceTo(t),l=Math.atan2(t.y-r.y,t.x-r.x),h=o*s/Math.sqrt(ya(o,2)*ya(Math.sin(l),2)+ya(s,2)*ya(Math.cos(l),2)),c=this.pointAt(this.startAngle).round(da),p=this.pointAt(this.endAngle).round(da),u=function(t,e,n,i){var r=e.x-t.x,o=p.x-c.x,s=e.y-t.y,a=p.y-c.y,l=t.x-c.x,h=t.y-c.y,u=r*a-o*s,f=(r*h-s*l)/u,d=(o*h-a*l)/u;if(f>=0&&f<=1&&d>=0&&d<=1)return new $s(t.x+d*r,t.y+d*s)}(r,t.round(da));if(i<180)e=u&&va(r.distanceTo(u),a)&&va(a,h);else{var f=xa(r.x,r.y,o,s,t.x,t.y);360!==f&&(f=(360+f)%360);var d=n.startAngle<=f&&f<=n.endAngle;e=d&&va(a,h)||!d&&(!u||u.equals(t))}return e},e.prototype._isOnPath=function(t,e){var n=this._arcInterval(),i=this.center,r=xa(i.x,i.y,this.radiusX,this.radiusY,t.x,t.y);return 360!==r&&(r=(360+r)%360),n.startAngle<=r&&r<=n.endAngle&&this.pointAt(r).distanceTo(t)<=e},e.fromPoints=function(t,n,i,r,o,s,a){var l=function(t){var e=t.x1,n=t.y1,i=t.x2,r=t.y2,o=t.rx,s=t.ry,a=t.largeArc,l=t.swipe,h=t.rotation;void 0===h&&(h=0);var c=vs(h),p=Math.cos(c),u=Math.sin(c),f=p*(e-i)/2+u*(n-r)/2,d=-u*(e-i)/2+p*(n-r)/2,g=a!==l?1:-1,v=Math.pow(f,2),y=Math.pow(d,2),m=Math.pow(o,2),x=Math.pow(s,2),b=v/m+y/x;b>1&&(o*=b=Math.sqrt(v/m+y/x),m=Math.pow(o,2),s*=b,x=Math.pow(s,2));var _=g*Math.sqrt((m*x-m*y-x*v)/(m*y+x*v));isNaN(_)&&(_=0);var w=_*(o*d)/s,C=s*f*-_/o,S=p*w-u*C+(e+i)/2,k=u*w+p*C+(n+r)/2,M=(f-w)/o,A=(d-C)/s,O=-(f+w)/o,P=-(d+C)/s,T=(A>=0?1:-1)*os(Math.acos(M/Math.sqrt(M*M+A*A))),j=ys((M*O+A*P)/(Math.sqrt(M*M+A*A)*Math.sqrt(O*O+P*P)),10),R=(M*P-A*O>=0?1:-1)*os(Math.acos(j));!l&&R>
10&&(R-=360),l&&R<0&&(R+=360);var I=T+R,z=I>=0?1:-1;return I=Math.abs(I)%360*z,{center:new $s(S,k),startAngle:T,endAngle:I,radiusX:o,radiusY:s,xRotation:h}}({x1:t.x,y1:t.y,x2:n.x,y2:n.y,rx:i,ry:r,largeArc:o,swipe:s,rotation:a});return new e(l.center,{startAngle:l.startAngle,endAngle:l.endAngle,radiusX:l.radiusX,radiusY:l.radiusY,xRotation:l.xRotation,anticlockwise:0===s})},e}(mo);function xa(t,e,n,i,r,o){var s=ys((r-t)/n,3),a=ys((o-e)/i,3);return ys(os(Math.atan2(a,s)))}function ba(t,e){for(var n=t;n<e;)n+=90;return n}Ns(ma.prototype,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]),fo.extend(ma.prototype);var _a=ma,wa=[].push,Ca=[].pop,Sa=[].splice,ka=[].shift,Ma=[].slice,Aa=[].unshift,Oa=function(t){function e(e){void 0===e&&(e=[]),t.call(this),this.length=0,this._splice(0,e.length,e)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.elements=function(t){return t?(this._splice(0,this.length,t),this._change(),this):this.slice(0)},e.prototype.push=function(){var t=arguments,e=wa.apply(this,t);return this._add(t),e},e.prototype.slice=function(){return Ma.call(this)},e.prototype.pop=function(){var t=this.length,e=Ca.apply(this);return t&&this._remove([e]),e},e.prototype.splice=function(t,e){var n=Ma.call(arguments,2),i=this._splice(t,e,n);return this._change(),i},e.prototype.shift=function(){var t=this.length,e=ka.apply(this);return t&&this._remove([e]),e},e.prototype.unshift=function(){var t=arguments,e=Aa.apply(this,t);return this._add(t),e},e.prototype.indexOf=function(t){for(var e=this.length,n=0;n<e;n++)if(this[n]===t)return n;return-1},e.prototype._splice=function(t,e,n){var i=Sa.apply(this,[t,e].concat(n));return this._clearObserver(i),this._setObserver(n),i},e.prototype._add=function(t){this._setObserver(t),this._change()},e.prototype._remove=function(t){this._clearObserver(t),this._change()},e.prototype._setObserver=function(t){for(var e=0;e<t.length;e++)t[e].addObserver(this)},e.prototype._clearObserver=function(t){for(var e=0;e<t.length;e++)t[e].removeObserver(this)},e.prototype._change=function(){},e}(mo);fo.extend(Oa.prototype);var Pa=Oa,Ta=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._change=function(){this.geometryChange()},e}(Pa);function ja(t){var e="_"+t;return function(t){return Qo(t)?(this._observerField(e,$s.create(t)),this.geometryChange(),this):this[e]}}function Ra(t,e){for(var n=0;n<e.length;n++)t[e[n]]=ja(e[n])}function Ia(t,e,n){var i=os(Math.atan2(e.y-t.y,e.x-t.x));return n.transformCopy(Qs().rotate(-i,t)).x<t.x}function za(t,e,n){var i=1-t;return Math.pow(i,3)*n[0][e]+3*Math.pow(i,2)*t*n[1][e]+3*Math.pow(t,2)*i*n[2][e]+Math.pow(t,3)*n[3][e]}function Ea(t,e){return[3*t[1][e]-t[0][e]-3*t[2][e]+t[3][e],3*(t[0][e]-2*t[1][e]+t[2][e]),3*(-t[0][e]+t[1][e]),t[0][e]]}var La=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=0),t.call(this),this.real=e,this.img=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.add=function(t){return new e(ys(this.real+t.real,da),ys(this.img+t.img,da))},e.prototype.addConstant=function(t){return new e(this.real+t,this.img)},e.prototype.negate=function(){return new e(-this.real,-this.img)},e.prototype.multiply=function(t){return new e(this.real*t.real-this.img*t.img,this.real*t.img+this.img*t.real)},e.prototype.multiplyConstant=function(t){return new e(this.real*t,this.img*t)},e.prototype.nthRoot=function(t){var n=Math.atan2(this.img,this.real),i=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),r=Math.pow(i,1/t);return new e(r*Math.cos(n/t),r*Math.sin(n/t))},e.prototype.equals=function(t){return this.real===t.real&&this.img===t.img},e.prototype.isReal=function(){return 0===this.img},e}(mo);function Ba(t){return t<0?-1:1}function Da(t,e,n,i){if(0===t)return function(t,e,n){var i=Math.sqrt(Math.pow(e,2)-4*t*n);return[(-e+i)/(2*t),(-e-i)/(2*t)]}(e,n,i);var r,o,s,a,l,h,c,p=(3*t*n-Math.pow(e,2))/(3*Math.pow(t,2)),u=(2*Math.pow(e,3)-9*t*e*n+27*Math.pow(t,2)*i)/(27*Math.pow(t,3)),f=Math.pow(p/3,3)+Math.pow(u/2,2),d=new La(0,1),g=-e/(3*t);f<0?(r=new La(-u/2,Math.sqrt(-f)).nthRoot(3),o=new La(-u/2,-Math.sqrt(-f)).nthRoot(3)):(r=-u/2+Math.sqrt(f),r=new La(Ba(r)*Math.pow(Math.abs(r),1/3)),o=-u/2-Math.sqrt(f),o=new La(Ba(o)*Math.pow(Math.abs(o),1/3))),s=r.add(o),h=r.add(o).multiplyConstant(-.5),c=r.add(o.negate()).multiplyConstant(Math.sqrt(3)/2),a=h.add(d.multiply(c)),l=h.add(d.negate().multiply(c));var v=[];return s.isReal()&&v.push(ys(s.real+g,da)),a.isReal()&&v.push(ys(a.real+g,da)),l.isReal()&&v.push(ys(l.real+g,da)),v}function Fa(t,e,n,i,r){for(var o,s=Ea(t,i),a=Da(s[0],s[1],s[2],s[3]-e[i]),l=0;l<a.length;l++)if(0<=a[l]&&a[l]<=1&&(o=za(a[l],n,t),Math.abs(o-e[n])<=r))return!0}function Va(t,e,n){var i;if(t.x!==e.x){var r=Math.min(t.x,e.x),o=Math.max(t.x,e.x),s=Math.min(t.y,e.y),a=Math.max(t.y,e.y),l=r<=n.x&&n.x<o;i=s===a?n.y<=s&&l:l&&(a-s)*((t.x-e.x)*(t.y-e.y)>0?n.x-r:o-n.x)/(o-r)+s-n.y>=0}return i?1:0}
vendor: 1,776 bytes, line 1
1var Na=function(t){function e(e,n,i){t.call(this),this.anchor(e||new $s),this.controlIn(n),this.controlOut(i)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.bboxTo=function(t,e){var n=this.anchor().transformCopy(e),i=t.anchor().transformCopy(e);return this.controlOut()&&t.controlIn()?this._curveBoundingBox(n,this.controlOut().transformCopy(e),t.controlIn().transformCopy(e),i):this._lineBoundingBox(n,i)},e.prototype._lineBoundingBox=function(t,e){return Zs.fromPoints(t,e)},e.prototype._curveBoundingBox=function(t,e,n,i){var r=[t,e,n,i],o=this._curveExtremesFor(r,"x"),s=this._curveExtremesFor(r,"y"),a=Ha([o.min,o.max,t.x,i.x]),l=Ha([s.min,s.max,t.y,i.y]);return Zs.fromPoints(new $s(a.min,l.min),new $s(a.max,l.max))},e.prototype._curveExtremesFor=function(t,e){var n=this._curveExtremes(t[0][e],t[1][e],t[2][e],t[3][e]);return{min:za(n.min,e,t),max:za(n.max,e,t)}},e.prototype._curveExtremes=function(t,e,n,i){var r=t-3*e+3*n-i,o=-2*(t-2*e+n),s=t-e,a=Math.sqrt(o*o-4*r*s),l=0,h=1;0===r?0!==o&&(l=h=-s/o):isNaN(a)||(l=(-o+a)/(2*r),h=(-o-a)/(2*r));var c=Math.max(Math.min(l,h),0);(c<0||c>1)&&(c=0);var p=Math.min(Math.max(l,h),1);return(p>1||p<0)&&(p=1),{min:c,max:p}},e.prototype._intersectionsTo=function(t,e){return this.controlOut()&&t.controlIn()?function(t,e,n){for(var i,r=Ea(t,"x"),o=Da(r[0],r[1],r[2],r[3]-e.x),s=0,a=0;a<o.length;a++)(ga(i=za(o[a],"y",t),e.y)||i>e.y)&&((0===o[a]||1===o[a])&&n.bottomRight().x>e.x||0<o[a]&&o[a]<1)&&s++;return s}([this.anchor(),this.controlOut(),t.controlIn(),t.anchor()],e,this.bboxTo(t)):Va(this.anchor(),t.anchor(),e)},e.prototype._isOnCurveTo=function(t,e,n,i){if(this.bboxTo(t).expand(n,n).containsPoint(e)){var r=this.anchor(),o=this.controlOut(),s=t.controlIn(),a=t.anchor(
1);if("start"===i&&r.distanceTo(e)<=n)return!Ia(r,o,e);if("end"===i&&a.distanceTo(e)<=n)return!Ia(a,s,e);var l=[r,o,s,a];if(Fa(l,e,"x","y",n)||Fa(l,e,"y","x",n))return!0;var h=Qs().rotate(45,e),c=[r.transformCopy(h),o.transformCopy(h),s.transformCopy(h),a.transformCopy(h)];return Fa(c,e,"x","y",n)||Fa(c,e,"y","x",n)}},e.prototype._isOnLineTo=function(t,e,n){var i=this.anchor(),r=t.anchor(),o=os(Math.atan2(r.y-i.y,r.x-i.x));return new Zs([i.x,i.y-n/2],[i.distanceTo(r),n]).containsPoint(e.transformCopy(Qs().rotate(-o,i)))},e.prototype._isOnPathTo=function(t,e,n,i){return this.controlOut()&&t.controlIn()?this._isOnCurveTo(t,e,n/2,i):this._isOnLineTo(t,e,n)},e}(mo);function Ha(t){for(var e=t.length,n=is,i=rs,r=0;r<e;r++)i=Math.max(i,t[r]),n=Math.min(n,t[r]);return{min:n,max:i}}Ra(Na.prototype,["anchor","controlIn","controlOut"]),fo.extend(Na.prototype);var Ua=Na;function Ga(t,e,n){for(var i,r=0;r<t.length;r++){var o=t[r];if(o.visible()){var s=e?o.bbox(n):o.rawBBox();s&&(i=i?Zs.union(i,s):s)}}return i}function qa(t,e){for(var n,i=0;i<t.length;i++){var r=t[i];if(r.visible()){var o=r.clippedBBox(e);o&&(n=n?Zs.union(n,o):o)}}return n}var $a=function(t){function e(e){t.call(this,e),this.paths=new Ta,this.paths.addObserver(this),Qo(this.options.stroke)||this.stroke("#000")}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.moveTo=function(t,e){var n=new rl;return n.moveTo(t,e),this.paths.push(n),this},e.prototype.lineTo=function(t,e){return this.paths.length>0&&us(this.paths).lineTo(t,e),this},e.prototype.curveTo=function(t,e,n){return this.paths.length>0&&us(this.paths).curveTo(t,e,n),this},e.prototype.arc=function(t,e,n,i,r){return this.paths.length>0&&us(this.paths).arc(t,e,n,i,r),this},e.prototype.arcTo=function(t,e,n,i,r,o){return this.paths.length>0&&us(this.paths).arcTo(t,e,n,i,r,o),this},e.prototype.close=function(){return this.paths.length>0&&us(this.paths).close(),this},e.prototype._bbox=function(t){return Ga(this.paths,!0,t)},e.prototype.rawBBox=function(){return Ga(this.paths,!1)},e.prototype._containsPoint=function(t){for(var e=this.paths,n=0;n<e.length;n++)if(e[n]._containsPoint(t))return!0;return!1},e.prototype._isOnPath=function(t){for(var e=this.paths,n=this.options.stroke.width,i=0;i<e.length;i++)if(e[i]._isOnPath(t,n))return!0;return!1},e.prototype._clippedBBox=function(t){return qa(this.paths,this.currentTransform(t))},e}(ea);$a.prototype.nodeType="MultiPath",sa.extend($a.prototype),la.extend($a.prototype);var Xa=$a;function Wa(t,e,n){for(var i=e?0:1,r=0;r<t.length;r+=2)t.splice(r+i,0,n)}function Ya(t,e){if(t&&e)return e.scaleCopy(2).translate(-t.x,-t.y)}var Za=1/3;function Ja(t,e,n){var i=e.clone().scale(2/3);return{controlOut:i.clone().translateWith(t.scaleCopy(Za)),controlIn:i.translateWith(n.scaleCopy(Za))}}var Ka={l:function(t,e){for(var n=e.parameters,i=e.position,r=0;r<n.length;r+=2){var o=new $s(n[r],n[r+1]);e.isRelative&&o.translateWith(i),t.lineTo(o.x,o.y),i.x=o.x,i.y=o.y}},c:function(t,e){for(var n=e.parameters,i=e.position,r=0;r<n.length;r+=6){var o=new $s(n[r],n[r+1]),s=new $s(n[r+2],n[r+3]),a=new $s(n[r+4],n[r+5]);e.isRelative&&(s.translateWith(i),o.translateWith(i),a.translateWith(i)),t.curveTo(o,s,a),i.x=a.x,i.y=a.y}},v:function(t,e){Wa(e.parameters,!0,e.isRelative?0:e.position.x),this.l(t,e)},h:function(t,e){Wa(e.parameters,!1,e.isRelative?0:e.position.y),this.l(t,e)},a:function(t,e){for(var n=e.parameters,i=e.position,r=0;r<n.length;r+=7){var o=n[r],s=n[r+1],a=n[r+2],l=n[r+3],h=n[r+4],c=new $s(n[r+5],n[r+6]);e.isRelative&&c.translateWith(i),i.x===c.x&&i.y===c.y||(t.arcTo(c,o,s,l,h,a),i.x=c.x,i.y=c.y)}},s:function(t,e){var n,i=e.parameters,r=e.position,o=e.previousCommand;"s"!==o&&"c"!==o||(n=us(us(t.paths).segments).controlIn());for(var s=0;s<i.length;s+=4){var a,l=new $s(i[s],i[s+1]),h=new $s(i[s+2],i[s+3]);e.isRelative&&(l.translateWith(r),h.translateWith(r)),a=n?Ya(n,r):r.clone(),n=l,t.curveTo(a,l,h),r.x=h.x,r.y=h.y}},q:function(t,e){for(var n=e.parameters,i=e.position,r=0;r<n.length;r+=4){var o=new $s(n[r],n[r+1]),s=new $s(n[r+2],n[r+3]);e.isRelative&&(o.translateWith(i),s.translateWith(i));var a=Ja(i,o,s);t.curveTo(a.controlOut,a.controlIn,s),i.x=s.x,i.y=s.y}},t:function(t,e){var n,i=e.parameters,r=e.position,o=e.previousCommand;"q"!==o&&"t"!==o||(n=us(us(t.paths).segments).controlIn().clone().translateWith(r.scaleCopy(-1/3)).scale(1.5));for(var s=0;s<i.length;s+=2){var a=new $s(i[s],i[s+1]);e.isRelative&&a.translateWith(r);var l=Ja(r,n=n?Ya(n,r):r.clone(),a);t.curveTo(l.controlOut,l.controlIn,a),r.x=a.x,r.y=a.y}}},Qa=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,tl=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g,el=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.parse=function(t,e){var n,i=new Xa(e),r=new $s;return t.replace(Qa,function(t,e,o,s){var a=e.toLowerCase(),l=a===e,h=function(t){var e=[];return o.trim().replace(tl,function(t,n){e.push(parseFloat(n))}),e}();if("m"===a&&(l?(r.x+=h[0],r.y+=h[1]):(r.x=h[0],r.y=h[1]),i.moveTo(r.x,r.y),h.length>2&&(a="l",h.splice(0,2))),Ka[a])Ka[a](i,{parameters:h,position:r,isRelative:l,previousCommand:n}),s&&"z"===s.toLowerCase()&&i.close();else if("m"!==a)throw new Error("Error while parsing SVG path. Unsupported command: "+a);n=a}),i},e}(mo);
1el.current=new el;var nl=el,il=function(t){function e(e){t.call(this,e),this.segments=new Ta,this.segments.addObserver(this),Qo(this.options.stroke)||(this.stroke("#000"),Qo(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.moveTo=function(t,e){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(t,e),this},e.prototype.lineTo=function(t,e){var n=Qo(e)?new $s(t,e):t,i=new Ua(n);return this.segments.push(i),this},e.prototype.curveTo=function(t,e,n){if(this.segments.length>0){var i=us(this.segments),r=new Ua(n,e);this.suspend(),i.controlOut(t),this.resume(),this.segments.push(r)}return this},e.prototype.arc=function(t,e,n,i,r){if(this.segments.length>0){var o=us(this.segments).anchor(),s=vs(t),a=new $s(o.x-n*Math.cos(s),o.y-i*Math.sin(s)),l=new _a(a,{startAngle:t,endAngle:e,radiusX:n,radiusY:i,anticlockwise:r});this._addArcSegments(l)}return this},e.prototype.arcTo=function(t,e,n,i,r,o){if(this.segments.length>0){var s=us(this.segments).anchor(),a=_a.fromPoints(s,t,e,n,i,r,o);this._addArcSegments(a)}return this},e.prototype._addArcSegments=function(t){this.suspend();for(var e=t.curvePoints(),n=1;n<e.length;n+=3)this.curveTo(e[n],e[n+1],e[n+2]);this.resume(),this.geometryChange()},e.prototype.close=function(){return this.options.closed=!0,this.geometryChange(),this},e.prototype.rawBBox=function(){return this._bbox()},e.prototype._containsPoint=function(t){for(var e=this.segments,n=e.length,i=0,r=1;r<n;r++)i+=e[r-1]._intersectionsTo(e[r],t);return!this.options.closed&&e[0].anchor().equals(e[n-1].anchor())||(i+=Va(e[0].anchor(),e[n-1].anchor(),t)),i%2!=0},e.prototype._isOnPath=function(t,e){var n=this.segments,i=n.length,r=e||this.options.stroke.width;if(i>1){if(n[0]._isOnPathTo(n[1],t,r,"start"))return!0;for(var o=2;o<=i-2;o++)if(n[o-1]._isOnPathTo(n[o],t,r))return!0;if(n[i-2]._isOnPathTo(n[i-1],t,r,"end"))return!0}return!1},e.prototype._bbox=function(t){var e,n=this.segments,i=n.length;if(1===i){var r=n[0].anchor().transformCopy(t);e=new Zs(r,Ws.ZERO)}else if(i>0)for(var o=1;o<i;o++){var s=n[o-1].bboxTo(n[o],t);e=e?Zs.union(e,s):s}return e},e.fromRect=function(t,n){return new e(n).moveTo(t.topLeft()).lineTo(t.topRight()).lineTo(t.bottomRight()).lineTo(t.bottomLeft()).close()},e.fromPoints=function(t,n){if(t){for(var i=new e(n),r=0;r<t.length;r++){var o=$s.create(t[r]);o&&(0===r?i.moveTo(o):i.lineTo(o))}return i}},e.fromArc=function(t,n){var i=new e(n),r=t.startAngle,o=t.pointAt(r);return i.moveTo(o.x,o.y),i.arc(r,t.endAngle,t.radiusX,t.radiusY,t.anticlockwise),i},e}(ea);il.prototype.nodeType="Path",sa.extend(il.prototype),la.extend(il.prototype),il.parse=function(t,e){return nl.current.parse(t,e)};var rl=il,ol="#000",sl=function(t){function e(e,n){void 0===e&&(e=new _a),void 0===n&&(n={}),t.call(this,n),this.geometry(e),Qo(this.options.stroke)||this.stroke(ol)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype.rawBBox=function(){return this.geometry().bbox()},e.prototype.toPath=function(){var t=new rl,e=this.geometry().curvePoints();if(e.length>0){t.moveTo(e[0].x,e[0].y);for(var n=1;n<e.length;n+=3)t.curveTo(e[n],e[n+1],e[n+2])}return t},e.prototype._containsPoint=function(t){return this.geometry().containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},e}(ea);sl.prototype.nodeType="Arc",sa.extend(sl.prototype),la.extend(sl.prototype),ca(sl.prototype,["geometry"]);var al=sl,ll="12px sans-serif",hl="#000",cl=function(t){function e(e,n,i){void 0===n&&(n=new $s),void 0===i&&(i={}),t.call(this,i),this.content(e),this.position(n),this.options.font||(this.options.font=ll),Qo(this.options.fill)||this.fill(hl)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.content=function(t){return Qo(t)?(this.options.set("content",t),this):this.options.get("content")},e.prototype.measure=function(){return Es(this.content(),{font:this.options.get("font")})},e.prototype.rect=function(){var t=this.measure(),e=this.position().clone();return new Zs(e,[t.width,t.height])},e.prototype.bbox=function(t){var e=Gs(this.currentTransform(t));return this.rect().bbox(e)},e.prototype.rawBBox=function(){return this.rect().bbox()},e.prototype._containsPoint=function(t){return this.rect().containsPoint(t)},e}(ea);cl.prototype.nodeType="Text",sa.extend(cl.prototype),Ra(cl.prototype,["position"]);var pl=cl,ul=function(t){function e(e,n,i){void 0===n&&(n=new Zs),void 0===i&&(i={}),t.call(this,i),this.src(e),this.rect(n)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.src=function(t){return Qo(t)?(this.options.set("src",t),this):this.options.get("src")},e.prototype.bbox=function(t){var e=Gs(this.currentTransform(t));return this._rect.bbox(e)},e.prototype.rawBBox=function(){return this._rect.bbox()},e.prototype._containsPoint=function(t){return this._rect.containsPoint(t)},e.prototype._hasFill=function(){return this.src()},e}(ea);ul.prototype.nodeType="Image",ca(ul.prototype,["rect"]);
1var fl=ul,dl=function(t,e){t.traverse=function(t){for(var n=this[e],i=0;i<n.length;i++){var r=n[i];r.traverse?r.traverse(t):t(r)}return this}},gl=function(t){function e(e){t.call(this,e),this.children=[]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.childrenChange=function(t,e,n){this.trigger("childrenChange",{action:t,items:e,index:n})},e.prototype.append=function(){return Wo(this.children,arguments),this._reparent(arguments,this),this.childrenChange("add",arguments),this},e.prototype.insert=function(t,e){return this.children.splice(t,0,e),e.parent=this,this.childrenChange("add",[e],t),this},e.prototype.insertAt=function(t,e){return this.insert(e,t)},e.prototype.remove=function(t){var e=this.children.indexOf(t);return e>=0&&(this.children.splice(e,1),t.parent=null,this.childrenChange("remove",[t],e)),this},e.prototype.removeAt=function(t){if(0<=t&&t<this.children.length){var e=this.children[t];this.children.splice(t,1),e.parent=null,this.childrenChange("remove",[e],t)}return this},e.prototype.clear=function(){var t=this.children;return this.children=[],this._reparent(t,null),this.childrenChange("remove",t,0),this},e.prototype.bbox=function(t){return Ga(this.children,!0,this.currentTransform(t))},e.prototype.rawBBox=function(){return Ga(this.children,!1)},e.prototype._clippedBBox=function(t){return qa(this.children,this.currentTransform(t))},e.prototype.currentTransform=function(e){return t.prototype.currentTransform.call(this,e)||null},e.prototype.containsPoint=function(t,e){if(this.visible())for(var n=this.children,i=this.currentTransform(e),r=0;r<n.length;r++)if(n[r].containsPoint(t,i))return!0;return!1},e.prototype._reparent=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=i.parent;r&&r!==this&&r.remove&&r.remove(i),i.parent=e}},e}(ea);gl.prototype.nodeType="Group",dl(gl.prototype,"children");var vl=gl;function yl(t,e,n){var i=n.transform()||Qs(),r=i.matrix();r.e+=t.x-e.origin.x,r.f+=t.y-e.origin.y,i.matrix(r),n.transform(i)}function ml(t,e,n,i,r){return"start"===n?e.origin[i]:"end"===n?e.origin[i]+e.size[r]-t:e.origin[i]+(e.size[r]-t)/2}function xl(t,e,n,i,r){return"start"===n?e.origin[i]+e.size[r]-t:"end"===n?e.origin[i]:e.origin[i]+(e.size[r]-t)/2}var bl={alignContent:"start",justifyContent:"start",alignItems:"start",spacing:0,orientation:"horizontal",lineSpacing:0,wrap:!0,revers:!1},_l=function(t,e){t.forEach(e)},wl=function(t,e){for(var n=t.length-1;n>=0;n--)e(t[n],n)},Cl=function(t){function e(e,n){t.call(this,Object.assign({},bl,n)),this._rect=e,this._fieldMap={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.rect=function(t){return t?(this._rect=t,this):this._rect},e.prototype._initMap=function(){var t=this.options,e=this._fieldMap;"horizontal"===t.orientation?(e.sizeField="width",e.groupsSizeField="height",e.groupAxis="x",e.groupsAxis="y"):(e.sizeField="height",e.groupsSizeField="width",e.groupAxis="y",e.groupsAxis="x"),t.reverse?(this.forEach=wl,this.justifyAlign=xl):(this.forEach=_l,this.justifyAlign=ml)},e.prototype.reflow=function(){if(this._rect&&0!==this.children.length){this._initMap(),this.options.transform&&this.transform(null);for(var t,e,n,i=this.options,r=this._rect,o=this._initGroups(),s=o.groups,a=o.groupsSize,l=this._fieldMap,h=l.sizeField,c=l.groupsSizeField,p=l.groupAxis,u=l.groupsAxis,f=new $s,d=new $s,g=new Ws,v=ml(a,r,i.alignContent,u,c),y=function(r,o){var s=e.elements[o];d[p]=t,d[u]=ml(r.size[c],n,i.alignItems,u,c),yl(d,r,s),t+=r.size[h]+i.spacing},m=0;m<s.length;m++)f[p]=t=this.justifyAlign((e=s[m]).size,r,i.justifyContent,p,h),f[u]=v,g[h]=e.size,g[c]=e.lineSize,n=new Zs(f,g),this.forEach(e.bboxes,y),v+=e.lineSize+i.lineSpacing;if(!i.wrap&&e.size>r.size[h]){var x=r.size[h]/n.size[h],b=n.topLeft().scale(x,x),_=ml(n.size[c]*x,r,i.alignContent,u,c),w=Qs();"x"===p?w.translate(r.origin.x-b.x,_-b.y):w.translate(_-b.x,r.origin.y-b.y),w.scale(x,x),this.transform(w)}}},e.prototype._initGroups=function(){for(var t=this.options,e=this.children,n=t.lineSpacing,i=t.wrap,r=t.spacing,o=this._fieldMap.sizeField,s=this._newGroup(),a=[],l=function(){a.push(s),h+=s.lineSize+n},h=-n,c=0;c<e.length;c++){var p=e[c],u=e[c].clippedBBox();p.visible()&&u&&(i&&s.size+u.size[o]+r>this._rect.size[o]?0===s.bboxes.length?(this._addToGroup(s,u,p),l(),s=this._newGroup()):(l(),s=this._newGroup(),this._addToGroup(s,u,p)):this._addToGroup(s,u,p))}return s.bboxes.length&&l(),{groups:a,groupsSize:h}},e.prototype._addToGroup=function(t,e,n){t.size+=e.size[this._fieldMap.sizeField]+this.options.spacing,t.lineSize=Math.max(e.size[this._fieldMap.groupsSizeField],t.lineSize),t.bboxes.push(e),t.elements.push(n)},e.prototype._newGroup=function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}},e}(vl),Sl=function(t){function e(e,n){void 0===e&&(e=new Zs),void 0===n&&(n={}),t.call(this,n),this.geometry(e),Qo(this.options.stroke)||this.stroke("#000")}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype.rawBBox=function(){return this._geometry.bbox()},e.prototype._containsPoint=function(t){return this._geometry.containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},e}(ea);Sl.prototype.nodeType="Rect",sa.extend(Sl.prototype),la.extend(Sl.prototype),ca(Sl.prototype,["geometry"]);var kl=Sl;function Ml(t,e,n,i,r){for(var o=0;o<t.length;o++){var s=t[o].clippedBBox();if(s){var a=s.origin.clone();a[i]=ml(s.size[r],e,n||"start",i,r),yl(a,s,t[o])}}}function Al(t,e,n){Ml(t,e,n,"x","width")}function Ol(t,e,n){Ml(t,e,n,"y","height")}function Pl(t,e,n,i){if(t.length>1)for(var r=new $s,o=t[0].bbox,s=1;s<t.length;s++){var a=t[s].element,l=t[s].bbox;r[e]=o.origin[e]+o.size[i],r[n]=l.origin[n],yl(r,l,a),l.origin[e]=r[e],o=l}}function Tl(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],r=i.clippedBBox();r&&e.push({element:i,bbox:r})}return e}function jl(t){Pl(Tl(t),"x","y","width")}function Rl(t){Pl(Tl(t),"y","x","height")}function Il(t,e,n,i,r){for(var o=function(t,e,n){for(var i,r,o=e.size[n],s=[],a=[],l=0,h=function(){a.push({element:i,bbox:r})},c=0;c<t.length;c++)if(r=(i=t[c]).clippedBBox()){var p=r.size[n];l+p>o?a.length?(s.push(a),a=[],h(),l=p):(h(),s.push(a),a=[],l=0):(h(),l+=p)}return a.length&&s.push(a),s}(t,e,r),s=e.origin.clone(),a=[],l=0;l<o.length;l++){var h=o[l],c=h[0];s[i]=c.bbox.origin[i],yl(s,c.bbox,c.element),c.bbox.origin[n]=s[n],Pl(h,n,i,r),a.push([]);for(var p=0;p<h.length;p++)a[l].push(h[p].element)}return a}function zl(t,e){return Il(t,e,"x","y","width")}function El(t,e){return Il(t,e,"y","x","height")}function Ll(t,e){var n=t.clippedBBox();if(n){var i=n.size,r=e.size;if(r.width<i.width||r.height<i.height){var o=Math.min(r.width/i.width,r.height/i.height),s=t.transform()||Qs();s.scale(o,o),t.transform(s)}}}var Bl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._change=function(){this.optionsChange({field:"stops"})},e}(Pa);function Dl(t){return function(e){return Qo(e)?(this.options.set(t,e),this):this.options.get(t)}}var Fl=function(t){function e(e,n,i){t.call(this),this.options=new Ds({offset:e,color:n,opacity:Qo(i)?i:1}),this.options.addObserver(this)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.create=function(t){if(Qo(t))return t instanceof e?t:t.length>1?new e(t[0],t[1],t[2]):new e(t.offset,t.color,t.opacity)},e}(mo);!function(t,e){for(var n=0;n<e.length;n++)t[e[n]]=Dl(e[n])}(Fl.prototype,["offset","color","opacity"]),fo.extend(Fl.prototype);var Vl=Fl,Nl=function(t){function e(e){void 0===e&&(e={}),t.call(this),this.stops=new Bl(this._createStops(e.stops)),this.stops.addObserver(this),this._userSpace=e.userSpace,this.id=es()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.userSpace=function(t){return Qo(t)?(this._userSpace=t,this.optionsChange(),this):this._userSpace},e.prototype._createStops=function(t){void 0===t&&(t=[]);for(var e=[],n=0;n<t.length;n++)e.push(Vl.create(t[n]));return e},e.prototype.addStop=function(t,e,n){this.stops.push(new Vl(t,e,n))},e.prototype.removeStop=function(t){var e=this.stops.indexOf(t);e>=0&&this.stops.splice(e,1)},e}(mo);Nl.prototype.nodeType="Gradient",fo.extend(Nl.prototype),Object.assign(Nl.prototype,{optionsChange:function(t){this.trigger("optionsChange",{field:"gradient"+(t?"."+t.field:""),value:this})},geometryChange:function(){this.optionsChange()}});var Hl=Nl,Ul=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.start(e.start||new $s),this.end(e.end||new $s(1,0))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Hl);Ra(Ul.prototype,["start","end"]);var Gl=Ul,ql=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.center(e.center||new $s),this._radius=Qo(e.radius)?e.radius:1,this._fallbackFill=e.fallbackFill}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.radiu
1s=function(t){return Qo(t)?(this._radius=t,this.geometryChange(),this):this._radius},e.prototype.fallbackFill=function(t){return Qo(t)?(this._fallbackFill=t,this.optionsChange(),this):this._fallbackFill},e}(Hl);Ra(ql.prototype,["center"]);var $l=ql;function Xl(t){return.5-Math.cos(t*Math.PI)/2}function Wl(t){return t}function Yl(t,e,n,i){var r=1.70158,o=0,s=i;return 0===t?n:1===t?n+i:(o||(o=.5),s<Math.abs(i)?(s=i,r=o/4):r=o/(2*Math.PI)*Math.asin(i/s),s*Math.pow(2,-10*t)*Math.sin((Number(t)-r)*(1.1*Math.PI)/o)+i+n)}var Zl=function(t){function e(){t.call(this),this._items=[]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.register=function(t,e){this._items.push({name:t,type:e})},e.prototype.create=function(t,e){var n,i=this._items;if(e&&e.type)for(var r=e.type.toLowerCase(),o=0;o<i.length;o++)if(i[o].name.toLowerCase()===r){n=i[o];break}if(n)return new n.type(t,e)},e}(mo);Zl.current=new Zl;var Jl=Zl,Kl=Date.now||function(){return(new Date).getTime()},Ql=function(t){function e(e,n){t.call(this),this.options=Object.assign({},this.options,n),this.element=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setup=function(){},e.prototype.step=function(){},e.prototype.play=function(){var t=this,e=this.options,n=e.duration,i=e.delay;void 0===i&&(i=0);var o=r[e.easing],s=Kl()+i,a=s+n;0===n?(this.step(1),this.abort()):setTimeout(function(){var e=function(){if(!t._stopped){var i=Kl(),r=fs(i-s,0,n),l=o(r/n,r,0,1,n);t.step(l),i<a?yo(e):t.abort()}};e()},i)},e.prototype.abort=function(){this._stopped=!0},e.prototype.destroy=function(){this.abort()},e}(mo);Ql.prototype.options={duration:500,easing:"swing"},Ql.create=function(t,e,n){return Jl.current.create(t,e,n)};var th=Ql,eh=function(t){function e(){t.call(this),this._items=[]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.register=function(t,e,n){var i=this._items,r=i[0],o={name:t,type:e,order:n};!r||n<r.order?i.unshift(o):i.push(o)},e.prototype.create=function(t,e){var n=this._items,i=n[0];if(e&&e.type)for(var r=e.type.toLowerCase(),o=0;o<n.length;o++)if(n[o].name===r){i=n[o];break}if(i)return new i.type(t,e);ko("Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\n- The browser does not support SVG and Canvas. User agent: "+navigator.userAgent)},e}(mo);eh.current=new eh;var nh=eh,ih=["click","mouseenter","mouseleave","mousemove","resize"],rh=function(t){function e(e,n){t.call(this),this.options=Object.assign({},n),this.element=e,this.element._kendoExportVisual=this.exportVisual.bind(this),this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._mousemove=this._handler("mousemove"),this._visual=new vl,Cs(e,this.options),this.bind(ih,this.options),this._enableTracking()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.draw=function(t){this._visual.children.push(t)},e.prototype.clear=function(){this._visual.children=[]},e.prototype.destroy=function(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()},e.prototype.eventTarget=function(t){for(var e,n=cs(t);!e&&n&&(e=n._kendoNode,n!==this.element);)n=n.parentElement;if(e)return e.srcElement},e.prototype.exportVisual=function(){return this._visual},e.prototype.getSize=function(){return Cs(this.element)},e.prototype.currentSize=function(t){if(!t)return this._size;this._size=t},e.prototype.setSize=function(t){Cs(this.element,t),this.currentSize(t),this._resize()},e.prototype.resize=function(t){var e=this.getSize(),n=this.currentSize();(t||(e.width>0||e.height>0)&&(!n||e.width!==n.width||e.height!==n.height))&&(this.currentSize(e),this._resize(e,t),this.trigger("resize",e))},e.prototype.size=function(t){if(!t)return this.getSize();this.setSize(t)},e.prototype.suspendTracking=function(){this._suspendedTracking=!0},e.prototype.resumeTracking=function(){this._suspendedTracking=!1},e.prototype._enableTracking=function(){},e.prototype._resize=function(){},e.prototype._handler=function(t){var e=this;return function(n){var i=e.eventTarget(n);i&&!e._suspendedTracking&&e.trigger(t,{element:i,originalEvent:n,type:t})}},e.prototype._elementOffset=function(){var t=this.element,e=_s(t,["paddingLeft","paddingTop"]),n=e.paddingLeft,i=e.paddingTop,r=bs(t),o=r.top;return{left:r.left+parseInt(n,10),top:o+parseInt(i,10)}},e.prototype._surfacePoint=function(t){var e=this._elementOffset(),n=hs(t);return new $s(n.x-e.left,n.y-e.top)},e}(To);rh.create=function(t,e){return nh.current.create(t,e)},rh.support={};var oh=rh,sh=function(t){function e(e){t.call(this),this.childNodes=[],this.parent=null,e&&(this.srcElement=e,this.observe())}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.destroy=function(){this.srcElement&&this.srcElement.removeObserver(this);for(var t=this.childNodes,e=0;e<t.length;e++)this.childNodes[e].destroy();this.parent=null},e.prototype.load=function(){},e.prototype.observe=function(){this.srcElement&&this.srcElement.addObserver(this)},e.prototype.append=function(t){this.childNodes.push(t),t.parent=this},e.prototype.insertAt=function(t,e){this.childNodes.splice(e,0,t),t.parent=this},e.prototype.remove=function(t,e){for(var n=t+e,i=t;i<n;i++)this.childNodes[i].removeSelf();this.childNodes.splice(t,e)},e.prototype.removeSelf=function(){this.clear(),this.destroy()},e.prototype.clear=function(){this.remove(0,this.childNodes.length)},e.prototype.invalidate=function(){this.parent&&this.parent.invali
1date()},e.prototype.geometryChange=function(){this.invalidate()},e.prototype.optionsChange=function(){this.invalidate()},e.prototype.childrenChange=function(t){"add"===t.action?this.load(t.items,t.index):"remove"===t.action&&this.remove(t.index,t.items.length),this.invalidate()},e}(mo);function ah(t,e){return Qo(e)&&null!==e?" "+t+'="'+e+'" ':""}function lh(t){for(var e="",n=0;n<t.length;n++)e+=ah(t[n][0],t[n][1]);return e}function hh(t){for(var e="",n=0;n<t.length;n++){var i=t[n][1];Qo(i)&&(e+=t[n][0]+":"+i+";")}if(""!==e)return e}var ch={},ph="http://www.w3.org/2000/svg",uh=function(t,e){t.innerHTML=e};if("undefined"!=typeof document){var fh="<svg xmlns='"+ph+"'></svg>",dh=document.createElement("div"),gh="undefined"!=typeof DOMParser;dh.innerHTML=fh,gh&&dh.firstChild.namespaceURI!==ph&&(uh=function(t,e){var n=(new DOMParser).parseFromString(e,"text/xml"),i=document.adoptNode(n.documentElement);t.innerHTML="",t.appendChild(i)})}var vh=uh,yh={clip:"clip-path",fill:"fill"};function mh(t,e){return"clip"===t||"fill"===t&&(!e||"Gradient"===e.nodeType)}var xh=function(t){function e(e,n){t.call(this,e),this.definitions={},this.options=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.destroy=function(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(),t.prototype.destroy.call(this)},e.prototype.load=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=i.children,o=new ch[i.nodeType](i,this.options);Qo(e)?this.insertAt(o,e):this.append(o),o.createDefinitions(),r&&r.length>0&&o.load(r);var s=this.element;s&&o.attachTo(s,e)}},e.prototype.root=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.attachTo=function(t,e){var n=document.createElement("div");vh(n,"<svg xmlns='"+ph+"' version='1.1'>"+this.render()+"</svg>");var i=n.firstChild.firstChild;i&&(Qo(e)?t.insertBefore(i,t.childNodes[e]||null):t.appendChild(i),this.setElement(i))},e.prototype.setElement=function(t){this.element&&(this.element._kendoNode=null),this.element=t,this.element._kendoNode=this;for(var e=this.childNodes,n=0;n<e.length;n++)e[n].setElement(t.childNodes[n])},e.prototype.clear=function(){this.clearDefinitions(),this.element&&(this.element.innerHTML="");for(var t=this.childNodes,e=0;e<t.length;e++)t[e].destroy();this.childNodes=[]},e.prototype.removeSelf=function(){if(this.element){var e=this.element.parentNode;e&&e.removeChild(this.element),this.element=null}t.prototype.removeSelf.call(this)},e.prototype.template=function(){return this.renderChildren()},e.prototype.render=function(){return this.template()},e.prototype.renderChildren=function(){for(var t=this.childNodes,e="",n=0;n<t.length;n++)e+=t[n].render();return e},e.prototype.optionsChange=function(e){var n=e.field,i=e.value;"visible"===n?this.css("display",i?"":"none"):yh[n]&&mh(n,i)?this.updateDefinition(n,i):"opacity"===n?this.attr("opacity",i):"cursor"===n?this.css("cursor",i):"id"===n&&(i?this.attr("id",i):this.removeAttr("id")),t.prototype.optionsChange.call(this,e)},e.prototype.attr=function(t,e){this.element&&this.element.setAttribute(t,e)},e.prototype.allAttr=function(t){for(var e=0;e<t.length;e++)this.attr(t[e][0],t[e][1])},e.prototype.css=function(t,e){this.element&&(this.element.style[t]=e)},e.prototype.allCss=function(t){for(var e=0;e<t.length;e++)this.css(t[e][0],t[e][1])},e.prototype.removeAttr=function(t){this.element&&this.element.removeAttribute(t)},e.prototype.mapTransform=function(t){var e=[];return t&&e.push(["transform","matrix("+t.matrix().toString(6)+")"]),e},e.prototype.renderTransform=function(){return lh(this.mapTransform(this.srcElement.transform()))},e.prototype.transformChange=function(t){t?this.allAttr(this.mapTransform(t)):this.removeAttr("transform")},e.prototype.mapStyle=function(){var t=this.srcElement.options,e=[["cursor",t.cursor]];return!1===t.visible&&e.push(["display","none"]),e},e.prototype.renderStyle=function(){return ah("style",hh(this.mapStyle(!0)))},e.prototype.renderOpacity=function(){return ah("opacity",this.srcElement.options.opacity)},e.prototype.renderId=function(){return ah("id",this.srcElement.options.id)},e.prototype.createDefinitions=function(){var t=this.srcElement,e=this.definitions;if(t){var n,i=t.options;for(var r in yh){var o=i.get(r);o&&mh(r,o)&&(e[r]=o,n=!0)}n&&this.definitionChange({action:"add",definitions:e})}},e.prototype.definitionChange=function(t){this.parent&&this.parent.definitionChange(t)}
1,e.prototype.updateDefinition=function(t,e){var n=this.definitions,i=n[t],r=yh[t],o={};i&&(o[t]=i,this.definitionChange({action:"remove",definitions:o}),delete n[t]),e?(o[t]=e,this.definitionChange({action:"add",definitions:o}),n[t]=e,this.attr(r,this.refUrl(e.id))):i&&this.removeAttr(r)},e.prototype.clearDefinitions=function(){this.definitionChange({action:"remove",definitions:this.definitions}),this.definitions={}},e.prototype.renderDefinitions=function(){return lh(this.mapDefinitions())},e.prototype.mapDefinitions=function(){var t=this.definitions,e=[];for(var n in t)e.push([yh[n],this.refUrl(t[n].id)]);return e},e.prototype.refUrl=function(t){var e=(this.options||{}).skipBaseHref,n=this.baseUrl().replace(/'/g,"\\'");return"url("+(e?"":n)+"#"+t+")"},e.prototype.baseUrl=function(){return function(){var t=document.getElementsByTagName("base")[0],e=document.location.href,n="";if(t&&!Ro.browser.msie){var i=e.indexOf("#");-1!==i&&(e=e.substring(0,i)),n=e}return n}()},e}(sh),bh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.template=function(){return"<stop "+this.renderOffset()+" "+this.renderStyle()+" />"},e.prototype.renderOffset=function(){return ah("offset",this.srcElement.offset())},e.prototype.mapStyle=function(){var t=this.srcElement;return[["stop-color",t.color()],["stop-opacity",t.opacity()]]},e.prototype.optionsChange=function(t){"offset"===t.field?this.attr(t.field,t.value):"color"!==t.field&&"opacity"!==t.field||this.css("stop-"+t.field,t.value)},e}(xh),_h=function(t){function e(e){t.call(this,e),this.id=e.id,this.loadStops()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.loadStops=function(){for(var t=this.srcElement.stops,e=this.element,n=0;n<t.length;n++){var i=new bh(t[n]);this.append(i),e&&i.attachTo(e)}},e.prototype.optionsChange=function(t){"gradient.stops"===t.field?(sh.prototype.clear.call(this),this.loadStops()):"gradient"===t.field&&this.allAttr(this.mapCoordinates())},e.prototype.renderCoordinates=function(){return lh(this.mapCoordinates())},e.prototype.mapSpace=function(){return["gradientUnits",this.srcElement.userSpace()?"userSpaceOnUse":"objectBoundingBox"]},e}(xh),wh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.template=function(){return"<linearGradient id='"+this.id+"' "+this.renderCoordinates()+">"+this.renderChildren()+"</linearGradient>"},e.prototype.mapCoordinates=function(){var t=this.srcElement,e=t.start(),n=t.end();return[["x1",e.x],["y1",e.y],["x2",n.x],["y2",n.y],this.mapSpace()]},e}(_h),Ch=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.template=function(){return"<radialGradient id='"+this.id+"' "+this.renderCoordinates()+">"+this.renderChildren()+"</radialGradient>"},e.prototype.mapCoordinates=function(){var t=this.srcElement,e=t.center(),n=t.radius();return[["cx",e.x],["cy",e.y],["r",n],this.mapSpace()]},e}(_h),Sh=function(t){function e(e){t.call(this),this.srcElement=e,this.id=e.id,this.load([e])}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.template=function(){return"<clipPath id='"+this.id+"'>"+this.renderChildren()+"</clipPath>"},e}(xh),kh=function(t){function e(){t.call(this),this.definitionMap={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.attachTo=function(t){this.element=t},e.prototype.template=function(){return"<defs>"+this.renderChildren()+"</defs>"},e.prototype.definitionChange=function(t){var e=t.definitions,n=t.action;"add"===n?this.addDefinitions(e):"remove"===n&&this.removeDefinitions(e)},e.prototype.createDefinition=function(t,e){var n;return"clip"===t?n=Sh:"fill"===t&&(e instanceof Gl?n=wh:e instanceof $l&&(n=Ch)),new n(e)},e.prototype.addDefinitions=function(t){for(var e in t)this.addDefinition(e,t[e])},e.prototype.addDefinition=function(t,e){var n=this.element,i=this.definitionMap,r=e.id,o=i[r];if(o)o.count++;else{var s=this.createDefinition(t,e);i[r]={element:s,count:1},this.append(s),n&&s.attachTo(this.element)}},e.prototype.removeDefinitions=function(t){for(var e in t)this.removeDefinition(t[e])},e.prototype.removeDefinition=function(t){var e=this.definitionMap,n=t.id,i=e[n];i&&(i.count--,0===i.count&&(this.remove(this.childNodes.indexOf(i.element),1),delete e[n]))},e}(xh),Mh=function(t){function e(e){t.call(this),this.options=e,this.defs=new kh}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.attachTo=function(t){this.element=t,this.defs.attachTo(t.firstElementChild)},e.prototype.clear=function(){sh.prototype.clear.call(this)},e.prototype.template=function(){return this.defs.render()+this.renderChildren()},e.prototype.definitionChange=function(t){this.defs.definitionChange(t)}
1,e}(xh),Ah="rtl",Oh=function(t){function e(e,n){t.call(this,e,n),this._root=new Mh(Object.assign({rtl:_s(e,"direction").direction===Ah},this.options)),vh(this.element,this._template()),this._rootElement=this.element.firstElementChild,function(t){var e;try{e=t.getScreenCTM?t.getScreenCTM():null}catch(t){}if(e){var n=-e.e%1,i=-e.f%1,r=t.style;0===n&&0===i||(r.left=n+"px",r.top=i+"px")}}(this._rootElement),this._root.attachTo(this._rootElement),xs(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove}),this.resize()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.destroy=function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,Ss(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),t.prototype.destroy.call(this)},e.prototype.translate=function(t){var e=Math.round(t.x)+" "+Math.round(t.y)+" "+this._size.width+" "+this._size.height;this._offset=t,this._rootElement.setAttribute("viewBox",e)},e.prototype.draw=function(e){t.prototype.draw.call(this,e),this._root.load([e])},e.prototype.clear=function(){t.prototype.clear.call(this),this._root.clear()},e.prototype.svg=function(){return"<?xml version='1.0' ?>"+this._template()},e.prototype.exportVisual=function(){var t=this._visual,e=this._offset;if(e){var n=new vl;n.children.push(t),n.transform(Qs().translate(-e.x,-e.y)),t=n}return t},e.prototype._resize=function(){this._offset&&this.translate(this._offset)},e.prototype._template=function(){return"<svg style='width: 100%; height: 100%; overflow: hidden;' xmlns='"+ph+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+this._root.render()+"</svg>"},e}(oh);Oh.prototype.type="svg","undefined"!=typeof document&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(oh.support.svg=!0,nh.current.register("svg",Oh,10));var Ph=Oh,Th=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.template=function(){return"<g"+(this.renderId()+this.renderTransform()+this.renderStyle()+this.renderOpacity()+this.renderDefinitions())+">"+this.renderChildren()+"</g>"},e.prototype.optionsChange=function(e){"transform"===e.field&&this.transformChange(e.value),t.prototype.optionsChange.call(this,e)},e}(xh);ch.Group=Th;var jh=Th,Rh={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},Ih={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},zh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.geometryChange=function(){this.attr("d",this.renderData()),this.invalidate()},e.prototype.optionsChange=function(e){switch(e.field){case"fill":e.value?this.allAttr(this.mapFill(e.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:e.value}));break;case"stroke":e.value?this.allAttr(this.mapStroke(e.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(e.value);break;default:var n=Ih[e.field];n&&this.attr(n,e.value)}t.prototype.optionsChange.call(this,e)},e.prototype.content=function(){this.element&&(this.element.textContent=this.srcElement.content())},e.prototype.renderData=function(){return this.printPath(this.srcElement)},e.prototype.printPath=function(t){var e=t.segments,n=e.length;if(n>0){for(var i,r,o=[],s=1;s<n;s++){var a=this.segmentType(e[s-1],e[s]);a!==r&&(r=a,o.push(a)),o.push("L"===a?this.printPoints(e[s].anchor()):this.printPoints(e[s-1].controlOut(),e[s].controlIn(),e[s].anchor()))}return i="M"+this.printPoints(e[0].anchor())+" "+o.join(" "),t.options.closed&&(i+="Z"),i}},e.prototype.printPoints=function(){for(var t=arguments,e=t.length,n=[],i=0;i<e;i++)n.push(t[i].toString(3));return n.join(" ")},e.prototype.segmentType=function(t,e){return t.controlOut()&&e.controlIn()?"C":"L"},e.prototype.mapStroke=function(t){var e=[];return t&&!ps(t.color)?(e.push(["stroke",t.color]),e.push(["stroke-width",t.width]),e.push(["stroke-linecap",this.renderLinecap(t)]),e.push(["stroke-linejoin",t.lineJoin]),Qo(t.opacity)&&e.push(["stroke-opacity",t.opacity]),Qo(t.dashType)&&e.push(["stroke-dasharray",this.renderDashType(t)])):e.push(["stroke","none"]),e},e.prototype.renderStroke=function(){return lh(this.mapStroke(this.srcElement.options.stroke))},e.prototype.renderDashType=function(t){var e=t.dashType,n=t.width;if(void 0===n&&(n=1),e&&"solid"!==e){for(var i=Rh[e.toLowerCase()],r=[],o=0;o<i.length;o++)r.push(i[o]*n);return r.join(" ")}},e.prototype.renderLinecap=function(t){var e=t.dashType;return e&&"solid"!==e?"butt":t.lineCap},e.prototype.mapFill=function(t){var e=[];return t&&"Gradient"===t.nodeType||(t&&!ps(t.color)?(e.push(["fill",t.color]),Qo(t.opacity)&&e.push(["fill-opacity",t.opacity])):e.push(["fill","none"])),e},e.prototype.renderFill=function(){return lh(this.mapFill(this.srcElement.options.fill))},e.prototype.template=function(){return"<path "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+" "+ah("d",this.renderData())+this.renderStroke()+this.renderFill()+this.renderDefinitions()+this.renderTransform()+"></path>"},e}(xh);ch.Path=zh;var Eh=zh,Lh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderData=function(){return this.printPath(this.srcElement.toPath())},e}(Eh);ch.Arc=Lh;var Bh=Lh,Dh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.geometryChange=function(){var t=this.center();this.attr("cx",t.x),this.attr("cy",t.y),this.attr("r",this.radius()),this.invalidate()},e.prototype.center=function(){return this.srcElement.geometry().center}
1,e.prototype.radius=function(){return this.srcElement.geometry().radius},e.prototype.template=function(){return"<circle "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+"cx='"+this.center().x+"' cy='"+this.center().y+"' r='"+this.radius()+"'"+this.renderStroke()+" "+this.renderFill()+" "+this.renderDefinitions()+this.renderTransform()+" ></circle>"},e}(Eh);ch.Circle=Dh;var Fh=Dh,Vh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.geometryChange=function(){var t=this.srcElement.geometry();this.attr("x",t.origin.x),this.attr("y",t.origin.y),this.attr("width",t.size.width),this.attr("height",t.size.height),this.invalidate()},e.prototype.size=function(){return this.srcElement.geometry().size},e.prototype.origin=function(){return this.srcElement.geometry().origin},e.prototype.template=function(){return"<rect "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+" x='"+this.origin().x+"' y='"+this.origin().y+"' width='"+this.size().width+"' height='"+this.size().height+"' "+this.renderStroke()+" "+this.renderFill()+" "+this.renderDefinitions()+" "+this.renderTransform()+" />"},e}(Eh);ch.Rect=Vh;var Nh=Vh,Hh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.geometryChange=function(){this.allAttr(this.mapPosition()),this.invalidate()},e.prototype.optionsChange=function(e){"src"===e.field&&this.allAttr(this.mapSource()),t.prototype.optionsChange.call(this,e)},e.prototype.mapPosition=function(){var t=this.srcElement.rect(),e=t.topLeft();return[["x",e.x],["y",e.y],["width",t.width()+"px"],["height",t.height()+"px"]]},e.prototype.renderPosition=function(){return lh(this.mapPosition())},e.prototype.mapSource=function(t){var e=this.srcElement.src();return t&&(e=So(e)),[["xlink:href",e]]},e.prototype.renderSource=function(){return lh(this.mapSource(!0))},e.prototype.template=function(){return"<image preserveAspectRatio='none' "+this.renderId()+" "+this.renderStyle()+" "+this.renderTransform()+" "+this.renderOpacity()+this.renderPosition()+" "+this.renderSource()+" "+this.renderDefinitions()+"></image>"},e}(Eh);ch.Image=Hh;var Uh=Hh,Gh=/&(?:[a-zA-Z]+|#\d+);/g;function qh(t){if(!t||"string"!=typeof t||!Gh.test(t))return t;var e=qh._element;return Gh.lastIndex=0,t.replace(Gh,function(t){return e.innerHTML=t,e.textContent||e.innerText})}"undefined"!=typeof document&&(qh._element=document.createElement("span"));var $h=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.geometryChange=function(){var t=this.pos();this.attr("x",t.x),this.attr("y",t.y),this.invalidate()},e.prototype.optionsChange=function(e){"font"===e.field?(this.attr("style",hh(this.mapStyle())),this.geometryChange()):"content"===e.field&&t.prototype.content.call(this,this.srcElement.content()),t.prototype.optionsChange.call(this,e)},e.prototype.mapStyle=function(e){var n=t.prototype.mapStyle.call(this,e),i=this.srcElement.options.font;return e&&(i=So(i)),n.push(["font",i],["white-space","pre"]),n},e.prototype.pos=function(){var t=this.srcElement.position(),e=this.srcElement.measure();return t.clone().setY(t.y+e.baseline)},e.prototype.renderContent=function(){var t=this.srcElement.content();return Os(t=So(t=qh(t)))},e.prototype.renderTextAnchor=function(){var t;return!(this.options||{}).rtl||Ro.browser.msie||Ro.browser.edge||(t="end"),ah("text-anchor",t)},e.prototype.template=function(){return"<text "+this.renderId()+" "+this.renderTextAnchor()+" "+this.renderStyle()+" "+this.renderOpacity()+"x='"+this.pos().x+"' y='"+this.pos().y+"' "+this.renderStroke()+" "+this.renderTransform()+" "+this.renderDefinitions()+this.renderFill()+">"+this.renderContent()+"</text>"},e}(Eh);ch.Text=$h;var Xh=$h,Wh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderData=function(){var t=this.srcElement.paths;if(t.length>0){for(var e=[],n=0;n<t.length;n++)e.push(this.printPath(t[n]));return e.join(" ")}},e}(Eh);ch.MultiPath=Wh;var Yh=Wh;function Zh(t){var e=new Mh({skipBaseHref:!0}),n=t.clippedBBox(),i=t;if(n){var r=n.getOrigin(),o=new vl;o.transform(Qs().translate(-r.x,-r.y)),o.children.push(t),i=o}e.load([i]);var s="<?xml version='1.0' ?><svg xmlns='"+ph+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+e.render()+"</svg>";return e.destroy(),s}var Jh={};function Kh(t,e){var n=e.segments;if(0!==n.length){var i=n[0],r=i.anchor();t.moveTo(r.x,r.y);for(var o=1;o<n.length;o++){r=(i=n[o]).anchor();var s=n[o-1].controlOut(),a=i.controlIn();s&&a?t.bezierCurveTo(s.x,s.y,a.x,a.y,r.x,r.y):t.lineTo(r.x,r.y)}e.options.closed&&t.closePath()}}var Qh=function(t){function e(e){t.call(this,e),e&&this.initClip()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initClip=function(){var t=this.srcElement.clip();t&&(this.clip=t,t.addObserver(this))},e.prototype.clear=function(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),t.prototype.clear.call(this)},e.prototype.clearClip=function(){this.clip&&(this.clip.removeObserver(this),delete this.clip)},e.prototype.setClip=function(t){this.clip&&(t.beginPath(),Kh(t,this.clip),t.clip())},e.prototype.optionsChange=function(e){"clip"===e.field&&(this.clearClip(),this.initClip()),t.prototype.optionsChange.call(this,e)},e.prototype.setTransform=function(t){if(this.srcElement){var e=this.srcElement.transform();e&&t.transform.apply(t,e.matrix().toArray(6))}},e.prototype.loadElements=function(t,e,n){for(var i=0;i<t.length;i++){var r=t[i],o=r.children,s=new Jh[r.nodeType](r,n);o&&o.length>0&&s.load(o,e,n),Qo(e)?this.insertAt(s,e):this.append(s)}},e.prototype.load=function(t,e,n){this.loadElements(t,e,n),this.invalidate()},e.prototype.setOpacity=function(t){if(this.srcElement){var e=this.srcElement.opacity();Qo(e)&&this.globalAlpha(t,e)}},e.prototype.globalAlpha=function(t,e){var n=e;n&&t.globalAlpha&&(n*=t.globalAlpha),t.globalAlpha=n},e.prototype.visible=function(){var t=this.srcElement;return!t||t&&!1!==t.options.visible},e}(sh),tc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderTo=function(t){if(this.visible()){t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t);for(var e=this.childNodes,n=0;n<e.length;n++){var i=e[n];i.visible()&&i.renderTo(t)}
1t.restore()}},e}(Qh);dl(tc.prototype,"childNodes"),Jh.Group=tc;var ec=tc,nc=1e3/60,ic=function(t){function e(e){t.call(this),this.canvas=e,this.ctx=e.getContext("2d");var n=this._invalidate.bind(this);this.invalidate=zo(function(){yo(n)},nc)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),this.canvas=null,this.ctx=null},e.prototype.load=function(t,e,n){this.loadElements(t,e,n),this._invalidate()},e.prototype._invalidate=function(){this.ctx&&(this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx))},e}(ec);dl(ic.prototype,"childNodes");var rc=ic,oc=function(t){function e(){t.call(this),this.shapes=[]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._add=function(t,e){this.shapes.push({bbox:e,shape:t}),t._quadNode=this},e.prototype.pointShapes=function(t){for(var e=this.shapes,n=e.length,i=[],r=0;r<n;r++)e[r].bbox.containsPoint(t)&&i.push(e[r].shape);return i},e.prototype.insert=function(t,e){this._add(t,e)},e.prototype.remove=function(t){for(var e=this.shapes,n=e.length,i=0;i<n;i++)if(e[i].shape===t){e.splice(i,1);break}},e}(mo),sc=function(t){function e(e){t.call(this),this.children=[],this.rect=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.inBounds=function(t){var e=this.rect,n=e.bottomRight(),i=t.bottomRight();return e.origin.x<=t.origin.x&&e.origin.y<=t.origin.y&&i.x<=n.x&&i.y<=n.y},e.prototype.pointShapes=function(e){for(var n=this.children,i=n.length,r=t.prototype.pointShapes.call(this,e),o=0;o<i;o++)Wo(r,n[o].pointShapes(e));return r},e.prototype.insert=function(t,e){var n=this.children,i=!1;if(this.inBounds(e)){if(this.shapes.length<4)this._add(t,e);else{n.length||this._initChildren();for(var r=0;r<n.length;r++)if(n[r].insert(t,e)){i=!0;break}i||this._add(t,e)}i=!0}return i},e.prototype._initChildren=function(){var t=this.rect,n=this.children,i=t.center(),r=t.width()/2,o=t.height()/2;n.push(new e(new Zs([t.origin.x,t.origin.y],[r,o])),new e(new Zs([i.x,t.origin.y],[r,o])),new e(new Zs([t.origin.x,i.y],[r,o])),new e(new Zs([i.x,i.y],[r,o])))},e}(oc);function ac(t,e){return t._zIndex<e._zIndex?1:t._zIndex>e._zIndex?-1:0}var lc=function(t){function e(){t.call(this),this.initRoots()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initRoots=function(){this.rootMap={},this.root=new oc,this.rootElements=[]},e.prototype.clear=function(){for(var t=this.rootElements,e=0;e<t.length;e++)this.remove(t[e]);this.initRoots()},e.prototype.pointShape=function(t){var e=(this.rootMap[Math.floor(t.x/3e3)]||{})[Math.floor(t.y/3e3)],n=this.root.pointShapes(t);e&&(n=n.concat(e.pointShapes(t))),this.assignZindex(n),n.sort(ac);for(var i=0;i<n.length;i++)if(n[i].containsPoint(t))return n[i]},e.prototype.assignZindex=function(t){for(var e=0;e<t.length;e++){for(var n=t[e],i=0,r=Math.pow(1e4,75),o=[];n;)o.push(n),n=n.parent;for(;o.length;)i+=(((n=o.pop()).parent?n.parent.children:this.rootElements).indexOf(n)+1)*r,r/=1e4;t[e]._zIndex=i}},e.prototype.optionsChange=function(t){"transform"!==t.field&&"stroke.width"!==t.field||this.bboxChange(t.element)},e.prototype.geometryChange=function(t){this.bboxChange(t.element)},e.prototype.bboxChange=function(t){if("Group"===t.nodeType)for(var e=0;e<t.children.length;e++)this.bboxChange(t.children[e]);else t._quadNode&&t._quadNode.remove(t),this._insertShape(t)},e.prototype.add=function(t){var e=Array.isArray(t)?t.slice(0):[t];Wo(this.rootElements,e),this._insert(e)},e.prototype.childrenChange=function(t){if("remove"===t.action)for(var e=0;e<t.items.length;e++)this.remove(t.items[e]);else this._insert(Array.prototype.slice.call(t.items,0))},e.prototype._insert=function(t){for(var e;t.length>0;)(e=t.pop()).addObserver(this),"Group"===e.nodeType?Wo(t,e.children):this._insertShape(e)},e.prototype._insertShape=function(t){var e=t.bbox();if(e){var n=this.getSectors(e),i=n[0][0],r=n[1][0];if(this.inRoot(n))this.root.insert(t,e);else{var o=this.rootMap;o[i]||(o[i]={}),o[i][r]||(o[i][r]=new sc(new Zs([3e3*i,3e3*r],[3e3,3e3]))),o[i][r].insert(t,e)}}},e.prototype.remove=function(t){if(t.removeObserver(this),"Group"===t.nodeType)for(var e=t.children,n=0;n<e.length;n++)this.remove(e[n]);else t._quadNode&&(t._quadNode.remove(t),delete t._quadNode)},e.prototype.inRoot=function(t){return t[0].length>1||t[1].length>1},e.prototype.getSectors=function(t){for(var e=t.bottomRight(),n=Math.floor(e.x/3e3),i=Math.floor(e.y/3e3),r=[[],[]],o=Math.floor(t.origin.x/3e3);o<=n;o++)r[0].push(o);for(var s=Math.floor(t.origin.y/3e3);s<=i;s++)r[1].push(s);return r},e}(mo),hc=function(t){t.bind("mouseenter",this._mouseenter.bind(this)),t.bind("mouseleave",this._mouseleave.bind(this)),this.element=t.element};hc.prototype.clear=function(){this._resetCursor()},hc.prototype.destroy=function(){this._resetCursor(),delete this.element},hc.prototype._mouseenter=function(t){var e=this._shapeCursor(t);e?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(e)):this._resetCursor()},hc.prototype._mouseleave=function(){this._resetCursor()},hc.prototype._shapeCursor=function(t){for(var e=t.element;e&&!Qo(e.options.cursor);)e=e.parent;if(e)return e.options.cursor},hc.prototype._getCursor=function(){if(this.element)return this.element.style.cursor},hc.prototype._setCursor=function(t){this.element&&(this.element.style.cursor=t,this._current=t)},hc.prototype._resetCursor=function(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)};var cc=hc,pc=function(t){function e(e,n){t.call(this,e,n),this.element.innerHTML=this._template(this);var i=this.element.firstElementChild,r=Cs(e);i.width=r.width,i.height=r.height,this._rootElement=i,this._root=new rc(i),this._mouseTrackHandler=this._trackMouse.bind(this),xs(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),this._root&&(this._root.destroy(),this._root=null),this._searchTree&&(this._searchTree.clear(),delete this._searchTree),this._cursor&&(this._cursor.destroy(),delete this._cursor),Ss(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})},e.prototype.draw=function(e){t.prototype.draw.call(this,e),this._root.load([e],void 0,this.options.cors),this._searchTree&&this._searchTree.add([e])},e.prototype.clear=function(){t.prototype.clear.call(this),this._root.clear(),this._searchTree&&this._searchTree.clear(),this._cursor&&this._cursor.clear()},e.prototype.eventTarget=function(t){if(this._searchTree){var e=this._surfacePoint(t);return this._searchTree.pointShape(e)}},e.prototype.image=function(){var t=this._root,e=this._rootElement,n=[];t.traverse(function(t){t.loading&&n.push(t.loading)});var i=Jo(),r=function(){t._invalidate();try{var n=e.toDataURL();i.resolve(n)}catch(t){i.reject(t)}};return gs(n).then(r,r),i},e.prototype.suspendTracking=function(){t.prototype.suspendTracking.call(this),this._searchTree&&(this._searchTree.clear(),delete this._searchTree)},e.prototype.resumeTracking=function(){if(t.prototype.resumeTracking.call(this),!this._searchTree){this._searchTree=new lc;for(var e=this._root.childNodes,n=[],i=0;i<e.length;i++)n.push(e[i].srcElement);this._searchTree.add(n)}},e.prototype._resize=function(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.invali
1date()},e.prototype._template=function(){return"<canvas style='width: 100%; height: 100%;'></canvas>"},e.prototype._enableTracking=function(){this._searchTree=new lc,this._cursor=new cc(this),t.prototype._enableTracking.call(this)},e.prototype._trackMouse=function(t){if(!this._suspendedTracking){var e=this.eventTarget(t);if("click"!==t.type){var n=this._currentShape;n&&n!==e&&this.trigger("mouseleave",{element:n,originalEvent:t,type:"mouseleave"}),e&&n!==e&&this.trigger("mouseenter",{element:e,originalEvent:t,type:"mouseenter"}),this.trigger("mousemove",{element:e,originalEvent:t,type:"mousemove"}),this._currentShape=e}else e&&this.trigger("click",{element:e,originalEvent:t,type:"click"})}},e}(oh);pc.prototype.type="canvas","undefined"!=typeof document&&document.createElement("canvas").getContext&&(oh.support.canvas=!0,nh.current.register("canvas",pc,20));var uc=pc,fc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderTo=function(t){t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),this.renderPoints(t,this.srcElement),this.setLineDash(t),this.setLineCap(t),this.setLineJoin(t),this.setFill(t),this.setStroke(t),t.restore()},e.prototype.setFill=function(t){var e=this.srcElement.options.fill,n=!1;return e&&("Gradient"===e.nodeType?(this.setGradientFill(t,e),n=!0):ps(e.color)||(t.fillStyle=e.color,t.save(),this.globalAlpha(t,e.opacity),t.fill(),t.restore(),n=!0)),n},e.prototype.setGradientFill=function(t,e){var n,i=this.srcElement.rawBBox();if(e instanceof Gl){var r=e.start(),o=e.end();n=t.createLinearGradient(r.x,r.y,o.x,o.y)}else if(e instanceof $l){var s=e.center();n=t.createRadialGradient(s.x,s.y,0,s.x,s.y,e.radius())}!function(t,e){for(var n=0;n<e.length;n++){var i=e[n],r=qo(i.color());r.a*=i.opacity(),t.addColorStop(i.offset(),r.toCssRgba())}}(n,e.stops),t.save(),e.userSpace()||t.transform(i.width(),0,0,i.height(),i.origin.x,i.origin.y),t.fillStyle=n,t.fill(),t.restore()},e.prototype.setStroke=function(t){var e=this.srcElement.options.stroke;if(e&&!ps(e.color)&&e.width>0)return t.strokeStyle=e.color,t.lineWidth=ms(e.width,1),t.save(),this.globalAlpha(t,e.opacity),t.stroke(),t.restore(),!0},e.prototype.dashType=function(){var t=this.srcElement.options.stroke;if(t&&t.dashType)return t.dashType.toLowerCase()},e.prototype.setLineDash=function(t){var e=this.dashType();if(e&&"solid"!==e){var n=Rh[e];t.setLineDash?t.setLineDash(n):(t.mozDash=n,t.webkitLineDash=n)}},e.prototype.setLineCap=function(t){var e=this.dashType(),n=this.srcElement.options.stroke;e&&"solid"!==e?t.lineCap="butt":n&&n.lineCap&&(t.lineCap=n.lineCap)},e.prototype.setLineJoin=function(t){var e=this.srcElement.options.stroke;e&&e.lineJoin&&(t.lineJoin=e.lineJoin)},e.prototype.renderPoints=function(t,e){Kh(t,e)},e}(Qh);Jh.Path=fc;var dc=fc,gc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderPoints=function(t){Kh(t,this.srcElement.toPath())},e}(dc);Jh.Arc=gc;var vc=gc,yc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderPoints=function(t){var e=this.srcElement.geometry(),n=e.center;t.arc(n.x,n.y,e.radius,0,2*Math.PI)},e}(dc);Jh.Circle=yc;var mc=yc,xc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderPoints=function(t){var e=this.srcElement.geometry(),n=e.origin,i=e.size;t.rect(n.x,n.y,i.width,i.height)},e}(dc);Jh.Rect=xc;var bc=xc,_c=function(t){function e(e,n){t.call(this,e),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=Jo();var i=this.img=new Image;n&&!/^data:/i.test(e.src())&&(i.crossOrigin=n),i.src=e.src(),i.complete?this.onLoad():(i.onload=this.onLoad,i.onerror=this.onError)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderTo=function(t){"resolved"===this.loading.state()&&(t.save(),this.setTransform(t),this.setClip(t),this.drawImage(t),t.restore(
1))},e.prototype.optionsChange=function(e){"src"===e.field?(this.loading=Jo(),this.img.src=this.srcElement.src()):t.prototype.optionsChange.call(this,e)},e.prototype.onLoad=function(){this.loading.resolve(),this.invalidate()},e.prototype.onError=function(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))},e.prototype.drawImage=function(t){var e=this.srcElement.rect(),n=e.topLeft();t.drawImage(this.img,n.x,n.y,e.width(),e.height())},e}(dc);Jh.Image=_c;var wc=_c,Cc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderTo=function(t){var e=this.srcElement,n=e.position(),i=e.measure();t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),t.font=e.options.font,t.textAlign="left",this.setFill(t)&&t.fillText(e.content(),n.x,n.y+i.baseline),this.setStroke(t)&&(this.setLineDash(t),t.strokeText(e.content(),n.x,n.y+i.baseline)),t.restore()},e}(dc);Jh.Text=Cc;var Sc=Cc,kc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderPoints=function(t){for(var e=this.srcElement.paths,n=0;n<e.length;n++)Kh(t,e[n])},e}(dc);Jh.MultiPath=kc;var Mc=kc;function Ac(t,e){var n={width:"800px",height:"600px",cors:"Anonymous"},i=t,r=t.clippedBBox();if(r){var o=r.getOrigin();(i=new vl).transform(Qs().translate(-o.x,-o.y)),i.children.push(t);var s=r.getSize();n.width=s.width+"px",n.height=s.height+"px"}var a=Object.assign(n,e),l=document.createElement("div"),h=l.style;h.display="none",h.width=a.width,h.height=a.height,document.body.appendChild(l);var c=new uc(l,a);c.suspendTracking(),c.draw(i);var p=c.image(),u=function(){c.destroy(),document.body.removeChild(l)};return p.then(u,u),p}function Oc(t,e){var n=Zh(t);return e&&e.raw||(n="data:image/svg+xml;base64,"+ls(n)),Jo().resolve(n)}var Pc,Tc="undefined"!=typeof Uint8Array&&Ro.browser&&(!Ro.browser.msie||Ro.browser.version>9),jc=(Pc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",{decode:function(t){for(var e=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=0,i=e.length,r=[];n<i;){var o=Pc.indexOf(e.charAt(n++)),s=Pc.indexOf(e.charAt(n++)),a=Pc.indexOf(e.charAt(n++)),l=Pc.indexOf(e.charAt(n++)),h=(15&s)<<4|a>>>2,c=(3&a)<<6|l;r.push(o<<2|s>>>4),64!=a&&r.push(h),64!=l&&r.push(c)}return r},encode:function(t){for(var e=0,n=t.length,i="";e<n;){var r=t[e++],o=t[e++],s=t[e++],a=(3&r)<<4|o>>>4,l=(15&o)<<2|s>>>6,h=63&s;e-n==2?l=h=64:e-n==1&&(h=64),i+=Pc.charAt(r>>>2)+Pc.charAt(a)+Pc.charAt(l)+Pc.charAt(h)}return i}});function Rc(t){var e=0,n=0;null==t?t=Tc?new Uint8Array(256):[]:n=t.length;var i=Tc?function(e){if(e>=t.length){var n=new Uint8Array(Math.max(e+256,2*t.length));n.set(t,0),t=n}}:function(){},r=Tc?function(){return new Uint8Array(t.buffer,0,n)}:function(){return t},o=Tc?function(r){if("string"==typeof r)return g(r);var o=r.length;i(e+o),t.set(r,e),(e+=o)>n&&(n=e)}:function(t){if("string"==typeof t)return g(t);for(var e=0;e<t.length;++e)a(t[e])};function s(){return e<n?t[e++]:0}function a(r){i(e),t[e++]=255&r,e>n&&(n=e)}function l(){return s()<<8|s()}function h(t){a(t>>8),a(t)}function c(){return 65536*l()+l()}function p(t){h(t>>>16&65535),h(65535&t)}function u(){var t=c();return t>=2147483648?t-4294967296:t}function f(t){p(t<0?t+4294967296:t)}function d(t){return v(t,s)}function g(t){for(var e=0;e<t.length;++e)a(t.charCodeAt(e))}function v(t,e){for(var n=new Array(t),i=0;i<t;++i)n[i]=e();return n}var y={eof:function(){return e>=n},readByte:s,writeByte:a,readShort:l,writeShort:h,readLong:c,writeLong:p,readFixed:function(){return c()/65536},writeFixed:function(t){p(Math.round(65536*t))},readShort_:function(){var t=l();return t>=32768?t-65536:t},writeShort_:function(t){h(t<0?t+65536:t)},readLong_:u,writeLong_:f,readFixed_:function(){return u()/65536},writeFixed_:function(t){f(Math.round(65536*t))},read:d,write:o,readString:function(t){return String.fromCharCode.apply(String,d(t))},writeString:g,times:v,get:r,slice:Tc?function(e,n){if(t.buffer.slice)return new Uint8Array(t.buffer.slice(e,e+n));var i=new Uint8Array(n);return i.set(new Uint8Array(t.buffer,e,n)),i}:function(e,n){return t.slice(e,e+n)},offset:function(t){return null!=t?(e=t,y):e},skip:function(t){e+=t},toString:function(){throw new Error("FIX CALLER. BinaryStream is no longer convertible to string!")},length:function(){return n},saveExcursion:function(t){var n=e;try{return t()}finally{e=n}},writeBase64:function(t){window.atob?g(window.atob(t)):o(jc.decode(t))},base64:function(){return jc.encode(r())}};return y}function Ic(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function zc(t){return Object.keys(t).sort(function(t,e){return t-e}).map(parseFloat)}function Ec(t){this.raw=t,this.scalerType=t.readLong(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort();for(var e=this.tables={},n=0;n<this.tableCount;++n){var i={tag:t.readString(4),checksum:t.readLong(),offset:t.readLong(),length:t.readLong()};e[i.tag]=i}}function Lc(t){function e(t,e){this.definition=e,this.length=e.length,this.offset=e.offset,this.file=t,this.rawData=t.raw,this.parse(t.raw)}for(var n in e.prototype.raw=function(){return this.rawData.slice(this.offset,this.length)},t)Ic(t,n)&&(e[n]=e.prototype[n]=t[n]);return e}Ec.prototype={readTable:function(t,e){var n=this.tables[t];if(!n)throw new Error("Table "+t+" not found in directory");return this[t]=n.table=new e(this,n)},render:function(t){var e=Object.keys(t).length,n=Math.pow(2,Math.floor(Math.log(e)/Math.LN2)),i=16*n,r=Math.floor(Math.log(n)/Math.LN2),o=16*e-i,s=Rc();s.writeLong(this.scalerType),s.writeShort(e),s.writeShort(i),s.writeShort(r),s.writeShort(o);var a=16*e,l=s.offset()+a,h=null,c=Rc();for(var p in t)if(Ic(t,p)){var u=t[p];for(s.writeString(p),s.writeLong(this.checksum(u)),s.writeLong(l),s.writeLong(u.length),c.write(u),"head"==p&&(h=l),l+=u.length;l%4;)c.writeByte(0),l++}s.write(c.get());var f=2981146554-this.checksum(s.get());return s.offset(h+8),s.writeLong(f),s.get()},checksum:function(t){t=Rc(t);for(var e=0;!t.eof();)e+=t.readLong();return 4294967295&e}};var Bc,Dc=Lc({parse:function(t){t.offset(this.offset),this.version=t.readLong(),this.revision=t.readLong(),this.checkSumAdjustment=t.readLong(),this.magicNumber=t.readLong(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.read(8),this.modified=t.read(8),this.xMin=t.readShort_(),this.yMin=t.readShort_(),this.xMax=t.readShort_(),this.yMax=t.readShort_(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort_(),this.indexToLocFormat=t.readShort_(),this.glyphDataFormat=t.readShort_()},render:function(t){var e=Rc();return e.writeLong(this.version),e.writeLong(this.revision),e.writeLong(0),e.writeLong(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.write(this.created),e.write(this.modified),e.writeShort_(this.xMin),e.writeShort_(this.yMin),e.writeShort_(this.xMax),e.writeShort_(this.yMax
1),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort_(this.fontDirectionHint),e.writeShort_(t),e.writeShort_(this.glyphDataFormat),e.get()}}),Fc=Lc({parse:function(t){t.offset(this.offset),this.offsets=0===this.file.head.indexToLocFormat?t.times(this.length/2,function(){return 2*t.readShort()}):t.times(this.length/4,t.readLong)},offsetOf:function(t){return this.offsets[t]},lengthOf:function(t){return this.offsets[t+1]-this.offsets[t]},render:function(t){for(var e=Rc(),n=t[t.length-1]>65535,i=0;i<t.length;++i)n?e.writeLong(t[i]):e.writeShort(t[i]/2);return{format:n?1:0,table:e.get()}}}),Vc=Lc({parse:function(t){t.offset(this.offset),this.version=t.readLong(),this.ascent=t.readShort_(),this.descent=t.readShort_(),this.lineGap=t.readShort_(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort_(),this.minRightSideBearing=t.readShort_(),this.xMaxExtent=t.readShort_(),this.caretSlopeRise=t.readShort_(),this.caretSlopeRun=t.readShort_(),this.caretOffset=t.readShort_(),t.skip(8),this.metricDataFormat=t.readShort_(),this.numOfLongHorMetrics=t.readShort()},render:function(t){var e=Rc();return e.writeLong(this.version),e.writeShort_(this.ascent),e.writeShort_(this.descent),e.writeShort_(this.lineGap),e.writeShort(this.advanceWidthMax),e.writeShort_(this.minLeftSideBearing),e.writeShort_(this.minRightSideBearing),e.writeShort_(this.xMaxExtent),e.writeShort_(this.caretSlopeRise),e.writeShort_(this.caretSlopeRun),e.writeShort_(this.caretOffset),e.write([0,0,0,0,0,0,0,0]),e.writeShort_(this.metricDataFormat),e.writeShort(t.length),e.get()}}),Nc=Lc({parse:function(t){t.offset(this.offset),this.version=t.readLong(),this.numGlyphs=t.readShort(),this.maxPoints=t.readShort(),this.maxContours=t.readShort(),this.maxComponentPoints=t.readShort(),this.maxComponentContours=t.readShort(),this.maxZones=t.readShort(),this.maxTwilightPoints=t.readShort(),this.maxStorage=t.readShort(),this.maxFunctionDefs=t.readShort(),this.maxInstructionDefs=t.readShort(),this.maxStackElements=t.readShort(),this.maxSizeOfInstructions=t.readShort(),this.maxComponentElements=t.readShort(),this.maxComponentDepth=t.readShort()},render:function(t){var e=Rc();return e.writeLong(this.version),e.writeShort(t.length),e.writeShort(this.maxPoints),e.writeShort(this.maxContours),e.writeShort(this.maxComponentPoints),e.writeShort(this.maxComponentContours),e.writeShort(this.maxZones),e.writeShort(this.maxTwilightPoints),e.writeShort(this.maxStorage),e.writeShort(this.maxFunctionDefs),e.writeShort(this.maxInstructionDefs),e.writeShort(this.maxStackElements),e.writeShort(this.maxSizeOfInstructions),e.writeShort(this.maxComponentElements),e.writeShort(this.maxComponentDepth),e.get()}}),Hc=Lc({parse:function(t){t.offset(this.offset);var e=this.file;this.metrics=t.times(e.hhea.numOfLongHorMetrics,function(){return{advance:t.readShort(),lsb:t.readShort_()}}),this.leftSideBearings=t.times(e.maxp.numGlyphs-e.hhea.numOfLongHorMetrics,t.readShort_)},forGlyph:function(t){var e=this.metrics,n=e.length;return t<n?e[t]:{advance:e[n-1].advance,lsb:this.leftSideBearings[t-n]}},render:function(t){for(var e=Rc(),n=0;n<t.length;++n){var i=this.forGlyph(t[n]);e.writeShort(i.advance),e.writeShort_(i.lsb)}return e.get()}}),Uc=function(){function t(t){this.raw=t}t.prototype={compound:!1,render:function(){return this.raw.get()}};var e=1,n=8,i=32,r=64,o=128;function s(t){this.raw=t;for(var s=this.glyphIds=[],a=this.idOffsets=[];;){var l=t.readShort();if(a.push(t.offset()),s.push(t.readShort()),!(l&i))break;t.skip(l&e?4:2),l&o?t.skip(8):l&r?t.skip(4):l&n&&t.skip(2)}}return s.prototype={compound:!0,render:function(t){for(var e=Rc(this.raw.get()),n=0;n<this.glyphIds.length;++n){var i=this.glyphIds[n];e.offset(this.idOffsets[n]),e.writeShort(t[i])}return e.get()}},Lc({parse:function(){this.cache={}},glyphFor:function(e){var n=this.cache;if(Ic(n,e))return n[e];var i=this.file.loca,r=i.lengthOf(e);if(0===r)return n[e]=null;var o=this.rawData,a=this.offset+i.offsetOf(e),l=Rc(o.slice(a,r)),h=l.readShort_(),c=l.readShort_(),p=l.readShort_(),u=l.readShort_(),f=l.readShort_(),d=n[e]=-1==h?new s(l):new t(l);return d.numberOfContours=h,d.xMin=c,d.yMin=p,d.xMax=u,d.yMax=f,d},render:function(t,e,n){for(var i=Rc(),r=[],o=0;o<e.length;++o){var s=t[e[o]];
1r.push(i.offset()),s&&i.write(s.render(n))}return r.push(i.offset()),{table:i.get(),offsets:r}}})}(),Gc=function(){function t(t,e){this.text=t,this.length=t.length,this.platformID=e.platformID,this.platformSpecificID=e.platformSpecificID,this.languageID=e.languageID,this.nameID=e.nameID}return Lc({parse:function(e){e.offset(this.offset),e.readShort();for(var n=e.readShort(),i=this.offset+e.readShort(),r=e.times(n,function(){return{platformID:e.readShort(),platformSpecificID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:e.readShort()+i}}),o=this.strings={},s=0;s<r.length;++s){var a=r[s];e.offset(a.offset);var l=e.readString(a.length);o[a.nameID]||(o[a.nameID]=[]),o[a.nameID].push(new t(l,a))}this.postscriptEntry=o[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")},render:function(e){var n=this.strings,i=0;for(var r in n)Ic(n,r)&&(i+=n[r].length);var o=Rc(),s=Rc();for(r in o.writeShort(0),o.writeShort(i),o.writeShort(6+12*i),n)if(Ic(n,r))for(var a=6==r?[new t(e,this.postscriptEntry)]:n[r],l=0;l<a.length;++l){var h=a[l];o.writeShort(h.platformID),o.writeShort(h.platformSpecificID),o.writeShort(h.languageID),o.writeShort(h.nameID),o.writeShort(h.length),o.writeShort(s.offset()),s.writeString(h.text)}return o.write(s.get()),o.get()}})}(),qc=(Bc=".notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore grave a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent sterling section bullet paragraph germandbls registered copyright trademark acute dieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu partialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash questiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft guillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla hungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth eth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior onehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla Cacute cacute Ccaron ccaron dcroat".split(/\s+/g),Lc({parse:function(t){var e;switch(t.offset(this.offset),this.format=t.readLong(),this.italicAngle=t.readFixed_(),this.underlinePosition=t.readShort_(),this.underlineThickness=t.readShort_(),this.isFixedPitch=t.readLong(),this.minMemType42=t.readLong(),this.maxMemType42=t.readLong(),this.minMemType1=t.readLong(),this.maxMemType1=t.readLong(),this.format){case 65536:case 196608:break;case 131072:e=t.readShort(),this.glyphNameIndex=t.times(e,t.readShort),this.names=[];for(var n=this.offset+this.length;t.offset()<n;)this.names.push(t.readString(t.readByte()));break;case 151552:e=t.readShort(),this.offsets=t.read(e);break;case 262144:this.map=t.times(this.file.maxp.numGlyphs,t.readShort)}},glyphFor:function(t){switch(this.format){case 65536:return Bc[t]||".notdef";case 131072:var e=this.glyphNameIndex[t];return e<Bc.length?Bc[e]:this.names[e-Bc.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[t]||65535}
1},render:function(t){if(196608==this.format)return this.raw();var e=Rc(this.rawData.slice(this.offset,32));e.writeLong(131072),e.offset(32);for(var n=[],i=[],r=0;r<t.length;++r){var o=this.glyphFor(t[r]),s=Bc.indexOf(o);s>=0?n.push(s):(n.push(Bc.length+i.length),i.push(o))}for(e.writeShort(t.length),r=0;r<n.length;++r)e.writeShort(n[r]);for(r=0;r<i.length;++r)e.writeByte(i[r].length),e.writeString(i[r]);return e.get()}})),$c=Lc({parse:function(t){var e=this,n=e.offset;t.offset(n),e.codeMap={},e.version=t.readShort();var i=t.readShort();e.tables=t.times(i,function(){return new function(t,e,n){var i=this;i.platformID=t.readShort(),i.platformSpecificID=t.readShort(),i.offset=e+t.readLong(),t.saveExcursion(function(){var e;switch(t.offset(i.offset),i.format=t.readShort(),i.format){case 0:i.length=t.readShort(),i.language=t.readShort();for(var r=0;r<256;++r)n[r]=t.readByte();break;case 4:i.length=t.readShort(),i.language=t.readShort();var o=t.readShort()/2;t.skip(6);var s=t.times(o,t.readShort);t.skip(2);var a=t.times(o,t.readShort),l=t.times(o,t.readShort_),h=t.times(o,t.readShort),c=(i.length+i.offset-t.offset())/2,p=t.times(c,t.readShort);for(r=0;r<o;++r){var u=a[r],f=s[r];for(e=u;e<=f;++e){var d;0===h[r]?d=e+l[r]:0!==(d=p[h[r]/2-(o-r)+(e-u)]||0)&&(d+=l[r]),n[e]=65535&d}}break;case 6:i.length=t.readShort(),i.language=t.readShort(),e=t.readShort();for(var g=t.readShort();g-- >0;)n[e++]=t.readShort();break;case 12:t.readShort(),i.length=t.readLong(),i.language=t.readLong();for(var v=t.readLong();v-- >0;){e=t.readLong();for(var y=t.readLong(),m=t.readLong();e<=y;)n[e++]=m++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+i.format)}})}(t,n,e.codeMap)})},render:function(t,e){var n=Rc();return n.writeShort(0),n.writeShort(1),n.write(function(t,e){var n=zc(t),i=[],r=[],o=null,s=null;function a(n){return e[t[n]]}for(var l=0;l<n.length;++l){var h=n[l],c=a(h)-h;null!=o&&c===s||(o&&r.push(o),i.push(h),s=c),o=h}o&&r.push(o),r.push(65535),i.push(65535);var p=i.length,u=2*p,f=2*Math.pow(2,Math.floor(Math.log(p)/Math.LN2)),d=Math.log(f/2)/Math.LN2,g=u-f,v=[],y=[],m=[];for(l=0;l<p;++l){var x=i[l],b=r[l];if(65535==x){v.push(0),y.push(0);break}var _=a(x);if(x-_>=32768){v.push(0),y.push(2*(m.length+p-l));for(var w=x;w<=b;++w)m.push(a(w))}else v.push(_-x),y.push(0)}var C=Rc();return C.writeShort(3),C.writeShort(1),C.writeLong(12),C.writeShort(4),C.writeShort(16+8*p+2*m.length),C.writeShort(0),C.writeShort(u),C.writeShort(f),C.writeShort(d),C.writeShort(g),r.forEach(C.writeShort),C.writeShort(0),i.forEach(C.writeShort),v.forEach(C.writeShort_),y.forEach(C.writeShort),m.forEach(C.writeShort),C.get()}(t,e)),n.get()}}),Xc=Lc({parse:function(t){t.offset(this.offset),this.version=t.readShort(),this.averageCharWidth=t.readShort_(),this.weightClass=t.readShort(),this.widthClass=t.readShort(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort_(),this.ySubscriptYSize=t.readShort_(),this.ySubscriptXOffset=t.readShort_(),this.ySubscriptYOffset=t.readShort_(),this.ySuperscriptXSize=t.readShort_(),this.ySuperscriptYSize=t.readShort_(),this.ySuperscriptXOffset=t.readShort_(),this.ySuperscriptYOffset=t.readShort_(),this.yStrikeoutSize=t.readShort_(),this.yStrikeoutPosition=t.readShort_(),this.familyClass=t.readShort_(),this.panose=t.times(10,t.readByte),this.charRange=t.times(4,t.readLong),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort_(),this.descent=t.readShort_(),this.lineGap=t.readShort_(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=t.times(2,t.readLong),this.version>1&&(this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()))},render:function(){return this.raw()}}),Wc=1e5;function Yc(t){this.font=t,this.subset={},this.unicodes={},this.ogid2ngid={0:0},this.ngid2ogid={0:0},this.ncid2ogid={},this.next=this.firstChar=1,this.nextGid=1,this.psName=function(){for(var t="",e=String(Wc),n=0;n<e.length;
1++n)t+=String.fromCharCode(e.charCodeAt(n)-48+65);return++Wc,t}()+"+"+this.font.psName}function Zc(t,e){var n=this,i=n.contents=Rc(t);if("ttcf"==i.readString(4)){var r,o=function(){i.offset(r),n.parse()};if(!e)throw new Error("Must specify a name for TTC files");i.readLong();for(var s=i.readLong(),a=0;a<s;++a)if(r=i.readLong(),i.saveExcursion(o),n.psName==e)return;throw new Error("Font "+e+" not found in collection")}i.offset(0),n.parse()}Yc.prototype={use:function(t){var e=this;if("string"==typeof t)return function(t){for(var e,n,i=[],r=0,o=t.length;r<o;)(e=t.charCodeAt(r++))>=55296&&e<=56319&&r<o?56320==(64512&(n=t.charCodeAt(r++)))?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),r--):i.push(e);return i}(t).reduce(function(t,n){return t+String.fromCharCode(e.use(n))},"");var n=e.unicodes[t];if(!n){n=e.next++,e.subset[n]=t,e.unicodes[t]=n;var i=e.font.cmap.codeMap[t];if(i&&(e.ncid2ogid[n]=i,null==e.ogid2ngid[i])){var r=e.nextGid++;e.ogid2ngid[i]=r,e.ngid2ogid[r]=i}}return n},encodeText:function(t){return this.use(t)},glyphIds:function(){return zc(this.ogid2ngid)},glyphsFor:function(t,e){e||(e={});for(var n=0;n<t.length;++n){var i=t[n];if(!e[i]){var r=e[i]=this.font.glyf.glyphFor(i);r&&r.compound&&this.glyphsFor(r.glyphIds,e)}}return e},render:function(){var t=this.glyphsFor(this.glyphIds());for(var e in t)if(Ic(t,e)&&(e=parseInt(e,10),null==this.ogid2ngid[e])){var n=this.nextGid++;this.ogid2ngid[e]=n,this.ngid2ogid[n]=e}var i=zc(this.ngid2ogid).map(function(t){return this.ngid2ogid[t]},this),r=this.font,o=r.glyf.render(t,i,this.ogid2ngid),s=r.loca.render(o.offsets);this.lastChar=this.next-1;var a={cmap:$c.render(this.ncid2ogid,this.ogid2ngid),glyf:o.table,loca:s.table,hmtx:r.hmtx.render(i),hhea:r.hhea.render(i),maxp:r.maxp.render(i),post:r.post.render(i),name:r.name.render(this.psName),head:r.head.render(s.format),"OS/2":r.os2.render()};return this.font.directory.render(a)},cidToGidMap:function(){for(var t=Rc(),e=0,n=this.firstChar;n<this.next;++n){for(;e<n;)t.writeShort(0),e++;var i=this.ncid2ogid[n];t.writeShort(i?this.ogid2ngid[i]:0),e++}return t.get()}},Zc.prototype={parse:function(){var t=this.directory=new Ec(this.contents);this.head=t.readTable("head",Dc),this.loca=t.readTable("loca",Fc),this.hhea=t.readTable("hhea",Vc),this.maxp=t.readTable("maxp",Nc),this.hmtx=t.readTable("hmtx",Hc),this.glyf=t.readTable("glyf",Uc),this.name=t.readTable("name",Gc),this.post=t.readTable("post",qc),this.cmap=t.readTable("cmap",$c),this.os2=t.readTable("OS/2",Xc),this.psName=this.name.postscriptName,this.ascent=this.os2.ascent||this.hhea.ascent,this.descent=this.os2.descent||this.hhea.descent,this.lineGap=this.os2.lineGap||this.hhea.lineGap,this.scale=1e3/this.head.unitsPerEm},widthOfGlyph:function(t){return this.hmtx.forGlyph(t).advance*this.scale},makeSubset:function(){return new Yc(this)}};var Jc=n("gWZe").deflate,Kc=Ro.browser,Qc="\n",tp=0,ep={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],executive:[521.86,756],folio:[612,936],legal:[612,1008],letter:[612,792],tabloid:[792,1224]};var np={"Times-Roman":!0,"Times-Bold":!0,"Times-Italic":!0,"Times-BoldItalic":!0,Helvetica:!0,"Helvetica-Bold":!0,"Helvetica-Oblique":!0,"Helvetica-BoldOblique":!0,Courier:!0,"Courier-Bold":!0,"Courier-Oblique":!0,"Courier-BoldOblique":!0,Symbol:!0,ZapfDingbats:!0};function ip(t,e,n){for(;t.length<e;)t=n+t;return t}function rp(t,e){return ip(String(t),e,"0")}function op(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var sp=Array.isArray||function(t){return t instanceof Array};function ap(t,e){e("["),t.length>0&&e.withIndent(function(){for(var n=0;n<t.length;++n)n>0&&n%8==0?e.indent(t[n]):e(" ",t[n])}),e(" ]")}function lp(t,e){e("(D:",rp(t.getUTCFullYear(),4),rp(t.getUTCMonth()+1,2),rp(t.getUTCDate(),2),rp(t.getUTCHours(),2),rp(t.getUTCMinutes(),2),rp(t.getUTCSeconds(),2),"Z)")}function hp(t){return t*(72/25.4)}function cp(t,e){if("number"==typeof t)return t;var n;if("string"==typeof t&&(n=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(t))){var i=parseFloat(n[1]);if(!isNaN(i))return"pt"==n[2]?i:{mm:hp,cm:function(t){return hp(10*t)},in:function(t){return 72*t}}[n[2]](i)}if(null!=e)return e;throw new Error("Can't parse unit: "+t)}function pp(){}function up(t,e,n){for(var i in n||(n=pp),t.prototype=new n,e)op(e,i)&&(t.prototype[i]=e[i]);return t}pp.prototype.beforeRender=function(){};var fp=up(function(t){this.value=t},{render:function(t){for(var e="",n=this.value,i=0;i<n.length;
1++i)e+=String.fromCharCode(255&n.charCodeAt(i));t("(",e.replace(/([\(\)\\])/g,"\\$1"),")")},toString:function(){return this.value}}),dp=up(function(t){this.value=t},{render:function(t){t("<");for(var e=0;e<this.value.length;++e)t(rp(this.value.charCodeAt(e).toString(16),4));t(">")}},fp),gp=up(function(t){this.name=t},{render:function(t){t("/"+this.escape())},escape:function(){return this.name.replace(/[^\x21-\x7E]/g,function(t){return"#"+rp(t.charCodeAt(0).toString(16),2)})},toString:function(){return this.name}}),vp={};function yp(t){return op(vp,t)?vp[t]:vp[t]=new gp(t)}gp.get=yp;var mp=up(function(t){this.props=t},{render:function(t){var e=this.props,n=!0;t("<<"),t.withIndent(function(){for(var i in e)op(e,i)&&!/^_/.test(i)&&(n=!1,t.indent(yp(i)," ",e[i]))}),n||t.indent(),t(">>")}}),xp=up(function(t,e,n){if("string"==typeof t){var i=Rc();i.write(t),t=i}this.data=t,this.props=e||{},this.compress=n},{render:function(t){var e=this.data.get(),n=this.props;this.compress&&(n.Filter?n.Filter instanceof Array||(n.Filter=[n.Filter]):n.Filter=[],n.Filter.unshift(yp("FlateDecode")),e=Jc(e)),n.Length=e.length,t(new mp(n)," stream",Qc),t.writeData(e),t(Qc,"endstream")}});up(function(){this.props={Type:yp("Catalog")}},{setPages:function(t){this.props.Pages=t}},mp),up(function(){this.props={Type:yp("Pages"),Kids:[],Count:0}},{addPage:function(t){this.props.Kids.push(t),this.props.Count++}},mp),up(function(t){this.props={Type:yp("Font"),Subtype:yp("Type1"),BaseFont:yp(t)},this._resourceName=yp("F"+ ++tp)},{encodeText:function(t){return new fp(String(t))}},mp);var bp=up(function(t,e,n){(n=this.props=n||{}).Type=yp("Font"),n.Subtype=yp("Type0"),n.Encoding=yp("Identity-H"),this._pdf=t,this._font=e,this._sub=e.makeSubset(),this._resourceName=yp("F"+ ++tp);var i=e.head;this.name=e.psName;var r=this.scale=e.scale;this.bbox=[i.xMin*r,i.yMin*r,i.xMax*r,i.yMax*r],this.italicAngle=e.post.italicAngle,this.ascent=e.ascent*r,this.descent=e.descent*r,this.lineGap=e.lineGap*r,this.capHeight=e.os2.capHeight||this.ascent,this.xHeight=e.os2.xHeight||0,this.stemV=0,this.familyClass=(e.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(e.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32},{encodeText:function(t){return new dp(this._sub.encodeText(String(t)))},getTextWidth:function(t,e){for(var n=0,i=this._font.cmap.codeMap,r=0;r<e.length;++r){var o=i[e.charCodeAt(r)];n+=this._font.widthOfGlyph(o||0)}return n*t/1e3},beforeRender:function(){var t=this,e=t._sub,n=e.render(),i=new xp(Rc(n),{Length1:n.length},!0),r=t._pdf.attach(new mp({Type:yp("FontDescriptor"),FontName:yp(t._sub.psName),FontBBox:t.bbox,Flags:t.flags,StemV:t.stemV,ItalicAngle:t.italicAngle,Ascent:t.ascent,Descent:t.descent,CapHeight:t.capHeight,XHeight:t.xHeight,FontFile2:t._pdf.attach(i)})),o=e.ncid2ogid,s=e.firstChar,a=e.lastChar,l=[];!function e(n,i){if(n<=a){var r=o[n];null==r?e(n+1):(i||l.push(n,i=[]),i.push(t._font.widthOfGlyph(r)),e(n+1,i))}}(s);var h=new mp({Type:yp("Font"),Subtype:yp("CIDFontType2"),BaseFont:yp(t._sub.psName),CIDSystemInfo:new mp({Registry:new fp("Adobe"),Ordering:new fp("Identity"),Supplement:0}),FontDescriptor:r,FirstChar:s,LastChar:a,DW:Math.round(t._font.widthOfGlyph(0)),W:l,CIDToGIDMap:t._pdf.attach(t._makeCidToGidMap())}),c=t.props;c.BaseFont=yp(t._sub.psName),c.DescendantFonts=[t._pdf.attach(h)];var p=new _p(s,a,e.subset),u=new xp(function(){var t=0,e=Rc();function n(){for(var t=arguments,i=0;i<arguments.length;++i){var r=t[i];if(void 0===r)throw new Error("Cannot output undefined to PDF");if(r instanceof pp)r.beforeRender(n),r.render(n);else if(sp(r))ap(r,n);else if(r instanceof Date)lp(r,n);else if("number"==typeof r){if(isNaN(r))throw new Error("Cannot output NaN to PDF");var o=r.toFixed(7);o.indexOf(".")>=0&&(o=o.replace(/\.?0+$/,"")),"-0"==o&&(o="0"),e.writeString(o)}else/string|boolean/.test(typeof r)?e.writeString(String(r)):"function"==typeof r.get?e.write(r.get()):"object"==typeof r&&(r?n(new mp(r)):e.writeString("null"))}}return n.writeData=function(t){e.write(t)},n.withIndent=function(e){++t,e(n),--t},n.indent=function(){n(Qc,ip("",2*t," ")),n.apply(null,arguments)},n.offset=function(){return e.offset()},n.toString=function(){throw new Error("FIX CALLER")},n.get=function(){return e.get()},n.stream=function(){return e},n}(),null,!0);u.data(p),c.ToUnicode=t._pdf.attach(u)},_makeCidToGidMap:function(){return new xp(Rc(this._sub.cidToGidMap()),null,!0)}},mp),_p=up(function(t,e,n){this.firstChar=t,this.lastChar=e,this.map=n},{render:function(t){t.indent("/CIDInit /ProcSet findresource begin"),t.indent("12 dict begin"),t.indent("begincmap"),t.indent("/CIDSystemInfo <<"),t.indent(" /Registry (Adobe)"),t.indent(" /Ordering (UCS)"),t.indent(" /Supplement 0"),t.indent(">> def"),t.indent("/CMapName /Adobe-Identity-UCS def"),t.indent("/CMapType 2 def"),t.indent("1 begincodespacerange"),t.indent(" <0000><ffff>"),t.indent("endcodespacerange");var e=this;t.indent(e.lastChar-e.firstChar+1," beginbfchar"),t.withIndent(function(){for(var n=e.firstChar;
1n<=e.lastChar;++n){var i=[e.map[n]].map(function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+String.fromCharCode(t)}).join("");t.indent("<",rp(n.toString(16),4),">","<");for(var r=0;r<i.length;++r)t(rp(i.charCodeAt(r).toString(16),4));t(">")}}),t.indent("endbfchar"),t.indent("endcmap"),t.indent("CMapName currentdict /CMap defineresource pop"),t.indent("end"),t.indent("end")}});function wp(t){return t.map(function(t){return sp(t)?wp(t):"number"==typeof t?(Math.round(1e3*t)/1e3).toFixed(3):t}).join(" ")}function Cp(t,e,n,i,r,o,s){var a=wp([e,n,i,r,o,s]),l=t.GRAD_COL_FUNCTIONS[a];return l||(l=t.GRAD_COL_FUNCTIONS[a]=t.attach(new mp({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[e,n,i],C1:[r,o,s]}))),l}function Sp(t,e,n){var i=wp([e,n]),r=t.GRAD_OPC_FUNCTIONS[i];return r||(r=t.GRAD_OPC_FUNCTIONS[i]=t.attach(new mp({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[e],C1:[n]}))),r}up(function(t,e){this._pdf=t,this._rcount=0,this._textMode=!1,this._fontResources={},this._gsResources={},this._xResources={},this._patResources={},this._shResources={},this._opacity=1,this._matrix=[1,0,0,1,0,0],this._annotations=[],this._font=null,this._fontSize=null,this._contextStack=[],(e=this.props=e||{}).Type=yp("Page"),e.ProcSet=[yp("PDF"),yp("Text"),yp("ImageB"),yp("ImageC"),yp("ImageI")],e.Resources=new mp({Font:new mp(this._fontResources),ExtGState:new mp(this._gsResources),XObject:new mp(this._xResources),Pattern:new mp(this._patResources),Shading:new mp(this._shResources)}),e.Annots=this._annotations},{_out:function(){this._content.data.apply(null,arguments)},transform:function(t,e,n,i,r,o){var s;(1!==(s=arguments)[0]||0!==s[1]||0!==s[2]||1!==s[3]||0!==s[4]||0!==s[5])&&(this._matrix=function(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=e[0],h=e[1],c=e[2],p=e[3];return[n*l+i*c,n*h+i*p,r*l+o*c,r*h+o*p,s*l+a*c+e[4],s*h+a*p+e[5]]}(arguments,this._matrix),this._out(t," ",e," ",n," ",i," ",r," ",o," cm"),this._out(Qc))},translate:function(t,e){this.transform(1,0,0,1,t,e)},scale:function(t,e){this.transform(t,0,0,e,0,0)},rotate:function(t){var e=Math.cos(t),n=Math.sin(t);this.transform(e,n,-n,e,0,0)},beginText:function(){this._textMode=!0,this._out("BT",Qc)},endText:function(){this._textMode=!1,this._out("ET",Qc)},_requireTextMode:function(){if(!this._textMode)throw new Error("Text mode required; call page.beginText() first")},_requireFont:function(){if(!this._font)throw new Error("No font selected; call page.setFont() first")},setFont:function(t,e){this._requireTextMode(),null==t?t=this._font:t instanceof bp||(t=this._pdf.getFont(t)),null==e&&(e=this._fontSize),this._fontResources[t._resourceName]=t,this._font=t,this._fontSize=e,this._out(t._resourceName," ",e," Tf",Qc)},setTextLeading:function(t){this._requireTextMode(),this._out(t," TL",Qc)},setTextRenderingMode:function(t){this._requireTextMode(),this._out(t," Tr",Qc)},showText:function(t,e){if(this._requireFont(),t.length>1&&e&&this._font instanceof bp){var n=this._font.getTextWidth(this._fontSize,t);this._out(e/n*100," Tz ")}this._out(this._font.encodeText(t)," Tj",Qc)},showTextNL:function(t){this._requireFont(),this._out(this._font.encodeText(t)," '",Qc)},addLink:function(t,e){var n=this._toPage({x:e.left,y:e.bottom}),i=this._toPage({x:e.right,y:e.top});this._annotations.push(new mp({Type:yp("Annot"),Subtype:yp("Link"),Rect:[n.x,n.y,i.x,i.y],Border:[0,0,0],A:new mp({Type:yp("Action"),S:yp("URI"),URI:new fp(t)})}))},setStrokeColor:function(t,e,n){this._out(t," ",e," ",n," RG",Qc)},setOpacity:function(t){this.setFillOpacity(t),this.setStrokeOpacity(t),this._opacity*=t},setStrokeOpacity:function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!0);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",Qc)}},setFillColor:function(t,e,n){this._out(t," ",e," ",n," rg",Qc)},setFillOpacity:function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!1);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",Qc)}},gradient:function(t,e){this.save(),this.rect(e.left,e.top,e.width,e.height),this.clip(),t.userSpace||this.transform(e.width,0,0,e.height,e.left,e.top);var n,i=function(t,e,n){var i="radial"==e.type,r=function(t,e){var n,i,r,o,s=!1,a=[],l=[],h=[],c=[];for(n=1;n<e.length;++n)l.push(Cp(t,(r=e[n-1].color).r,r.g,r.b,(o=(i=e[n]).color).r,o.g,o.b)),(r.a<1||o.a<1)&&(s=!0),h.push(i.offset),c.push(0,1);if(s)for(n=1;n<e.length;++n)a.push(Sp(t,(r=e[n-1].color).a,(o=(i=e[n]).color).a));return h.pop(),{hasAlpha:s,colors:p(l),opacities:s?p(a):null};function p(t){return 1==t.length?t[0]:{FunctionType:3,Functions:t,Domain:[0,1],Bounds:h,Encode:c}}}(t,e.stops),o=i?[e.start.x,e.start.y,e.start.r,e.end.x,e.end.y,e.end.r]:[e.start.x,e.start.y,e.end.x,e.end.y],s=function(t,e,n,i,r,o){var s,a;if(!o){var l=[e].concat(i);
1n.forEach(function(t){l.push(t.offset,t.color.r,t.color.g,t.color.b)}),a=wp(l),s=t.GRAD_COL[a]}return s||(s=new mp({Type:yp("Shading"),ShadingType:e?3:2,ColorSpace:yp("DeviceRGB"),Coords:i,Domain:[0,1],Function:r,Extend:[!0,!0]}),t.attach(s),s._resourceName="S"+ ++tp,a&&(t.GRAD_COL[a]=s)),s}(t,i,e.stops,o,r.colors,e.userSpace&&n),a=r.hasAlpha?function(t,e,n,i,r,o){var s,a;if(!o){var l=[e].concat(i);n.forEach(function(t){l.push(t.offset,t.color.a)}),a=wp(l),s=t.GRAD_OPC[a]}return s||(s=new mp({Type:yp("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:yp("Mask"),S:yp("Luminosity"),G:t.attach(new xp("/a0 gs /s0 sh",{Type:yp("XObject"),Subtype:yp("Form"),FormType:1,BBox:o?[o.left,o.top+o.height,o.left+o.width,o.top]:[0,1,1,0],Group:{Type:yp("Group"),S:yp("Transparency"),CS:yp("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:yp("DeviceGray"),Coords:i,Domain:[0,1],ShadingType:e?3:2,Function:r,Extend:[!0,!0]}}}}))}}),t.attach(s),s._resourceName="O"+ ++tp,a&&(t.GRAD_OPC[a]=s)),s}(t,i,e.stops,o,r.opacities,e.userSpace&&n):null;return{hasAlpha:r.hasAlpha,shading:s,opacity:a}}(this._pdf,t,e),r=i.shading._resourceName;this._shResources[r]=i.shading,i.hasAlpha&&(this._gsResources[n=i.opacity._resourceName]=i.opacity,this._out("/"+n+" gs ")),this._out("/"+r+" sh",Qc),this.restore()},setDashPattern:function(t,e){this._out(t," ",e," d",Qc)},setLineWidth:function(t){this._out(t," w",Qc)},setLineCap:function(t){this._out(t," J",Qc)},setLineJoin:function(t){this._out(t," j",Qc)},setMitterLimit:function(t){this._out(t," M",Qc)},save:function(){this._contextStack.push(this._context()),this._out("q",Qc)},restore:function(){this._out("Q",Qc),this._context(this._contextStack.pop())},moveTo:function(t,e){this._out(t," ",e," m",Qc)},lineTo:function(t,e){this._out(t," ",e," l",Qc)},bezier:function(t,e,n,i,r,o){this._out(t," ",e," ",n," ",i," ",r," ",o," c",Qc)},bezier1:function(t,e,n,i){this._out(t," ",e," ",n," ",i," y",Qc)},bezier2:function(t,e,n,i){this._out(t," ",e," ",n," ",i," v",Qc)},close:function(){this._out("h",Qc)},rect:function(t,e,n,i){this._out(t," ",e," ",n," ",i," re",Qc)},ellipse:function(t,e,n,i){function r(e){return t+e}function o(t){return e+t}var s=.5522847498307936;this.moveTo(r(0),o(i)),this.bezier(r(n*s),o(i),r(n),o(i*s),r(n),o(0)),this.bezier(r(n),o(-i*s),r(n*s),o(-i),r(0),o(-i)),this.bezier(r(-n*s),o(-i),r(-n),o(-i*s),r(-n),o(0)),this.bezier(r(-n),o(i*s),r(-n*s),o(i),r(0),o(i))},circle:function(t,e,n){this.ellipse(t,e,n,n)},stroke:function(){this._out("S",Qc)},nop:function(){this._out("n",Qc)},clip:function(){this._out("W n",Qc)},clipStroke:function(){this._out("W S",Qc)},closeStroke:function(){this._out("s",Qc)},fill:function(){this._out("f",Qc)},fillStroke:function(){this._out("B",Qc)},drawImage:function(t){var e=this._pdf.getImage(t);e&&(this._xResources[e._resourceName]=e,this._out(e._resourceName," Do",Qc))},comment:function(t){var e=this;t.split(/\r?\n/g).forEach(function(t){e._out("% ",t,Qc)})},_context:function(t){if(null==t)return{opacity:this._opacity,matrix:this._matrix};this._opacity=t.opacity,this._matrix=t.matrix},_toPage:function(t){var e=this._matrix;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}}},mp);var kp={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function Mp(t,e){t=t.toLowerCase(),kp[t]=function(){return kp[e]},kp[t+"|bold"]=function(){return kp[e+"|bold"]},kp[t+"|italic"]=function(){return kp[e+"|italic"]},kp[t+"|bold|italic"]=function(){return kp[e+"|bold|italic"]}}Mp("Times New Roman","serif"),Mp("Courier New","monospace"),Mp("Arial","sans-serif"),Mp("Helvetica","sans-serif"),Mp("Verdana","sans-serif"),Mp("Tah
1oma","sans-serif"),Mp("Georgia","sans-serif"),Mp("Monaco","monospace"),Mp("Andale Mono","monospace");var Ap=Ro.browser;function Op(t){return Array.prototype.slice.call(t)}var Pp="KENDO-PSEUDO-ELEMENT",Tp={},jp={};jp._root=jp;var Rp=!("undefined"==typeof window)&&(Ap.msie||Ap.edge),Ip=function(t){function e(e,n,i){t.call(this,e,n.getOrigin(),i),this._pdfRect=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.rect=function(){return this._pdfRect},e.prototype.rawBBox=function(){return this._pdfRect},e}(pl);function zp(t,e){Object.keys(e).forEach(function(n){t.style[n]=e[n]})}var Ep,Lp="undefined"!=typeof Element&&Element.prototype&&((Ep=Element.prototype).matches?function(t,e){return t.matches(e)}:Ep.webkitMatchesSelector?function(t,e){return t.webkitMatchesSelector(e)}:Ep.mozMatchesSelector?function(t,e){return t.mozMatchesSelector(e)}:Ep.msMatchesSelector?function(t,e){return t.msMatchesSelector(e)}:function(t){return-1!==[].indexOf.call(document.querySelectorAll(t),this)});function Bp(t,e){if(t.closest)return t.closest(e);for(;t&&!/^\[object (?:HTML)?Document\]$/.test(String(t));){if(1==t.nodeType&&Lp(t,e))return t;t=t.parentNode}}var Dp,Fp=(Dp="undefined"!=typeof window&&window.kendo&&window.kendo.jQuery)?function t(e){var n=e.cloneNode(!1);if(1==e.nodeType){var i,r=Dp(e),o=Dp(n),s=r.data();for(i in s)o.data(i,s[i]);for(/^canvas$/i.test(e.tagName)?n.getContext("2d").drawImage(e,0,0):/^(?:input|select|textarea|option)$/i.test(e.tagName)&&(n.removeAttribute("id"),n.removeAttribute("name"),n.value=e.value,n.checked=e.checked,n.selected=e.selected),i=e.firstChild;i;i=i.nextSibling)n.appendChild(t(i))}return n}:function(t){var e=function t(e){var n=e.cloneNode(!1);e._kendoExportVisual&&(n._kendoExportVisual=e._kendoExportVisual);for(var i=e.firstChild;i;i=i.nextSibling)n.appendChild(t(i));return n}(t),n=t.querySelectorAll("canvas");n.length&&Op(e.querySelectorAll("canvas")).forEach(function(t,e){t.getContext("2d").drawImage(n[e],0,0)});var i=t.querySelectorAll("input, select, textarea, option");return Op(e.querySelectorAll("input, select, textarea, option")).forEach(function(t,e){t.removeAttribute("id"),t.removeAttribute("name"),t.value=i[e].value,t.checked=i[e].checked,t.selected=i[e].selected}),e};function Vp(t,e){e||(e={});var n=Jo();if(!t)return n.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw new Error("window.getComputedStyle is missing. You are using an unsupported browser, or running in IE8 compatibility mode. Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");!function t(e,n){if(1==arguments.length)for(var i in e)op(e,i)&&t(i,e[i]);else switch(e=e.toLowerCase(),kp[e]=n,e){case"dejavu sans":kp["sans-serif"]=n;break;case"dejavu sans|bold":kp["sans-serif|bold"]=n;break;case"dejavu sans|italic":kp["sans-serif|italic"]=n;break;case"dejavu sans|bold|italic":kp["sans-serif|bold|italic"]=n;break;case"dejavu serif":kp.serif=n;break;case"dejavu serif|bold":kp["serif|bold"]=n;break;case"dejavu serif|italic":kp["serif|italic"]=n;break;case"dejavu serif|bold|italic":kp["serif|bold|italic"]=n;break;case"dejavu mono":kp.monospace=n;break;case"dejavu mono|bold":kp["monospace|bold"]=n;break;case"dejavu mono|italic":kp["monospace|italic"]=n;break;case"dejavu mono|bold|italic":kp["monospace|bold|italic"]=n}}($p(t.ownerDocument));var i,r="number"==typeof(i=e.scale||1)?{x:i,y:i}:Array.isArray(i)?{x:i[0],y:i[1]}:{x:i.x,y:i.y};function o(t){var n,i,o=new vl,s=t.getBoundingClientRect();return uu(o,[r.x,0,0,r.y,-s.left*r.x,-s.top*r.y]),jp._clipbox=!1,jp._matrix=Us.unit(),jp._stackingContext={element:t,group:o},jp._avoidLinks=!0===e.avoidLinks?"a":e.avoidLinks,i="k-pdf-export",(n=t).classList?n.classList.add(i):n.className+=" "+i,Mu(t,o),function(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/\s+/).reduce(function(t,n){return n!=e&&t.push(n),t},[]).join(" ")}(t,"k-pdf-export"),o}return Qp(t,function(){var i=e&&e.forcePageBreak,s=e&&e.paperSize&&"auto"!=e.paperSize,a=function(t){if("function"!=typeof t){var e=t;t=function(t,n){return t in e?e[t]:n}}var n=t("paperSize",ep.a4);if(!n)return{};if("string"==typeof n&&null==(n=ep[n.toLowerCase()]))throw new Error("Unknown paper size");n[0]=cp(n[0]),n[1]=cp(n[1]),t("landscape",!1)&&(n=[Math.max(n[0],n[1]),Math.min(n[0],n[1])]);var i=t("margin");
1return i&&(i="string"==typeof i||"number"==typeof i?{left:i=cp(i,0),top:i,right:i,bottom:i}:{left:cp(i.left,0),top:cp(i.top,0),right:cp(i.right,0),bottom:cp(i.bottom,0)},t("addMargin")&&(n[0]+=i.left+i.right,n[1]+=i.top+i.bottom)),{paperSize:n,margin:i}}(function(t,n){return"paperSize"==t?s?e[t]:"A4":t in e?e[t]:n}),l=s&&a.paperSize[0],h=s&&a.paperSize[1],c=e.margin&&a.margin,p=Boolean(c);if(i||h){c||(c={left:0,top:0,right:0,bottom:0}),l&&(l/=r.x),h&&(h/=r.y),c.left/=r.x,c.right/=r.x,c.top/=r.y,c.bottom/=r.y;var u=new vl({pdf:{multiPage:!0,paperSize:s?a.paperSize:"auto",_ignoreMargin:p}});!function(t,e,n,i,r,o,s){var a=function(t){if(null!=t)return"string"==typeof t&&(t=function(){throw new Error("String template not yet supported. Pass a function and use your preferred template engine.")}(t.replace(/^\s+|\s+$/g,""))),"function"==typeof t?function(e){var n=t(e);if(n&&"string"==typeof n){var i=document.createElement("div");i.innerHTML=n,n=i.firstElementChild}return n}:function(){return t.cloneNode(!0)}}(s.template),l=e.ownerDocument,h=[],c=s._destructive?e:Fp(e),p=l.createElement("KENDO-PDF-DOCUMENT"),u=0;function f(){("-"!=n||r)&&function t(e){if("TABLE"==e.tagName&&zp(e,{tableLayout:"fixed"}),!d(e)){var i=ru(e),o=parseFloat(ou(i,"padding-bottom")),s=parseFloat(ou(i,"border-bottom-width")),a=u;u+=o+s;for(var l=!0,h=e.firstChild;h;h=h.nextSibling)if(1==h.nodeType){if(l=!1,Lp(h,n)){g(h);continue}if(!r){t(h);continue}if(!/^(?:static|relative)$/.test(ou(ru(h),"position")))continue;var c=y(h);1==c?g(h):c&&d(h)?g(h):t(h)}else 3==h.nodeType&&r&&(m(h,l),l=!1);u=a}}(c);var e=v();c.parentNode.insertBefore(e,c),e.appendChild(c),a&&h.forEach(function(t,e){var n=a({element:t,pageNum:e+1,totalPages:h.length});n&&t.appendChild(n)}),Qp(h,function(){!function(t,e){var n=0;function i(){--n<=0&&e()}h.forEach(function(t){for(var e=t.querySelectorAll("img"),r=0;r<e.length;++r){var o=e[r];o.complete||(n++,o.onload=o.onerror=i)}}),n||i()}(0,function(){t({pages:h,container:p})})})}function d(t){return!!(s.keepTogether&&Lp(t,s.keepTogether)&&t.offsetHeight<=r-u)||!(/^h[1-6]$/i.test(t.tagName)&&t.offsetHeight>=r-u)&&(t.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(t.tagName))}function g(t){if(1==t.nodeType&&t!==c&&function(t){var e=t.parentNode,n=e.firstChild;if(t===n)return!0;if(t===e.children[0]){if(7==n.nodeType||8==n.nodeType)return!0;if(3==n.nodeType)return!/\S/.test(n.data)}return!1}(t))return g(t.parentNode);var e,n,i,r,o;n=(e=Bp(t,"table"))&&e.querySelector("colgroup"),s.repeatHeaders&&(i=e&&e.querySelector("thead"),(r=Bp(t,".k-grid.k-widget"))&&r.querySelector(".k-auto-scrollable")&&(o=r.querySelector(".k-grid-header")));var a=v(),h=l.createRange();h.setStartBefore(c),h.setEndBefore(t),a.appendChild(h.extractContents()),c.parentNode.insertBefore(a,c),x(t.parentNode),e&&(e=Bp(t,"table"),s.repeatHeaders&&i&&e.insertBefore(i.cloneNode(!0),e.firstChild),n&&e.insertBefore(n.cloneNode(!0),e.firstChild)),s.repeatHeaders&&o&&(r=Bp(t,".k-grid.k-widget")).insertBefore(o.cloneNode(!0),r.firstChild)}function v(){var t=l.createElement("KENDO-PDF-PAGE");return zp(t,{display:"block",boxSizing:"content-box",width:i?i+"px":"auto",padding:o.top+"px "+o.right+"px "+o.bottom+"px "+o.left+"px",position:"relative",height:r?r+"px":"auto",overflow:r||i?"hidden":"visible",clear:"both"}),s&&s.pageClassName&&(t.className=s.pageClassName),h.push(t),t}function y(t){var e=t.getBoundingClientRect();if(0===e.width||0===e.height)return 0;var n=c.getBoundingClientRect().top,i=r-u;return e.height>i?3:e.top-n>i?1:e.bottom-n>i?2:0}function m(t,e){if(/\S/.test(t.data)){var n=t.data.length,i=l.createRange();i.selectNodeContents(t);var r=y(i);if(r){var o=t;if(1==r)g(e?t.parentNode:t);else if(function e(n,r,o){return i.setEnd(t,r),n==r||r==o?r:y(i)?e(n,n+r>>1,r):e(r,r+o>>1,o)}(0,n>>1,n),!/\S/.test(i.toString())&&e)g(t.parentNode);else{o=t.splitText(i.endOffset);var s=v();i.setStartBefore(c),s.appendChild(i.extractContents()),c.parentNode.insertBefore(s,c),x(o.parentNode)}m(o)}}}function x(t){var e=Bp(t,"li");e&&(e.setAttribute("kendo-no-bullet","1"),x(e.parentNode))}
vendor: 4,108 bytes, line 1
1Op(c.querySelectorAll("tfoot")).forEach(function(t){t.parentNode.appendChild(t)}),Op(c.querySelectorAll("ol")).forEach(function(t){Op(t.children).forEach(function(t,e){t.setAttribute("kendo-split-index",e)})}),zp(p,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),i&&(zp(p,{width:i+"px",paddingLeft:o.left+"px",paddingRight:o.right+"px"}),zp(c,{overflow:"hidden"})),e.parentNode.insertBefore(p,e),p.appendChild(c),s.beforePageBreak?setTimeout(function(){s.beforePageBreak(p,f)},15):setTimeout(f,15)}(function(t){if(e.progress){var i=!1,r=0;!function s(){if(r<t.pages.length){var a=o(t.pages[r]);u.append(a),e.progress({page:a,pageNum:++r,totalPages:t.pages.length,cancel:function(){i=!0}}),i?t.container.parentNode.removeChild(t.container):setTimeout(s)}else t.container.parentNode.removeChild(t.container),n.resolve(u)}()}else t.pages.forEach(function(t){u.append(o(t))}),t.container.parentNode.removeChild(t.container),n.resolve(u)},t,i,l?l-c.left-c.right:null,h?h-c.top-c.bottom:null,c,e)}else n.resolve(o(t))}),n}Vp.getFontFaces=$p,Vp.drawText=function(t){var e=new vl;return jp._clipbox=!1,jp._matrix=Us.unit(),jp._stackingContext={element:t,group:e},eu(t,ru(t),e),3==t.firstChild.nodeType?ku(t,t.firstChild,e):wu(t,e),nu(),e};var Np,Hp=function(){var t=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,e=/^([-0-9.]+%)/,n=/^([-0-9.]+px)/,i=/^(left|right|top|bottom|to|center)\W/,r=/^([-0-9.]+(deg|grad|rad|turn))/,o=/^(\s+)/,s=/^(\()/,a=/^(\))/,l=/^(,)/,h=/^(url)\(/,c=/^(.*?)\)/,p={},u={};function f(u){var f,d=u;if(Xp(p,d))return p[d];function g(t){!function(){var t=o.exec(u);t&&(u=u.substr(t[1].length))}();var e=t.exec(u);if(e)return u=u.substr(e[1].length),e[1]}function v(){var t,i,r=qo(u,!0);if(r){var o=/^#[0-9a-f]+/i.exec(u)||/^rgba?\(.*?\)/i.exec(u)||/^..*?\b/.exec(u);return u=u.substr(o[0].length),r=r.toRGB(),(t=g(n))||(i=g(e)),{color:r,length:t,percent:i}}}return(f=g(t))?f=function(t){var n,o,h,c=[],p=!1;if(g(s)){if((n=g(r))?(n=function(t){var e=parseFloat(t);return/grad$/.test(t)?Math.PI*e/200:/rad$/.test(t)?e:/turn$/.test(t)?Math.PI*e*2:/deg$/.test(t)?Math.PI*e/180:void 0}(n),g(l)):("to"==(o=g(i))?o=g(i):o&&/^-/.test(t)&&(p=!0),h=g(i),g(l)),/-moz-/.test(t)&&null==n&&null==o){var f=g(e),d=g(e);p=!0,"0%"==f?o="left":"100%"==f&&(o="right"),"0%"==d?h="top":"100%"==d&&(h="bottom"),g(l)}for(;u&&!g(a);){var y=v();if(!y)break;c.push(y),g(l)}return{type:"linear",angle:n,to:o&&h?o+" "+h:o||h||null,stops:c,reverse:p}}}(f):(f=g(h))&&(f=function(){if(g(s)){var t=g(c);return t=t.replace(/^['"]+|["']+$/g,""),g(a),{type:"url",url:t}}}()),p[d]=f||{type:"none"}}return function(t){return Xp(u,t)?u[t]:u[t]=Up(t).map(f)}}(),Up=(Np={},function(t,e){e||(e=/^\s*,\s*/);var n=t+e;if(Xp(Np,n))return Np[n];var i,r=[],o=0,s=0,a=0,l=!1;function h(e){return i=e.exec(t.substr(s))}function c(t){return t.replace(/^\s+|\s+$/g,"")}for(;s<t.length;)!l&&h(/^[\(\[\{]/)?(a++,s++):!l&&h(/^[\)\]\}]/)?(a--,s++):!l&&h(/^[\"\']/)?(l=i[0],s++):"'"==l&&h(/^\\\'/)?s+=2:'"'==l&&h(/^\\\"/)?s+=2:"'"==l&&h(/^\'/)?(l=!1,s++):'"'==l&&h(/^\"/)?(l=!1,s++):h(e)?(!l&&!a&&s>o&&(r.push(c(t.substring(o,s))),o=s+i[0].length),s+=i[0].length):s++;return o<s&&r.push(c(t.substring(o,s))),Np[n]=r}),Gp=function(t){return function(e){var n,i=t[e];return i||((n=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(e))?i=t[e]=n[2]:(n=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(e))&&(i=t[e]=n[2])),i}}(Object.create(null)),qp=function(t){return function(e){var n=t[e];return null==n&&(n=t[e]=Es("Mapq",{font:e}).height),n}}(Object.create(null));function $p(t){null==t&&(t=document);for(var e={},n=0;n<t.styleSheets.length;++n)i(t.styleSheets[n]);return e;function i(t){if(t){var e=null;try{e=t.cssRules}catch(t){}e&&function(t,e){for(var n=0;n<e.length;++n){var s=e[n];switch(s.type){case 3:i(s.styleSheet);break;case 5:var a=s.style,l=Up(ou(a,"font-family")),h=/^([56789]00|bold)$/i.test(ou(a,"font-weight")),c="italic"==ou(a,"font-style"),p=r(s);p.length>0&&o(t,l,h,c,p[0])}}}(t,e)}}function r(t){var e=ou(t.style,"src");if(e)return Up(e).reduce(function(t,e){var n=Gp(e);
1return n&&t.push(n),t},[]);var n=Gp(t.cssText);return n?[n]:[]}function o(t,n,i,r,o){/^data:/i.test(o)||/^[^\/:]+:\/\//.test(o)||/^\//.test(o)||(o=String(t.href).replace(/[^\/]*$/,"")+o),n.forEach(function(t){t=t.replace(/^(['"]?)(.*?)\1$/,"$2"),i&&(t+="|bold"),r&&(t+="|italic"),e[t]=o})}}function Xp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Wp(t,e){var n=jp;for(t="_counter_"+t;n&&!Xp(n,t);)n=Object.getPrototypeOf(n);n||(n=jp._root),n[t]=(n[t]||0)+(null==e?1:e)}function Yp(t,e){jp[t="_counter_"+t]=null==e?0:e}function Zp(t,e,n){for(var i=0;i<t.length;){var r=t[i++],o=parseFloat(t[i]);isNaN(o)?e(r,n):(e(r,o),++i)}}function Jp(t){var e=ou(t,"counter-reset");e&&Zp(Up(e,/^\s+/),Yp,0);var n=ou(t,"counter-increment");n&&Zp(Up(n,/^\s+/),Wp,1)}function Kp(t,e){var n=qo(t,!0);return n&&(n=n.toRGB(),e?n=n.toCssRgba():0===n.a&&(n=null)),n}function Qp(t,e){var n=[];function i(t){Tp[t]||(Tp[t]=!0,n.push(t))}function r(t){/^img$/i.test(t.tagName)&&i(t.src),Hp(ou(ru(t),"background-image")).forEach(function(t){"url"==t.type&&i(t.url)}),t.children&&Op(t.children).forEach(r)}Array.isArray(t)?t.forEach(r):r(t);var o=n.length;function s(){--o<=0&&e()}
vendor: 4,709 bytes, line 1
10===o&&s(),n.forEach(function(t){var e=Tp[t]=new window.Image;/^data:/i.test(t)||(e.crossOrigin="Anonymous"),e.src=t,e.complete?s():(e.onload=s,e.onerror=function(){Tp[t]=null,s()})})}function tu(t){var e="";do{e=String.fromCharCode(97+t%26)+e,t=Math.floor(t/26)}while(t>0);return e}function eu(t,e,n){(jp=Object.create(jp))[t.tagName.toLowerCase()]={element:t,style:e};var i=ou(e,"text-decoration");if(i&&"none"!=i){var r=ou(e,"color");i.split(/\s+/g).forEach(function(t){jp[t]||(jp[t]=r)})}(function(t){function e(e){return ou(t,e)}if("none"!=e("transform")||"static"!=e("position")||"auto"!=e("z-index")||e("opacity")<1)return!0})(e)&&(jp._stackingContext={element:t,group:n})}function nu(){jp=Object.getPrototypeOf(jp)}function iu(t){if(null!=jp._clipbox){var e=t.bbox(jp._matrix);jp._clipbox=jp._clipbox?Zs.intersect(jp._clipbox,e):e}}function ru(t,e){return window.getComputedStyle(t,e||null)}function ou(t,e,n){var i=t.getPropertyValue(e);return null!=i&&""!==i||(Ap.webkit?i=t.getPropertyValue("-webkit-"+e):Ap.mozilla?i=t.getPropertyValue("-moz-"+e):Ap.opera?i=t.getPropertyValue("-o-"+e):Rp&&(i=t.getPropertyValue("-ms-"+e))),arguments.length>2&&(null==i||""===i)?n:i}function su(t,e,n,i){t.setProperty(e,n,i),Ap.webkit?t.setProperty("-webkit-"+e,n,i):Ap.mozilla?t.setProperty("-moz-"+e,n,i):Ap.opera?t.setProperty("-o-"+e,n,i):Rp&&(t.setProperty("-ms-"+e,n,i),t[e="ms"+e.replace(/(^|-)([a-z])/g,function(t,e,n){return e+n.toUpperCase()})]=n)}function au(t,e){return e="border-"+e,{width:parseFloat(ou(t,e+"-width")),style:ou(t,e+"-style"),color:Kp(ou(t,e+"-color"),!0)}}function lu(t,e){var n=t.style.cssText,i=e();return t.style.cssText=n,i}function hu(t,e){var n=ou(t,"border-"+e+"-radius").split(/\s+/g).map(parseFloat);return 1==n.length&&n.push(n[0]),gu({x:n[0],y:n[1]})}function cu(t,e,n){var i,r,o,s,a;return"string"==typeof e?(i=ru(n),r=parseFloat(ou(i,e.replace("*","top"))),o=parseFloat(ou(i,e.replace("*","right"))),s=parseFloat(ou(i,e.replace("*","bottom"))),a=parseFloat(ou(i,e.replace("*","left")))):"number"==typeof e&&(r=o=s=a=e),{top:t.top+r,right:t.right-o,bottom:t.bottom-s,left:t.left+a,width:t.right-t.left-o-a,height:t.bottom-t.top-s-r}}function pu(t){return 180*t/Math.PI%360}function uu(t,e){return e=new Us(e[0],e[1],e[2],e[3],e[4],e[5]),t.transform(e),e}function fu(t,e){t.clip(e)}function du(t,e,n,i){for(var r=new _a([e,n],i).curvePoints(),o=1;o<r.length;)t.curveTo(r[o++],r[o++],r[o++])}function gu(t){return(t.x<=0||t.y<=0)&&(t.x=t.y=0),t}function vu(t,e,n,i,r){var o=Math.max(0,e.x),s=Math.max(0,e.y),a=Math.max(0,n.x),l=Math.max(0,n.y),h=Math.max(0,i.x),c=Math.max(0,i.y),p=Math.max(0,r.x),u=Math.max(0,r.y),f=Math.min(t.width/(o+a),t.height/(l+c),t.width/(h+p),t.height/(u+s));return f<1&&(o*=f,s*=f,a*=f,l*=f,h*=f,c*=f,p*=f,u*=f),{tl:{x:o,y:s},tr:{x:a,y:l},br:{x:h,y:c},bl:{x:p,y:u}}}function yu(t,e,n){var i=ru(t),r=hu(i,"top-left"),o=hu(i,"top-right"),s=hu(i,"bottom-left"),a=hu(i,"bottom-right");if("padding"==n||"content"==n){var l=au(i,"top"),h=au(i,"right"),c=au(i,"bottom"),p=au(i,"left");if(r.x-=p.width,r.y-=l.width,o.x-=h.width,o.y-=l.width,a.x-=h.width,a.y-=c.width,s.x-=p.width,s.y-=c.width,"content"==n){var u=parseFloat(ou(i,"padding-top")),f=parseFloat(ou(i,"padding-right")),d=parseFloat(ou(i,"padding-bottom")),g=parseFloat(ou(i,"padding-left"));r.x-=g,r.y-=u,o.x-=f,o.y-=u,a.x-=f,a.y-=d,s.x-=g,s.y-=d}}return"number"==typeof n&&(r.x-=n,r.y-=n,o.x-=n,o.y-=n,a.x-=n,a.y-=n,s.x-=n,s.y-=n),mu(e,r,o,a,s)}function mu(t,e,n,i,r){var o=vu(t,e,n,i,r),s=o.tl,a=o.tr,l=o.br,h=o.bl,c=new rl({fill:null,stroke:null});return c.moveTo(t.left,t.top+s.y),s.x&&du(c,t.left+s.x,t.top+s.y,{startAngle:-180,endAngle:-90,radiusX:s.x,radiusY:s.y}),c.lineTo(t.right-a.x,t.top),a.x&&du(c,t.right-a.x,t.top+a.y,{startAngle:-90,endAngle:0,radiusX:a.x,radiusY:a.y}),c.lineTo(t.right,t.bottom-l.y),l.x&&du(c,t.right-l.x,t.bottom-l.y,{startAngle:0,endAngle:90,radiusX:l.x,radiusY:l.y}),c.lineTo(t.left+h.x,t.bottom),h.x&&du(c,t.left+h.x,t.bottom-h.y,{startAngle:90,endAngle:180,radiusX:h.x,radiusY:h.y}),c.close()}function xu(t,e){var n=String(parseFloat(t));switch(e){case"decimal-leading-zero":return n.length<2&&(n="0"+n),n;case"lower-roman":return Zo(t).toLowerCase();case"upper-roman":return Zo(t).toUpperCase();case"lower-latin":case"lower-alpha":return tu(t-1);case"upper-latin":case"upper-alpha":return tu(t-1).toUpperCase();default:return n}}function bu(t){if(t.cssText)return t.cssText;for(var e=[],n=0;n<t.length;++n)e.push(t[n]+": "+ou(t,t[n]));return e.join(";\n")}function _u(t,e){if(t.tagName!=Pp){var n=[];if(r(":before",t.firstChild),r(":after",null),n.length>0){var i=t.className;t.className+=" kendo-pdf-hide-pseudo-elements",wu(t,e),t.className=i,n.forEac
1h(function(e){t.removeChild(e)})}else wu(t,e)}else wu(t,e);function r(e,i){var r=ru(t,e),o=r.content;if(Jp(r),o&&"normal"!=o&&"none"!=o&&"0px"!=r.width){var s=t.ownerDocument.createElement(Pp);s.style.cssText=bu(r),s.textContent=function(t,e){function n(t,e,n){return n?(n=n.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),function(t){var e=[],n=jp;for(t="_counter_"+t;n;)Xp(n,t)&&e.push(n[t]),n=Object.getPrototypeOf(n);return e.reverse()}(t).map(function(t){return xu(t,e)}).join(n)):xu(function(t){return jp[t="_counter_"+t]}(t)||0,e)}var i,r=[];return Up(e,/^\s+/).forEach(function(e){var o;(i=/^\s*(["'])(.*)\1\s*$/.exec(e))?r.push(i[2].replace(/\\([0-9a-f]{4})/gi,function(t,e){return String.fromCharCode(parseInt(e,16))})):(i=/^\s*counter\((.*?)\)\s*$/.exec(e))?(o=Up(i[1]),r.push(n(o[0],o[1]))):(i=/^\s*counters\((.*?)\)\s*$/.exec(e))?(o=Up(i[1]),r.push(n(o[0],o[2],o[1]))):(i=/^\s*attr\((.*?)\)\s*$/.exec(e))?r.push(t.getAttribute(i[1])||""):r.push(e)}),r.join("")}(t,o),t.insertBefore(s,i),n.push(s)}}}function wu(t,e){var n=ru(t),i=au(n,"top"),r=au(n,"right"),o=au(n,"bottom"),s=au(n,"left"),a=hu(n,"top-left"),l=hu(n,"top-right"),h=hu(n,"bottom-left"),c=hu(n,"bottom-right"),p=ou(n,"direction"),u=ou(n,"background-color");u=Kp(u);var f=Hp(ou(n,"background-image")),d=Up(ou(n,"background-repeat")),g=Up(ou(n,"background-position")),v=Up(ou(n,"background-origin")),y=Up(ou(n,"background-size"));Ap.msie&&Ap.version<10&&(g=Up(t.currentStyle.backgroundPosition));var m,x,b,_=cu(t.getBoundingClientRect(),"border-*-width",t);!function(){var t=ou(n,"clip"),i=/^\s*rect\((.*)\)\s*$/.exec(t);if(i){var r=i[1].split(/[ ,]+/g),o="auto"==r[0]?_.top:parseFloat(r[0])+_.top,s="auto"==r[1]?_.right:parseFloat(r[1])+_.left,a="auto"==r[2]?_.bottom:parseFloat(r[2])+_.top,l="auto"==r[3]?_.left:parseFloat(r[3])+_.left,h=new vl,c=(new rl).moveTo(l,o).lineTo(s,o).lineTo(s,a).lineTo(l,a).close();fu(h,c),e.append(h),e=h,iu(c)}}();var w=ou(n,"display");if("table-row"==w)for(m=[],x=0,b=t.children;x<b.length;
1++x)m.push(b[x].getBoundingClientRect());else 1==(m=t.getClientRects()).length&&(m=[t.getBoundingClientRect()]);for(m=function(e){if(/^td$/i.test(t.tagName)){var n=jp.table;if(n&&"collapse"==ou(n.style,"border-collapse")){var i=au(n.style,"left").width,r=au(n.style,"top").width;if(0===i&&0===r)return e;var o=n.element.getBoundingClientRect(),s=n.element.rows[0].cells[0].getBoundingClientRect();if(s.top==o.top||s.left==o.left)return Op(e).map(function(t){return{left:t.left+i,top:t.top+r,right:t.right+i,bottom:t.bottom+r,height:t.height,width:t.width}})}}return e}(m),x=0;x<m.length;++x)M(m[x],0===x,x==m.length-1);if("A"==t.tagName&&t.href&&!/^#?$/.test(t.getAttribute("href"))&&(!jp._avoidLinks||!Lp(t,jp._avoidLinks))){var C=document.createRange();C.selectNodeContents(t),Op(C.getClientRects()).forEach(function(n){var i=new vl;i._pdfLink={url:t.href,top:n.top,right:n.right,bottom:n.bottom,left:n.left},e.append(i)})}return m.length>0&&"list-item"==w&&!t.getAttribute("kendo-no-bullet")&&function(){var i=ou(n,"list-style-type");if("none"!=i){var r=ou(n,"list-style-position");switch(i){case"circle":case"disc":case"square":o(function(t){t.style.fontSize="60%",t.style.lineHeight="200%",t.style.paddingRight="0.5em",t.style.fontFamily="DejaVu Serif",t.innerHTML={disc:"\u25cf",circle:"\u25ef",square:"\u25a0"}[i]});break;case"decimal":case"decimal-leading-zero":o(function(t){s(function(e){++e,"decimal-leading-zero"==i&&e<10&&(e="0"+e),t.innerHTML=e+"."})});break;case"lower-roman":case"upper-roman":o(function(t){s(function(e){e=Zo(e+1),"upper-roman"==i&&(e=e.toUpperCase()),t.innerHTML=e+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":o(function(t){s(function(e){e=tu(e),/^upper/i.test(i)&&(e=e.toUpperCase()),t.innerHTML=e+"."})})}}function o(n){lu(t,function(){t.style.position="relative";var i=t.ownerDocument.createElement(Pp);i.style.position="absolute",i.style.boxSizing="border-box","outside"==r?(i.style.width="6em",i.style.left="-6.8em",i.style.textAlign="right"):i.style.left="0px",n(i),t.insertBefore(i,t.firstChild),Mu(i,e),t.removeChild(i)})}function s(e){var n=t.parentNode.children,i=t.getAttribute("kendo-split-index");if(null!=i)return e(0|i,n.length);for(var r=0;r<n.length;++r)if(n[r]===t)return e(r,n.length)}}(),function(){function i(){var n=yu(t,_,"padding"),i=new vl;fu(i,n),e.append(i),e=i,iu(n)}!function(t){return/^(?:textarea|select|input)$/i.test(t.tagName)}(t)?/^(hidden|auto|scroll)/.test(ou(n,"overflow"))?i():/^(hidden|auto|scroll)/.test(ou(n,"overflow-x"))?i():/^(hidden|auto|scroll)/.test(ou(n,"overflow-y"))&&i():i()}(),function(t,e){var n;if(t._kendoExportVisual)n=t._kendoExportVisual();else if(window.kendo&&window.kendo.jQuery&&t.getAttribute(window.kendo.attr("role"))){var i=window.kendo.widgetInstance(window.kendo.jQuery(t));i&&(i.exportDOMVisual||i.exportVisual)&&(n=i.exportDOMVisual?i.exportDOMVisual():i.exportVisual())}if(!n)return!1;var r=new vl;r.children.push(n);var o=t.getBoundingClientRect();return r.transform(Qs().translate(o.left,o.top)),e.append(r),!0}(t,e)||function t(e,n){switch(jp._stackingContext.element===e&&(jp._stackingContext.group=n),e.tagName.toLowerCase()){case"img":Cu(e,e.src,n);break;case"canvas":try{Cu(e,e.toDataURL("image/png"),n)}catch(t){}break;case"textarea":case"input":case"select":!function(e,n){var i=e.tagName.toLowerCase();if("input"==i&&("checkbox"==e.type||"radio"==e.type))return function(t,e){var n=ou(ru(t),"color"),i=t.getBoundingClientRect();"checkbox"==t.type?(e.append(rl.fromRect(new Zs([i.left+1,i.top+1],[i.width-2,i.height-2])).stroke(n,1)),t.checked&&e.append((new rl).stroke(n,1.2).moveTo(i.left+.22*i.width,i.top+.55*i.height).lineTo(i.left+.45*i.width,i.top+.75*i.height).lineTo(i.left+.78*i.width,i.top+.22*i.width))):(e.append(new fa(new oa([(i.left+i.right)/2,(i.top+i.bottom)/2],Math.min(i.width-2,i.height-2)/2)).stroke(n,1)),t.checked&&e.append(new fa(new oa([(i.left+i.right)/2,(i.top+i.bottom)/2],Math.min(i.width-8,i.height-8)/2)).fill(n).stroke(null)))}(e,n);var r,o=e.parentNode,s=e.ownerDocument,a=s.createElement(Pp);if(a.style.cssText=bu(ru(e)),"input"==i&&(a.style.whiteSpace="pre"),"select"!=i&&"textarea"!=i||(a.style.overflow="auto"),"select"==i)if(e.multiple)for(var l=0;l<e.options.length;++l)(r=s.createElement(Pp)).style.cssText=bu(ru(e.options[l])),r.style.display="block",r.textContent=e.options[l].textContent,a.appendChild(r);else(r=function(t){return t.selectedOptions&&t.selectedOptions.length>0?t.selectedOptions[0]:t.options[t.selectedIndex]}(e))&&(a.textContent=r.textContent);else a.textContent=e.value;o.insertBefore(a,e),a.scrollLeft=e.scrollLeft,a.scrollTop=e.scrollTop,e.style.display="none",t(a,n),e.style.display="",o.removeChild(a)}
vendor: 4,851 bytes, line 1
1(e,n);break;default:for(var i=[],r=[],o=[],s=e.firstChild;s;s=s.nextSibling)switch(s.nodeType){case 3:/\S/.test(s.data)&&ku(e,s,n);break;case 1:var a=ru(s),l=ou(a,"float");"static"!=ou(a,"position")?o.push(s):"none"!=l?r.push(s):i.push(s)}ds(i,Su).forEach(function(t){Mu(t,n)}),ds(r,Su).forEach(function(t){Mu(t,n)}),ds(o,Su).forEach(function(t){Mu(t,n)})}}(t,e),e;function S(t,n,i,r,o,s,a,l){if(!(i<=0)){var h,c=new vl;uu(c,l),e.append(c),gu(s),gu(a),h=new rl({fill:{color:t},stroke:null}),c.append(h),h.moveTo(s.x?Math.max(s.x,r):0,0).lineTo(n-(a.x?Math.max(a.x,o):0),0).lineTo(n-Math.max(a.x,o),i).lineTo(Math.max(s.x,r),i).close(),s.x&&p(r,s,[-1,0,0,1,s.x,0]),a.x&&p(o,a,[1,0,0,1,n-a.x,0])}function p(e,n,r){var o=Math.PI/2*e/(e+i),s={x:n.x-e,y:n.y-i},a=new rl({fill:{color:t},stroke:null}).moveTo(0,0);uu(a,r),du(a,0,n.y,{startAngle:-90,endAngle:-pu(o),radiusX:n.x,radiusY:n.y}),s.x>0&&s.y>0?(a.lineTo(s.x*Math.cos(o),n.y-s.y*Math.sin(o)),du(a,0,n.y,{startAngle:-pu(o),endAngle:-90,radiusX:s.x,radiusY:s.y,anticlockwise:!0})):s.x>0?a.lineTo(s.x,i).lineTo(0,i):a.lineTo(s.x,i).lineTo(s.x,0),c.append(a.close())}}function k(e,n,i,r,o,s,a){var l;if(i&&"none"!=i)if("url"==i.type){if(/^url\(\"data:image\/svg/i.test(i.url))return;var h=Tp[i.url];h&&h.width>0&&h.height>0&&c(e,n,h.width,h.height,function(t,e){t.append(new fl(i.url,e))})}else{if("linear"!=i.type)return;c(e,n,n.width,n.height,(l=i,function(t,e){var n=e.width(),i=e.height();switch(l.type){case"linear":var r=null!=l.angle?l.angle:Math.PI;switch(l.to){case"top":r=0;break;case"left":r=-Math.PI/2;break;case"bottom":r=Math.PI;break;case"right":r=Math.PI/2;break;case"top left":case"left top":r=-Math.atan2(i,n);break;case"top right":case"right top":r=Math.atan2(i,n);break;case"bottom left":case"left bottom":r=Math.PI+Math.atan2(i,n);break;case"bottom right":case"right bottom":r=Math.PI-Math.atan2(i,n)}l.reverse&&(r-=Math.PI),(r%=2*Math.PI)<0&&(r+=2*Math.PI);var o=Math.abs(n*Math.sin(r))+Math.abs(i*Math.cos(r)),s=Math.atan(n*Math.tan(r)/i),a=Math.sin(s),h=Math.cos(s),c=Math.abs(a)+Math.abs(h),p=c/2*a,u=c/2*h;r>Math.PI/2&&r<=3*Math.PI/2&&(p=-p,u=-u);var f=[],d=0,g=l.stops.map(function(t,e){var n=t.percent;n?n=parseFloat(n)/100:t.length?n=parseFloat(t.length)/o:0===e?n=0:e==l.stops.length-1&&(n=1);var i={color:t.color.toCssRgba(),offset:n};return null!=n?(d=n,f.forEach(function(t,e){t.stop.offset=t.left+(d-t.left)*(e+1)/(f.length+1)}),f=[]):f.push({left:d,stop:i}),i}),v=[.5-p,.5+u],y=[.5+p,.5-u];t.append(rl.fromRect(e).stroke(null).fill(new Gl({start:v,end:y,stops:g,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}))}function c(e,n,i,l,h){var c,p=i/l,u=n;if("content-box"==s?u=cu(u=cu(u,"border-*-width",t),"padding-*",t):"padding-box"==s&&(u=cu(u,"border-*-width",t)),!/^\s*auto(\s+auto)?\s*$/.test(a))if("contain"==a)c=Math.min(u.width/i,u.height/l),i*=c,l*=c;else if("cover"==a)c=Math.max(u.width/i,u.height/l),i*=c,l*=c;else{var f=a.split(/\s+/g);i=/%$/.test(f[0])?u.width*parseFloat(f[0])/100:parseFloat(f[0]),l=1==f.length||"auto"==f[1]?i/p:/%$/.test(f[1])?u.height*parseFloat(f[1])/100:parseFloat(f[1])}var d=String(o);switch(d){case"bottom":d="50% 100%";break;case"top":d="50% 0";break;case"left":d="0 50%";break;case"right":d="100% 50%";break;case"center":d="50% 50%"}1==(d=d.split(/\s+/)).length&&(d[1]="50%"),d[0]=/%$/.test(d[0])?parseFloat(d[0])/100*(u.width-i):parseFloat(d[0]),d[1]=/%$/.test(d[1])?parseFloat(d[1])/100*(u.height-l):parseFloat(d[1]);var g=new Zs([u.left+d[0],u.top+d[1]],[i,l]);function v(){for(;g.origin.x>n.left;)g.origin.x-=i}function y(){for(;g.origin.y>n.top;)g.origin.y-=l}function m(){for(;g.origin.x<n.right;)h(e,g.clone()),g.origin.x+=i}if("no-repeat"==r)h(e,g);else if("repeat-x"==r)v(),m();else if("repeat-y"==r)for(y();g.origin.y<n.bottom;)h(e,g.clone()),g.origin.y+=l;else if("repeat"==r){v(),y();for(var x=g.origin.clone();g.origin.y<n.bottom;)g.origin.x=x.x,m(),g.origin.y+=l}}}function M(n,m,x){if(0!==n.width&&0!==n.height){!function(t){var n=new vl;if(fu(n,mu(t,a,l,c,h)),e.append(n),u){var i=new rl({fill:{color:u.toCssRgba()},stroke:null});i.moveTo(t.left,t.top).lineTo(t.right,t.top).lineTo(t.right,t.bottom).lineTo(t.left,t.bottom).close(),n.append(i)}for(var r=f.length;--r>=0;)k(n,t,f[r],d[r%d.length],g[r%g.length],v[r%v.length],y[r%y.length])}(n);var b=s.width>0&&(m&&"ltr"==p||x&&"rtl"==p),_=r.width>0&&(x&&"ltr"==p||m&&"rtl"==p);if(0!==i.width||0!==s.width||0!==r.width||0!==o.width){if(i.color==r.color&&i.color==o.color&&i.color==s.color&&i.width==r.width&&i.width==o.width&&i.width==s.width&&b&&_){n=cu(n,i.width/2);var w=yu(t,n,i.width/2);return w.options.stroke={color:i.color,width:i.width},void e.append(w)}if(0===a.x&&0===l.x&&0===c.x&&0===h.x&&i.width<2&&s.width<2&&r.width<2&&o.width<2)return i.width>
10&&e.append(new rl({stroke:{width:i.width,color:i.color}}).moveTo(n.left,n.top+i.width/2).lineTo(n.right,n.top+i.width/2)),o.width>0&&e.append(new rl({stroke:{width:o.width,color:o.color}}).moveTo(n.left,n.bottom-o.width/2).lineTo(n.right,n.bottom-o.width/2)),b&&e.append(new rl({stroke:{width:s.width,color:s.color}}).moveTo(n.left+s.width/2,n.top).lineTo(n.left+s.width/2,n.bottom)),void(_&&e.append(new rl({stroke:{width:r.width,color:r.color}}).moveTo(n.right-r.width/2,n.top).lineTo(n.right-r.width/2,n.bottom)));var C=vu(n,a,l,c,h),M=C.tl,A=C.tr,O=C.br,P=C.bl;S(i.color,n.width,i.width,s.width,r.width,M,A,[1,0,0,1,n.left,n.top]),S(o.color,n.width,o.width,r.width,s.width,O,P,[-1,0,0,-1,n.right,n.bottom]),S(s.color,n.height,s.width,o.width,i.width,T(P),T(M),[0,-1,1,0,n.left,n.bottom]),S(r.color,n.height,r.width,i.width,o.width,T(A),T(O),[0,1,-1,0,n.right,n.top])}}function T(t){return{x:t.y,y:t.x}}}}function Cu(t,e,n){var i=function(t){var e=t.getBoundingClientRect();return cu(e=cu(e,"border-*-width",t),"padding-*",t)}(t),r=new Zs([i.left,i.top],[i.width,i.height]),o=new fl(e,r);fu(o,yu(t,i,"content")),n.append(o)}function Su(t,e){var n=ru(t),i=ru(e),r=parseFloat(ou(n,"z-index")),o=parseFloat(ou(i,"z-index")),s=ou(n,"position"),a=ou(i,"position");return isNaN(r)&&isNaN(o)?/static|absolute/.test(s)&&/static|absolute/.test(a)?0:"static"==s?-1:"static"==a?1:0:isNaN(r)?0===o?0:o>0?-1:1:isNaN(o)?0===r?0:r>0?1:-1:parseFloat(r)-parseFloat(o)}function ku(t,e,n){if(null!=(i=jp._clipbox)&&(!i||0!==i.width()&&0!==i.height())){var i,r=ru(t);if(!(parseFloat(ou(r,"text-indent"))<-500)){var o=e.data,s=0,a=o.search(/\S\s*$/)+1;if(a){var l=ou(r,"font-size"),h=ou(r,"line-height"),c=[ou(r,"font-style"),ou(r,"font-variant"),ou(r,"font-weight"),l,ou(r,"font-family")].join(" ");if(l=parseFloat(l),h=parseFloat(h),0!==l){var p,u,f=ou(r,"color"),d=t.ownerDocument.createRange(),g="justify"==ou(r,"text-align"),v=ou(r,"column-count",1),y=ou(r,"white-space"),m=ou(r,"text-transform");Rp&&"ellipsis"==(p=r.textOverflow)&&(u=t.style.textOverflow,t.style.textOverflow="clip");var x=t.getBoundingClientRect().width/l*5;0===x&&(x=500);for(var b=null,_=jp.underline,w=jp["line-through"],C=jp.overline,S=_||w||C;!M(););return Rp&&"ellipsis"==p&&(t.style.textOverflow=u),void(S&&(d.selectNode(e),Op(d.getClientRects()).forEach(function(t){function e(e,i){if(e){var r=l/12,o=new rl({stroke:{width:r,color:e}});o.moveTo(t.left,i-=r).lineTo(t.right,i),n.append(o)}}e(_,t.bottom),e(w,t.bottom-t.height/2.7),e(C,t.top)})))}}}}function k(t){if(Rp||Ap.chrome){for(var e=t.getClientRects(),n={top:1/0,right:-1/0,bottom:-1/0,left:1/0},i=!1,r=0;r<e.length;++r){var o=e[r];o.width<=1||o.bottom===b||(n.left=Math.min(o.left,n.left),n.top=Math.min(o.top,n.top),n.right=Math.max(o.right,n.right),n.bottom=Math.max(o.bottom,n.bottom),i=!0)}return i?(n.width=n.right-n.left,n.height=n.bottom-n.top,n):t.getBoundingClientRect()}return t.getBoundingClientRect()}function M(){var t,i=s,r=o.substr(s).search(/\S/);if(s+=r,r<0||s>=a)return!0;d.setStart(e,s),d.setEnd(e,s+1),t=k(d);var l=!1;if((g||v>1)&&(r=o.substr(s).search(/\s/))>=0){d.setEnd(e,s+r);var p=k(d);p.bottom==t.bottom&&(t=p,l=!0,s+=r)}if(!l){if((r=function n(i,r,o){d.setEnd(e,r);var s=k(d);return s.bottom!=t.bottom&&i<r?n(i,i+r>>1,r):s.right!=t.right?(t=s,r<o?n(r,r+o>>1,o):r):r}(s,Math.min(a,s+x),a))==s)return!0;if(s=r,0===(r=d.toString().search(/\s+$/)))return!1;r>0&&(d.setEnd(e,d.startOffset+r),t=k(d))}Rp&&(t=d.getClientRects()[0]);var u=d.toString();if(/^(?:pre|pre-wrap)$/i.test(y)){if(/\t/.test(u)){var _=0;for(r=i;r<d.startOffset;++r){var w=o.charCodeAt(r);9==w?_+=8-_%8:10==w||13==w?_=0:_++}for(;(r=u.search("\t"))>=0;){var C=" ".substr(0,8-(_+r)%8);u=u.substr(0,r)+C+u.substr(r+1)}}}else u=u.replace(/\s+/g," ");l||(b=t.bottom),function(t,e){if(Rp&&!isNaN(h)){var i=qp(c),r=(e.top+e.bottom-i)/2;e={top:r,right:e.right,bottom:r+i,left:e.left,height:i,width:e.right-e.left}}switch(m){case"uppercase":t=t.toUpperCase();break;case"lowercase":t=t.toLowerCase();break;case"capitalize":t=t.replace(/(?:^|\s)\S/g,function(t){return t.toUpperCase()})}var o=new Ip(t,new Zs([e.left,e.top],[e.width,e.height]),{font:c,fill:{color:f}});n.append(o)}(u,t)}}function Mu(t,e){var n=ru(t);if(Jp(n),!/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(t.tagName)&&null!=jp._clipbox){var i=parseFloat(ou(n,"opacity")),r=ou(n,"visibility"),o=ou(n,"display");
1if(0!==i&&"hidden"!=r&&"none"!=o){var s,a=function(t){var e=ou(t,"transform");if("none"==e)return null;var n=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(e);if(n){var i=ou(t,"transform-origin");return{matrix:n=n[1].split(/\s*,\s*/g).map(parseFloat),origin:i=i.split(/\s+/g).map(parseFloat)}}}(n),l=ou(n,"z-index");(a||i<1)&&"auto"==l&&(l=0),s=function(t,e,n){var i;"auto"!=n?(i=jp._stackingContext.group,n=parseFloat(n)):(i=e,n=0);for(var r=i.children,o=0;o<r.length&&!(null!=r[o]._dom_zIndex&&r[o]._dom_zIndex>n);++o);var s=new vl;if(i.insert(o,s),s._dom_zIndex=n,i!==e&&jp._clipbox){var a=jp._matrix.invert(),l=jp._clipbox.transformCopy(a);fu(s,rl.fromRect(l))}return s}(0,e,l),i<1&&s.opacity(i*s.opacity()),eu(t,n,s),a?lu(t,function(){su(t.style,"transform","none","important"),su(t.style,"transition","none","important"),"static"==ou(n,"position")&&su(t.style,"position","relative","important");var e=t.getBoundingClientRect(),i=e.left+a.origin[0],r=e.top+a.origin[1],o=[1,0,0,1,-i,-r];o=Au(o=Au(o,a.matrix),[1,0,0,1,i,r]),o=uu(s,o),jp._matrix=jp._matrix.multiplyCopy(o),_u(t,s)}):_u(t,s),nu()}}}function Au(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=e[0],h=e[1],c=e[2],p=e[3];return[n*l+i*c,n*h+i*p,r*l+o*c,r*h+o*p,s*l+a*c+e[4],s*h+a*p+e[5]]}function Ou(t){var e=.5;t.options.stroke&&l.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var n=0;n<t.segments.length;n++)t.segments[n].anchor().round(0).translate(e,e);return t}function Pu(t,e){return-t.x*e.y+t.y*e.x<0}function Tu(t){return"number"==typeof t&&!isNaN(t)}function ju(t){return typeof t===ro}function Ru(t){return Tu(t)||ju(t)&&isFinite(t)}function Iu(t){return"function"==typeof t}var zu="object",Eu="undefined";function Lu(t,e){for(var n in e){var i,r=e[n],o=typeof r;if((i=o===zu&&null!==r?r.constructor:null)&&i!==Array)if(r instanceof Date)t[n]=new Date(r.getTime());else if(Iu(r.clone))t[n]=r.clone();else{var s=t[n];t[n]=typeof s===zu&&s||{},Lu(t[n],r)}else o!==Eu&&(t[n]=r)}return t}function Bu(t){for(var e=arguments,n=arguments.length,i=1;i<n;i++)Lu(t,e[i]);return t}function Du(t){return"object"==typeof t}function Fu(t){return Tu(t)?t+"px":t}var Vu=/width|height|top|left|bottom|right/i;function Nu(t){return Vu.test(t)}function Hu(t,e){var n=ju(e)?[e]:e;if(co(n)){for(var i={},r=window.getComputedStyle(t),o=0;o<n.length;o++){var s=n[o];i[s]=Nu(s)?parseFloat(r[s]):r[s]}return i}if(Du(e))for(var a in e)t.style[a]=Fu(e[a])}function Uu(t,e){void 0===e&&(e=0);var n={top:0,right:0,bottom:0,left:0};return"number"==typeof t?n[oo]=n[io]=n[$r]=n[Qr]=t:(n[oo]=t[oo]||e,n[io]=t[io]||e,n[$r]=t[$r]||e,n[Qr]=t[Qr]||e),n}var Gu={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)}},qu=function(){},$u={implementation:{configurable:!0}};qu.register=function(t){Gu=t},$u.implementation.get=function(){return Gu},Object.defineProperties(qu,$u);var Xu=qu,Wu=/\{(\d+)(:[^\}]+)?\}/g,Yu=function(t){this._intlService=t},Zu={intl:{configurable:!0}};Zu.intl.get=function(){return this._intlService||Xu.implementation},Zu.intl.set=function(t){this._intlService=t},Yu.prototype.auto=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var i=this.intl;return ju(t)&&t.match(Kr)?i.format.apply(i,[t].concat(e)):i.toString(e[0],t)},Yu.prototype.localeAuto=function(t,e,n){var i=this.intl;return ju(t)&&t.match(Kr)?t.replace(Wu,function(t,r,o){var s=e[parseInt(r,10)];return i.toString(s,o?o.substring(1):"",n)}):i.toString(e[0],t,n)},Object.defineProperties(Yu.prototype,Zu);var Ju=Yu,Ku=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new Ju(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},Qu={intl:{configurable:!0}};Qu.intl.get=function(){return this._intlService||Xu.implementation},Qu.intl.set=function(t){this._intlService=t,this.format.intl=t},Ku.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},Ku.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(Ku.prototype,Qu);var tf,ef=Ku,nf=function(){};nf.register=function(t){tf=t},nf.create=function(t,e){if(tf)return tf.create(t,e)};var rf=nf,of={compile:function(t){return t}},sf=function(){};sf.register=function(t){of=t},sf.compile=function(t){return of.compile(t)};var af=sf;function lf(t){var e;return void 0===t&&(t={}),t.template?t.template=e=af.compile(t.template):Iu(t.content)&&(e=t.content),e}var hf=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,cf={};function pf(t){if(cf[t])return cf[t];var e=[];return t.replace(hf,function(t,n,i,r){e.push(l.util.defined(n)?n:i||r)}),cf[t]=function(t){for(var n=t,i=0;i<e.length&&n;i++)n=n[e[i]];return n},cf[t]}function uf(t,e){for(var n=t.length,i=[],r=0;r<n;r++)e(t[r])&&i.push(t[r]);return i}function ff(t,e){if(t.className)for(var n=e.split(" "),i=0;i<n.length;i++)if(-1!==t.className.indexOf(n[i]))return!0}cf[void 0]=function(t){return t};var df=function(){this._map={}};df.prototype.get=function(t){return this._map[this._key(t)]},df.prototype.set=function(t,e){this._map[this._key(t)]=e},df.prototype._key=function(t){return t instanceof Date?t.getTime():t};var gf=df;function vf(t,e){if(e)return-1!==e.indexOf(t)}function yf(t,e,n){return l.util.round(t+(e-t)*n,Yr)}var mf=function(t,e){this.observer=t,this.handlerMap=Bu({},this.handlerMap,e)};mf.prototype.trigger=function(t,e){var n,i=this.observer,r=this.handlerMap;return r[t]?n=this.callObserver(r[t],e):i.trigger&&(n=this.callObserver("trigger",t,e)),n},mf.prototype.callObserver=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return this.observer[t].apply(this.observer,e)},mf.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};var xf=mf;function bf(t,e){for(var n=t.length,i=[],r=0;r<n;r++){var o=e(t[r]);l.util.defined(o)&&i.push(o)}return i}function _f(t){var e=0;
1return t.wheelDelta&&(e=(e=-t.wheelDelta/120)>0?Math.ceil(e):Math.floor(e)),t.detail&&(e=l.util.round(t.detail/3)),e}var wf=l.util,Cf=wf.append,Sf=wf.bindEvents,kf=wf.defined,Mf=wf.deg,Af=wf.elementOffset,Of=wf.elementSize,Pf=wf.eventElement,Tf=wf.eventCoordinates,jf=wf.last,Rf=wf.limitValue,If=wf.objectKey,zf=wf.rad,Ef=wf.round,Lf=wf.unbindEvents,Bf=wf.valueOrDefault,Df=function(){};Df.fetchFonts=function(t,e,n){void 0===n&&(n={depth:0}),!t||n.depth>5||!document.fonts||Object.keys(t).forEach(function(i){var r=t[i];"dataSource"!==i&&"$"!==i[0]&&r&&("font"===i?e.push(r):"object"==typeof r&&(n.depth++,Df.fetchFonts(r,e,n),n.depth--))})},Df.loadFonts=function(t,e){var n=[];if(t.length>0&&document.fonts){try{n=t.map(function(t){return document.fonts.load(t)})}catch(t){ko(t)}Promise.all(n).then(e,e)}else e()},Df.preloadFonts=function(t,e){var n=[];Df.fetchFonts(t,n),Df.loadFonts(n,e)};var Ff=Df;function Vf(t,e){var n=t.prototype;n.options=n.options?Bu({},n.options,e):e}function Nf(t){for(var e=to,n=eo,i=0,r=t.length;i<r;i++){var o=t[i];null!==o&&isFinite(o)&&(e=Math.min(e,o),n=Math.max(n,o))}return{min:e===to?void 0:e,max:n===eo?void 0:n}}function Hf(t,e){var n=Ef(e-t,Jr-1);if(0===n){if(0===e)return.1;n=Math.abs(e)}var i=Math.pow(10,Math.floor(Math.log(n)/Math.log(10))),r=Ef(n/i,Jr);return Ef(i*(r<1.904762?.2:r<4.761904?.5:r<9.523809?1:2),Jr)}var Uf=function(t){function e(e,n){t.call(this),this.x=e||0,this.y=n||0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},e.prototype.rotate=function(t,e){var n=zf(e),i=Math.cos(n),r=Math.sin(n),o=t.x,s=t.y,a=this.x,l=this.y;return this.x=Ef(o+(a-o)*i+(l-s)*r,Yr),this.y=Ef(s+(l-s)*i-(a-o)*r,Yr),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},e.onCircle=function(t,n,i){var r=zf(n);return new e(t.x-i*Math.cos(r),t.y-i*Math.sin(r))},e}(mo);function Gf(t,e,n,i,r){var o=zf(r);return new Uf(n+(t-n)*Math.cos(o)+(e-i)*Math.sin(o),i-(t-n)*Math.sin(o)+(e-i)*Math.cos(o))}var qf=function(t){function e(e,n,i,r){t.call(this),this.x1=e||0,this.y1=n||0,this.x2=i||0,this.y2=r||0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},e.prototype.width=function(){return this.x2-this.x1},e.prototype.height=function(){return this.y2-this.y1},e.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},e.prototype.move=function(t,e){var n=this.height(),i=this.width();return kf(t)&&(this.x1=t,this.x2=this.x1+i),kf(e)&&(this.y1=e,this.y2=this.y1+n),this},e.prototype.wrap=function(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this},e.prototype.wrapPoint=function(t){var n=co(t),i=n?t[0]:t.x,r=n?t[1]:t.y;return this.wrap(new e(i,r,i,r)),this},e.prototype.snapTo=function(t,e){return e!==lo&&e||(this.x1=t.x1,this.x2=t.x2),e!==ho&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var n=this.height(),i=this.width(),r=e===oo||e===$r?ho:lo,o=r===ho?n:i;if(e===Xr){var s=t.center(),a=this.center();this.x1+=s.x-a.x,this.y1+=s.y-a.y}else this[r+1]=e===oo||e===Qr?t[r+1]-o:t[r+2];return this.x2=this.x1+i,this.y2=this.y1+n,this},e.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},e.prototype.expand=function(t,e){return this.shrink(-t,-e),this},e.prototype.pad=function(t){var e=Uu(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},e.prototype.unpad=function(t){var e=Uu(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},e.prototype.clone=function(){return new e(this.x1,this.y1,this.x2,this.y2)},e.prototype.center=function(){return new Uf(this.x1+this.width()/2,this.y1+this.height()/2)},e.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},e.prototype.points=function(){return[new Uf(this.x1,this.y1),new Uf(this.x2,this.y1),new Uf(this.x2,this.y2),new Uf(this.x1,this.y2)]},e.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},e.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},e.prototype.rotate=function(t){var e=this.width(),n=this.height(),i=this.center(),r=i.x,o=i.y,s=Gf(0,0,r,o,t),a=Gf(e,0,r,o,t),l=Gf(e,n,r,o,t),h=Gf(0,n,r,o,t);return e=Math.max(s.x,a.x,l.x,h.x)-Math.min(s.x,a.x,l.x,h.x),n=Math.max(s.y,a.y,l.y,h.y)-Math.min(s.y,a.y,l.y,h.y),this.x2=this.x1+e,this.y2=this.y1+n,this},e.prototype.toRect=function(){return new o.Rect([this.x1,this.y1],[this.width(),this.height()])},e.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()}
1,e.prototype.align=function(t,e,n){var i=e+1,r=e+2,o=e===lo?"width":"height",s=this[o]();vf(n,[Qr,oo])?(this[i]=t[i],this[r]=this[i]+s):vf(n,[io,$r])?(this[r]=t[r],this[i]=this[r]-s):n===Xr&&(this[i]=t[i]+(t[o]()-s)/2,this[r]=this[i]+s)},e}(mo);function $f(t,e){return t-e}var Xf=function(t){function e(e,n,i,r,o){t.call(this),this.center=e,this.innerRadius=n,this.radius=i,this.startAngle=r,this.angle=o}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},e.prototype.middle=function(){return this.startAngle+this.angle/2},e.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},e.prototype.point=function(t,e){var n=zf(t),i=Math.cos(n),r=Math.sin(n),o=e?this.innerRadius:this.radius,s=Ef(this.center.x-i*o,Yr),a=Ef(this.center.y-r*o,Yr);return new Uf(s,a)},e.prototype.adjacentBox=function(t,e,n){var i=this.clone().expand(t),r=i.middle(),o=i.point(r),s=e/2,a=n/2,l=Math.sin(zf(r)),h=Math.cos(zf(r)),c=o.x-s,p=o.y-a;return Math.abs(l)<.9&&(c+=s*-h/Math.abs(h)),Math.abs(h)<.9&&(p+=a*-l/Math.abs(l)),new qf(c,p,c+e,p+n)},e.prototype.containsPoint=function(t){var e=this.center,n=this.innerRadius,i=this.radius,r=this.startAngle,o=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,l=new Uf(s,a),h=this.point(r),c=new Uf(h.x-e.x,h.y-e.y),p=this.point(o),u=new Uf(p.x-e.x,p.y-e.y),f=Ef(s*s+a*a,Yr);return(c.equals(l)||Pu(c,l))&&!Pu(u,l)&&f>=n*n&&f<=i*i},e.prototype.getBBox=function(){var t,e=new qf(to,to,eo,eo),n=Ef(this.startAngle%360),i=Ef((n+this.angle)%360),r=this.innerRadius,o=[0,90,180,270,n,i].sort($f),s=o.indexOf(n),a=o.indexOf(i);t=n===i?o:s<a?o.slice(s,a+1):[].concat(o.slice(0,a+1),o.slice(s,o.length));for(var l=0;l<t.length;l++){var h=this.point(t[l]);e.wrapPoint(h),e.wrapPoint(h,r)}return r||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(mo),Wf=(function(t){function e(e,n,i,r){t.call(this,e,0,n,i,r)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this}}(Xf),function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createRing=function(t,e){var n=t.startAngle+180,i=t.angle+n;t.angle>0&&n===i&&(i+=.001);var r=new o.Point(t.center.x,t.center.y),s=Math.max(t.radius,0),a=Math.max(t.innerRadius,0),h=new o.Arc(r,{startAngle:n,endAngle:i,radiusX:s,radiusY:s}),c=l.Path.fromArc(h,e).close();if(a){h.radiusX=h.radiusY=a;var p=h.pointAt(i);c.lineTo(p.x,p.y),c.arc(i,n,a,a,!0)}else c.lineTo(r.x,r.y);return c},e}(mo));Wf.current=new Wf;var Yf=Wf,Zf=function(t){function e(e){t.call(this),this.children=[],this.options=Bu({},this.options,this.initUserOptions(e))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initUserOptions=function(t){return t},e.prototype.reflow=function(t){for(var e,n=this.children,i=0;i<n.length;i++){var r=n[i];r.reflow(t),e=e?e.wrap(r.box):r.box.clone()}this.box=e||t},e.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},e.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},e.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},e.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},e.prototype.translateChildren=function(t,e){for(var n=this.children,i=n.length,r=0;r<i;r++)n[r].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=0;e<arguments.length;e++){var n=t[e];this.children.push(n),n.parent=this}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,n=0;n<e;n++)t[n].renderVisual()},e.prototype.createVisual=function(){this.visual=new l.Group({zIndex:this.options.zIndex,visible:Bf(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=l.Animation.create(this.visual,this.options.animation))},e.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):kf(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},e.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},e.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this}
1,e.prototype.stackVisual=function(t){var e,n=t.options.zIndex||0,i=this.visual.children,r=i.length;for(e=0;e<r&&!(Bf(i[e].options.zIndex,0)>n);e++);this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,n=e.length,i=0;i<n;i++){var r=e[i];t(r),r.traverse&&r.traverse(t)}},e.prototype.closest=function(t){for(var e=this,n=!1;e&&!n;)(n=t(e))||(e=e.parent);if(n)return e},e.prototype.renderComplete=function(){},e.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible)},e.prototype.toggleHighlight=function(t){var e=this,n=(this.options||{}).highlight||{},i=n.visual,r=this._highlight;if(!r){var o={fill:{color:ao,opacity:.2},stroke:{color:ao,width:1,opacity:.2}};if(i){if(!(r=this._highlight=i(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return e.createHighlight(o)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else r=this._highlight=this.createHighlight(o);kf(r.options.zIndex)||(r.options.zIndex=Bf(n.zIndex,this.options.zIndex)),this.appendVisual(r)}r.visible(t)},e.prototype.createGradientOverlay=function(t,e,n){var i=new l.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(n),closed:t.options.closed},e));return i.segments.elements(t.segments.elements()),i},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e}(mo);Zf.prototype.options={};var Jf=Zf,Kf=function(t){function e(e){t.call(this,e),this.options.margin=Uu(this.options.margin),this.options.padding=Uu(this.options.padding)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(e){var n,i=this,r=this.options,o=r.width,s=r.height,a=r.shrinkToFit,l=o&&s,h=r.margin,c=r.padding,p=r.border.width,u=function(){i.align(e,lo,r.align),i.align(e,ho,r.vAlign),i.paddingBox=n.clone().unpad(h).unpad(p)},f=e.clone();l&&(f.x2=f.x1+o,f.y2=f.y1+s),a&&f.unpad(h).unpad(p).unpad(c),t.prototype.reflow.call(this,f),n=l?this.box=new qf(0,0,o,s):this.box,a&&l?(u(),f=this.contentBox=this.paddingBox.clone().unpad(c)):(f=this.contentBox=n.clone(),n.pad(c).pad(p).pad(h),u()),this.translateChildren(n.x1-f.x1+h.left+p+c.left,n.y1-f.y1+h.top+p+c.top);for(var d=this.children,g=0;g<d.length;g++){var v=d[g];v.reflow(v.box)}},e.prototype.align=function(t,e,n){this.box.align(t,e,n)},e.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(l.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:Bf(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(Jf);Vf(Kf,{align:Qr,vAlign:oo,margin:{},padding:{},border:{color:qr,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var Qf=Kf,td=function(t){function e(e,n){t.call(this,e),this.pointData=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getElement=function(){var t=this.options,e=this.paddingBox,n=t.type,i=t.rotation,r=e.center(),s=e.width()/2;if(!t.visible||!this.hasBox())return null;var a,h=this.visualStyle();return n===Wr?a=new l.Circle(new o.Circle([Ef(e.x1+s,Yr),Ef(e.y1+e.height()/2,Yr)],s),h):"triangle"===n?a=l.Path.fromPoints([[e.x1+s,e.y1],[e.x1,e.y2],[e.x2,e.y2]],h).close():"cross"===n?((a=new l.MultiPath(h)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1)):a=l.Path.fromRect(e.toRect(),h),i&&a.transform(o.transform().rotate(-i,[r.x,r.y])),a.options.zIndex=t.zIndex,a},e.prototype.createElement=function(){var t=this,e=this.options.visual,n=this.pointData||{};return e?e({value:n.value,dataItem:n.dataItem,sender:this.getSender(),series:n.series,category:n.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement()},e}(Qf);Vf(td,{type:Wr,align:Xr,vAlign:Xr});var ed=td,nd={glass:{type:"linear",rotation:0,stops:[{offset:0,color:ao,opacity:0}
vendor: 8,979 bytes, line 1
1,{offset:.25,color:ao,opacity:.3},{offset:1,color:ao,opacity:0}]},sharpBevel:{type:"radial",stops:[{offset:0,color:ao,opacity:.55},{offset:.65,color:ao,opacity:0},{offset:.95,color:ao,opacity:.25}]},roundedBevel:{type:"radial",stops:[{offset:.33,color:ao,opacity:.06},{offset:.83,color:ao,opacity:.2},{offset:.95,color:ao,opacity:0}]},roundedGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:ao,opacity:0},{offset:.5,color:ao,opacity:.3},{offset:.99,color:ao,opacity:0}]},sharpGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:ao,opacity:.2},{offset:.15,color:ao,opacity:.15},{offset:.17,color:ao,opacity:.35},{offset:.85,color:ao,opacity:.05},{offset:.87,color:ao,opacity:.15},{offset:.99,color:ao,opacity:0}]},bubbleShadow:{type:"radial",center:[.5,.5],radius:.5}};function id(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var n=Math.min(t.x1,e.x1),i=Math.max(t.x1,e.x1),r=Math.min(t.x2,e.x2),o=Math.max(t.x2,e.x2),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),l=Math.min(t.y2,e.y2),h=Math.max(t.y2,e.y2),c=[];return c[0]=new qf(i,s,r,a),c[1]=new qf(n,a,i,l),c[2]=new qf(r,a,o,l),c[3]=new qf(i,l,r,h),t.x1===n&&t.y1===s||e.x1===n&&e.y1===s?(c[4]=new qf(n,s,i,a),c[5]=new qf(r,l,o,h)):(c[4]=new qf(r,s,o,a),c[5]=new qf(n,l,i,h)),uf(c,function(t){return t.height()>0&&t.width()>0})[0]}var rd=function(t){function e(e){t.call(this,e);var n=this.options;n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),this.gradients={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(){var t=this.options,e=this.children,n=new qf(0,0,t.width,t.height);this.box=n.unpad(t.margin);for(var i=0;i<e.length;i++)e[i].reflow(n),n=id(n,e[i].box)||new qf},e.prototype.createVisual=function(){this.visual=new l.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},n=this.box.clone().pad(t.margin).unpad(e.width),i=l.Path.fromRect(n.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(i)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,n=this.gradients,i=If(t),r=nd[t.gradient];if(n[i])e=n[i];else{var o=Object.assign({},r,t);"linear"===r.type?e=new l.LinearGradient(o):(t.innerRadius&&(o.stops=function(t){for(var e=o.stops,n=o.innerRadius/o.radius*100,i=e.length,r=[],s=0;s<i;s++){var a=Object.assign({},e[s]);a.offset=(a.offset*(100-n)+n)/100,r.push(a)}return r}()),(e=new l.RadialGradient(o)).supportVML=!1!==r.supportVML),n[i]=e}return e},e.prototype.cleanGradients=function(){var t=this.gradients;for(var e in t)t[e]._observers=[]},e.prototype.size=function(){var t=this.options;return new qf(0,0,t.width,t.height)},e}(Jf);Vf(rd,{width:600,height:400,background:ao,border:{color:qr,width:0},margin:Uu(5),zIndex:-2});var od=rd,sd=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=lo,this.elementAxis=ho,this.groupSizeField="width",this.elementSizeField="height",this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=ho,this.elementAxis=lo,this.groupSizeField="height",this.elementSizeField="width",this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this.box,e=this.elementAxis,n=this.groupAxis,i=this.elementSizeField,r=this.groupSizeField,o=this.groupOptions(),s=o.groups,a=o.groupsSize,l=o.maxGroupElementsSize,h=s.length,c=t[n+1]+this.alignStart(a,t[r]());if(h){for(var p=c,u=0;u<h;u++){for(var f=s[u],d=f.groupElements,g=t[e+1],v=d.length,y=0;y<v;y++){var m=d[y],x=this.elementSize(m),b=p+this.alignStart(x[r],f.groupSize),_=new qf;_[n+1]=b,_[n+2]=b+x[r],_[e+1]=g,_[e+2]=g+x[i],m.reflow(_),g+=x[i]+this.elementSpacing}p+=f.groupSize+this.groupSpacing}t[n+1]=c,t[n+2]=c+a,t[e+2]=t[e+1]+l}},e.prototype.alignStart=function(t,e){var n=0,i=this.options.align;return i===io||i===$r?n=e-t:i===Xr&&(n=(e-t)/2),n},e.prototype.groupOptions=function(){for(var t=this.box,e=this.children,n=this.elementSizeField,i=this.groupSizeField,r=this.elementSpacing,o=this.groupSpacing,s=Ef(t[n]()),a=e.length,l=[],h=0,c=0,p=0,u=0,f=[],d=0;d<a;d++){var g=e[d];g.box||g.reflow(t);var v=this.elementSize(g);this.options.wrap&&Ef(c+r+v[n])>s&&(l.push({groupElements:f,groupSize:h,groupElementsSize:c}),u=Math.max(u,c),p+=o+h,h=0,c=0,f=[]),h=Math.max(h,v[i]),c>0&&(c+=r),c+=v[n],f.push(g)}return l.push({groupElements:f,groupSize:h,groupElementsSize:c}),u=Math.max(u,c),{groups:l,groupsSize:p+=h,maxGroupElementsSize:u}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(Jf);Vf(sd,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var ad=sd,ld=l.Text,hd=function(t){function e(e,n){t.call(this,n),this.content=e,this.reflow(new qf)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){var e=this.options,n=e.size=l.util.measureText(this.content,{font:e.font});this.baseline=n.baseline,this.box=new qf(t.x1,t.y1,t.x1+n.width,t.y1+n.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,n=t.color,i=t.opacity,r=t.cursor;this.visual=new ld(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:n,opacity:i},cursor:r})},e}(Jf);Vf(hd,{font:"12px sans-serif",color:qr});var cd=hd;function pd(t){var e=t.origin,n=t.bottomRight();return new qf(e.x,e.y,n.x,n.y)}var ud=/\n/m,fd=function(t){function e(e,n,i){t.call(this,n),this.content=e,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new qf)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(ud),n=new ad({vertical:!0,align:t.align,wrap:!1}),i=Bu({},t,{opacity:1,animation:null});this.container=n,this.append(n);for(var r=0;r<e.length;r++){var o=new cd(e[r].trim(),i);n.append(o)}},e.prototype.reflow=function(e){var n=this.options,i=n.visual;if(this.container.options.align=n.align,i&&!this._boxReflow){var r=e;r.hasSize()||(this._boxReflow=!0,this.reflow(r),this._boxReflow=!1,r=this.box);var s=this.visual=i(this.visualContext(r));s&&(r=pd(s.clippedBBox()||new o.Rect),s.options.zIndex=n.zIndex),this.box=this.contentBox=this.paddingBox=r}else if(t.prototype.reflow.call(this,e),n.rotation){var a=Uu(n.margin),l=this.box.unpad(a);this.targetBox=e,this.normalBox=l.clone(),(l=this.rotate()).translate(a.left-a.right,a.top-a.bottom),this.rotatedBox=l.clone(),l.pad(a)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new l.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=l.Path.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(e)}},e.prototype.renderVisual=function(){if(this.options.visible)if(this.options.visual){var e=this.visual;e&&!kf(e.options.noclip)&&(e.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else t.prototype.renderVisual.call(this)},e.prototype.visualContext=function(t){var e=this,n={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,createVisual:function(){return e._boxReflow=!0,e.reflow(t),e._boxReflow=!1,e.getDefaultVisual()}};return this.data&&Object.assign(n,this.data),n},e.prototype.getDefaultVisual=function(){this.createVisual(),this.renderChildren();var t=this.visual;return delete this.visual,t},e.prototype.rotate=function(){var t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,lo,t.align),this.align(this.targetBox,ho,t.vAlign),this.box},e.prototype.rotationTransform=function(){var t=this.options.rotation;if(!t)return null;var e=this.normalBox.center(),n=e.x,i=e.y,r=this.rotatedBox.center();return o.transform().translate(r.x-n,r.y-i).rotate(t,[n,i])},e}(Qf),dd=function(t){function e(e){t.call(this,e),this.append(new fd(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(e){t.prototype.reflow.call(this,e),this.box.snapTo(e,lo)},e.buildTitle=function(t,n,i){var r,o=t;return"string"==typeof t&&(o={text:t}),(o=Object.assign({visible:!0},i,o))&&o.visible&&o.text&&(r=new e(o),n.append(r)),r},e}(Jf);Vf(dd,{color:qr,position:oo,align:Xr,margin:Uu(5),padding:Uu(5)});var gd=dd,vd=function(t){function e(e,n,i,r,o){t.call(this,n,o),this.text=n,this.value=e,this.index=i,this.dataItem=r,this.reflow(new qf)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.visualContext=function(e){var n=t.prototype.visualContext.call(this,e);
1return n.value=this.value,n.dataItem=this.dataItem,n.format=this.options.format,n.culture=this.options.culture,n},e.prototype.click=function(t,e){t.trigger("axisLabelClick",{element:Pf(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==Xr){var e=this.normalBox.toRect(),n=this.rotationTransform();this.box=pd(e.bbox(n.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,n=e.rotation;if(!n)return null;if(e.alignRotation===Xr)return t.prototype.rotationTransform.call(this);var i=o.transform().rotate(n).matrix(),r=this.normalBox.toRect(),s=this.targetBox.toRect(),a=e.rotationOrigin||oo,l=a===oo||a===$r?lo:ho,h=a===oo||a===$r?ho:lo,c=a===oo||a===Qr?s.origin:s.bottomRight(),p=r.topLeft().transformCopy(i),u=r.topRight().transformCopy(i),f=r.bottomRight().transformCopy(i),d=r.bottomLeft().transformCopy(i),g=o.Rect.fromPoints(p,u,f,d),v={};v[h]=s.origin[h]-g.origin[h];var y,m,x=Math.abs(p[h]+v[h]-c[h]),b=Math.abs(u[h]+v[h]-c[h]);Ef(x,Jr)===Ef(b,Jr)?(y=p,m=u):b<x?(y=u,m=f):(y=p,m=d);var _=y[l]+(m[l]-y[l])/2;return v[l]=s.center()[l]-_,o.transform().translate(v.x,v.y).rotate(n)},e}(fd);Vf(vd,{_autoReflow:!1});var yd=vd,md=function(t){function e(e,n,i){t.call(this,n),this.fields=e,this.chartService=i,this.render()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.hide=function(){this.options.visible=!1},e.prototype.show=function(){this.options.visible=!0},e.prototype.render=function(){var t=this,e=this.options;if(e.visible){var n,i,r=e.label,o=e.icon,s=new qf,a=function(){return t},l=o.size,h=this.fields.text;if(kf(r)&&r.visible){var c=lf(r);c?h=c(this.fields):r.format&&(h=this.chartService.format.auto(r.format,h)),r.color||(r.color="inside"===r.position?"#fff":o.background),this.label=new fd(h,Bu({},r)),this.label.aliasFor=a,"inside"!==r.position||kf(l)||(o.type===Wr?l=Math.max(this.label.box.width(),this.label.box.height()):(n=this.label.box.width(),i=this.label.box.height()),s.wrap(this.label.box))}o.width=n||l||7,o.height=i||l||7;var p=new ed(Bu({},o));p.aliasFor=a,this.marker=p,this.append(p),this.label&&this.append(this.label),p.reflow(new qf),this.wrapperBox=s.wrap(p.box)}},e.prototype.reflow=function(t){var e,n,i,r=this.options,o=this.label,s=this.marker,a=this.wrapperBox,l=t.center(),h=r.line.length,c=r.position;r.visible&&(vf(c,[Qr,io])?c===Qr?(i=a.alignTo(t,c).translate(-h,t.center().y-a.center().y),r.line.visible&&(this.linePoints=[e=[t.x1,l.y],[i.x2,l.y]],n=i.clone().wrapPoint(e))):(i=a.alignTo(t,c).translate(h,t.center().y-a.center().y),r.line.visible&&(this.linePoints=[e=[t.x2,l.y],[i.x1,l.y]],n=i.clone().wrapPoint(e))):c===$r?(i=a.alignTo(t,c).translate(t.center().x-a.center().x,h),r.line.visible&&(this.linePoints=[e=[l.x,t.y2],[l.x,i.y1]],n=i.clone().wrapPoint(e))):(i=a.alignTo(t,c).translate(t.center().x-a.center().x,-h),r.line.visible&&(this.linePoints=[e=[l.x,t.y1],[l.x,i.y2]],n=i.clone().wrapPoint(e))),s&&s.reflow(i),o&&(o.reflow(i),s&&("outside"===r.label.position&&o.box.alignTo(s.box,c),o.reflow(o.box))),this.contentBox=i,this.targetBox=t,this.box=n||i)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()},e.prototype.renderVisual=function(){var e=this,n=this.options,i=n.visual;n.visible&&i?(this.visual=i(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:n.background,border:n.background,icon:n.icon,label:n.label,line:n.line,position:n.position,visible:n.visible},createVisual:function(){e.createVisual(),e.renderChildren();var t=e.visual;return delete e.visual,t}})),this.addVisual()):t.prototype.renderVisual.call(this)},e.prototype.createLine=function(){var t=this.options.line;if(this.linePoints){var e=l.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});Ou(e),this.visual.append(e)}},e.prototype.click=function(t,e){var n=this.eventArgs(e);t.trigger("noteClick",n)||e.preventDefault()},e.prototype.over=function(t,e){var n=this.eventArgs(e);t.trigger("noteHover",n)||e.preventDefault()},e.prototype.out=function(t,e){var n=this.eventArgs(e);t.trigger("noteLeave",n)},e.prototype.eventArgs=function(t){var e=this.options;return Object.assign(this.fields,{element:Pf(t),text:kf(e.label)?e.label.text:"",visual:this.visual})},e}(Qf);Vf(md,{icon:{visible:!0,type:Wr},label:{position:"inside",visible:!0,align:Xr,vAlign:Xr},line:{visible:!0},visible:!0,position:oo,zIndex:2});var xd=md;
1function bd(t,e){var n=t.tickX,i=t.tickY,r=t.position,o=new l.Path({stroke:{width:e.width,color:e.color}});return t.vertical?o.moveTo(n,r).lineTo(n+e.size,r):o.moveTo(r,i).lineTo(r,i+e.size),Ou(o),o}function _d(t,e){var n=t.lineStart,i=t.lineEnd,r=t.position,o=new l.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?o.moveTo(n,r).lineTo(i,r):o.moveTo(r,n).lineTo(r,i),Ou(o),o}var wd=function(t){function e(e,n){void 0===n&&(n=new ef),t.call(this,e),this.chartService=n,this.options.visible||(this.options=Bu({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=Bu({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.minorTickType!==no},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=Bu({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.majorTickType!==no},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initFields=function(){},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.labelsCount()}},e.prototype.createLabels=function(){var t=this.options,e=Bu({},t.labels,{align:t.vertical?io:Xr,zIndex:t.zIndex}),n=Math.max(1,e.step);if(this.clearLabels(),e.visible){var i=this.labelsRange(),r=e.rotation;Du(r)&&(e.alignRotation=r.align,e.rotation=r.angle),"auto"===e.rotation&&(e.rotation=0,t.autoRotateLabels=!0);for(var o=i.min;o<i.max;o+=n){var s=this.createAxisLabel(o,e);s&&(this.append(s),this.labels.push(s))}}},e.prototype.clearLabels=function(){this.children=uf(this.children,function(t){return!(t instanceof yd)}),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=uf(this.children,function(e){return e!==t.title}),this.title=void 0)},e.prototype.clear=function(){this.clearLabels(),this.clearTitle()},e.prototype.lineBox=function(){var t=this.options,e=this.box,n=t.labels.mirror,i=n?e.x1:e.x2,r=n?e.y2:e.y1,o=t.line.width||0;return t.vertical?new qf(i,e.y1,i,e.y2-o):new qf(e.x1,r,e.x2-o,r)},e.prototype.createTitle=function(){var t=this.options,e=Bu({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var n=new fd(e.text,e);this.append(n),this.title=n}},e.prototype.createNotes=function(){var t=this.options,e=t.notes,n=e.data||[];this.notes=[];for(var i=0;i<n.length;i++){var r=Bu({},e,n[i]);r.value=this.parseNoteValue(r.value);var o=new xd({value:r.value,text:r.label.text,dataItem:r},r,this.chartService);o.options.visible&&(kf(o.options.position)?t.vertical&&!vf(o.options.position,[Qr,io])?o.options.position=t.reverse?Qr:io:t.vertical||vf(o.options.position,[oo,$r])||(o.options.position=t.reverse?$r:oo):o.options.position=t.vertical?t.reverse?Qr:io:t.reverse?$r:oo,this.append(o),this.notes.push(o))}},e.prototype.parseNoteValue=function(t){return t},e.prototype.renderVisual=function(){t.prototype.renderVisual.call(this),this.createPlotBands()},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.createBackground(),this.createLine()},e.prototype.gridLinesVisual=function(){var t=this._gridLines;return t||(t=this._gridLines=new l.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,n=this.lineBox(),i=e.labels.mirror,r=e.majorTicks.visible?e.majorUnit:0,o={vertical:e.vertical};function s(e,r,s){var a=e.length,l=Math.max(1,r.step);if(r.visible)for(var h=r.skip;h<a;h+=l)kf(s)&&h%s==0||(o.tickX=i?n.x2:n.x2-r.size,o.tickY=i?n.y1-r.size:n.y1,o.position=e[h],t.append(bd(o,r)))}s(this.getMajorTickPositions(),e.majorTicks),s(this.getMinorTickPositions(),e.minorTicks,r/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,n=this.lineBox();if(e.width>0&&e.visible){var i=new l.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});i.moveTo(n.x1,n.y1).lineTo(n.x2,n.y2),t._alignLines&&Ou(i);var r=this._lineGroup=new l.Group;r.append(i),this.visual.append(r),this.createTicks(r)}},e.prototype.getActualTickSize=function(){var t=this.options,e=0;return t.majorTicks.visible&&t.minorTicks.visible?e=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?e=t.majorTicks.size:t.minorTicks.visible&&(e=t.minorTicks.size),e}
1,e.prototype.createBackground=function(){var t=this.options.background;t&&(this._backgroundPath=l.Path.fromRect(this.box.toRect(),{fill:{color:t},stroke:null}),this.visual.append(this._backgroundPath))},e.prototype.createPlotBands=function(){var t=this,e=this.options,n=e.plotBands||[],i=e.vertical,r=this.plotArea;if(0!==n.length){for(var s=this._plotbandGroup=new l.Group({zIndex:-1}),a=uf(this.pane.axes,function(e){return e.options.vertical!==t.options.vertical})[0],h=0;h<n.length;h++){var c=n[h],p=void 0,u=void 0;if(i?(p=(a||r.axisX).lineBox(),u=t.getSlot(c.from,c.to,!0)):(p=t.getSlot(c.from,c.to,!0),u=(a||r.axisY).lineBox()),0!==p.width()&&0!==u.height()){var f=new o.Rect([p.x1,u.y1],[p.width(),u.height()]),d=l.Path.fromRect(f,{fill:{color:c.color,opacity:c.opacity},stroke:null});s.append(d)}}this.appendVisual(s)}},e.prototype.createGridLines=function(t){var e=this.options,n=e.minorGridLines,i=e.majorGridLines,r=e.minorUnit,o=e.vertical,s=t.options.line.visible,a=i.visible?e.majorUnit:0,l=t.lineBox(),h=l[o?"y1":"x1"],c={lineStart:l[o?"x1":"y1"],lineEnd:l[o?"x2":"y2"],vertical:o},p=[],u=this.gridLinesVisual();function f(t,e,n){var i=t.length,r=Math.max(1,e.step);if(e.visible)for(var o=e.skip;o<i;o+=r){var a=Ef(t[o]);vf(a,p)||o%n==0||s&&h===a||(c.position=a,u.append(_d(c,e)),p.push(a))}}return f(this.getMajorTickPositions(),i),f(this.getMinorTickPositions(),n,a/r),u.children},e.prototype.reflow=function(t){for(var e=this.options,n=this.labels,i=this.title,r=e.vertical,o=n.length,s=r?"width":"height",a=i?i.box[s]():0,l=this.getActualTickSize()+e.margin+a,h=((this.getRoot()||{}).box||t)[s](),c=0,p=0;p<o;p++){var u=n[p].box[s]();u+l<=h&&(c=Math.max(c,u))}this.box=r?new qf(t.x1,t.y1,t.x1+c+l,t.y2):new qf(t.x1,t.y1,t.x2,t.y1+c+l),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,n=this.labelsBetweenTicks(),i=t.vertical,r=this.lineBox(),o=t.labels.mirror,s=this.getLabelsTickPositions(),a=this.getActualTickSize()+t.margin,l=0;l<e.length;l++){var h=e[l],c=this.labelTickIndex(h),p=i?h.box.height():h.box.width(),u=s[c]-p/2,f=void 0,d=void 0,g=void 0;if(i){n&&(u=(d=s[c])+((g=s[c+1])-d)/2-p/2);var v=r.x2;o?(v+=a,h.options.rotationOrigin=Qr):(v-=a+h.box.width(),h.options.rotationOrigin=io),f=h.box.move(v,u)}else{n?(d=s[c],g=s[c+1]):(d=u,g=u+p);var y=r.y1;o?(y-=a+h.box.height(),h.options.rotationOrigin=$r):(y+=a,h.options.rotationOrigin=oo),f=new qf(d,y,g,y+h.box.height())}h.reflow(f)}},e.prototype.autoRotateLabels=function(){if(this.options.autoRotateLabels&&!this.options.vertical){for(var t,e=this.getMajorTickPositions(),n=this.labels,i=0;i<n.length;i++){var r=Math.abs(e[i+1]-e[i]),o=n[i].box;if(o.width()>r){if(o.height()>r){t=-90;break}t=-45}}if(t){for(var s=0;s<n.length;s++)n[s].options.rotation=t,n[s].reflow(new qf);return!0}}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,n=t.labels.mirror;e&&(t.vertical?(e.options.align=n?io:Qr,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=n?oo:$r),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=0;t<this.notes.length;t++){var e=this.notes[t],n=e.options.value,i=void 0;kf(n)?(this.shouldRenderNote(n)?e.show():e.hide(),i=this.noteSlot(n)):e.hide(),e.reflow(i||this.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),n=this.options.vertical,i=n?ho:lo;this.box.snapTo(e,i),n?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[i+1]-=this.lineBox()[i+1]-e[i+1],this.box[i+2]-=this.lineBox()[i+2]-e[i+2]},e.prototype.axisLabelText=function(t,e,n){var i=lf(n),r=t;return i?r=i({value:t,dataItem:e,format:n.format,culture:n.culture}):n.format&&(r=this.chartService.format.localeAuto(n.format,[t],n.culture)),r},e.prototype.slot=function(t,e,n){var i=this.getSlot(t,e,n);if(i)return i.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var n=this.options.vertical?ho:lo;if(this.chartService.isPannable(n)){var i=this.maxLabelOffset();t[n+1]-=i.start,t[n+2]+=i.end}else{e[0].options.visible&&t.wrap(e[0].box);var r=e[e.length-1];r.options.visible&&t.wrap(r.box)}}return t},e.prototype.maxLabelOffset=function(){for(var t=this.options,e=t.vertical,n=t.reverse,i=this.labelsBetweenTicks(),r=this.getLabelsTickPositions(),o=e?ho:lo,s=this.labels,a=n?1:0,l=n?0:1,h=0,c=0,p=0;p<s.length;p++){var u=s[p],f=this.labelTickIndex(u),d=void 0,g=void 0;i?(d=r[f+a],g=r[f+l]):d=g=r[f],h=Math.max(h,d-u.box[o+1]),c=Math.max(c,u.box[o+2]-g)}return{start:h,end:c}},e.prototype.limitRange=function(t,e,n,i,r){var o=this.options;if(t<n&&r<0&&(!kf(o.min)||o.min<=n)||i<e&&r>0&&(!kf(o.max)||i<=o.max))return null;if(e<n&&r>0||i<t&&r<0)return{min:t,max:e};var s=e-t,a=t,l=e;return t<n&&r<0?(a=Rf(t,n,i),l=Rf(t+s,n+s,i)):e>i&&r>0&&(l=Rf(e,n,i),a=Rf(e-s,n,i-s)),{min:a,max:l}},e.prototype.valueRange=function(){return{min:this.seriesMin,max:this.seriesMax}},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(Jf);Vf(wd,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:qr,visible:!0},title:{visible:!0,position:Xr},majorTicks:{align:"outside",size:4,skip:0,step:1}
1,minorTicks:{align:"outside",size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:"outside",minorTickType:no,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:qr,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var Cd=wd,Sd="milliseconds",kd="seconds",Md="minutes",Ad="hours",Od="days",Pd="weeks",Td="months",jd="years",Rd=1e3,Id=60*Rd,zd=60*Id,Ed=24*zd,Ld=7*Ed,Bd=31*Ed,Dd=365*Ed,Fd={years:Dd,months:Bd,weeks:Ld,days:Ed,hours:zd,minutes:Id,seconds:Rd,milliseconds:1};function Vd(t,e){return t.getTime()-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Id}function Nd(t,e){return new Date(t.getTime()+e)}function Hd(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function Ud(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Gd(t,e,n,i){var r=t;if(t){var o=Hd(t),s=o.getHours();n===jd?Ud(r=new Date(o.getFullYear()+e,0,1),0):n===Td?Ud(r=new Date(o.getFullYear(),o.getMonth()+e,1),s):n===Pd?Ud(r=Gd(function(t,e){void 0===e&&(e=0);var n=0,i=t.getDay();if(!isNaN(i))for(;i!==e;)0===i?i=6:i--,n++;return Nd(t,-n*Ed)}(o,i),7*e,Od),s):n===Od?Ud(r=new Date(o.getFullYear(),o.getMonth(),o.getDate()+e),s):n===Ad?r=function(t,e){var n=new Date(t);return n.setMinutes(0,0,0),Nd(n,(t.getTimezoneOffset()-n.getTimezoneOffset())*Id+e*zd)}(o,e):n===Md?(r=Nd(o,e*Id)).getSeconds()>0&&r.setSeconds(0):n===kd?r=Nd(o,e*Rd):n===Sd&&(r=Nd(o,e)),n!==Sd&&r.getMilliseconds()>0&&r.setMilliseconds(0)}return r}function qd(t,e,n){return Gd(Hd(t),0,e,n)}function $d(t,e,n){var i=Hd(t);return i&&qd(i,e,n).getTime()===i.getTime()?i:Gd(i,1,e,n)}function Xd(t,e){return t&&e?t.getTime()-e.getTime():-1}function Wd(t,e){return t.getTime()-e}function Yd(t){if(co(t)){for(var e=[],n=0;n<t.length;n++)e.push(Yd(t[n]));return e}if(t)return Hd(t).getTime()}function Zd(t,e){return t&&e?Yd(t)===Yd(e):t===e}function Jd(t,e,n){return Vd(t,e)/Fd[n]}function Kd(t,e,n,i){var r=Hd(t),o=Hd(e);return(n===Td?r.getMonth()-o.getMonth()+12*(r.getFullYear()-o.getFullYear())+Jd(r,new Date(r.getFullYear(),r.getMonth()),Od)/new Date(r.getFullYear(),r.getMonth()+1,0).getDate():n===jd?r.getFullYear()-o.getFullYear()+Kd(r,new Date(r.getFullYear(),0),Td,1)/12:n===Od||n===Pd?Jd(r,o,n):Wd(r,e)/Fd[n])/i}function Qd(t,e,n){return n===jd?e.getFullYear()-t.getFullYear():n===Td?12*Qd(t,e,jd)+e.getMonth()-t.getMonth():n===Od?Math.floor(Wd(e,t)/Ed):Math.floor(Wd(e,t)/Fd[n])}function tg(t,e){return ju(e)&&t.parseDate(e)||Hd(e)}function eg(t,e){if(co(e)){for(var n=[],i=0;i<e.length;i++)n.push(tg(t,e[i]));return n}return tg(t,e)}var ng=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initFields=function(){this._ticks={}},e.prototype.categoriesHash=function(){return""},e.prototype.clone=function(){var t=new e(Object.assign({},this.options),this.chartService);return t.createLabels(),t},e.prototype.initUserOptions=function(t){var e=t.categories||[],n=kf(t.min),i=kf(t.max);if(t.srcCategories=t.categories=e,(n||i)&&e.length){var r,o=n?Math.floor(t.min):0;r=i?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(o,r)}return t},e.prototype.rangeIndices=function(){var t=this.options,e=t.categories.length||1;return{min:Tu(t.min)?t.min%1:0,max:Tu(t.max)&&t.max%1!=0&&t.max<this.totalRange().max?e-(1-t.max%1):e-(t.justified?1:0)}},e.prototype.totalRangeIndices=function(t){var e,n=this.options,i=Tu(n.min)?n.min:0;if(e=Tu(n.max)?n.max:Tu(n.min)?i+n.categories.length:this.totalRange().max||1,t){var r=this.totalRange();i=Rf(i,0,r.max),e=Rf(e,0,r.max)}return{min:i,max:e}},e.prototype.range=function(){var t=this.options;return{min:Tu(t.min)?t.min:0,max:Tu(t.max)?t.max:this.totalRange().max}},e.prototype.roundedRange=function(){return this.range()},e.prototype.totalRange=function(){var t=this.options;return{min:0,max:Math.max(this._seriesMax||0,t.srcCategories.length)-(t.justified?1:0)}},e.prototype.scaleOptions=function(){var t=this.rangeIndices(),e=t.min,n=t.max,i=this.lineBox();return{scale:(this.options.vertical?i.height():i.width())/(n-e||1)*(this.options.reverse?-1:1),box:i,min:e,max:n}},e.prototype.arrangeLabels=function(){t.prototype.arrangeLabels.call(this),this.hideOutOfRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){var t=this.box,e=this.labels;if(e.length){var n=this.options.vertical?ho:lo,i=t[n+1],r=t[n+2],o=e[0],s=jf(e);(o.box[n+1]>r||o.box[n+2]<i)&&(o.options.visible=!1),(s.box[n+1]>r||s.box[n+2]<i)&&(s.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),n=e.min,i=Math.ceil(e.max),r=Math.floor(n),o=[];r<=i;)o.push(r),r+=t;return o},e.prototype.getTickPositions=function(t){for(var e=this.options,n=e.vertical,i=e.reverse,r=this.scaleOptions(),o=r.scale,s=r.min,a=r.box[(n?ho:lo)+(i?2:1)],l=this.tickIndices(t),h=[],c=0;c<l.length;c++)h.push(a+Ef(o*(l[c]-s),Yr));return h},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,n=this.rangeIndices(),i=this.lineBox(),r=i.getHash()+n.min+","+n.max+t.reverse+t.justified;
1if(e._hash!==r){var o=t.minorTicks.visible||t.minorGridLines.visible;e._hash=r,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,i),e.minorTicks=o?this.filterOutOfRangePositions(this.getTickPositions(.5),i):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var n=this.options.vertical?ho:lo,i=function(t){return e[n+1]<=t&&t<=e[n+2]},r=t.length-1,o=0;!i(t[o])&&o<=r;)o++;for(var s=r;!i(t[s])&&s>=0;)s--;return t.slice(o,s+1)},e.prototype.getSlot=function(t,e,n){var i=this.options,r=i.reverse,o=i.justified,s=i.vertical,a=this.scaleOptions(),l=a.scale,h=a.box,c=a.min,p=s?ho:lo,u=h[p+(r?2:1)],f=h.clone(),d=!kf(e),g=Bf(t,0),v=Bf(e,g);v=Math.max(v-1,g);var y=u+(g-c)*l,m=u+((v=Math.max(g,v))+1-c)*l;return d&&o&&(m=y),n&&(y=Rf(y,h[p+1],h[p+2]),m=Rf(m,h[p+1],h[p+2])),f[p+1]=r?m:y,f[p+2]=r?y:m,f},e.prototype.limitSlot=function(t){var e=this.options.vertical?ho:lo,n=this.lineBox(),i=t.clone();return i[e+1]=Rf(t[e+1],n[e+1],n[e+2]),i[e+2]=Rf(t[e+2],n[e+1],n[e+2]),i},e.prototype.slot=function(e,n,i){var r=Math.floor(this.options.min||0),o=e,s=n;return"string"==typeof o?o=this.categoryIndex(o):Tu(o)&&(o-=r),"string"==typeof s?s=this.categoryIndex(s):Tu(s)&&(s-=r),t.prototype.slot.call(this,o,s,i)},e.prototype.pointCategoryIndex=function(t){var e=this.options,n=e.reverse,i=e.justified,r=e.vertical?ho:lo,o=this.scaleOptions(),s=o.scale,a=o.box,l=n?o.max:o.min,h=a[r+1],c=t[r];if(c<h||c>a[r+2])return null;var p=l+(c-h)/s,u=p%1;return i?p=Math.round(p):0===u&&p>0&&p--,Math.floor(p)},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.options.categories[e]},e.prototype.categoryIndex=function(t){return this.totalIndex(t)-Math.floor(this.options.min||0)},e.prototype.categoryAt=function(t,e){var n=this.options;return(e?n.srcCategories:n.categories)[t]},e.prototype.categoriesCount=function(){return(this.options.categories||[]).length},e.prototype.translateRange=function(t){var e=this.options,n=this.lineBox(),i=e.vertical?n.height():n.width(),r=e.categories.length,o=Ef(t/(i/r),Jr);return{min:o,max:r+o}},e.prototype.zoomRange=function(t){var e=this.totalRangeIndices(),n=this.totalRange(),i=n.min,r=n.max,o=Rf(e.min+t,i,r),s=Rf(e.max-t,i,r);if(s-o>0)return{min:o,max:s}},e.prototype.scaleRange=function(t){var e=this.options.categories.length,n=t*e;return{min:-n,max:e+n}},e.prototype.labelsCount=function(){var t=this.labelsRange();return t.max-t.min},e.prototype.labelsRange=function(){var t=this.options,e=t.justified,n=t.labels,i=this.totalRangeIndices(!0),r=i.min,o=i.max,s=Math.floor(r);return e?(r=Math.ceil(r),o=Math.floor(o)):(r=Math.floor(r),o=Math.ceil(o)),{min:(r>n.skip?n.skip+n.step*Math.ceil((r-n.skip)/n.step):n.skip)-s,max:(t.categories.length?o+(e?1:0):0)-s}},e.prototype.createAxisLabel=function(t,e){var n=this.options,i=n.dataItems?n.dataItems[t]:null,r=Bf(n.categories[t],""),o=this.axisLabelText(r,i,e);return new yd(r,o,t,i,e)},e.prototype.shouldRenderNote=function(t){var e=this.totalRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)},e.prototype.noteSlot=function(t){var e=t-Math.floor(this.options.min||0);return this.getSlot(e)},e.prototype.arrangeNotes=function(){t.prototype.arrangeNotes.call(this),this.hideOutOfRangeNotes()},e.prototype.hideOutOfRangeNotes=function(){var t=this.notes,e=this.box;if(t&&t.length)for(var n=this.options.vertical?ho:lo,i=e[n+1],r=e[n+2],o=0;o<t.length;o++){var s=t[o];s.box&&(r<s.box[n+1]||s.box[n+2]<i)&&s.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),n=this.scaleOptions(),i=Ef(t/n.scale,Jr),r=this.totalRange();return this.limitRange(e.min+i,e.max+i,0,r.max,i)},e.prototype.pointsRange=function(t,e){var n=this.options,i=n.reverse,r=n.vertical?ho:lo,o=this.totalRangeIndices(!0),s=this.scaleOptions(),a=s.scale,l=s.box[r+(i?2:1)],h=o.min+(t[r]-l)/a,c=o.min+(e[r]-l)/a,p=Math.min(h,c),u=Math.max(h,c);if(u-p>=.01)return{min:p,max:u}},e.prototype.valueRange=function(){return this.range()},e.prototype.totalIndex=function(t){var e=this.options;return this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var n=e.length,i=0;i<n;i++)if(Zd(e[i],t))return i;return-1}return e.indexOf(t)}(t,e.srcCategories)},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return Tu(t.min)&&(e=Math.floor(t.min)),{min:e,max:Tu(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1}},e.prototype.mapCategories=function(){if(!this._categoriesMap)for(var t=this._categoriesMap=new gf,e=this.options.srcCategories,n=0;n<e.length;
vendor: 4,666 bytes, line 1
1n++)t.set(e[n],n)},e.prototype.totalCount=function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)},e}(Cd);Vf(ng,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:qr},labels:{zIndex:1},justified:!1,_deferLabels:!0});var ig=ng,rg=3e5,og={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},sg=[Sd,kd,Md,Ad,Od,Pd,Td,jd],ag="fit";function lg(t){var e=t._range;return e||((e=t._range=Nf(t)).min=Hd(e.min),e.max=Hd(e.max)),e}var hg=function(t){this.options=t};hg.prototype.displayIndices=function(){return{min:0,max:1}},hg.prototype.displayRange=function(){return{}},hg.prototype.total=function(){return{}},hg.prototype.valueRange=function(){return{}},hg.prototype.valueIndex=function(){return-1},hg.prototype.values=function(){return[]},hg.prototype.totalIndex=function(){return-1},hg.prototype.valuesCount=function(){return 0},hg.prototype.totalCount=function(){return 0},hg.prototype.dateAt=function(){return null};var cg=function(t,e,n){this.options=n,n.baseUnitStep=n.baseUnitStep||1;var i=n.roundToBaseUnit,r=n.justified;this.start=Gd(t,0,n.baseUnit,n.weekStartDay);var o=this.roundToTotalStep(e),s=!r&&Zd(e,o)&&!n.justifyEnd;this.end=this.roundToTotalStep(e,!r,s?1:0);var a=n.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=i?this.valueStart:a;var l=n.max;l?(this.valueEnd=this.roundToTotalStep(l,!1,!r&&Zd(l,this.roundToTotalStep(l))?-1:0),this.displayEnd=i?this.roundToTotalStep(l,!r):n.max):(this.valueEnd=o,this.displayEnd=i||s?this.end:e),this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function pg(t,e,n){for(var i,r,o,s=lg(t.categories),a=(t.max||s.max)-(t.min||s.min),l=t.autoBaseUnitSteps,h=t.maxDateGroups,c=t.baseUnit===ag,p=e?sg.indexOf(e):0,u=c?sg[p++]:t.baseUnit,f=a/Fd[u],d=f;!r||f>=h;){i=i||l[u].slice(0);do{o=i.shift()}while(o&&e===u&&o<n);if(o)f=d/(r=o);else{if(u===jf(sg)){r=Math.ceil(d/h);break}if(!c){f>h&&(r=Math.ceil(d/h));break}u=sg[p++]||jf(sg),d=a/Fd[u],i=null}}t.baseUnitStep=r,t.baseUnit=u}cg.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},cg.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,n=t.baseUnitStep,i=Kd(this.displayStart,this.valueStart,e,n),r=Kd(this.displayEnd,this.valueStart,e,n);this._indices={min:i,max:r}}return this._indices},cg.prototype.total=function(){return{min:this.start,max:this.end}},cg.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},cg.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},cg.prototype.valueIndex=function(t){var e=this.options;return Math.floor(Kd(t,this.valueStart,e.baseUnit,e.baseUnitStep))},cg.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Kd(t,this.start,e.baseUnit,e.baseUnitStep))},cg.prototype.dateIndex=function(t){var e=this.options;return Kd(t,this.valueStart,e.baseUnit,e.baseUnitStep)},cg.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},cg.prototype.values=function(){var t=this._values;if(!t){var e=this.options,n=this.valueRange();this._values=t=[];for(var i=n.min;i<=n.max;)t.push(i),i=Gd(i,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},cg.prototype.dateAt=function(t,e){var n=this.options;return Gd(e?this.start:this.valueStart,n.baseUnitStep*t,n.baseUnit,n.weekStartDay)},cg.prototype.roundToTotalStep=function(t,e,n){var i=this.options,r=i.baseUnit,o=i.baseUnitStep,s=i.weekStartDay,a=this.start,l=Kd(t,a,r,o),h=e?Math.ceil(l):Math.floor(l);return n&&(h+=n),Gd(a,h*o,r,s)};var ug=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.clone=function(){var t=new e(Object.assign({},this.options),this.chartService);return t.createLabels(),t},e.prototype.categoriesHash=function(){var t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t},e.prototype.initUserOptions=function(t){return t},e.prototype.initFields=function(){t.prototype.initFields.call(this);var e=this.chartService,n=e.intl,i=this.options,r=i.categories||[];if(r._parsed||((r=eg(n,r))._parsed=!0),i=Bu({roundToBaseUnit:!0},i,{categories:r,min:tg(n,i.min),max:tg(n,i.max)}),e.panning&&e.isPannable(i.vertical?ho:lo)&&(i.roundToBaseUnit=!1),i.userSetBaseUnit=i.userSetBaseUnit||i.baseUnit,i.userSetBaseUnitStep=i.userSetBaseUnitStep||i.baseUnitStep,this.options=i,i.srcCategories=r,r.length>0){var o=lg(r),s=i.maxDivisions;
1if(this.dataRange=new cg(o.min,o.max,function(t){var e=(t.baseUnit||"").toLowerCase();return e!==ag&&!vf(e,sg)&&function(t){for(var e,n,i=t.categories,r=kf(i)?i.length:0,o=to,s=0;s<r;s++){var a=i[s];if(a&&e){var l=Vd(a,e);l>0&&(n=(o=Math.min(o,l))>=Dd?jd:o>=Bd-3*Ed?Td:o>=Ld?Pd:o>=Ed?Od:o>=zd?Ad:o>=Id?Md:kd)}e=a}t.baseUnit=n||Od}(t),e!==ag&&"auto"!==t.baseUnitStep||pg(t),t}(i)),s){var a=this.dataRange.displayRange(),l=Object.assign({},i,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),h=this.dataRange.options;pg(l,h.baseUnit,h.baseUnitStep),this.divisionRange=new cg(o.min,o.max,l)}else this.divisionRange=this.dataRange}else i.baseUnit=i.baseUnit||Od,this.dataRange=this.divisionRange=new hg(i)},e.prototype.tickIndices=function(e){var n=this.dataRange,i=this.divisionRange,r=i.valuesCount();if(!this.options.maxDivisions||!r)return t.prototype.tickIndices.call(this,e);var o=[],s=i.values(),a=0;this.options.justified||(s=s.concat(i.dateAt(r)),a=.5);for(var l=0;l<s.length;l++)if(o.push(n.dateIndex(s[l])+a),1!==e&&l>=1){var h=o.length-1;o.splice(l,0,o[h-1]+(o[h]-o[h-1])*e)}return o},e.prototype.shouldRenderNote=function(t){var e=this.range(),n=this.options.categories||[];return Xd(t,e.min)>=0&&Xd(t,e.max)<=0&&n.length},e.prototype.parseNoteValue=function(t){return tg(this.chartService.intl,t)},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.translateRange=function(t){var e=this.options,n=e.baseUnit,i=e.weekStartDay,r=e.vertical,o=this.lineBox(),s=r?o.height():o.width(),a=this.range(),l=Ef(t/(s/(a.max-a.min)),Jr);if(a.min&&a.max){var h=Nd(e.min||a.min,l),c=Nd(e.max||a.max,l);a={min:Gd(h,0,n,i),max:Gd(c,0,n,i)}}return a},e.prototype.scaleRange=function(t){var e=Math.abs(t),n=this.range(),i=n.min,r=n.max;if(i&&r){for(;e--;){var o=Wd(i,r),s=Math.round(.1*o);t<0?(i=Nd(i,s),r=Nd(r,-s)):(i=Nd(i,-s),r=Nd(r,s))}n={min:i,max:r}}return n},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},e.prototype.pan=function(t){if(this.isEmpty())return null;var e=this.options,n=this.lineBox(),i=e.vertical?n.height():n.width(),r=this.dataRange.displayRange(),o=r.min,s=r.max,a=this.dataRange.total(),l=Ef(t/(i/(s-o)),Jr)*(e.reverse?-1:1),h=Nd(o,l),c=Nd(s,l),p=this.limitRange(Yd(h),Yd(c),Yd(a.min),Yd(a.max),l);return p?(p.min=Hd(p.min),p.max=Hd(p.max),p.baseUnit=e.baseUnit,p.baseUnitStep=e.baseUnitStep||1,p.userSetBaseUnit=e.userSetBaseUnit,p.userSetBaseUnitStep=e.userSetBaseUnitStep,p):void 0},e.prototype.pointsRange=function(e,n){if(this.isEmpty())return null;var i=t.prototype.pointsRange.call(this,e,n),r=this.dataRange.displayRange(),o=this.dataRange.displayIndices(),s=Wd(r.max,r.min)/(o.max-o.min),a=this.options;return{min:Nd(r.min,i.min*s),max:Nd(r.min,i.max*s),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}},e.prototype.zoomRange=function(t){if(this.isEmpty())return null;var e=this.options,n=e.userSetBaseUnit===ag,i=this.dataRange.total(),r=this.dataRange.displayRange(),o=r.min,s=r.max,a=this.dataRange.options,l=a.weekStartDay,h=a.baseUnit,c=a.baseUnitStep,p=Gd(o,t*c,h,l),u=Gd(s,-t*c,h,l);if(n){var f,d,g=e.autoBaseUnitSteps,v=e.maxDateGroups,y=jf(g[h])*v*Fd[h],m=Wd(s,o),x=Wd(u,p),b=sg.indexOf(h);if(x<Fd[h]&&h!==Sd)p=Nd(o,d=(m-(v-1)*(f=jf(g[h=sg[b-1]]))*Fd[h])/2),u=Nd(s,-d);else if(x>y&&h!==jd){var _=0;do{_=0,d=2*Fd[h=sg[++b]];do{f=g[h][_],_++}while(_<g[h].length&&d*f<m)}while(h!==jd&&d*f<m);(d=(d*f-m)/2)>0&&(p=Nd(o,-d),u=Nd(s,d),p=Nd(p,Rf(u,i.min,i.max)-u),u=Nd(u,Rf(p,i.min,i.max)-p))}}return p<i.min&&(p=i.min),u>i.max&&(u=i.max),p&&u&&Wd(u,p)>0?{min:p,max:u,baseUnit:e.userSetBaseUnit||e.baseUnit,baseUnitStep:e.userSetBaseUnitStep||e.baseUnitStep}:void 0},e.prototype.range=function(){return this.dataRange.displayRange()},e.prototype.createAxisLabel=function(t,e){var n=this.options,i=n.dataItems&&!n.maxDivisions?n.dataItems[t]:null,r=this.divisionRange.dateAt(t);e.format=e.format||e.dateFormats[this.divisionRange.options.baseUnit];var o=this.axisLabelText(r,i,e);if(o)return new yd(r,o,t,i,e)},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,n){var i=this.dataRange,r=t,o=e;r instanceof Date&&(r=i.dateIndex(r)),o instanceof Date&&(o=i.dateIndex(o));var s=this.getSlot(r,o,n);if(s)return s.toRect()},e.prototype.getSlot=function(e,n,i){var r=e,o=n;return"object"==typeof r&&(r=this.categoryIndex(r)),"object"==typeof o&&(o=this.categoryIndex(o)),t.prototype.getSlot.call(this,r,o,i)},e.prototype.valueRange=function(){var t=lg(this.options.srcCategories);return{min:Hd(t.min),max:Hd(t.max)}},e.prototype.categoryAt=function(t,e){return this.dataRange.dateAt(t,e)},e.prototype.categoriesCount=function(){return this.dataRange.valuesCount()},e.prototype.rangeIndices=function(){return this.dataRange.displayIndices()},e.prototype.labelsBetweenTicks=function(){return!this.divisionRange.options.justified},e.prototype.prepareUserOptions=function(){this.isEmpty()||(this.options.categories=this.dataRange.values())},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.dataRange.dateAt(e)},e.prototype.totalIndex=function(t){return this.dataRange.totalIndex(t)},e.prototype.currentRangeIndices=function(){var t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}},e.prototype.totalRange=function(){return this.dataRange.total()},e.prototype.totalCount=function(){return this.dataRange.totalCount()},e.prototype.isEmpty=function(){return!this.options.srcCategories.length},e.prototype.roundedRange=function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var t=this.options,e=lg(t.srcCategories);return new cg(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(ig);Vf(ug,{type:Zr,labels:{dateFormats:og},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var fg=ug;function dg(t,e){return Ef(Math.floor(t/e)*e,Jr)}function gg(t,e){return Ef(Math.ceil(t/e)*e,Jr)}function vg(t){return Math.max(Math.min(t,rg),-rg)}var yg=Math.pow(10,1-Jr),mg=function(t){function e(e,n,i,r){t.call(this,Object.assign({},i,{seriesMin:e,seriesMax:n}),r)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initUserOptions=function(t){var e=function(t,e,n){var i=n.narrowRange,r=function(t,e,n){if(!t&&!e)return 0;var i;if(t>=0&&e>=0){var r=t===e?0:t;if(!1===n||!n&&(e-r)/e>.2)return 0;i=Math.max(0,r-(e-r)/2)}else i=t;return i}(t,e,i),o=function(t,e,n){if(!t&&!e)return 1;var i;if(t<=0&&e<=0){var r=t===e?0:e,o=Math.abs((r-t)/r);if(!1===n||!n&&o>.2)return 0;i=Math.min(0,r-(t-r)/2)}else i=e;return i}(t,e,i),s=Hf(r,o),a={majorUnit:s};return!1!==n.roundToMajorUnit&&(r<0&&xg(r,s,1/3)&&(r-=s),o>0&&xg(o,s,1/3)&&(o+=s)),a.min=dg(r,s),a.max=gg(o,s),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:kf(e.min)?Math.min(t.min,e.min):t.min,max:kf(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var n,i,r=e;if(e){!function(t,e){for(var n=0;n<e.length;n++){var i=e[n];null===t[i]&&(t[i]=void 0)}}(e,["min","max"]),n=kf(e.min),i=kf(e.max);var o=n||i;o&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=dg(t.min,e.majorUnit),t.max=gg(t.max,e.majorUnit)):o&&(r=Bu(t,e),t.majorUnit=Hf(r.min,r.max))}t.minorUnit=(r.majorUnit||t.majorUnit)/5;var s=Bu(t,r);return s.min>=s.max&&(n&&!i?s.max=s.min+s.majorUnit:!n&&i&&(s.min=s.max-s.majorUnit)),s}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options;return Math.floor(Ef((e.max-e.min)/t,Yr))+1},e.prototype.getTickPositions=function(t,e){var n=this.options,i=n.vertical,r=n.reverse,o=this.lineBox(),s=t*((i?o.height():o.width())/(n.max-n.min)),a=this.getDivisions(t),l=(i?-1:1)*(r?-1:1),h=[],c=o[(i?ho:lo)+(1===l?1:2)],p=0;e&&(p=e/t);for(var u=0;u<a;u++)u%p!=0&&h.push(Ef(c,Yr)),c+=s*l;return h},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,n){void 0===n&&(n=!1);var i,r,o=this.options,s=o.vertical,a=o.reverse,l=s?ho:lo,h=this.lineBox(),c=h[l+(a?2:1)],p=(s?h.height():h.width())/(o.max-o.min)*(a?-1:1),u=new qf(h.x1,h.y1,h.x1,h.y1),f=t,d=e;return kf(f)||(f=d||0),kf(d)||(d=f||0),n&&(f=Math.max(Math.min(f,o.max),o.min),d=Math.max(Math.min(d,o.max),o.min)),s?(i=o.max-Math.max(f,d),r=o.max-Math.min(f,d)):(i=Math.min(f,d)-o.min,r=Math.max(f,d)-o.min),u[l+1]=vg(c+p*(a?r:i)),u[l+2]=vg(c+p*(a?i:r)),u},e.prototype.getValue=function(t){var e=this.options,n=e.vertical,i=e.reverse,r=Number(e.max),o=Number(e.min),s=n?ho:lo,a=this.lineBox(),l=a[s+(i?2:1)],h=n?a.height():a.width(),c=(i?-1:1)*(t[s]-l),p=c*((r-o)/h);return c<0||c>h?null:Ef(n?r-p:o+p,Jr)},e.prototype.translateRange=function(t){var e=this.options,n=e.vertical,i=e.reverse,r=e.max,o=e.min,s=this.lineBox(),a=n?s.height():s.width(),l=Ef(t/(a/(r-o)),Jr);return!n&&!i||n&&i||(l=-l),{min:o+l,max:r+l,offset:l}},e.prototype.scaleRange=function(t){var e=this.options,n=-t*e.majorUnit;return{min:e.min-n,max:e.max+n}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e){var n=this.options,i=Ef(n.min+t*n.majorUnit,Jr),r=this.axisLabelText(i,null,e);return new yd(i,r,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var n=this.getValue(t),i=this.getValue(e),r=Math.min(n,i),o=Math.max(n,i);if(this.isValidRange(r,o))return{min:r,max:o}},e.prototype.zoomRange=function(t){var e=this.totalMin,n=this.totalMax,i=this.scaleRange(t),r=Rf(i.min,e,n),o=Rf(i.max,e,n);if(this.isValidRange(r,o))return{min:r,max:o}},e.prototype.isValidRange=function(t,e){return e-t>yg},e}(Cd);function xg(t,e,n){var i=Ef(Math.abs(t%e),Jr);return 0===i||i>e*(1-n)}Vf(mg,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:qr},labels:{format:"#.####################"},zIndex:1});var bg=mg,_g=function(t){function e(e,n,i,r){var o=Hd(e),s=Hd(n),a=r.intl,l=i||{};l=function(t,e,n){var i,r,o=n.min||t,s=n.max||e,a=n.baseUnit||(s&&o?(i=Vd(s,o),r=Ad,i>=Dd?r=jd:i>=Bd?r=Td:i>=Ld?r=Pd:i>=Ed&&(r=Od),r):Ad),l=Fd[a],h=qd(Yd(o)-1,a)||Hd(s),c=$d(Yd(s)+1,a),p=(n.majorUnit?n.majorUnit:void 0)||gg(Hf(h.getTime(),c.getTime()),l)/l,u=Qd(h,c,a),f=gg(u,p)-u,d=Math.floor(f/2),g=f-d;return n.baseUnit||delete n.baseUnit,n.baseUnit=n.baseUnit||a,n.min=n.min||Gd(h,-d,a),n.max=n.max||Gd(c,g,a),n.minorUnit=n.minorUnit||p/5,n.majorUnit=p,n}(o,s,l=Bu(l||{},{min:tg(a,l.min),max:tg(a,l.max),axisCrossingValue:eg(a,l.axisCrossingValues||l.axisCrossingValue)})),t.call(this,l,r),this.intlService=a,this.seriesMin=o,this.seriesMax=s,this.totalMin=Yd(qd(Yd(o)-1,l.baseUnit)),this.totalMax=Yd($d(Yd(s)+1,l.baseUnit))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){var e=this.options;return Math.floor(Qd(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,n=e.vertical,i=this.lineBox(),r=(n?-1:1)*(e.reverse?-1:1),o=i[(n?ho:lo)+(1===r?1:2)],s=this.getDivisions(t),a=Wd(e.max,e.min),l=(n?i.height():i.width())/a,h=[o],c=1;c<s;c++){var p=o+Wd(Gd(e.min,c*t,e.baseUnit),e.min)*l*r;h.push(Ef(p,Yr))}return h},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,n){return bg.prototype.getSlot.call(this,tg(this.intlService,t),tg(this.intlService,e),n)},e.prototype.getValue=function(t){var e=bg.prototype.getValue.call(this,t);return null!==e?Hd(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e){var n=this.options,i=t*n.majorUnit,r=n.min;i>0&&(r=Gd(r,i,n.baseUnit)),e.format=e.format||e.dateFormats[n.baseUnit];var o=this.axisLabelText(r,null,e);return new yd(r,o,t,null,e)},e.prototype.translateRange=function(t,e){var n=this.options,i=n.baseUnit,r=n.weekStartDay,o=this.lineBox(),s=n.vertical?o.height():o.width(),a=this.range(),l=s/Wd(a.max,a.min),h=Ef(t/l,Jr)*(n.reverse?-1:1),c=Nd(n.min,h),p=Nd(n.max,h);return e||(c=Gd(c,0,i,r),p=Gd(p,0,i,r)),{min:c,max:p,offset:h}},e.prototype.scaleRange=function(t){for(var e=this.options,n=e.min,i=e.max,r=Math.abs(t);r--;){var o=Wd(n,i),s=Math.round(.1*o);t<0?(n=Nd(n,s),i=Nd(i,-s)):(n=Nd(n,-s),i=Nd(i,s))}return{min:n,max:i}},e.prototype.shouldRenderNote=function(t){var e=this.range();return Xd(t,e.min)>=0&&Xd(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),n=this.limitRange(Yd(e.min),Yd(e.max),this.totalMin,this.totalMax,e.offset);if(n)return{min:Hd(n.min),max:Hd(n.max)}},e.prototype.pointsRange=function(t,e){var n=this.getValue(t),i=this.getValue(e),r=Math.min(n,i),o=Math.max(n,i);return{min:Hd(r),max:Hd(o)}},e.prototype.zoomRange=function(t){var e=this.scaleRange(t);return{min:Hd(Rf(Yd(e.min),this.totalMin,this.totalMax)),max:Hd(Rf(Yd(e.max),this.totalMin,this.totalMax))}},e}(Cd);Vf(_g,{type:Zr,majorGridLines:{visible:!0,width:1,color:qr},labels:{dateFormats:og}});var wg=_g,Cg=10,Sg=function(t){function e(e,n,i,r){var o=Bu({majorUnit:Cg,min:e,max:n},i),s=o.majorUnit,a=function(t,e){var n=Ef(Mg(t,e),Jr)%1;return t<=0?e:0!==n&&(n<.3||n>.9)?Math.pow(e,Mg(t,e)+.2):Math.pow(e,Math.ceil(Mg(t,e)))}
1(n,s),l=function(t,e,i){var r=i.majorUnit,o=t;return t<=0?o=n<=1?Math.pow(r,-2):1:i.narrowRange||(o=Math.pow(r,Math.floor(Mg(t,r)))),o}(e,0,o),h=function(t,e,n,i){var r=n.min,o=n.max;return kf(n.axisCrossingValue)&&n.axisCrossingValue<=0&&kg(),kf(i.max)?i.max<=0&&kg():o=e,kf(i.min)?i.min<=0&&kg():r=t,{min:r,max:o}}(l,a,o,i);o.max=h.max,o.min=h.min,o.minorUnit=i.minorUnit||Ef(s-1,Jr),t.call(this,o,r),this.totalMin=kf(i.min)?Math.min(l,i.min):l,this.totalMax=kf(i.max)?Math.max(a,i.max):a,this.logMin=Ef(Mg(h.min,s),Jr),this.logMax=Ef(Mg(h.max,s),Jr),this.seriesMin=e,this.seriesMax=n,this.createLabels()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return this.options.min},e.prototype.getSlot=function(t,e,n){var i,r,o=this.options,s=this.logMin,a=this.logMax,l=o.reverse,h=o.vertical,c=o.majorUnit,p=h?ho:lo,u=this.lineBox(),f=u[p+(l?2:1)],d=(h?u.height():u.width())/(a-s)*(l?-1:1),g=new qf(u.x1,u.y1,u.x1,u.y1),v=t,y=e;return kf(v)||(v=y||1),kf(y)||(y=v||1),v<=0||y<=0?null:(n&&(v=Math.max(Math.min(v,o.max),o.min),y=Math.max(Math.min(y,o.max),o.min)),v=Mg(v,c),y=Mg(y,c),h?(i=a-Math.max(v,y),r=a-Math.min(v,y)):(i=Math.min(v,y)-s,r=Math.max(v,y)-s),g[p+1]=vg(f+d*(l?r:i)),g[p+2]=vg(f+d*(l?i:r)),g)},e.prototype.getValue=function(t){var e=this.options,n=this.logMin,i=this.logMax,r=e.reverse,o=e.vertical,s=e.majorUnit,a=this.lineBox(),l=o===r?1:-1,h=1===l?1:2,c=o?a.height():a.width(),p=o?ho:lo,u=l*(t[p]-a[p+h]);return u<0||u>c?null:Ef(Math.pow(s,n+u*((i-n)/c)),Jr)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.scaleRange=function(t){var e=this.options.majorUnit,n=-t;return{min:Math.pow(e,this.logMin-n),max:Math.pow(e,this.logMax+n)}},e.prototype.translateRange=function(t){var e=this.options,n=this.logMin,i=this.logMax,r=e.reverse,o=e.vertical,s=e.majorUnit,a=this.lineBox(),l=o?a.height():a.width(),h=Ef(t/(l/(i-n)),Jr);return!o&&!r||o&&r||(h=-h),{min:Math.pow(s,n+h),max:Math.pow(s,i+h),offset:h}},e.prototype.labelsCount=function(){var t=Math.floor(this.logMax);return Math.floor(t-this.logMin)+1},e.prototype.getMajorTickPositions=function(){var t=[];return this.traverseMajorTicksPositions(function(e){t.push(e)},{step:1,skip:0}),t},e.prototype.createTicks=function(t){var e=this.options,n=e.majorTicks,i=e.minorTicks,r=e.vertical,o=e.labels.mirror,s=this.lineBox(),a={vertical:r};function l(e,n){a.tickX=o?s.x2:s.x2-n.size,a.tickY=o?s.y1-n.size:s.y1,a.position=e,t.append(bd(a,n))}return n.visible&&this.traverseMajorTicksPositions(l,n),i.visible&&this.traverseMinorTicksPositions(l,i),[]},e.prototype.createGridLines=function(t){var e=this.options,n=e.minorGridLines,i=e.majorGridLines,r=e.vertical,o=t.lineBox(),s={lineStart:o[r?"x1":"y1"],lineEnd:o[r?"x2":"y2"],vertical:r},a=[],l=this.gridLinesVisual();function h(t,e){vf(t,a)||(s.position=t,l.append(_d(s,e)),a.push(t))}return i.visible&&this.traverseMajorTicksPositions(h,i),n.visible&&this.traverseMinorTicksPositions(h,n),l.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var n=this._lineOptions(),i=n.lineStart,r=n.step,o=this.logMin,s=this.logMax,a=Math.ceil(o)+e.skip;a<=s;a+=e.step)t(Ef(i+r*(a-o),Jr),e)},e.prototype.traverseMinorTicksPositions=function(t,e){for(var n=this.options,i=n.min,r=n.max,o=n.minorUnit,s=n.majorUnit,a=this._lineOptions(),l=a.lineStart,h=a.step,c=this.logMin,p=this.logMax,u=Math.floor(c);u<p;u++)for(var f=this._minorIntervalOptions(u),d=e.skip;d<o;d+=e.step){var g=f.value+d*f.minorStep;if(g>r)break;g>=i&&t(Ef(l+h*(Mg(g,s)-c),Jr),e)}},e.prototype.createAxisLabel=function(t,e){var n=Math.ceil(this.logMin+t),i=Math.pow(this.options.majorUnit,n),r=this.axisLabelText(i,null,e);return new yd(i,r,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var n=this.getValue(t),i=this.getValue(e);return{min:Math.min(n,i),max:Math.max(n,i)}},e.prototype.zoomRange=function(t){var e=this.options,n=this.totalMin,i=this.totalMax,r=this.scaleRange(t),o=Rf(r.min,n,i),s=Rf(r.max,n,i),a=e.majorUnit,l=s>o&&e.min&&e.max&&Ef(Mg(e.max,a)-Mg(e.min,a),Jr)<1,h=!(e.min===n&&e.max===i)&&Ef(Mg(s,a)-Mg(o,a),Jr)>=1;if(l||h)return{min:o,max:s}},e.prototype._minorIntervalOptions=function(t){var e=this.options,n=e.minorUnit,i=e.majorUnit,r=Math.pow(i,t);return{value:r,minorStep:(Math.pow(i,t+1)-r)/n}},e.prototype._lineOptions=function(){var t=this.options,e=t.reverse,n=t.vertical,i=n?ho:lo,r=this.lineBox(),o=n===e?1:-1,s=1===o?1:2;return{step:o*((n?r.height():r.width())/(this.logMax-this.logMin)),lineStart:r[i+s],lineBox:r}},e}(Cd);function kg(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function Mg(t,e){return Math.log(t)/Math.log(e)}Vf(Sg,{type:"log",majorUnit:Cg,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:qr},zIndex:1,_deferLabels:!0});var Ag=Sg,Og={createGridLines:function(t){var e,n,i=this.options,r=Math.abs(this.box.center().y-t.lineBox().y1),o=[],s=!1;return i.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,o=this.renderMajorGridLines(e,r,i.majorGridLines)),i.minorGridLines.visible&&(n=this.minorGridLineAngles(t,s),Cf(o,this.renderMinorGridLines(n,r,i.minorGridLines,t,s))),o},renderMajorGridLines:function(t,e,n){return this.renderGridLines(t,e,n)},renderMinorGridLines:function(t,e,n,i,r){var o=this.radiusCallback&&this.radiusCallback(e,i,r);return this.renderGridLines(t,e,n,o)},renderGridLines:function(t,e,n,i){for(var r={stroke:{width:n.width,color:n.color,dashType:n.dashType}},s=this.box.center(),a=new o.Circle([s.x,s.y],e),h=this.gridLinesVisual(),c=0;c<t.length;c++){var p=new l.Path(r);i&&(a.radius=i(t[c])),p.moveTo(a.center).lineTo(a.pointAt(t[c]+180)),h.append(p)}return h.children},gridLineAngles:function(t,e,n,i,r){var o=this,s=this.intervals(e,n,i,r),a=t.options,l=a.visible&&!1!==(a.line||{}).visible;return bf(s,function(t){var e=o.intervalAngle(t);if(!l||90!==e)return e})}},Pg=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.range=function(){return{min:0,max:this.options.categories.length}},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.lineBox=function(){return this.box},e.prototype.reflowLabels=function(){for(var t=this.labels,e=this.options.labels,n=e.skip||0,i=e.step||1,r=new qf,o=0;o<t.length;o++){t[o].reflow(r);var s=t[o].box;t[o].reflow(this.getSlot(n+o*i).adjacentBox(0,s.width(),s.height()))}},e.prototype.intervals=function(t,e,n,i){void 0===i&&(i=!1);for(var r=this.options,o=r.categories.length/t||1,s=360/o,a=n||1,l=[],h=0,c=e||0;c<o;c+=a)h=Ef(h=r.reverse?360-c*s:c*s,Yr)%360,i&&vf(h,i)||l.push(h);return l},e.prototype.majorIntervals=function(){return this.intervals(1)},e.prototype.minorIntervals=function(){return this.intervals(.5)},e.prototype.intervalAngle=function(t){return(360+t+this.options.startAngle)%360},e.prototype.majorAngles=function(){var t=this;return bf(this.majorIntervals(),function(e){return t.intervalAngle(e)}
1)},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,1,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var n=this.options,i=n.minorGridLines,r=n.majorGridLines,o=e?this.intervals(1,r.skip,r.step):null;return this.gridLineAngles(t,.5,i.skip,i.step,o)},e.prototype.radiusCallback=function(t,e,n){if(e.options.type!==Gr){var i=zf(360/(2*this.options.categories.length)),r=Math.cos(i)*t,o=this.majorAngles();return function(e){return!n&&vf(e,o)?t:r}}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new l.Group({zIndex:-1}),n=0;n<t.length;n++){var i=t[n],r=this.plotBandSlot(i),o=this.getSlot(i.from),s=i.from-Math.floor(i.from);r.startAngle+=s*o.angle;var a=Math.ceil(i.to)-i.to;r.angle-=(a+s)*o.angle;var h=Yf.current.createRing(r,{fill:{color:i.color,opacity:i.opacity},stroke:{opacity:i.opacity}});e.append(h)}this.appendVisual(e)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to-1)},e.prototype.getSlot=function(t,e){var n=this.options,i=n.justified,r=this.box,o=this.majorAngles(),s=o.length,a=360/s,l=t;n.reverse&&!i&&(l=(l+1)%s);var h=o[l=Rf(Math.floor(l),0,s-1)];i&&(h-=a/2)<0&&(h+=360);var c=a*(Rf(Math.ceil(e||l),l,s-1)-l+1);return new Xf(r.center(),0,r.height()/2,h,c)},e.prototype.slot=function(t,e){var n=this.getSlot(t,e),i=n.startAngle+180;return new o.Arc([n.center.x,n.center.y],{startAngle:i,endAngle:i+n.angle,radiusX:n.radius,radiusY:n.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,n=null,i=0;i<e;i++)if(this.getSlot(i).containsPoint(t)){n=i;break}return n},e}(ig);Vf(Pg,{startAngle:90,labels:{margin:Uu(10)},majorGridLines:{visible:!0},justified:!0}),Bu(Pg.prototype,Og);var Tg=Pg,jg=function(t){function e(e,n){t.call(this,e,n);var i=this.options;i.minorUnit=i.minorUnit||i.majorUnit/2}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDivisions=function(t){return bg.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this.options,e=this.labels,n=this.options.labels,i=n.skip||0,r=n.step||1,o=new qf,s=this.intervals(t.majorUnit,i,r),a=0;a<e.length;a++){e[a].reflow(o);var l=e[a].box;e[a].reflow(this.getSlot(s[a]).adjacentBox(0,l.width(),l.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,n,i){void 0===i&&(i=!1);for(var r=this.options.min,o=this.getDivisions(t),s=[],a=n||1,l=e||0;l<o;l+=a){var h=(360+r+l*t)%360;i&&vf(h,i)||s.push(h)}return s},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var n=this.options,i=n.minorGridLines,r=n.majorGridLines,o=e?this.intervals(n.majorUnit,r.skip,r.step):null;return this.gridLineAngles(t,n.minorUnit,i.skip,i.step,o)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var n=this.options,i=this.box,r=n.startAngle,o=Rf(t,n.min,n.max),s=Rf(e||o,o,n.max);if(n.reverse&&(o*=-1,s*=-1),(s=(540-s-r)%360)<(o=(540-o-r)%360)){var a=o;o=s,s=a}return new Xf(i.center(),0,i.height()/2,o,s-o)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var n,i,r=this.options,s=360-r.startAngle,a=this.getSlot(t,e),l=Math.min(t,e),h=Math.max(t,e);return r.reverse?(n=l,i=h):(n=360-h,i=360-l),new o.Arc([a.center.x,a.center.y],{startAngle:n=(n+s)%360,endAngle:i=(i+s)%360,radiusX:a.radius,radiusY:a.radius})},e.prototype.getValue=function(t){var e=this.options,n=this.box.center(),i=Math.round(Mf(Math.atan2(t.y-n.y,t.x-n.x))),r=e.startAngle;return e.reverse||(i*=-1,r*=-1),(i+r+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(Cd);Vf(jg,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:Uu(10)},majorGridLines:{color:qr,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),Bu(jg.prototype,Og,{createPlotBands:Tg.prototype.createPlotBands,majorAngles:Tg.prototype.majorAngles,range:bg.prototype.range,labelsCount:bg.prototype.labelsCount,createAxisLabel:bg.prototype.createAxisLabel});var Rg=jg;function Ig(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var zg={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,n=t.plotBands;void 0===n&&(n=[]);for(var i=this.plotArea.polarAxis,r=i.majorAngles(),o=i.box.center(),s=this._plotbandGroup=new l.Group({zIndex:-1}),a=0;a<n.length;
1a++){var h,c=n[a],p={fill:{color:c.color,opacity:c.opacity},stroke:{opacity:c.opacity}},u=this.getSlot(c.from,c.to,!0),f=new Xf(o,o.y-u.y2,o.y-u.y1,0,360);h=e===Gr?Yf.current.createRing(f,p):l.Path.fromPoints(this.plotBandPoints(f,r),p).close(),s.append(h)}this.appendVisual(s)},plotBandPoints:function(t,e){for(var n=[],i=[],r=[t.center.x,t.center.y],s=new o.Circle(r,t.innerRadius),a=new o.Circle(r,t.radius),l=0;l<e.length;l++)n.push(s.pointAt(e[l]+180)),i.push(a.pointAt(e[l]+180));return n.reverse(),n.push(n[0]),i.push(i[0]),i.concat(n)},createGridLines:function(t){var e=this.options,n=this.radarMajorGridLinePositions(),i=t.majorAngles(),r=t.box.center(),o=[];if(e.majorGridLines.visible&&(o=this.renderGridLines(r,n,i,e.majorGridLines)),e.minorGridLines.visible){var s=this.radarMinorGridLinePositions();Cf(o,this.renderGridLines(r,s,i,e.minorGridLines))}return o},renderGridLines:function(t,e,n,i){var r={stroke:{width:i.width,color:i.color,dashType:i.dashType}},s=i.skip;void 0===s&&(s=0);var a=i.step;void 0===a&&(a=0);for(var h=this.gridLinesVisual(),c=s;c<e.length;c+=a){var p=t.y-e[c];if(p>0){var u=new o.Circle([t.x,t.y],p);
1if(i.type===Gr)h.append(new l.Circle(u,r));else{for(var f=new l.Path(r),d=0;d<n.length;d++)f.lineTo(u.pointAt(n[d]+180));f.close(),h.append(f)}}}return h.children},getValue:function(t){var e=this.lineBox(),n=this.plotArea.polarAxis,i=n.majorAngles(),r=n.box.center(),o=t.distanceTo(r),s=o;if(this.options.majorGridLines.type!==Gr&&i.length>1){var a=(Mf(Math.atan2(t.y-r.y,t.x-r.x))+540)%360;i.sort(function(t,e){return Ig(t,a)-Ig(e,a)});var l=Ig(i[0],i[1])/2,h=Ig(a,i[0]),c=90-l;s=o*(Math.sin(zf(180-h-c))/Math.sin(zf(c)))}return this.axisType().prototype.getValue.call(this,new Uf(e.x1,e.y2-s))}},Eg=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.radarMajorGridLinePositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.radarMinorGridLinePositions=function(){var t=this.options,e=0;return t.majorGridLines.visible&&(e=t.majorUnit),this.getTickPositions(t.minorUnit,e)},e.prototype.axisType=function(){return t},e}(bg);Bu(Eg.prototype,zg);var Lg=Eg,Bg=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.radarMajorGridLinePositions=function(){var t=[];return this.traverseMajorTicksPositions(function(e){t.push(e)},this.options.majorGridLines),t},e.prototype.radarMinorGridLinePositions=function(){var t=[];return this.traverseMinorTicksPositions(function(e){t.push(e)},this.options.minorGridLines),t},e.prototype.axisType=function(){return t},e}(Ag);Bu(Bg.prototype,zg);var Dg=Bg;function Fg(t){return t<=0?-1:1}var Vg=function(t){function e(e){t.call(this),this.closed=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.process=function(t){var e=t.slice(0),n=[],i=this.closed,r=e.length;if(r>2&&(this.removeDuplicates(0,e),r=e.length),r<2||2===r&&e[0].equals(e[1]))return n;var s,a,l=e[0],h=e[1],c=e[2];for(n.push(new o.Segment(l));l.equals(e[r-1]);)i=!0,e.pop(),r--;if(2===r){var p=this.tangent(l,h,lo,ho);return jf(n).controlOut(this.firstControlPoint(p,l,h,lo,ho)),n.push(new o.Segment(h,this.secondControlPoint(p,l,h,lo,ho))),n}if(i){var u=this.controlPoints(l=e[r-1],h=e[0],c=e[1]);s=u[1],a=u[0]}else{var f=this.tangent(l,h,lo,ho);s=this.firstControlPoint(f,l,h,lo,ho)}for(var d=s,g=0;g<=r-3;g++)if(this.removeDuplicates(g,e),g+3<=(r=e.length)){var v=this.controlPoints(l=e[g],h=e[g+1],c=e[g+2]);jf(n).controlOut(d),d=v[1],n.push(new o.Segment(h,v[0]))}if(i){var y=this.controlPoints(l=e[r-2],h=e[r-1],c=e[0]);jf(n).controlOut(d),n.push(new o.Segment(h,y[0])),jf(n).controlOut(y[1]),n.push(new o.Segment(c,a))}else{var m=this.tangent(h,c,lo,ho);jf(n).controlOut(d),n.push(new o.Segment(c,this.secondControlPoint(m,h,c,lo,ho)))}return n},e.prototype.removeDuplicates=function(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)},e.prototype.invertAxis=function(t,e,n){var i=!1;if(t.x===e.x)i=!0;else if(e.x===n.x)(e.y<n.y&&t.y<=e.y||n.y<e.y&&e.y<=t.y)&&(i=!0);else{var r=this.lineFunction(t,e),o=this.calculateFunction(r,n.x);t.y<=e.y&&n.y<=o||e.y<=t.y&&n.y>=o||(i=!0)}return i},e.prototype.isLine=function(t,e,n){var i=this.lineFunction(t,e),r=this.calculateFunction(i,n.x);return t.x===e.x&&e.x===n.x||Ef(r,1)===Ef(n.y,1)},e.prototype.lineFunction=function(t,e){var n=(e.y-t.y)/(e.x-t.x);return[t.y-n*t.x,n]},e.prototype.controlPoints=function(t,e,n){var i,r=lo,o=ho,s=!1,a=!1;if(this.isLine(t,e,n))i=this.tangent(t,e,lo,ho);else{var l={x:this.isMonotonicByField(t,e,n,lo),y:this.isMonotonicByField(t,e,n,ho)};l.x&&l.y?(i=this.tangent(t,n,lo,ho),s=!0):(this.invertAxis(t,e,n)&&(r=ho,o=lo),l[r]?i=0:(i=.01*(n[o]<t[o]&&t[o]<=e[o]||t[o]<n[o]&&e[o]<=t[o]?Fg((n[o]-t[o])*(e[r]-t[r])):-Fg((n[r]-t[r])*(e[o]-t[o]))),a=!0))}var h=this.secondControlPoint(i,t,e,r,o);if(a){var c=r;r=o,o=c}var p=this.firstControlPoint(i,e,n,r,o);return s&&(this.restrictControlPoint(t,e,h,i),this.restrictControlPoint(e,n,p,i)),[h,p]},e.prototype.restrictControlPoint=function(t,e,n,i){t.y<e.y?e.y<n.y?(n.x=t.x+(e.y-t.y)/i,n.y=e.y):n.y<t.y&&(n.x=e.x-(e.y-t.y)/i,n.y=t.y):n.y<e.y?(n.x=t.x-(t.y-e.y)/i,n.y=e.y):t.y<n.y&&(n.x=e.x+(t.y-e.y)/i,n.y=t.y)},e.prototype.tangent=function(t,e,n,i){var r=e[n]-t[n];return 0===r?0:(e[i]-t[i])/r},e.prototype.isMonotonicByField=function(t,e,n,i){return n[i]>e[i]&&e[i]>t[i]||n[i]<e[i]&&e[i]<t[i]},e.prototype.firstControlPoint=function(t,e,n,i,r){var o=e[i],s=.333*(n[i]-o);return this.point(o+s,e[r]+s*t,i,r)},e.prototype.secondControlPoint=function(t,e,n,i,r){var o=n[i],s=.333*(o-e[i]);return this.point(o-s,n[r]-s*t,i,r)},e.prototype.point=function(t,e,n,i){var r=new o.Point;return r[n]=t,r[i]=e,r},e.prototype.calculateFunction=function(t,e){for(var n=t.length,i=0,r=0;r<n;r++)i+=Math.pow(e,r)*t[r];return i},e}(mo),Ng=function(t){function e(e){t.call(this),this._axis=e,this.options=e.options}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.value=function(t){var e=this._axis;return e.getCategory?e.getCategory(t):e.getValue(t)},e.prototype.slot=function(t,e,n){return void 0===n&&(n=!0),this._axis.slot(t,e,n)},e.prototype.range=function(){return this._axis.range()},e.prototype.valueRange=function(){return this._axis.valueRange()},e}(mo);function Hg(t,e){for(var n=0;n<e.length;n++)if(e[n].options.name===t)return e[n].prepareUserOptions(),new Ng
1(e[n])}var Ug=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Ug.prototype.findAxisByName=function(t){return Hg(t,this._pane.axes)};var Gg=Ug,qg=function(t){function e(e){t.call(this),this._plotArea=e,this.visual=e.visual,this.backgroundVisual=e._bgVisual}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(mo);function $g(t){for(var e=t.length,n=0,i=0;i<e;i++)Tu(t[i])&&n++;return n}var Xg={min:function(t){for(var e=t.length,n=to,i=0;i<e;i++){var r=t[i];Tu(r)&&(n=Math.min(n,r))}return n===to?t[0]:n},max:function(t){for(var e=t.length,n=eo,i=0;i<e;i++){var r=t[i];Tu(r)&&(n=Math.max(n,r))}return n===eo?t[0]:n},sum:function(t){for(var e=t.length,n=0,i=0;i<e;i++){var r=t[i];Tu(r)&&(n+=r)}return n},sumOrNull:function(t){var e=null;return $g(t)&&(e=Xg.sum(t)),e},count:function(t){for(var e=t.length,n=0,i=0;i<e;i++){var r=t[i];null!==r&&kf(r)&&n++}return n},avg:function(t){var e=$g(t),n=t[0];return e>0&&(n=Xg.sum(t)/e),n},first:function(t){for(var e=t.length,n=0;n<e;n++){var i=t[n];if(null!==i&&kf(i))return i}return t[0]}},Wg=Xg;function Yg(t,e){return null===e?e:pf(t)(e)}var Zg=function(t){function e(){t.call(this),this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.register=function(t,e,n){void 0===e&&(e=[so]),void 0===n&&(n={});for(var i=0;i<t.length;i++){var r=t[i];this._valueFields[r]=e,this._otherFields[r]=n,this._nullValue[r]=this._makeValue(e,null),this._undefinedValue[r]=this._makeValue(e,void 0)}},e.prototype.canonicalFields=function(t){return this.valueFields(t).concat(this.otherFields(t))},e.prototype.valueFields=function(t){return this._valueFields[t.type]||[so]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[so]},e.prototype.bindPoint=function(t,e,n){var i,r,o=t.data,s=kf(n)?n:o[e],a={valueFields:{value:s}},l=this.valueFields(t),h=this._otherFields[t.type];if(null===s)r=this._nullValue[t.type];else if(kf(s)){if(Array.isArray(s)){var c=s.slice(l.length);r=this._bindFromArray(s,l),i=this._bindFromArray(c,h)}else if("object"==typeof s){var p=this.sourceFields(t,l),u=this.sourceFields(t,h);r=this._bindFromObject(s,l,p),i=this._bindFromObject(s,h,u)}}else r=this._undefinedValue[t.type];return kf(r)&&(1===l.length?a.valueFields.value=r[l[0]]:a.valueFields=r),a.fields=i||{},a},e.prototype._makeValue=function(t,e){for(var n={},i=t.length,r=0;r<i;r++)n[t[r]]=e;return n},e.prototype._bindFromArray=function(t,e){var n={};if(e)for(var i=Math.min(e.length,t.length),r=0;r<i;r++)n[e[r]]=t[r];return n},e.prototype._bindFromObject=function(t,e,n){void 0===n&&(n=e);var i={};if(e)for(var r=e.length,o=0;o<r;o++){var s=n[o];null!==s&&(i[e[o]]=Yg(s,t))}return i},e.prototype.sourceFields=function(t,e){var n=[];if(e)for(var i=e.length,r=0;r<i;r++){var o=e[r],s=o===so?"field":o+"Field";n.push(null!==t[s]?t[s]||o:null)}return n},e}(mo);Zg.current=new Zg;var Jg=Zg,Kg=/percent(?:\w*)\((\d+)\)/,Qg=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),tv=function(t){function e(e,n,i){t.call(this),this.initGlobalRanges(e,n,i)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initGlobalRanges=function(t,e,n){var i=e.data,r=Qg.exec(t);if(r){this.valueGetter=this.createValueGetter(e,n);var o=this.getAverage(i),s=this.getStandardDeviation(i,o,!1),a=r[1]?parseFloat(r[1]):1,l={low:o.value-s*a,high:o.value+s*a};this.globalRange=function(){return l}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,n);var h=this.getStandardError(i,this.getAverage(i));this.globalRange=function(t){return{low:t-h,high:t+h}}}},e.prototype.createValueGetter=function(t,e){var n,i=t.data,r=Jg.current,o=r.valueFields(t),s=kf(i[0])?i[0]:{};return co(s)?n=pf("["+(e?o.indexOf(e):0)+"]"):Tu(s)?n=pf():"object"==typeof s&&(n=pf(r.sourceFields(t,o)[o.indexOf(e)])),n},e.prototype.getErrorRange=function(t,e){var n,i,r;if(!kf(e))return null;if(this.globalRange)return this.globalRange(t);if(co(e))n=t-e[0],i=t+e[1];else if(Tu(r=parseFloat(e)))n=t-r,i=t+r;else{if(!(r=Kg.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var o=t*(parseFloat(r[1])/100);n=t-Math.abs(o),i=t+Math.abs(o)}return{low:n,high:i}}
1,e.prototype.getStandardError=function(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)},e.prototype.getStandardDeviation=function(t,e,n){for(var i=t.length,r=n?e.count-1:e.count,o=0,s=0;s<i;s++){var a=this.valueGetter(t[s]);Tu(a)&&(o+=Math.pow(a-e.value,2))}return Math.sqrt(o/r)},e.prototype.getAverage=function(t){for(var e=t.length,n=0,i=0,r=0;r<e;r++){var o=this.valueGetter(t[r]);Tu(o)&&(n+=o,i++)}return{value:n/i,count:i}},e}(mo),ev=(Ro.browser||{}).msie?.001:0,nv="zero",iv="interpolate",rv="bar",ov="column",sv="line",av="pie",lv="verticalLine",hv=[rv,ov,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],cv="drag",pv="dragEnd",uv="zoom",fv="zoomEnd",dv="DOMMouseScroll mousewheel",gv=function(t){function e(e,n,i,r,o,s){t.call(this,s),this.low=e,this.high=n,this.isVertical=i,this.chart=r,this.series=o}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){var e,n=this.options.endCaps,i=this.isVertical,r=this.getAxis().getSlot(this.low,this.high),o=t.center(),s=this.getCapsWidth(t,i),a=i?o.x:o.y,l=a-s,h=a+s;i?(e=[new Uf(o.x,r.y1),new Uf(o.x,r.y2)],n&&e.push(new Uf(l,r.y1),new Uf(h,r.y1),new Uf(l,r.y2),new Uf(h,r.y2)),this.box=new qf(l,r.y1,h,r.y2)):(e=[new Uf(r.x1,o.y),new Uf(r.x2,o.y)],n&&e.push(new Uf(r.x1,l),new Uf(r.x1,h),new Uf(r.x2,l),new Uf(r.x2,h)),this.box=new qf(r.x1,l,r.x2,h)),this.linePoints=e},e.prototype.getCapsWidth=function(t,e){var n=e?t.width():t.height();return Math.min(Math.floor(n/2),4)||4},e.prototype.createVisual=function(){var t=this,e=this.options,n=e.visual;n?this.visual=n({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:e.endCaps,color:e.color,line:e.line},createVisual:function(){t.createDefaultVisual();var e=t.visual;return delete t.visual,e}}):this.createDefaultVisual()},e.prototype.createDefaultVisual=function(){var e=this.options,n=this.linePoints,i={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var r=0;r<n.length;r+=2){var o=new l.Path(i).moveTo(n[r].x,n[r].y).lineTo(n[r+1].x,n[r+1].y);Ou(o),this.visual.append(o)}},e}(Jf);Vf(gv,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var vv=gv,yv=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getAxis=function(){return this.chart.seriesValueAxis(this.series)},e}(vv),mv=5;function xv(t,e,n,i){void 0===n&&(n={}),void 0===i&&(i=!1);var r=n.defaults=n.defaults||{},o=n.depth=n.depth||0,s=!1;if(n.excluded=n.excluded||[],o>mv)return null;for(var a in t)if(!vf(a,n.excluded)&&t.hasOwnProperty(a)){var l=t[a];Iu(l)?(s=!0,i||(t[a]=Bf(l(e),r[a]))):Du(l)&&(i||(n.defaults=r[a]),n.depth++,s=xv(l,e,n,i)||s,n.depth--)}return s}function bv(t){for(var e=t.length,n=0,i=0;i<e;i++)n=Math.max(n,t[i].data.length);return n}var _v=function(t){function e(e,n){t.call(this,n),this.plotArea=e,this.chartService=e.chartService,this.categoryAxis=e.seriesCategoryAxis(n.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.pointOptions=function(t,e){var n=this.seriesOptions[e];if(!n){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=n=Bu({},i,{vertical:!this.options.invertAxes},t)}return n},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&Tu(t.value)){for(var e=this.categoryPoints[t.categoryIx],n=[],i=0,r=0;r<e.length;r++){var o=e[r];if(o){var s=t.series.stack,a=o.series.stack;if(s&&a&&s.group!==a.group)continue;Tu(o.value)&&(i+=Math.abs(o.value),n.push(Math.abs(o.value)))}}if(i>0)return t.value/i}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var n=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var i=this.plotValue(t),r=i>=0,o=e,s=!1,a=0;a<n.length;a++){var l=n[a];if(t===l)break;var h=t.series.stack,c=l.series.stack;if(h&&c){if(typeof h===ro&&h!==c)continue;if(h.group&&h.group!==c.group)continue}var p=this.plotValue(l);(p>=0&&r||p<0&&!r)&&(o+=p,i+=p,s=!0,this.options.isStacked100&&(i=Math.min(i,1)))}return s&&(o-=e),[o,i]}var u=this.seriesValueAxis(t.series),f=this.categoryAxisCrossingValue(u);return[f,Ru(t.value)?t.value:f]},e.prototype.stackLimits=function(t,e){for(var n=to,i=eo,r=0;r<this.categoryPoints.length;r++){var o=this.categoryPoints[r];if(o)for(var s=0;s<o.length;s++){var a=o[s];if(a&&(a.series.stack===e||a.series.axis===t)){var l=this.plotRange(a,0)[1];kf(l)&&isFinite(l)&&(i=Math.max(i,l),n=Math.min(n,l))}}}return{min:n,max:i}},e.prototype.updateStackRange=function(){var t=this.options,e=t.series,n={};if(t.isStacked)for(var i=0;i<e.length;i++){var r=e[i],o=r.axis,s=o+r.stack,a=n[s];if(!a){a=this.stackLimits(o,r.stack);var l=this.errorTotals;l&&(l.negative.length&&(a.min=Math.min(a.min,Nf(l.negative).min)),l.positive.length&&(a.max=Math.max(a.max,Nf(l.positive).max)
1)),a.min!==to||a.max!==eo?n[s]=a:a=null}a&&(this.valueAxisRanges[o]=a)}},e.prototype.addErrorBar=function(t,e,n){var i,r=t.value,o=t.series,s=t.seriesIx,a=t.options.errorBars,l=e.fields.errorLow,h=e.fields.errorHigh;Tu(l)&&Tu(h)?i={low:l,high:h}:a&&kf(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new tv(a.value,o,so),i=this.seriesErrorRanges[s].getErrorRange(r,a.value)),i&&(t.low=i.low,t.high=i.high,this.addPointErrorBar(t,n))},e.prototype.addPointErrorBar=function(t,e){var n=!this.options.invertAxes,i=t.options.errorBars,r=t.series,o=t.low,s=t.high;if(this.options.isStacked){var a=this.stackedErrorRange(t,e);o=a.low,s=a.high}else{var l={categoryIx:e,series:r};this.updateRange({value:o},l),this.updateRange({value:s},l)}var h=new yv(o,s,n,this,r,i);t.errorBars=[h],t.append(h)},e.prototype.stackedErrorRange=function(t,e){var n=this.plotRange(t,0)[1]-t.value,i=t.low+n,r=t.high+n;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},i<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,i)),r>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,r)),{low:i,high:r}},e.prototype.addValue=function(t,e){var n=e.categoryIx,i=e.series,r=e.seriesIx,o=this.categoryPoints[n];o||(this.categoryPoints[n]=o=[]);var s=this.seriesPoints[r];s||(this.seriesPoints[r]=s=[]);var a=this.createPoint(t,e);a&&(Object.assign(a,e),a.owner=this,a.noteText=t.fields.noteText,kf(a.dataItem)||(a.dataItem=i.data[n]),this.addErrorBar(a,t,n)),this.points.push(a),s.push(a),o.push(a),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,n,i,r,o){var s={defaults:r._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},a=this._evalSeries[o];kf(a)||(this._evalSeries[o]=a=xv(t,{},s,!0));var l=t;return a&&xv(l=Bu({},l),{value:e,category:n,index:i,series:r,dataItem:r.data[i]},s),l},e.prototype.updateRange=function(t,e){var n=e.series.axis,i=t.value,r=this.valueAxisRanges[n];isFinite(i)&&null!==i&&((r=this.valueAxisRanges[n]=r||{min:to,max:eo}).min=Math.min(r.min,i),r.max=Math.max(r.max,i))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,n=t.axis,i=n?e.namedValueAxes[n]:e.valueAxis;if(!i)throw new Error("Unable to locate value axis with name "+n);return i},e.prototype.reflow=function(t){var e=this,n=this.categorySlots=[],i=this.points,r=this.categoryAxis,o=0;this.traverseDataPoints(function(t,s){var a=s.categoryIx,l=e.seriesValueAxis(s.series),h=i[o++],c=n[a];if(c||(n[a]=c=e.categorySlot(r,a,l)),h){var p=e.plotRange(h,l.startValue()),u=e.valueSlot(l,p);if(u){var f=e.pointSlot(c,u);h.aboveAxis=e.aboveAxis(h,l),h.stackValue=p[1],e.options.isStacked100&&(h.percentage=e.plotValue(h)),e.reflowPoint(h,f)}else h.visible=!1}}),this.reflowCategories(n),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t},e.prototype.valueSlot=function(t,e){return t.getSlot(e[0],e[1],!this.options.clip)},e.prototype.limitPoints=function(){for(var t=this.categoryPoints,e=t[0].concat(jf(t)),n=0;n<e.length;n++)e[n]&&this.limitPoint(e[n])},e.prototype.limitPoint=function(t){var e=this.categoryAxis.limitSlot(t.box);e.equals(t.box)||t.reflow(e)},e.prototype.aboveAxis=function(t,e){var n=this.categoryAxisCrossingValue(e),i=t.value;return e.options.reverse?i<n:i>=n},e.prototype.categoryAxisCrossingValue=function(t){var e=this.categoryAxis,n=t.options;return[].concat(n.axisCrossingValues||n.axisCrossingValue)[e.axisIndex||0]||0},e.prototype.reflowPoint=function(t,e){t.reflow(e)},e.prototype.reflowCategories=function(){},e.prototype.pointSlot=function(t,e){var n=this.options.invertAxes,i=n?e:t,r=n?t:e;return new qf(i.x1,r.y1,i.x2,r.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,n=bv(e),i=e.length,r=0;r<i;r++)this._outOfRangeCallback(e[r],"_outOfRangeMinPoint",r,t);for(var o=0;o<n;o++)for(var s=0;s<i;s++){var a=e[s],l=this.categoryAxis.categoryAt(o);t(this._bindPoint(a,s,o),{category:l,categoryIx:o,series:a,seriesIx:s})}for(var h=0;h<i;h++)this._outOfRangeCallback(e[h],"_outOfRangeMaxPoint",h,t)},e.prototype._outOfRangeCallback=function(t,e,n,i){var r=t[e];if(r){var o=r.categoryIx;i(this._bindPoint(t,n,o,r.item),{category:r.category,categoryIx:o,series:t,seriesIx:n,dataItem:r.item})}},e.prototype._bindPoint=function(t,e,n,i){this._bindCache||(this._bindCache=[]);var r=this._bindCache[e];r||(r=this._bindCache[e]=[]);var o=r[n];return o||(o=r[n]=Jg.current.bindPoint(t,n,i)),o},e.prototype.formatPointValue=function(t,e){return null===t.value?"":this.chartService.format.auto(e,t.value)},e.prototype.pointValue=function(t){return t.valueFields.value},e}(Jf);Vf(_v,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var wv=_v,Cv={click:function(t,e){return t.trigger("seriesClick",this.eventArgs(e))},hover:function(t,e){return t.trigger("seriesHover",this.eventArgs(e))},over:function(t,e){return t.trigger("seriesOver",this.eventArgs(e))},out:function(t,e){return t.trigger("seriesLeave",this.eventArgs(e))},eventArgs:function(t){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:Pf(t),originalEvent:t,point:this}}},Sv={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&kf(e)&&null!==e&&(this.note=new xd({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},kv=function(t){function e(e,n){t.call(this),this.value=e,this.options=n,this.aboveAxis=Bf(this.options.aboveAxis,!0),this.tooltipTracking=!0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){var t=this.options,e=t.markers,n=t.labels;if(!this._rendered){if(this._rendered=!0,e.visible&&e.size&&(this.marker=this.createMarker(),this.append(this.marker)),n.visible){var i=lf(n),r=this.pointData(),o=this.value;i?o=i(r):n.format&&(o=this.formatValue(n.format)),this.label=new fd(o,Bu({align:Xr,vAlign:Xr,margin:{left:5,right:5},zIndex:Bf(n.zIndex,this.series.zIndex)},n),r),this.append(this.label)}this.createNote(),this.errorBar&&this.append(this.errorBar)}},e.prototype.markerBorder=function(){var t=this.options.markers,e=t.background,n=Bu({color:this.color},t.border);
1return kf(n.color)||(n.color=new Xo(e).brightness(.8).toHex()),n},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new ed({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:t.opacity,zIndex:Bf(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})},e.prototype.markerBox=function(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box},e.prototype.reflow=function(t){var e=this.options,n=this.aboveAxis,i=e.vertical;this.render(),this.box=t;var r=t.clone();if(i?n?r.y1-=r.height():r.y2+=r.height():n?r.x1+=r.width():r.x2-=r.width(),this._childBox=r,this.marker&&this.marker.reflow(r),this.reflowLabel(r),this.errorBars)for(var o=0;o<this.errorBars.length;o++)this.errorBars[o].reflow(r);if(this.note){var s=this.markerBox();if(!e.markers.visible||!e.markers.size){var a=s.center();s=new qf(a.x,a.y,a.x,a.y)}this.note.reflow(s)}},e.prototype.reflowLabel=function(t){var e=this.label,n=this.options.labels.position;e&&(n="below"===(n="above"===n?oo:n)?$r:n,e.reflow(t),e.box.alignTo(this.markerBox(),n),e.reflow(e.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,n=this.options.markers,i=n.size+(n.border.width||0)+(t.border.width||0),r=new ed({type:n.type,width:i,height:i,rotation:n.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:Bf(t.border.opacity,1)},opacity:Bf(t.opacity,1)});return r.reflow(this._childBox),r.getElement()},e.prototype.highlightVisual=function(){return(this.marker||{}).visual},e.prototype.highlightVisualArgs=function(){var t,e,n=this.marker;if(n)e=n.paddingBox.toRect(),t=n.visual;else{var i=this.options.markers.size,r=i/2,s=this.box.center();e=new o.Rect([s.x-r,s.y-r],[i,i])}return{options:this.options,rect:e,visual:t}},e.prototype.tooltipAnchor=function(){var t=this.markerBox(),e=this.owner.pane.clipBox();if(!e||e.overlaps(t)){var n,i,r=Qr;return this.aboveAxis?(n=t.y1,i=$r):(n=t.y2,i=oo),{point:new Uf(t.x2+5,n),align:{horizontal:r,vertical:i}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.markerBox().overlaps(t)},e.prototype.unclipElements=function(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}},e}(Jf);kv.prototype.defaults={vertical:!0,markers:{visible:!0,background:ao,size:8,type:Wr,border:{width:2},opacity:1},labels:{visible:!1,position:"above",margin:Uu(3),padding:Uu(4),animation:{type:"fadeIn",delay:600}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},Bu(kv.prototype,Cv),Bu(kv.prototype,Sv);var Mv=kv,Av=function(t){function e(e,n,i){t.call(this),this.linePoints=e,this.series=n,this.seriesIx=i}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.points=function(){return this.toGeometryPoints(this.linePoints)},e.prototype.toGeometryPoints=function(t){for(var e=[],n=0,i=t.length;n<i;n++)t[n]&&!1!==t[n].visible&&e.push(t[n]._childBox.toRect().center());return e},e.prototype.createVisual=function(){var t=this,e=this.series.visual;e?(this.visual=e({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:function(){return t.segmentVisual(),t.visual}}),this.visual&&!kf(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},e.prototype.segmentVisual=function(){var t=this.options,e=this.series,n=e.color,i=e._defaults;Iu(n)&&i&&(n=i.color);var r=l.Path.fromPoints(this.points(),{stroke:{color:n,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&r.close(),this.visual=r},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(Jf);Vf(Av,{closed:!1}
1);var Ov=Av;function Pv(t,e,n,i,r){var s=t.box,a=new o.Point;return a[e]=s[e+n],a[i]=s[i+r],a}var Tv={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,n=e.justified,i=e.vertical,r=e.reverse,s=i?lo:ho,a=i?ho:lo,l=r?2:1,h=l,c=Pv(t[0],s,l,a,h),p=[c],u=1;u<t.length;u++){var f=Pv(t[u],s,l,a,h);if(c[s]!==f[s]){var d=new o.Point;d[s]=c[s],d[a]=f[a],p.push(d,f)}c=f}return n?c!==jf(p)&&p.push(c):p.push(Pv(jf(t),s,l,a,r?1:2)),p}},jv=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.points=function(){return this.calculateStepPoints(this.linePoints)},e}(Ov);Bu(jv.prototype,Tv);var Rv=jv,Iv=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.segmentVisual=function(){var t=this.series,e=t._defaults,n=t.color;Iu(n)&&e&&(n=e.color);var i=new Vg(this.options.closed).process(this.points()),r=new l.Path({stroke:{color:n,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});r.segments.push.apply(r.segments,i),this.visual=r},e}(Ov),zv={renderSegments:function(){var t,e=this.seriesPoints,n=this.options.series,i=e.length;this._segments=[];for(var r=0;r<i;r++){for(var o=n[r],s=this.sortPoints(e[r]),a=s.length,l=[],h=0;h<a;h++){var c=s[h];c?l.push(c):this.seriesMissingValues(o)!==iv&&(l.length>1&&(t=this.createSegment(l,o,r,t),this._addSegment(t)),l=[])}l.length>1&&(t=this.createSegment(l,o,r,t),this._addSegment(t))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(t){this._segments.push(t),t.parent=this},sortPoints:function(t){return t},seriesMissingValues:function(t){var e=t.missingValues;return!e&&this.options.isStacked?nv:e||iv},getNearestPoint:function(t,e,n){for(var i,r=new Uf(t,e),o=this.seriesPoints[n],s=to,a=0;a<o.length;a++){var l=o[a];if(l&&kf(l.value)&&null!==l.value&&!1!==l.visible){var h=l.box.center().distanceTo(r);h<s&&(i=l,s=h)}}return i}},Ev=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setup=function(){this._setEnd(this.options.box.x1)},e.prototype.step=function(t){var e=this.options.box;this._setEnd(yf(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,n=e.segments,i=n[1].anchor(),r=n[2].anch
1or();e.suspend(),i.setX(t),e.resume(),r.setX(t)},e}(l.Animation);Vf(Ev,{duration:600}),l.AnimationFactory.current.register("clip",Ev);var Lv=Ev;function Bv(t){for(var e=0;e<t.length;e++)if(kf(t[e].zIndex))return!0}var Dv={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),n=l.Path.fromRect(e.toRect());this.visual.clip(n),this.animation=new Lv(n,{box:e}),Bv(this.options.series)&&this._setChildrenAnimation(n)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),n=0;n<e.length;n++){var i=e[n];i&&i.visual&&kf(i.visual.options.zIndex)&&i.visual.clip(t)}}},Fv=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return Mv},e.prototype.createPoint=function(t,e){var n=e.categoryIx,i=e.category,r=e.series,o=e.seriesIx,s=this.seriesMissingValues(r),a=t.valueFields.value;if(!kf(a)||null===a){if(s!==nv)return null;a=0}var l=this.pointOptions(r,o);l=this.evalPointOptions(l,a,i,n,r,o);var h=t.fields.color||r.color;Iu(r.color)&&(h=l.color);var c=new Mv(a,l);return c.color=h,this.append(c),c},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var n=this.categoryPoints[t.categoryIx],i=0;i<n.length;i++){var r=n[i];if(t===r)break;e+=this.plotValue(r),this.options.isStacked100&&(e=Math.min(e,1))}return[e,e]},e.prototype.createSegment=function(t,e,n){var i=e.style;return new("step"===i?Rv:"smooth"===i?Iv:Ov)(t,e,n)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],n=0;n<t.length;n++)e.push((t[n]||{}).marker);return e.concat(this._segments)},e}(wv);Bu(Fv.prototype,zv,Dv);var Vv=Fv,Nv=function(t){function e(e,n,i,r,o){t.call(this,e,n,i),this.prevSegment=r,this.stackPoints=o}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createVisual=function(){var t=this.series,e=t._defaults,n=t.line||{},i=t.color;Iu(i)&&e&&(i=e.color),this.visual=new l.Group({zIndex:t.zIndex}),this.createFill({fill:{color:i,opacity:t.opacity},stroke:null}),n.width>0&&!1!==n.visible&&this.createStroke({stroke:Bu({color:i,opacity:t.opacity,lineCap:"butt"},n)})},e.prototype.strokeSegments=function(){var t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t},e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.points())},e.prototype.stackSegments=function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()},e.prototype.segmentsFromPoints=function(t){return t.map(function(t){return new o.Segment(t)})},e.prototype.createStroke=function(t){var e=new l.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),this.visual.append(e)},e.prototype.hasStackSegment=function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length},e.prototype.createFill=function(t){var e=this.strokeSegments(),n=e.slice(0),i=this.hasStackSegment();if(i){var r=this.stackSegments();Cf(n,r)}var o=new l.Path(t);o.segments.push.apply(o.segments,n),!i&&e.length>1&&this.fillToAxes(o),this.visual.append(o)},e.prototype.fillToAxes=function(t){var e=this.parent,n=e.options.invertAxes,i=e.seriesValueAxis(this.series),r=e.categoryAxisCrossingValue(i),o=i.getSlot(r,r,!0),s=this.strokeSegments(),a=s[0].anchor(),l=jf(s).anchor(),h=n?o.x1:o.y1;n?t.lineTo(h,l.y).lineTo(h,a.y):t.lineTo(l.x,h).lineTo(a.x,h)},e}(Ov),Hv=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(Nv);Bu(Hv.prototype,Tv);var Uv=Hv,Gv=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createStrokeSegments=function(){var t=new Vg(this.options.closed),e=this.points();return t.process(e)},e.prototype.createStackSegments=function(){for(var t=this.strokeSegments(),e=[],n=t.length-1;n>=0;n--){var i=t[n];e.push(new o.Segment(i.anchor(),i.controlOut(),i.controlIn()))}return e},e}(Nv),qv=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createSegment=function(t,e,n,i){var r,o,s=(e.line||{}).style;return this.options.isStacked&&n>0&&i&&("gap"!==this.seriesMissingValues(e)?(o=i.linePoints,r=i):o=this._gapStackPoints(t,n,s)),new("step"===s?Uv:"smooth"===s?Gv:Nv)(t,e,n,r,o)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var n=this._stackPoints;if(n)for(var i=0;i<n.length;i++){var r=n[i],o=this.categoryAxis.getSlot(r.categoryIx);r.reflow(o)}},e.prototype._gapStackPoints=function(t,e,n){var i=this.seriesPoints,r=t[0].categoryIx,o=t.length;r<0&&(r=0,o--);var s=r+o,a=this.seriesOptions[0]._outOfRangeMinPoint?1:0,l=[];this._stackPoints=this._stackPoints||[];for(var h=r;h<s;h++){var c=h+a,p=e,u=void 0;do{u=i[--p][c]}while(p>0&&!u);if(u)"step"!==n&&h>r&&!i[p][c-1]&&l.push(this._previousSegmentPoint(h,c,c-1,p)),l.push(u),"step"!==n&&h+1<s&&!i[p][c+1]&&l.push(this._previousSegmentPoint(h,c,c+1,p));else{var f=this._createGapStackPoint(h);this._stackPoints.push(f),l.push(f)}}return l},e.prototype._previousSegmentPoint=function(t,e,n,i){for(var r,o=this.seriesPoints,s=i;s>0&&!r;)r=o[--s][n];return r?r=o[s][e]:(r=this._createGapStackPoint(t),this._stackPoints.push(r)),r},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),n=new Mv(0,e);return n.categoryIx=t,n.series={},n},e.prototype.seriesMissingValues=function(t){return t.missingValues||nv},e}(Vv),$v=function(t){function e(){t.call(this),this.axisRanges={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.update=function(t){var e=this.axisRanges;for(var n in t){var i=t[n],r=e[n];e[n]=r=r||{min:to,max:eo},r.min=Math.min(r.min,i.min),r.max=Math.max(r.max,i.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(mo),Xv=function(t){function e(e,n,i){t.call(this,n),this.textBox=new fd(e,this.options,i),this.append(this.textBox)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createVisual=function(){this.textBox.options.noclip=this.options.noclip},e.prototype.reflow=function(t){var e=this.options,n=e.vertical,i=e.aboveAxis,r=this.children[0],o=r.options,s=r.box,a=r.options.padding,l=t;o.align=n?Xr:Qr,o.vAlign=n?oo:Xr,"insideEnd"===e.position?n?(o.vAlign=oo,!i&&s.height()<t.height()&&(o.vAlign=$r)):o.align=i?io:Qr:e.position===Xr?(o.vAlign=Xr,o.align=Xr):"insideBase"===e.position?n?o.vAlign=i?$r:oo:o.align=i?Qr:io:"outsideEnd"===e.position&&(n?l=i?new qf(t.x1,t.y1-s.height(),t.x2,t.y1):new qf(t.x1,t.y2,t.x2,t.y2+s.height()):(o.align=Xr,l=i?new qf(t.x2,t.y1,t.x2+s.width(),t.y2):new qf(t.x1-s.width(),t.y1,t.x1,t.y2))),e.rotation||(n?a.left=a.right=(l.width()-r.contentBox.width())/2:a.top=a.bottom=(l.height()-r.contentBox.height())/2),r.reflow(l)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?ho:lo,n=e+"1",i=e+"2",r=this.parent.box;if(r[n]<t[n]||t[i]<r[i]){var o=this.children[0].paddingBox.clone();o[n]=Math.max(r[n],t[n]),o[i]=Math.min(r[i],t[i]),this.reflow(o)}},e}(Jf);Vf(Xv,{position:"outsideEnd",margin:Uu(3),padding:Uu(4),color:qr,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:"fadeIn",delay:600},zIndex:2});var Wv=Xv;function Yv(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var Zv=function(t){function e(e,n){t.call(this),this.options=n,this.color=n.color||ao,this.aboveAxis=Bf(this.options.aboveAxis,!0),this.value=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))},e.prototype.createLabel=function(){var t=this.options,e=t.labels;if(e.visible){var n,i=this.pointData(),r=lf(e);n=r?r(i):this.formatValue(e.format),this.label=new Wv(n,Bu({vertical:t.vertical},e),i),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;if(this.box=t,e&&(e.options.aboveAxis=this.aboveAxis,e.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(var n=0;n<this.errorBars.length;n++)this.errorBars[n].reflow(t)},e.prototype.createVisual=function(){var e=this,n=this.box,i=this.options,r=i.visual;if(!1!==this.visible)if(t.prototype.createVisual.call(this),r){var o=this.rectVisual=r({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:n.toRect(),createVisual:function(){var t=new l.Group;return e.createRect(t),t},options:i});o&&this.visual.append(o)}else n.width()>0&&n.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,n=e.border,i=kf(n.opacity)?n.opacity:e.opacity,r=this.box.toRect();
1r.size.width=Math.round(r.size.width);var o=this.rectVisual=l.Path.fromRect(r,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:n.width,opacity:i,dashType:n.dashType}}),s=this.box.width(),a=this.box.height();if((e.vertical?s:a)>6&&(Ou(o),(s<1||a<1)&&(o.options.stroke.lineJoin="round")),t.append(o),Yv(e)){var h=this.createGradientOverlay(o,{baseColor:this.color},Bu({end:e.vertical?void 0:[0,1]},e.overlay));t.append(h)}},e.prototype.createHighlight=function(t){return Ou(l.Path.fromRect(this.box.toRect(),t))},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.getBorderColor=function(){var t=this.color,e=this.options.border,n=e._brightness||.8,i=e.color;return kf(i)||(i=new Xo(t).brightness(n).toHex()),i},e.prototype.tooltipAnchor=function(){var t,e,n=this.options,i=this.box,r=this.aboveAxis,o=this.owner.pane.clipBox()||i,s=Qr,a=oo;if(n.vertical)t=Math.min(i.x2,o.x2)+5,r?e=Math.max(i.y1,o.y1):(e=Math.min(i.y2,o.y2),a=$r);else{var l=Math.max(i.x1,o.x1),h=Math.min(i.x2,o.x2);n.isStacked?(a=$r,r?(s=io,t=h):t=l,e=Math.max(i.y1,o.y1)-5):(r?t=h+5:(t=l-5,s=io),e=Math.max(i.y1,o.y1))}return{point:new Uf(t,e),align:{horizontal:s,vertical:a}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(Jf);Bu(Zv.prototype,Cv),Bu(Zv.prototype,Sv),Zv.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Jv=Zv;function Kv(t,e){t.forEach(e)}function Qv(t,e){for(var n=t.length,i=n-1;i>=0;i--)e(t[i],i-n-1)}var ty=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Qv:Kv}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){var e=this.options,n=e.vertical,i=e.gap,r=e.spacing,o=this.children,s=o.length,a=n?ho:lo,l=s+i+r*(s-1),h=(n?t.height():t.width())/l,c=t[a+1]+h*(i/2);this.forEach(o,function(e,n){var i=(e.box||t).clone();i[a+1]=c,i[a+2]=c+h,e.reflow(i),n<s-1&&(c+=h*r),c+=h})},e}(Jf);Vf(ty,{vertical:!1,gap:0,spacing:0});var ey=ty,ny=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?lo:ho,n=this.children,i=n.length,r=this.box=new qf,o=0;o<i;o++){var s=n[o];if(!1!==s.visible){var a=s.box.clone();a.snapTo(t,e),0===o&&(r=this.box=a.clone()),s.reflow(a),r.wrap(a)}}},e}(Jf);Vf(ny,{vertical:!0});var iy=ny,ry=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Jv},e.prototype.clusterType=function(){return ey},e.prototype.stackType=function(){return iy},e.prototype.stackLimits=function(e,n){return t.prototype.stackLimits.call(this,e,n)},e.prototype.createPoint=function(t,e){var n=e.categoryIx,i=e.category,r=e.series,o=e.seriesIx,s=this.options,a=this.children,l=s.isStacked,h=this.pointValue(t),c=this.pointOptions(r,o),p=c.labels;l&&"outsideEnd"===p.position&&(p.position="insideEnd"),c.isStacked=l;var u=t.fields.color||r.color;h<0&&c.negativeColor&&(u=c.negativeColor),c=this.evalPointOptions(c,h,i,n,r,o),Iu(r.color)&&(u=c.color);var f=new(this.pointType())(h,c);f.color=u;var d=a[n];return d||(d=new(this.clusterType())({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}
1),this.append(d)),l?this.getStackWrap(r,d).append(f):d.append(f),f},e.prototype.getStackWrap=function(t,e){var n,i=t.stack,r=i&&i.group||i,o=e.children;if(typeof r===ro){for(var s=0;s<o.length;s++)if(o[s]._stackGroup===r){n=o[s];break}}else n=o[0];return n||((n=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=r,e.append(n)),n},e.prototype.categorySlot=function(t,e,n){var i=this.options,r=t.getSlot(e),o=n.startValue();if(i.isStacked){var s=n.getSlot(o,o,!0),a=i.invertAxes?lo:ho;r[a+1]=r[a+2]=s[a+1]}return r},e.prototype.reflowCategories=function(t){for(var e=this.children,n=e.length,i=0;i<n;i++)e[i].reflow(t[i])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),Bv(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var n=t[e],i=n.visual;i&&kf(i.options.zIndex)&&(n.options.animation=this.options.animation,n.createAnimation())}},e.prototype._setAnimationOptions=function(){var t,e=this.options,n=e.animation||{};if(e.isStacked){var i=this.seriesValueAxis(e.series[0]);t=i.getSlot(i.startValue())}else t=this.categoryAxis.getSlot(0);n.origin=new o.Point(t.x1,t.y1),n.vertical=!e.invertAxes},e}(wv);Vf(ry,{animation:{type:rv}});var oy=ry,sy=function(t){function e(e,n){t.call(this,n),this.value=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){var e=this.value,n=this.owner.seriesValueAxis(this.options),i=n.getSlot(e.open,e.close),r=n.getSlot(e.low,e.high);i.x1=r.x1=t.x1,i.x2=r.x2=t.x2,this.realBody=i;var o=r.center().x,s=[];s.push([[o,r.y1],[o,i.y1]]),s.push([[o,i.y2],[o,r.y2]]),this.lines=s,this.box=r.clone().wrap(i),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()},e.prototype.reflowNote=function(){this.note&&this.note.reflow(this.box)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()},e.prototype.mainVisual=function(t){var e=new l.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var n=l.Path.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&n.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:Bf(e.border.opacity,e.opacity)}),Ou(n),t.append(n),Yv(e)&&t.append(this.createGradientOverlay(n,{baseColor:this.color},Bu({end:e.vertical?void 0:[0,1]},e.overlay)))},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.lines,e.line)},e.prototype.drawLines=function(t,e,n,i){if(n)for(var r={stroke:{color:i.color||this.color,opacity:Bf(i.opacity,e.opacity),width:i.width,dashType:i.dashType,lineCap:"butt"}},o=0;o<n.length;o++){var s=l.Path.fromPoints(n[o],r);Ou(s),t.append(s)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return kf(e)||(e=new Xo(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=l.Path.fromRect(this.box.toRect(),{fill:{color:ao,opacity:0},stroke:null});this.visual.append(t)},e.prototype.createHighlight=function(){var t=this.options.highlight,e=this.color;this.color=t.color||this.color;var n=this.mainVisual(Bu({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=e,n},e.prototype.highlightVisual=function(){return this._mainVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}},e.prototype.tooltipAnchor=function(){var t=this.box,e=this.owner.pane.clipBox()||t;return{point:new Uf(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:Qr,vertical:oo}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(Jf);Vf(sy,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),Bu(sy.prototype,Cv),Bu(sy.prototype,Sv);var ay=sy;function ly(t){return $g(t)===t.length}var hy=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,n=e.length,i=0;i<n;i++)e[i].reflow(t[i])},e.prototype.addValue=function(t,e){var n,i=e.categoryIx,r=e.category,o=e.series,s=e.seriesIx,a=this.children,l=this.options,h=t.valueFields,c=ly(this.splitValue(h)),p=o.data[i],u=this.categoryPoints[i];u||(this.categoryPoints[i]=u=[]),c&&(n=this.createPoint(t,e));var f=a[i];f||(f=new ey({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),n&&(this.updateRange(h,e),f.append(n),n.categoryIx=i,n.category=r,n.series=o,n.seriesIx=s,n.owner=this,n.dataItem=p,n.noteText=t.fields.noteText),this.points.push(n),u.push(n)},e.prototype.pointType=function(){return ay},e.prototype.createPoint=function(t,e){var n=e.categoryIx,i=e.category,r=e.series,o=e.seriesIx,s=this.pointType(),a=t.valueFields,l=Bu({},r),h=t.fields.color||r.color;l=this.evalPointOptions(l,a,i,n,r,o),"candlestick"===r.type&&a.open>a.close&&(h=t.fields.downColor||r.downColor||r.color),Iu(r.color)&&(h=l.color),l.vertical=!this.options.invertAxes;var c=new s(a,l);return c.color=h,c},e.prototype.splitValue=function(t){return[t.low,t.open,t.close,t.high]},e.prototype.updateRange=function(t,e){var n=e.series.axis,i=this.splitValue(t),r=this.valueAxisRanges[n];r=this.valueAxisRanges[n]=r||{min:to,max:eo}
1,r=this.valueAxisRanges[n]={min:Math.min.apply(Math,i.concat([r.min])),max:Math.max.apply(Math,i.concat([r.max]))}},e.prototype.formatPointValue=function(t,e){var n=t.value;return this.chartService.format.auto(e,n.open,n.high,n.low,n.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(wv);Bu(hy.prototype,Dv);var cy=hy,py=function(t){function e(e,n){t.call(this,e,n),this.createNote()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){var e,n,i=this.value,r=this.owner.seriesValueAxis(this.options);this.boxSlot=n=r.getSlot(i.q1,i.q3),this.realBody=n,this.reflowBoxSlot(t),this.whiskerSlot=e=r.getSlot(i.lower,i.upper),this.reflowWhiskerSlot(t);var o=r.getSlot(i.median);if(i.mean){var s=r.getSlot(i.mean);this.meanPoints=this.calcMeanPoints(t,s)}this.whiskerPoints=this.calcWhiskerPoints(n,e),this.medianPoints=this.calcMedianPoints(t,o),this.box=e.clone().wrap(n),this.reflowNote()},e.prototype.reflowBoxSlot=function(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2},e.prototype.calcMeanPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.calcWhiskerPoints=function(t,e){var n=e.center().x;return[[[n-5,e.y1],[n+5,e.y1],[n,e.y1],[n,t.y1]],[[n-5,e.y2],[n+5,e.y2],[n,e.y2],[n,t.y2]]]},e.prototype.calcMedianPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.renderOutliers=function(t){for(var e=this.value,n=e.outliers||[],i=3*Math.abs(e.q3-e.q1),r=[],o=t.markers||{},s=0;s<n.length;s++){var a=n[s],l=Bu({},(o=a<e.q3+i&&a>e.q1-i?t.outliers:t.extremes).border);kf(l.color)||(l.color=kf(this.color)?this.color:new Xo(o.background).brightness(.8).toHex());var h=new ed({type:o.type,width:o.size,height:o.size,rotation:o.rotation,background:o.background,border:l,opacity:o.opacity});h.value=a,r.push(h)}return this.reflowOutliers(r),r},e.prototype.reflowOutliers=function(t){for(var e=this.owner.seriesValueAxis(this.options),n=this.box.center(),i=0;i<t.length;i++){var r=e.getSlot(t[i].value);this.options.vertical?r.move(n.x):r.move(void 0,n.y),this.box=this.box.wrap(r),t[i].reflow(r)}},e.prototype.mainVisual=function(e){for(var n=t.prototype.mainVisual.call(this,e),i=this.renderOutliers(e),r=0;r<i.length;r++){var o=i[r].getElement();o&&n.append(o)}return n},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.whiskerPoints,e.whiskers),this.drawLines(t,e,this.medianPoints,e.median),this.drawLines(t,e,this.meanPoints,e.mean)},e.prototype.getBorderColor=function(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:t.prototype.getBorderColor.call(this)},e}(ay);Vf(py,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:ao,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:Wr,background:ao,border:{width:2,opacity:1},opacity:0}}),Bu(py.prototype,Cv);var uy=py,fy=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflowBoxSlot=function(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2},e.prototype.calcMeanPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e.prototype.calcWhiskerPoints=function(t,e){var n=e.center().y;return[[[e.x1,n-5],[e.x1,n+5],[e.x1,n],[t.x1,n]],[[e.x2,n-5],[e.x2,n+5],[e.x2,n],[t.x2,n]]]},e.prototype.calcMedianPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e}(uy),dy=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.addValue=function(t,e){var n,i=e.categoryIx,r=e.category,o=e.series,s=e.seriesIx,a=this.children,l=this.options,h=t.valueFields,c=ly(this.splitValue(h)),p=o.data[i],u=this.categoryPoints[i];u||(this.categoryPoints[i]=u=[]),c&&(n=this.createPoint(t,e));var f=a[i];f||(f=new ey({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),n&&(this.updateRange(h,e),f.append(n),n.categoryIx=i,n.category=r,n.series=o,n.seriesIx=s,n.owner=this,n.dataItem=p),this.points.push(n),u.push(n)},e.prototype.pointType=function(){return this.options.invertAxes?fy:uy},e.prototype.splitValue=function(t){return[t.lower,t.q1,t.median,t.q3,t.upper]},e.prototype.updateRange=function(t,e){var n=e.series.axis,i=this.valueAxisRanges[n],r=this.splitValue(t).concat(this.filterOutliers(t.outliers));kf(t.mean)&&(r=r.concat(t.mean)),i=this.valueAxisRanges[n]=i||{min:to,max:eo},i=this.valueAxisRanges[n]={min:Math.min.apply(Math,r.concat([i.min])),max:Math.max.apply(Math,r.concat([i.max]))}},e.prototype.formatPointValue=function(t,e){var n=t.value;return this.chartService.format.auto(e,n.lower,n.q1,n.median,n.q3,n.upper,n.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,n=[],i=0;i<e;i++){var r=t[i];kf(r)&&null!==r&&n.push(r)}return n},e}(cy),gy=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getAxis=function(){var t=this.chart.seriesAxe
1s(this.series);return this.isVertical?t.y:t.x},e}(vv);function vy(t){return kf(t)&&null!==t}var yy=function(t){function e(e,n){t.call(this,n),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._initFields=function(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]},e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.addErrorBar=function(t,e,n){var i,r=t.value[e],o=e+"Value",s=n.seriesIx,a=n.series,l=t.options.errorBars,h=n[e+"ErrorLow"],c=n[e+"ErrorHigh"];Tu(r)&&(Tu(h)&&Tu(c)&&(i={low:h,high:c}),l&&kf(l[o])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][s]=this.seriesErrorRanges[e][s]||new tv(l[o],a,e),i=this.seriesErrorRanges[e][s].getErrorRange(r,l[o])),i&&this.addPointErrorBar(i,t,e))},e.prototype.addPointErrorBar=function(t,e,n){var i=t.low,r=t.high,o=e.series,s=e.options.errorBars,a=n===ho,l={};e[n+"Low"]=i,e[n+"High"]=r,e.errorBars=e.errorBars||[];var h=new gy(i,r,a,this,o,s);e.errorBars.push(h),e.append(h),l[n]=i,this.updateRange(l,o),l[n]=r,this.updateRange(l,o)},e.prototype.addValue=function(t,e){var n,i=t.x,r=t.y,o=e.seriesIx,s=this.seriesMissingValues(this.options.series[o]),a=this.seriesPoints[o],l=t;vy(i)&&vy(r)||(l=this.createMissingValue(l,s)),l&&((n=this.createPoint(l,e))&&(Object.assign(n,e),this.addErrorBar(n,lo,e),this.addErrorBar(n,ho,e)),this.updateRange(l,e.series)),this.points.push(n),a.push(n)},e.prototype.seriesMissingValues=function(t){return t.missingValues},e.prototype.createMissingValue=function(){},e.prototype.updateRange=function(t,e){var n=this.chartService.intl,i=e.xAxis,r=e.yAxis,o=t.x,s=t.y,a=this.xAxisRanges[i],l=this.yAxisRanges[r];vy(o)&&(a=this.xAxisRanges[i]=a||{min:to,max:eo},ju(o)&&(o=tg(n,o)),a.min=Math.min(a.min,o),a.max=Math.max(a.max,o)),vy(s)&&(l=this.yAxisRanges[r]=l||{min:to,max:eo},ju(s)&&(s=tg(n,s)),l.min=Math.min(l.min,s),l.max=Math.max(l.max,s))},e.prototype.evalPointOptions=function(t,e,n){var i=n.series,r=n.seriesIx,o={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[r];kf(s)||(this._evalSeries[r]=s=xv(t,{},o,!0));var a=t;return s&&xv(a=Bu({},t),{value:e,series:i,dataItem:n.dataItem},o),a},e.prototype.pointType=function(){return Mv},e.prototype.pointOptions=function(t,e){var n=this.seriesOptions[e];if(!n){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=n=Bu({},i,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return n},e.prototype.createPoint=function(t,e){var n=e.series,i=this.pointOptions(n,e.seriesIx),r=e.color||n.color;i=this.evalPointOptions(i,t,e),Iu(n.color)&&(r=i.color);var o=new Mv(t,i);return o.color=r,this.append(o),o},e.prototype.seriesAxes=function(t){var e=t.xAxis,n=t.yAxis,i=this.plotArea,r=e?i.namedXAxes[e]:i.axisX,o=n?i.namedYAxes[n]:i.axisY;if(!r)throw new Error("Unable to locate X axis with name "+e);if(!o)throw new Error("Unable to locate Y axis with name "+n);return{x:r,y:o}},e.prototype.reflow=function(t){var e=this,n=this.points,i=!this.options.clip,r=0;this.traverseDataPoints(function(t,o){var s=n[r++],a=e.seriesAxes(o.series),l=a.x.getSlot(t.x,t.x,i),h=a.y.getSlot(t.y,t.y,i);if(s)if(l&&h){var c=e.pointSlot(l,h);s.reflow(c)}else s.visible=!1}),this.box=t},e.prototype.pointSlot=function(t,e){return new qf(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,n=this.seriesPoints,i=0;i<e.length;i++){var r=e[i];n[i]||(n[i]=[]);for(var o=0;o<r.data.length;o++){var s=this._bindPoint(r,i,o);t(s.valueFields,Bu({pointIx:o,series:r,seriesIx:i,dataItem:r.data[o],owner:this},s.fields))}}},e.prototype.formatPointValue=function(t,e){var n=t.value;return this.chartService.format.auto(e,n.x,n.y)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],n=0;n<t.length;n++)e.push((t[n]||{}).marker);return e},e}(Jf);Vf(yy,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),Bu(yy.prototype,Dv,{_bindPoint:wv.prototype._bindPoint});var my=yy,xy=function(t){function e(e,n){t.call(this,e,n),this.category=e.category}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createHighlight=function(){var t=this.options.highlight,e=t.border,n=this.options.markers,i=this.box.center(),r=(n.size+n.border.width+e.width)/2,s=new l.Group,a=new l.Cir
1cle(new o.Circle([i.x,i.y+r/5+e.width/2],r+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:n.background,stops:[{offset:0,color:n.background,opacity:.3},{offset:1,color:n.background,opacity:0}]})}),h=new l.Circle(new o.Circle([i.x,i.y],r),{stroke:{color:e.color||new Xo(n.background).brightness(.8).toHex(),width:e.width,opacity:e.opacity},fill:{color:n.background,opacity:t.opacity}});return s.append(a,h),s},e}(Mv);xy.prototype.defaults=Bu({},xy.prototype.defaults,{labels:{position:Xr},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),xy.prototype.defaults.highlight.zIndex=void 0;var by=xy,_y=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._initFields=function(){this._maxSize=eo,t.prototype._initFields.call(this)},e.prototype.addValue=function(e,n){null!==e.size&&(e.size>0||e.size<0&&n.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(e.size)),t.prototype.addValue.call(this,e,n)):(this.points.push(null),this.seriesPoints[n.seriesIx].push(null))},e.prototype.reflow=function(e){this.updateBubblesSize(e),t.prototype.reflow.call(this,e)},e.prototype.pointType=function(){return by},e.prototype.createPoint=function(t,e){var n=e.series,i=e.pointIx*(600/n.data.length),r={delay:i,duration:600-i,type:"bubble"},o=e.color||n.color;t.size<0&&n.negativeValues.visible&&(o=Bf(n.negativeValues.color,o));var s=Bu({labels:{animation:{delay:i,duration:600-i}}},this.pointOptions(n,e.seriesIx),{markers:{type:Wr,border:n.border,opacity:n.opacity,animation:r}});s=this.evalPointOptions(s,t,e),Iu(n.color)&&(o=s.color),s.markers.background=o;var a=new by(t,s);return a.color=o,this.append(a),a},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,n=Math.min(t.width(),t.height()),i=0;i<e.length;i++)for(var r=e[i],o=this.seriesPoints[i],s=(r.minSize||Math.max(.02*n,10))/2,a=(r.maxSize||.2*n)/2,l=Math.PI*s*s,h=(Math.PI*a*a-l)/this._maxSize,c=0;c<o.length;c++){var p=o[c];if(p){var u=Math.abs(p.value.size)*h,f=Math.sqrt((l+u)/Math.PI),d=Bf(p.options.zIndex,0)+(1-f/a);Bu(p.options,{zIndex:d,markers:{size:2*f,zIndex:d},labels:{zIndex:d+1}})}}},e.prototype.formatPointValue=function(t,e){var n=t.value;return this.chartService.format.auto(e,n.x,n.y,n.size,t.category)},e.prototype.createAnimation=function(){},e.prototype.createVisual=function(){},e}(my);Vf(_y,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var wy=_y,Cy=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(ed);Bu(Cy.prototype,Cv);var Sy=Cy,ky=function(t){function e(e,n){t.call(this,n),this.aboveAxis=this.options.aboveAxis,this.color=n.color||ao,this.value=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){var t=this.options;this._rendered||(this._rendered=!0,kf(this.value.target)&&(this.target=new Sy({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:oo,align:io}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createNote())},e.prototype.reflow=function(t){this.render();var e=this.options,n=this.target,i=this.owner,r=e.invertAxes,o=i.seriesValueAxis(this.options),s=i.categorySlot(i.categoryAxis,e.categoryIx,o),a=o.getSlot(this.value.target),l=r?a:s,h=r?s:a;if(n){var c=new qf(l.x1,h.y1,l.x2,h.y2);n.options.height=r?c.height():e.target.line.width,n.options.width=r?e.target.line.width:c.width(),n.reflow(c)}this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,n=l.Path.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&n.options.set("stroke",{color:e.border.color||this.color,width:e.border.width,dashType:e.border.dashType,opacity:Bf(e.border.opacity,e.opacity)}),this.bodyVisual=n,Ou(n),this.visual.append(n)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=l.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return l.Path.fromRect(this.box.toRect(),t)},e.prototype.highlightVisual=function(){return this.bodyVisual},e.prototype.highlightVisualArgs=function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(Jf);ky.prototype.tooltipAnchor=Jv.prototype.tooltipAnchor,Vf(ky,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}<br />Target: {1}"}}),Bu(ky.prototype,Cv),Bu(ky.prototype,Sv);var My=ky,Ay=function(t){function e(e,n){!function(t){for(var e=t.series,n=0;n<e.length;n++){var i=e[n],r=i.data;!r||co(r[0])||Du(r[0])||(i.data=[r])}}(n),t.call(this,e,n)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,n=e.length,i=0;i<n;i++)e[i].reflow(t[i])},e.prototype.plotRange=function(t){var e=this.seriesValueAxis(t.series),n=this.categoryAxisCrossingValue(e);return[n,t.value.current||n]},e.prototype.createPoint=function(t,e){var n=e.categoryIx,i=e.category,r=e.series,o=e.seriesIx,s=this.options,a=this.children,l=t.valueFields,h=Bu({vertical:!s.invertAxes,overlay:r.overlay,categoryIx:n,invertAxes:s.invertAxes},r),c=t.fields.color||r.color;h=this.evalPointOptions(h,l,i,n,r,o),Iu(r.color)&&(c=h.color);var p=new My(l,h);p.color=c;var u=a[n];return u||(u=new ey({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(u)),u.append(p),p},e.prototype.updateRange=function(t,e){var n=t.current,i=t.target,r=e.series.axis,o=this.valueAxisRanges[r];
1kf(n)&&!isNaN(n)&&kf(i&&!isNaN(i))&&((o=this.valueAxisRanges[r]=o||{min:to,max:eo}).min=Math.min(o.min,n,i),o.max=Math.max(o.max,n,i))},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value.current,t.value.target)},e.prototype.pointValue=function(t){return t.valueFields.current},e.prototype.aboveAxis=function(t){return t.value.current>0},e.prototype.createAnimation=function(){var t=this.points;this._setAnimationOptions();for(var e=0;e<t.length;e++){var n=t[e];n.options.animation=this.options.animation,n.createAnimation()}},e}(wv);Ay.prototype._setAnimationOptions=oy.prototype._setAnimationOptions,Vf(Ay,{animation:{type:rv}});var Oy=Ay,Py=function(t){function e(e,n){t.call(this),this.chartService=e,this.options=Bu({},this.options,n)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getStyle=function(t,e){var n=t.background,i=t.border.color;if(e){var r=e.color||e.options.color;n=Bf(n,r),i=Bf(i,r)}var o=Uu(t.padding||{},"auto");return{backgroundColor:n,borderColor:i,font:t.font,color:t.color,opacity:t.opacity,borderWidth:Fu(t.border.width),paddingTop:Fu(o.top),paddingBottom:Fu(o.bottom),paddingLeft:Fu(o.left),paddingRight:Fu(o.right)}},e.prototype.show=function(t,e,n){t.format=e.format;var i=this.getStyle(e,n);t.style=i,!kf(e.color)&&new Xo(i.backgroundColor).percBrightness()>180&&(t.className="k-chart-tooltip-inverse"),this.chartService.notify("showTooltip",t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify("hideTooltip"),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(mo);Vf(Py,{border:{width:1},opacity:1});var Ty=Py,jy=function(t){function e(e,n,i){t.call(this,e,i),this.crosshair=n,this.formatService=e.format,this.initAxisName()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initAxisName=function(){var t=this.crosshair.axis;this.axisName=t.plotArea.categoryAxis?t.getCategory?"categoryAxis":"valueAxis":t.options.vertical?"yAxis":"xAxis"},e.prototype.showAt=function(t){var e=this.crosshair.axis,n=this.options,i=e[n.stickyMode?"getCategory":"getValue"](t),r=i;n.format?r=this.formatService.auto(n.format,i):e.options.type===Zr&&(r=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],i)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:r,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},e.prototype.hide=function(){this.chartService.notify("hideTooltip",{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,n,i=this.crosshair,r=this.options,o=r.position,s=r.padding,a=!i.axis.options.vertical,l=i.line.bbox();return a?(t=Xr,o===$r?(e=oo,n=l.bottomLeft().translate(0,s)):(e=$r,n=l.topLeft().translate(0,-s))):(e=Xr,o===Qr?(t=io,n=l.topLeft().translate(-s,0)):(t=Qr,n=l.topRight().translate(s,0))),{point:n,align:{horizontal:t,vertical:e}}
1},e}(Ty);Vf(jy,{padding:10});var Ry=jy,Iy=function(t){function e(e,n,i){t.call(this,i),this.axis=n,this.stickyMode=n instanceof ig;var r=this.options.tooltip;r.visible&&(this.tooltip=new Ry(e,this,Bu({},r,{stickyMode:this.stickyMode})))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.showAt=function(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)},e.prototype.hide=function(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()},e.prototype.moveLine=function(){var t,e=this.axis,n=this.point,i=e.options.vertical,r=this.getBox(),s=i?ho:lo,a=new o.Point(r.x1,r.y1);if(t=i?new o.Point(r.x2,r.y1):new o.Point(r.x1,r.y2),n)if(this.stickyMode){var l=e.getSlot(e.pointCategoryIndex(n));a[s]=t[s]=l.center()[s]}else a[s]=t[s]=n[s];this.box=r,this.line.moveTo(a).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,n=e.pane.axes,i=n.length,r=e.options.vertical,o=e.lineBox().clone(),s=r?lo:ho,a=0;a<i;a++){var l=n[a];l.options.vertical!==r&&(t?t.wrap(l.lineBox()):t=l.lineBox().clone())}return o[s+1]=t[s+1],o[s+2]=t[s+2],o},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new l.Path({stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),t.prototype.destroy.call(this)},e}(Jf);Vf(Iy,{color:qr,width:2,zIndex:-1,tooltip:{visible:!1}});var zy=Iy,Ey=function(t){function e(e,n){t.call(this,e),this.pane=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.shouldClip=function(){for(var t=this.children,e=t.length,n=0;n<e;n++)if(!0===t[n].options.clip)return!0;return!1},e.prototype._clipBox=function(){return this.pane.chartsBox()},e.prototype.createVisual=function(){if(this.visual=new l.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=l.Path.fromRect(t);Ou(e),this.visual.clip(e),this.unclipLabels()}},e.prototype.stackRoot=function(){return this},e.prototype.unclipLabels=function(){for(var t=this.children,e=this.clipBox,n=0;n<t.length;n++)for(var i=t[n].points||{},r=i.length,o=0;o<r;o++){var s=i[o];if(s&&!1!==s.visible&&s.overlapsBox&&s.overlapsBox(e))if(s.unclipElements)s.unclipElements();else{var a=s.label,l=s.note;a&&a.options.visible&&(a.alignToClipBox&&a.alignToClipBox(e),a.options.noclip=!0),l&&l.options.visible&&(l.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(Jf);Ey.prototype.isStackRoot=!0;var Ly=Ey,By=function(t){function e(e){t.call(this,e),this.id="pane"+Dy++,this.createTitle(),this.content=new Jf,this.chartContainer=new Ly({},this),this.append(this.content),this.axes=[],this.charts=[]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createTitle=function(){var t=this.options.title;Du(t)&&(t=Bu({},t,{align:t.position,position:oo})),this.title=gd.buildTitle(t,this,e.prototype.options.title)},e.prototype.appendAxis=function(t){this.content.append(t),this.axes.push(t),t.pane=this},e.prototype.appendAxisAt=function(t,e){this.content.append(t),this.axes.splice(e,0,t),t.pane=this},e.prototype.appendChart=function(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this},e.prototype.empty=function(){var t=this.parent;if(t){for(var e=0;e<this.axes.length;e++)t.removeAxis(this.axes[e]);for(var n=0;n<this.charts.length;n++)t.removeChart(this.charts[n])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},e.prototype.reflow=function(e){var n;jf(this.children)===this.content&&(n=this.children.pop()),t.prototype.reflow.call(this,e),n&&this.children.push(n),this.title&&(this.contentBox.y1+=this.title.box.height())},e.prototype.visualStyle=function(){var e=t.prototype.visualStyle.call(this);return e.zIndex=-10,e},e.prototype.renderComplete=function(){this.options.visible&&this.createGridLines()},e.prototype.stackRoot=function(){return this},e.prototype.clipRoot=function(){return this},e.prototype.createGridLines=function(){for(var t=this.axes,e=t.concat(this.parent.axes),n=[],i=[],r=0;r<t.length;r++)for(var o=t[r],s=o.options.vertical,a=s?n:i,l=0;l<e.length;l++)if(0===a.length){var h=e[l];
1s!==h.options.vertical&&Cf(a,o.createGridLines(h))}},e.prototype.refresh=function(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()},e.prototype.chartsBox=function(){for(var t=this.axes,e=t.length,n=new qf,i=0;i<e;i++){var r=t[i],o=r.options.vertical?ho:lo,s=r.lineBox();n[o+1]=s[o+1],n[o+2]=s[o+2]}if(0===n.x2)for(var a=this.parent.axes,l=a.length,h=0;h<l;h++){var c=a[h];if(!c.options.vertical){var p=c.lineBox();n.x1=p.x1,n.x2=p.x2}}return n},e.prototype.clipBox=function(){return this.chartContainer.clipBox},e.prototype.notifyRender=function(){var t=this.getService();t&&t.notify("paneRender",{pane:new Gg(this),index:this.paneIndex,name:this.options.name})},e}(Qf),Dy=1;By.prototype.isStackRoot=!0,Vf(By,{zIndex:-1,shrinkToFit:!0,title:{align:Qr},visible:!0});var Fy=By;function Vy(t,e){null!==e&&t.push(e)}function Ny(t,e,n){var i=e.visible;if(kf(i))return i;var r=t.pointVisibility;return r?r[n]:void 0}function Hy(t){for(var e=t.data,n=[],i=0,r=0,o=0;o<e.length;o++){var s=Jg.current.bindPoint(t,o),a=s.valueFields.value;ju(a)&&(a=parseFloat(a)),Tu(a)?(s.visible=!1!==Ny(t,s.fields,o),s.value=Math.abs(a),n.push(s),s.visible&&(i+=s.value),0!==a&&r++):n.push(null)}return{total:i,points:n,count:r}}function Uy(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Gy(t,e){for(var n=[],i=[].concat(e),r=0;r<t.length;r++){var o=t[r];vf(o.type,i)&&n.push(o)}return n}function qy(t,e,n){if(null===e)return e;var i="_date_"+t,r=e[i];return r||(r=tg(n,pf(t)(e)),e[i]=r),r}function $y(t,e){var n=t.type,i=e instanceof Date;return!n&&i||Uy(n,Zr)}function Xy(t){return 1===t.length?t[0]:t}var Wy=/area/i;function Yy(t,e){var n=Jg.current.bindPoint(t,null,e).valueFields;for(var i in n)if(Ru(n[i]))return!0}function Zy(t){var e,n,i=t.dir,r=t.min,o=t.max,s=t.getter,a=t.hasItem,l=t.series,h=t.start;do{a(h+=i)&&(e=Yy(l,(n=s(h)).item))}while(r<=h&&h<=o&&!e);if(e)return n}function Jy(t,e,n,i,r){var o,s,a,l=e.min,h=e.max,c=l>0&&l<n,p=h+1<n;(c||p)&&(function(t){return t.missingValues?t.missingValues:Wy.test(t.type)||t.stack?nv:iv}(t)!==iv?(c&&(o=i(l-1)),p&&(s=i(h+1))):(c&&(o=Yy(t,(a=i(l-1)).item)?a:Zy({start:l,dir:-1,min:0,max:n-1,getter:i,hasItem:r,series:t})),p&&(s=Yy(t,(a=i(h+1)).item)?a:Zy({start:h,dir:1,min:0,max:n-1,getter:i,hasItem:r,series:t}))),o&&(t._outOfRangeMinPoint=o),s&&(t._outOfRangeMaxPoint=s))}var Ky=function(t){function e(e,n,i){t.call(this,n),this.initFields(e,n),this.series=e,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=i,this.originalOptions=n,this.createPanes(),this.render(),this.createCrosshairs()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initFields=function(){},e.prototype.initSeries=function(){for(var t=this.series,e=0;e<t.length;e++)t[e].index=e},e.prototype.createPanes=function(){var t={title:{color:(this.options.title||{}).color}},e=[],n=this.options.panes||[],i=Math.max(n.length,1);function r(t,e){ju(t.title)&&(t.title={text:t.title}),t.title=Bu({},e.title,t.title)}for(var o=0;o<i;o++){var s=n[o]||{};r(s,t);var a=new Fy(s);a.paneIndex=o,e.push(a),this.append(a)}this.panes=e},e.prototype.createCrosshairs=function(t){void 0===t&&(t=this.panes);for(var e=0;e<t.length;e++)for(var n=t[e],i=0;i<n.axes.length;i++){var r=n.axes[i];if(r.options.crosshair&&r.options.crosshair.visible){var o=new zy(this.chartService,r,r.options.crosshair);this.crosshairs.push(o),n.content.append(o)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,n=t.axes,i=e.length-1;i>=0;i--)for(var r=0;r<n.length;r++)if(e[i].axis===n[r]){e.splice(i,1);break}},e.prototype.hideCrosshairs=function(){for(var t=this.crosshairs,e=0;e<t.length;e++)t[e].hide()},e.prototype.findPane=function(t){for(var e,n=this.panes,i=0;i<n.length;i++)if(n[i].options.name===t){e=n[i];break}return e||n[0]},e.prototype.findPointPane=function(t){for(var e,n=this.panes,i=0;i<n.length;
vendor: 6,493 bytes, line 1
1i++)if(n[i].box.containsPoint(t)){e=n[i];break}return e},e.prototype.appendAxis=function(t){this.findPane(t.options.pane).appendAxis(t),this.axes.push(t),t.plotArea=this},e.prototype.removeAxis=function(t){for(var e=[],n=0;n<this.axes.length;n++){var i=this.axes[n];t!==i?e.push(i):i.destroy()}this.axes=e},e.prototype.appendChart=function(t,e){this.charts.push(t),e?e.appendChart(t):this.append(t)},e.prototype.removeChart=function(t){for(var e=[],n=0;n<this.charts.length;n++){var i=this.charts[n];i!==t?e.push(i):i.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,n=this.options.legend,i=n.labels||{},r=n.inactiveItems||{},o=r.labels||{},s=[],a=0;a<e;a++){var l=t[a],h=!1!==l.visible;if(!1!==l.visibleInLegend){var c=l.name,p=h?lf(i):lf(o)||lf(i);p&&(c=p({text:vy(c)?c:"",series:l}));var u=l._defaults,f=l.color;Iu(f)&&u&&(f=u.color);var d=void 0,g=void 0;h?(d={},g=f):(d={color:o.color,font:o.font},g=r.markers.color),vy(c)&&""!==c&&s.push({text:c,labels:d,markerColor:g,series:l,active:h})}}Cf(n.items,s)},e.prototype.groupAxes=function(t){for(var e=[],n=[],i=0;i<t.length;i++)for(var r=t[i].axes,o=0;o<r.length;o++){var s=r[o];s.options.vertical?n.push(s):e.push(s)}return{x:e,y:n,any:e.concat(n)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},n=0;n<t.length;n++){var i=t[n],r=this.seriesPaneName(i);e[r]?e[r].push(i):e[r]=[i]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];!1!==i.visible&&e.push(i)}return e},e.prototype.reflow=function(t){var e=this.panes,n=Uu(this.options.plotArea.margin);this.box=t.clone().unpad(n),this.reflowPanes(),this.detachLabels(),this.reflowAxes(e),this.reflowCharts(e)},e.prototype.redraw=function(t){var e=[].concat(t);this.initSeries();var n=this.getRoot();n&&n.cleanGradients();for(var i=0;i<e.length;i++)this.removeCrosshairs(e[i]),e[i].empty();this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(var r=0;r<e.length;r++)e[r].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var n=t.options,i=[].concat(n.axisCrossingValues||n.axisCrossingValue),r=e.length-i.length,o=i[0]||0,s=0;s<r;s++)i.push(o);return i},e.prototype.alignAxisTo=function(t,e,n,i){var r=t.getSlot(n,n,!0),o=t.options.reverse?2:1,s=e.getSlot(i,i,!0),a=e.options.reverse?2:1,l=t.box.translate(s[lo+a]-r[lo+o],s[ho+a]-r[ho+o]);t.pane!==e.pane&&l.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(l)},e.prototype.alignAxes=function(t,e){for(var n=t[0],i=e[0],r=this.axisCrossingValues(n,e),o=this.axisCrossingValues(i,t),s={},a={},l={},h={},c=0;c<e.length;c++){var p=e[c],u=p.pane,f=u.id,d=!1!==p.options.visible,g=tm(t,u)||n,v=r;g!==n&&(v=this.axisCrossingValues(g,e)),this.alignAxisTo(p,g,o[c],v[c]),p.options._overlap||(Ef(p.lineBox().x1)===Ef(g.lineBox().x1)&&(s[f]&&p.reflow(p.box.alignTo(s[f].box,Qr).translate(-p.options.margin,0)),d&&(s[f]=p)),Ef(p.lineBox().x2)===Ef(g.lineBox().x2)&&(p._mirrored||(p.options.labels.mirror=!p.options.labels.mirror,p._mirrored=!0),this.alignAxisTo(p,g,o[c],v[c]),a[f]&&p.reflow(p.box.alignTo(a[f].box,io).translate(p.options.margin,0)),d&&(a[f]=p)),0!==c&&i.pane===p.pane&&(p.alignTo(i),p.reflow(p.box)))}for(var y=0;y<t.length;y++){var m=t[y],x=m.pane,b=x.id,_=!1!==m.options.visible,w=tm(e,x)||i,C=o;w!==i&&(C=this.axisCrossingValues(w,t)),this.alignAxisTo(m,w,r[y],C[y]),m.options._overlap||(Ef(m.lineBox().y1)===Ef(w.lineBox().y1)&&(m._mirrored||(m.options.labels.mirror=!m.options.labels.mirror,m._mirrored=!0),this.alignAxisTo(m,w,r[y],C[y]),l[b]&&m.reflow(m.box.alignTo(l[b].box,oo).translate(0,-m.options.margin)),_&&(l[b]=m)),Ef(m.lineBox().y2,Yr)===Ef(w.lineBox().y2,Yr)&&(h[b]&&m.reflow(m.box.alignTo(h[b].box,$r).translate(0,m.options.margin)),_&&(h[b]=m)),0!==y&&(m.alignTo(n),m.reflow(m.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,n=Qy(e),i=0,r=0;r<t.length;r++){var o=t[r];o.axes.length>0&&(i=Math.max(i,n.width()-o.contentBox.width()))}if(0!==i)for(var s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.box.shrink(i,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,n=0;n<t.length;n++){var i=t[n],r=i.axes,o=Math.max(0,Qy(r).height()-i.contentBox.height());if(0!==o){for(var s=0;s<r.length;s++){var a=r[s];a.options.vertical&&a.reflow(a.box.shrink(0,o))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,n=0,i=0;i<t.length;i++){var r=t[i],o=r.axes,s=r.contentBox;if(o.length>0){var a=Qy(o),l=Math.max(s.y1-a.y1,s.y2-a.y2);n=Math.max(n,s.x1-a.x1);for(var h=0;h<o.length;h++){var c=o[h];c.reflow(c.box.translate(0,l))}}}for(var p=0;p<e.length;p++){var u=e[p];u.reflow(u.box.translate(n,0))}},e.prototype.reflowAxes=function(t){for(var e=this.groupAxes(t),n=0;n<t.length;n++)this.reflowPaneAxes(t[n]);e.x.length>0&&e.y.length>0&&(this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(e),this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t)&&this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t),this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t)&&this.alignAxes(e.x,e.y),this.fitAxes(t))},e.prototype.autoRotateAxisLabels=function(t){for(var e,n=this.panes,i=em(n),r=0;r<i.length;r++)i[r].autoRotateLabels()&&(e=!0);if(e){for(var o=0;o<n.length;o++)this.reflowPaneAxes(n[o]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(n))}},e.prototype.reflowPaneAxes=function(t){var e=t.axes,n=e.length;if(n>0)for(var i=0;i<n;i++)e[i].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,n=e.length,i=this.box,r=0;r<n;r++){var o=e[r].pane;o&&!vf(o,t)||e[r].reflow(i)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,n=e.length,i=t.height(),r=0,o=t.y1,s=0;s<n;s++){var a=e[s],l=a.options.height;if(a.options.width=t.width(),a.options.height){if(l.indexOf&&l.indexOf("%")){var h=parseInt(l,10)/100;a.options.height=h*t.height()}a.reflow(t.clone()),i-=a.options.height}else r++}for(var c=0;c<n;c++){var p=e[c];p.options.height||(p.options.height=i/r)}for(var u=0;u<n;u++){var f=e[u],d=t.clone().move(t.x1,o);f.reflow(d),o+=f.options.height}},e.prototype.backgroundBox=function(){for(var t,e=this.axes,n=e.length,i=0;i<n;i++)for(var r=e[i],o=0;o<n;o++){var s=e[o];if(r.options.vertical!==s.options.vertical){var a=r.lineBox().clone().wrap(s.lineBox());t=t?t.wrap(a):a}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],n=0;n<t.length;n++)e.push(t[n].chartsBox());return e}
1,e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),n=0;n<e.length;n++)t.paths.push(l.Path.fromRect(e[n].toRect()))},e.prototype.backgroundContainsPoint=function(t){for(var e=this.chartsBoxes(),n=0;n<e.length;n++)if(e[n].containsPoint(t))return!0},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e,n=this.options.plotArea,i=n.opacity,r=n.background,o=n.border;void 0===o&&(o={}),""!==(e=r)&&null!==e&&"none"!==e&&"transparent"!==e&&kf(e)||(r=ao,i=0);var s=this._bgVisual=new l.MultiPath({fill:{color:r,opacity:i},stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType},zIndex:-1});this.addBackgroundPaths(s),this.appendVisual(s)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,n=[];if(null!==t)for(var i=0;i<e.length;i++)if("_navigator"!==e[i].pane.options.name){var r=e[i].categoryPoints[t];if(r&&r.length)for(var o=0;o<r.length;o++){var s=r[o];s&&kf(s.value)&&null!==s.value&&n.push(s)}}return n},e.prototype.pointsBySeriesIndex=function(t){return this.filterPoints(function(e){return e.series.index===t})},e.prototype.pointsBySeriesName=function(t){return this.filterPoints(function(e){return e.series.name===t})},e.prototype.filterPoints=function(t){for(var e=this.charts,n=[],i=0;i<e.length;i++)for(var r=e[i].points,o=0;o<r.length;o++){var s=r[o];s&&!1!==s.visible&&t(s)&&n.push(s)}return n},e.prototype.findPoint=function(t){for(var e=this.charts,n=0;n<e.length;n++)for(var i=e[n].points,r=0;r<i.length;r++){var o=i[r];if(o&&!1!==o.visible&&t(o))return o}},e.prototype.paneByPoint=function(t){for(var e=this.panes,n=0;n<e.length;n++){var i=e[n];if(i.box.containsPoint(t))return i}},e.prototype.detachLabels=function(){var t=this.groupAxes(this.panes),e=t.x,n=t.y;this.detachAxisGroupLabels(n,e),this.detachAxisGroupLabels(e,n)},e.prototype.detachAxisGroupLabels=function(t,e){for(var n=0,i=0;i<t.length;i++){var r=t[i],o=r.pane,s=tm(e,o)||e[0],a=this.createLabelAxis(r,i+n,s);if(a){n++;var l=o.axes.indexOf(r)+n;o.appendAxisAt(a,l)}}},e.prototype.createLabelAxis=function(t,e,n){var i=t.options.labels,r=i.position;if("end"!==r&&"start"!==r||!1===i.visible)return null;var o=this.groupAxes(this.panes),s=this.axisCrossingValues(n,n.options.vertical?o.x:o.y),a="end"===r,l=n.range(),h=a?l.max:l.min;if(Rf(s[e],l.min,l.max)-h==0)return null;s.splice(e+1,0,h),n.options.axisCrossingValues=s;var c=t.clone();return t.clear(),c.options.name=void 0,c.options.line.visible=!1,c.options.crosshair=void 0,c.options.notes=void 0,c.options.plotBands=void 0,c},e}(Jf);function Qy(t){var e,n=t.length;if(n>0)for(var i=0;i<n;i++){var r=t[i].contentBox();e?e.wrap(r):e=r.clone()}return e||new qf}function tm(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i&&i.pane===e)return i}}var em=function(t){return t.reduce(function(t,e){return t.concat(e.axes)},[])};Vf(Ky,{series:[],plotArea:{margin:{}},background:"",border:{color:qr,width:0},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var nm=Ky,im={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function rm(t,e,n){var i=e,r=t;if(t.indexOf(".")>-1){for(var o=t.split(".");o.length>1;)r=o.shift(),kf(i[r])||(i[r]={}),i=i[r];r=o.shift()}i[r]=n}var om=function(t){function e(e,n,i){t.call(this);var r=n.canonicalFields(e),o=n.valueFields(e),s=n.sourceFields(e,r),a=this._seriesFields=[],l=i.query(e.type),h=e.aggregate||l;this._series=e,this._binder=n;for(var c=0;c<r.length;c++){var p=r[c],u=void 0;if(Du(h))u=h[p];else{if(0!==c&&!vf(p,o))break;u=h}u&&a.push({canonicalName:p,name:s[c],transform:Iu(u)?u:Wg[u]})}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.aggregatePoints=function(t,e){var n=this._series,i=this._seriesFields,r=this._bindPoints(t||[]),o=r.dataItems[0],s={};if(o&&!Tu(o)&&!co(o)){var a=function(){};a.prototype=o,s=new a}for(var l=0;l<i.length;l++){var h=i[l],c=this._bindField(r.values,h.canonicalName),p=h.transform(c,n,r.dataItems,e);if(!(null===p||!Du(p)||kf(p.length)||p instanceof Date)){s=p;break}kf(p)&&rm(h.name,s,p)}return s},e.prototype._bindPoints=function(t){for(var e=this._binder,n=this._series,i=[],r=[],o=0;o<t.length;o++){var s=t[o];i.push(e.bindPoint(n,s)),r.push(n.data[s])}return{values:i,dataItems:r}},e.prototype._bindField=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o,s=t[r],a=s.valueFields;o=kf(a[e])?a[e]:s.fields[e],n.push(o)}return n},e}(mo),sm=function(t){function e(){t.call(this),this._defaults={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.register=function(t,e){for(var n=0;n<t.length;n++)this._defaults[t[n]]=e},e.prototype.query=function(t){return this._defaults[t]},e}(mo);
1sm.current=new sm;var am=sm,lm=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createLabel=function(){var t=this.options.labels,e=Bu({},t,t.from),n=Bu({},t,t.to);e.visible&&(this.labelFrom=this._createLabel(e),this.append(this.labelFrom)),n.visible&&(this.labelTo=this._createLabel(n),this.append(this.labelTo))},e.prototype._createLabel=function(t){var e,n=lf(t),i=this.pointData();return e=n?n(i):this.formatValue(t.format),new Wv(e,Bu({vertical:this.options.vertical},t),i)},e.prototype.reflow=function(t){this.render();var e=this.labelFrom,n=this.labelTo,i=this.value;this.box=t,e&&(e.options.aboveAxis=i.from>i.to,e.reflow(t)),n&&(n.options.aboveAxis=i.to>i.from,n.reflow(t)),this.note&&this.note.reflow(t)},e}(Jv);lm.prototype.defaults=Bu({},lm.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var hm=lm,cm=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.pointType=function(){return hm},e.prototype.pointValue=function(t){return t.valueFields},e.prototype.formatPointValue=function(t,e){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(e,t.value.from,t.value.to)},e.prototype.plotRange=function(t){return t?[t.value.from,t.value.to]:0},e.prototype.updateRange=function(t,e){var n=e.series.axis,i=t.from,r=t.to,o=this.valueAxisRanges[n];null!==t&&Tu(i)&&Tu(r)&&((o=this.valueAxisRanges[n]=o||{min:to,max:eo}).min=Math.min(o.min,i),o.max=Math.max(o.max,i),o.min=Math.min(o.min,r),o.max=Math.max(o.max,r))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}(oy);cm.prototype.plotLimits=wv.prototype.plotLimits;var pm=cm,um=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.aliasFor=function(){return this.parent},e}(Mv),fm=function(t){function e(e,n){t.call(this),this.value=e,this.options=n,this.aboveAxis=Bf(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){if(!this._rendered){this._rendered=!0;var t=this.options,e=t.markers,n=t.labels,i=this.value,r=this.fromPoint=new um(i,Bu({},this.options,{labels:n.from,markers:e.from})),o=this.toPoint=new um(i,Bu({},this.options,{labels:n.to,markers:e.to}));this.copyFields(r),this.copyFields(o),this.append(r),this.append(o)}},e.prototype.reflow=function(t){this.render();var e=t.from,n=t.to;this.positionLabels(e,n),this.fromPoint.reflow(e),this.toPoint.reflow(n),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())},e.prototype.createHighlight=function(){var t=new l.Group;return t.append(this.fromPoint.createHighlight()),t.append(this.toPoint.createHighlight()),t},e.prototype.highlightVisual=function(){return this.visual},e.prototype.highlightVisualArgs=function(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}},e.prototype.tooltipAnchor=function(){var t=this.owner.pane.clipBox();if(!t||t.overlaps(this.box)){var e,n,i,r=this.box,o=r.center(),s=Qr;return this.options.vertical?(e=o.x,n=r.y1-5,i=$r):(e=r.x2+5,n=o.y,i=Xr),{point:new Uf(e,n),align:{horizontal:s,vertical:i}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()},e.prototype.initLabelsFormat=function(){var t=this.options.labels;t.format||(t.from&&t.from.format||(t.from=Object.assign({},t.from,{format:"{0}"})),t.to&&t.to.format||(t.to=Object.assign({},t.to,{format:"{1}"})))},e.prototype.positionLabels=function(t,e){var n,i,r=this.options,o=r.labels;"auto"===o.position&&(r.vertical?e.y1<=t.y1?(i="above",n="below"):(i="below",n="above"):e.x1<=t.x1?(i=Qr,n=io):(i=io,n=Qr),o.from&&o.from.position||(this.fromPoint.options.labels.position=n),o.to&&o.to.position||(this.toPoint.options.labels.position=i))},e.prototype.copyFields=function(t){t.dataItem=this.dataItem,t.category=this.category,t.series=this.series,t.color=this.color,t.owner=this.owner},e}(Jf);Bu(fm.prototype,Cv),Bu(fm.prototype,Sv),fm.prototype.defaults={markers:{visible:!1,background:ao,size:8,type:Wr,border:{width:2},opacity:1},labels:{visible:!1,margin:Uu(3),padding:Uu(4),animation:{type:"fadeIn",delay:600},position:"auto"},notes:{label:{}}
1,highlight:{markers:{border:{color:ao,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};var dm=fm,gm=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),t},e.prototype.createStroke=function(t){var e=new l.Path(t),n=new l.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),n.segments.push.apply(n.segments,this.stackSegments()),this.visual.append(e),this.visual.append(n)},e.prototype.hasStackSegment=function(){return!0},e.prototype.fromPoints=function(){return this.linePoints.map(function(t){return t.fromPoint})},e.prototype.toPoints=function(){return this.linePoints.map(function(t){return t.toPoint})},e}(Nv),vm=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createStrokeSegments=function(){return this.createCurveSegments(this.toPoints())},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),t},e.prototype.createCurveSegments=function(t){return(new Vg).process(this.toGeometryPoints(t))},e}(gm),ym=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints()))).reverse(),t},e}(gm);Bu(ym.prototype,Tv);var mm=ym,xm=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return dm},e.prototype.createPoint=function(t,e){var n=e.categoryIx,i=e.category,r=e.series,o=e.seriesIx,s=t.valueFields;if(!vy(s.from)&&!vy(s.to)){if(this.seriesMissingValues(r)!==nv)return null;s={from:0,to:0}}var a=this.pointOptions(r,o);a=this.evalPointOptions(a,s,i,n,r,o);var l=t.fields.color||r.color;Iu(r.color)&&(l=a.color);var h=new dm(s,a);return h.color=l,this.append(h),h},e.prototype.createSegment=function(t,e,n){var i=(e.line||{}).style;return new("smooth"===i?vm:"step"===i?mm:gm)(t,e,n)},e.prototype.plotRange=function(t,e){return t?[t.value.from,t.value.to]:[e,e]},e.prototype.valueSlot=function(t,e){var n=t.getSlot(e[0],e[0],!this.options.clip),i=t.getSlot(e[1],e[1],!this.options.clip);if(n&&i)return{from:n,to:i}},e.prototype.pointSlot=function(t,e){var n,i,r=e.from,o=e.to;return this.options.invertAxes?(n=new qf(r.x1,t.y1,r.x2,t.y2),i=new qf(o.x1,t.y1,o.x2,t.y2)):(n=new qf(t.x1,r.y1,t.x2,r.y2),i=new qf(t.x1,o.y1,t.x2,o.y2)),{from:n,to:i}},e.prototype.addValue=function(e,n){var i=e.valueFields;Tu(i.from)||(i.from=i.to),Tu(i.to)||(i.to=i.from),t.prototype.addValue.call(this,e,n)},e.prototype.updateRange=function(t,e){if(null!==t&&Tu(t.from)&&Tu(t.to)){var n=e.series.axis,i=this.valueAxisRanges[n]=this.valueAxisRanges[n]||{min:to,max:eo},r=t.from,o=t.to;i.min=Math.min(i.min,r,o),i.max=Math.max(i.max,r,o)}},e.prototype.formatPointValue=function(t,e){var n=t.value;return this.chartService.format.auto(e,n.from,n.to)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],n=0;n<t.length;n++){var i=t[n];i&&(e.push((i.fromPoint||{}).marker),e.push((i.toPoint||{}).marker))}return e.concat(this._segments)},e}(wv);Bu(xm.prototype,zv,Dv);var bm=xm,_m=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){var e=this.value,
1n=this.owner.seriesValueAxis(this.options),i=[],r=[],o=[],s=n.getSlot(e.low,e.high),a=n.getSlot(e.open,e.open),l=n.getSlot(e.close,e.close);a.x1=l.x1=s.x1=t.x1,a.x2=l.x2=s.x2=t.x2;var h=s.center().x;i.push([a.x1,a.y1]),i.push([h,a.y1]),r.push([h,l.y1]),r.push([l.x2,l.y1]),o.push([h,s.y1]),o.push([h,s.y2]),this.lines=[i,r,o],this.box=s.clone().wrap(a.clone().wrap(l)),this.reflowNote()},e.prototype.createBody=function(){},e}(ay),wm=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.pointType=function(){return _m},e}(cy),Cm=function(t){function e(e,n,i){t.call(this),this.from=e,this.to=n,this.series=i}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.linePoints=function(){var t=this.from,e=this.from.box,n=this.to.box,i=[];if(t.isVertical){var r=t.aboveAxis?e.y1:e.y2;i.push([e.x1,r],[n.x2,r])}else{var o=t.aboveAxis?e.x2:e.x1;i.push([o,e.y1],[o,n.y2])}return i},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},n=l.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});Ou(n),this.visual.append(n)},e}(Jf);Vf(Cm,{animation:{type:"fadeIn",delay:600}});var Sm=Cm,km=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,n=bv(e),i=!this.options.invertAxes,r=0;r<e.length;r++)for(var o=e[r],s=0,a=0,l=0;l<n;l++){var h=Jg.current.bindPoint(o,l),c=h.valueFields.value,p=h.fields.summary,u=s,f=void 0;p?"total"===p.toLowerCase()?(h.valueFields.value=s,u=0,f=s):(h.valueFields.value=a,f=u-a,a=0):Tu(c)&&(a+=c,f=s+=c),t(h,{category:this.categoryAxis.categoryAt(l),categoryIx:l,series:o,seriesIx:r,total:s,runningTotal:a,from:u,to:f,isVertical:i})}},e.prototype.updateRange=function(e,n){t.prototype.updateRange.call(this,{value:n.to},n)},e.prototype.aboveAxis=function(t){return t.value>=0},e.prototype.plotRange=function(t){return[t.from,t.to]},e.prototype.createSegments=function(){for(var t=this.options.series,e=this.seriesPoints,n=this.segments=[],i=0;i<t.length;i++){var r=t[i],o=e[i];if(o)for(var s=void 0,a=0;a<o.length;a++){var l=o[a];if(l&&s){var h=new Sm(s,l,r);n.push(h),this.append(h)}s=l}}},e}(oy),Mm=["area","verticalArea","rangeArea","verticalRangeArea"],Am=[sv,lv].concat(Mm),Om=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new $v,t.length>0){this.invertAxes=vf(t[0].type,[rv,"bullet",lv,"verticalArea","verticalRangeArea","rangeBar","horizontalWaterfall","verticalBoxPlot"]);for(var e=0;e<t.length;e++){var n=t[e].stack;if(n&&"100%"===n.type){this.stack100=!0;break}}}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.createCategoryAxes(t),this.aggregateCategories(t),this.createCategoryAxesLabels(t),this.createCharts(t),this.createValueAxes(t)},e.prototype.removeAxis=function(e){var n=e.options.name;t.prototype.removeAxis.call(this,e),e instanceof ig?delete this.namedCategoryAxes[n]:(this.valueAxisRangeTracker.reset(n),delete this.namedValueAxes[n]),e===this.categoryAxis&&delete this.categoryAxis,e===this.valueAxis&&delete this.valueAxis},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),n=0;n<t.length;n++){var i=t[n],r=e[i.options.name||"default"]||[];this.addToLegend(r);var o=this.filterVisibleSeries(r);if(o)for(var s=this.groupSeriesByCategoryAxis(o),a=0;a<s.length;a++)this.createChartGroup(s[a],i)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Gy(t,["area","verticalArea"]),e),this.createRangeAreaChart(Gy(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(Gy(t,[ov,rv]),e),this.createRangeBarChart(Gy(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(Gy(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(Gy(t,"candlestick"),e),this.createBoxPlotChart(Gy(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(Gy(t,"ohlc"),e),this.createWaterfallChart(Gy(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(Gy(t,[sv,lv]),e)},e.prototype.aggregateCategories=function(t){var e=this.srcSeries||this.series,n=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var i=0;i<e.length;i++){var r=e[i],o=this.seriesCategoryAxis(r),s=this.findPane(o.options.pane);r=(Uy(o.options.type,Zr)||r.categoryField)&&vf(s,t)?this.aggregateSeries(r,o):this.filterSeries(r,o),n.push(r)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=e,this.series=n},e.prototype.filterSeries=function(t,e){var n=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,n),!Tu(e.options.min)&&!Tu(e.options.max))return t;var i=e.currentRangeIndices(),r=vf(t.type,Am),o=Bu({},t);return o.data=(o.data||[]).slice(i.min,i.max+1),r&&Jy(o,i,n,function(n){return{item:t.data[n],category:e.categoryAt(n,!0),categoryIx:n-i.min}},function(e){return kf(t.data[e])}),o},e.prototype.clearSeriesPointsCache=function(){this._seriesPointsCache={}},e.prototype.seriesSourcePoints=function(t,e){var n=t.index+";"+e.categoriesHash();if(this._seriesPointsCache[n])return this._currentPointsCache[n]=this._seriesPointsCache[n],this._seriesPointsCache[n];var i=e.options,r=i.srcCategories,o=Uy(i.type,Zr),s=t.data,a=o?qy:Yg,l=[];o||e.mapCategories();for(var h=0;h<s.length;h++){var c;if(c=t.categoryField?a(t.categoryField,s[h],this.chartService.intl):r[h],kf(c)&&null!==c){var p=e.totalIndex(c);l[p]=l[p]||{items:[],category:c},l[p].items.push(h)}}return this._currentPointsCache[n]=l,l},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var n=this.seriesSourcePoints(t,e),i=Bu({},t),r=new om(Bu({},t),Jg.current,am.current),o=i.data=[],s=e.options.dataItems||[],a=e.currentRangeIndices(),l=function(t){var i=t-a.min,o=n[t];if(o||(o=n[t]={}),o.categoryIx=i,!o.item){var s=e.categoryAt(t,!0);o.category=s,o.item=r.aggregatePoints(o.items,s)}return o},h=a.min;h<=a.max;h++){var c=l(h);o[c.categoryIx]=c.item,c.items&&c.items.length&&(s[c.categoryIx]=c.item)}return vf(i.type,Am)&&Jy(i,a,e.totalCount(),l,function(t){return n[t]}),e.options.dataItems=s,i},e.prototype.appendChart=function(e,n){var i=e.options.series,r=this.seriesCategoryAxis(i[0]),o=r.options.categories,s=Math.max(0,bv(i)-o.length);if(s>0)for(o=r.options.categories=r.options.categories.slice(0);s--;)o.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,n)},e.prototype.seriesPaneName=function(t){var e=this.options,n=t.axis;return(uf([].concat(e.valueAxis),function(t){return t.name===n})[0]||{}).pane||((e.panes||[{}])[0]||{}).name||"default"},e.prototype.seriesCategoryAxis=function(t){var e=t.categoryAxis,n=e?this.namedCategoryAxes[e]:this.categoryAxis;
1if(!n)throw new Error("Unable to locate category axis with name "+e);return n},e.prototype.stackableChartOptions=function(t,e){var n=t.stack;return{isStacked:n,isStacked100:n&&"100%"===n.type,clip:e.options.clip}},e.prototype.groupSeriesByCategoryAxis=function(t){for(var e=[],n={},i=0;i<t.length;i++){var r=t[i].categoryAxis||"$$default$$";n.hasOwnProperty(r)||(n[r]=!0,e.push(r))}for(var o=[],s=0;s<e.length;s++){var a=Tm(t,e[s],s);0!==a.length&&o.push(a)}return o},e.prototype.createBarChart=function(t,e){if(0!==t.length){var n=t[0],i=new oy(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:n.gap,spacing:n.spacing},this.stackableChartOptions(n,e)));this.appendChart(i,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var n=t[0],i=new pm(this,{series:t,invertAxes:this.invertAxes,gap:n.gap,spacing:n.spacing});this.appendChart(i,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var n=t[0],i=new Oy(this,{series:t,invertAxes:this.invertAxes,gap:n.gap,spacing:n.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var n=new Vv(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(t[0],e)));this.appendChart(n,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var n=new qv(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(t[0],e)));this.appendChart(n,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var n=new bm(this,{invertAxes:this.invertAxes,series:t,clip:e.options.clip});this.appendChart(n,e)}},e.prototype.createOHLCChart=function(t,e){if(0!==t.length){var n=t[0],i=new wm(this,{invertAxes:this.invertAxes,gap:n.gap,series:t,spacing:n.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var n=t[0],i=new cy(this,{invertAxes:this.invertAxes,gap:n.gap,series:t,spacing:n.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var n=t[0],i=new dy(this,{invertAxes:this.invertAxes,gap:n.gap,series:t,spacing:n.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var n=t[0],i=new km(this,{series:t,invertAxes:this.invertAxes,gap:n.gap,spacing:n.spacing});this.appendChart(i,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var n=Gy(this.series,hv),i=0;i<this.series.length;i++){var r=this.series[i];if(vf(r.type,Mm)){var o=r.line;o&&"step"===o.style&&n.push(r)}}for(var s=0;s<n.length;s++){var a=n[s].categoryAxis||"";if(a===t||!a&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var n=this.series,i=0;i<n.length;i++){var r=n[i].categoryAxis||"";if((r===t||!r&&0===e)&&n[i].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof ig&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this.invertAxes,n=[].concat(this.options.categoryAxis),i=[],r=0;r<n.length;r++){var o=n[r];if(vf(this.findPane(o.pane),t)){var s=o.name,a=o.categories;void 0===a&&(a=[]),o=Bu({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?to:0},o),kf(o.justified)||(o.justified=this.isJustified()),this.axisRequiresRounding(s,r)&&(o.justified=!1);var l=void 0;if(l=$y(o,a[0])?new fg(o,this.chartService):new ig(o,this.chartService),n[r].categories=l.options.srcCategories,s){if(this.namedCategoryAxes[s])throw new Error("Category axis with name "+s+" is already defined");this.namedCategoryAxes[s]=l}l.axisIndex=r,i.push(l),this.appendAxis(l)}}var h=this.categoryAxis||i[0];this.categoryAxis=h,e?this.axisY=h:this.axisX=h},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++)if(!vf(t[e].type,Mm))return!1;return!0},e.prototype.createValueAxes=function(t){var e=this.valueAxisRangeTracker,n=e.query(),i=[].concat(this.options.valueAxis),r=this.invertAxes,o={vertical:!r,reverse:r&&this.chartService.rtl},s=[];this.stack100&&(o.roundToMajorUnit=!1,o.labels={format:"P0"});for(var a=0;a<i.length;a++){var l=i[a];if(vf(this.findPane(l.pane),t)){var h=l.name,c=Uy(l.type,"log")?{min:.1,max:1}:{min:0,max:1},p=e.query(h)||n||c;0===a&&p&&n&&(p.min=Math.min(p.min,n.min),p.max=Math.max(p.max,n.max));var u=new(Uy(l.type,"log")?Ag:bg)(p.min,p.max,Bu({},o,l),this.chartService);if(h){if(this.namedValueAxes[h])throw new Error("Value axis with
1name "+h+" is already defined");this.namedValueAxes[h]=u}u.axisIndex=a,s.push(u),this.appendAxis(u)}}var f=this.valueAxis||s[0];this.valueAxis=f,r?this.axisX=f:this.axisY=f},e.prototype._dispatchEvent=function(t,e,n){var i=t._eventCoordinates(e),r=new Uf(i.x,i.y),o=this.pointPane(r),s=[],a=[];if(o){for(var l=o.axes,h=0;h<l.length;h++){var c=l[h];c.getValue?Vy(a,c.getValue(r)):Vy(s,c.getCategory(r))}0===s.length&&Vy(s,this.categoryAxis.getCategory(r)),s.length>0&&a.length>0&&t.trigger(n,{element:Pf(e),originalEvent:e,category:Xy(s),value:Xy(a)})}},e.prototype.pointPane=function(t){for(var e=this.panes,n=0;n<e.length;n++){var i=e[n];if(i.contentBox.containsPoint(t))return i}},e.prototype.updateAxisOptions=function(t,e){Pm(this.options,t,e),Pm(this.originalOptions,t,e)},e}(nm);function Pm(t,e,n){Bu([].concat(e instanceof ig?t.categoryAxis:t.valueAxis)[e.axisIndex],n)}function Tm(t,e,n){return uf(t,function(t){return 0===n&&!t.categoryAxis||t.categoryAxis===e})}Vf(Om,{categoryAxis:{},valueAxis:{}}),Bu(Om.prototype,im);var jm=Om;function Rm(){this._defaultPrevented=!0}var Im=function(t){function e(){t.call(this),this._points=[]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.destroy=function(){this._points=[]},e.prototype.show=function(t){var e=[].concat(t);this.hide();for(var n=0;n<e.length;n++){var i=e[n];i&&i.toggleHighlight&&i.hasHighlight()&&(this.togglePointHighlight(i,!0),this._points.push(i))}},e.prototype.togglePointHighlight=function(t,e){var n=(t.options.highlight||{}).toggle;if(n){var i={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:Rm,visual:t.highlightVisual(),show:e};n(i),i._defaultPrevented||t.toggleHighlight(e)}else t.toggleHighlight(e)},e.prototype.hide=function(){for(var t=this._points;t.length;)this.togglePointHighlight(t.pop(),!1)},e.prototype.isHighlighted=function(t){for(var e=this._points,n=0;n<e.length;n++)if(t===e[n])return!0;return!1},e}(mo);function zm(t,e){var n=(e||"").toLowerCase(),i=t.event;return"none"===n&&!(i.ctrlKey||i.shiftKey||i.altKey)||i[n+"Key"]}function Em(t){for(var e={},n=0;n<t.length;n++){var i=t[n];i.axis.options.name&&(e[i.axis.options.name]={min:i.range.min,max:i.range.max})}return e}var Lm=function(t){function e(e,n){t.call(this),this.plotArea=e,this.options=Bu({},this.options,n)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.start=function(t){return this._active=zm(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,lo).concat(this._panAxes(t,ho));if(e.length)return this.axisRanges=e,Em(e)}},e.prototype.end=function(){var t=this._active;return this._active=!1,t},e.prototype.pan=function(){var t=this.plotArea,e=this.axisRanges;if(e.length){for(var n=0;n<e.length;n++){var i=e[n];t.updateAxisOptions(i.axis,i.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var n=this.plotArea,i=-t[e].delta,r=(this.options.lock||"").toLowerCase(),o=[];if(0!==i&&(r||"").toLowerCase()!==e)for(var s=n.axes,a=0;a<s.length;a++){var l=s[a];if(e===lo&&!l.options.vertical||e===ho&&l.options.vertical){var h=l.pan(i);h&&(h.limitRange=!0,o.push({axis:l,range:h}))}}return o},e}(mo);Lm.prototype.options={key:"none",lock:"none"};var Bm=Lm,Dm=function(t){function e(e,n){t.call(this),this.chart=e,this.options=Bu({},this.options,n),this.createElement()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createElement=function(){var t=this._marquee=document.createElement("div");t.className="k-marquee";var e=document.createElement("div");e.className="k-marquee-color",t.appendChild(e)},e.prototype.removeElement=function(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)},e.prototype.setStyles=function(t){Hu(this._marquee,t)},e.prototype.start=function(t){if(zm(t,this.options.key)){var e=this.chart,n=e._eventCoordinates(t),i=this._zoomPane=e._plotArea.paneByPoint(n),r=i?i.chartsBox().clone():null;if(i&&r){var o=this._elementOffset();return r.translate(o.left,o.top),this._zoomPaneClipBox=r,document.body.appendChild(this._marquee),this.setStyles({left:t.pageX+1,top:t.pageY+1,width:0,height:0}),!0}}return!1},e.prototype._elementOffset=function(){var t=this.chart.element,e=Hu(t,["paddingLeft","paddingTop"]),n=e.paddingLeft,i=e.paddingTop,r=Af(t);return{left:n+r.left,top:i+r.top}},e.prototype.move=function(t){this._zoomPane&&this.setStyles(this._selectionPosition(t))},e.prototype.end=function(t){if(this._zoomPane){var e=this._elementOffset(),n=this._selectionPosition(t);return n.left-=e.left,n.top-=e.top,this._updateAxisRanges({x:n.left,y:n.top},{x:n.left+n.width,y:n.top+n.height}),this.removeElement(),delete this._zoomPane,Em(this.axisRanges)}},e.prototype.zoom=function(){var t=this.axisRanges;if(t&&t.length){for(var e=this.chart._plotArea,n=0;n<t.length;n++){var i=t[n];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){this.removeElement(),delete this._marquee,delete this.chart},e.prototype._updateAxisRanges=function(t,e){for(var n=(this.options.lock||"").toLowerCase(),i=[],r=this._zoomPane.axes,o=0;o<r.length;o++){var s=r[o],a=s.options.vertical;if((n!==lo||a)&&(n!==ho||!a)&&kf(s.axisIndex)){var l=s.pointsRange(t,e);l&&i.push({axis:s,range:l})}}this.axisRanges=i},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,n={x:t.x.startLocation,y:t.y.startLocation},i=t.x.location,r=t.y.location,o=(this.options.lock||"").toLowerCase(),s=Math.min(n.x,i),a=Math.min(n.y,r),l=Math.abs(n.x-i),h=Math.abs(n.y-r);return o===lo&&(s=e.x1,l=e.width()),o===ho&&(a=e.y1,h=e.height()),i>e.x2&&(l=e.x2-n.x),i<e.x1&&(l=n.x-e.x1),r>e.y2&&(h=e.y2-n.y),r<e.y1&&(h=n.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:l,height:h}},e}(mo);Dm.prototype.options={key:"shift",lock:"none"};var Fm=Dm,Vm=function(t){function e(e,n){t.call(this),this.chart=e,this.options=Bu({},this.options,n)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.updateRanges=function(t){for(var e=(this.options.lock||"").toLowerCase(),n=[],i=this.chart._plotArea.axes,r=0;r<i.length;r++){var o=i[r],s=o.options.vertical;if((e!==lo||s)&&(e!==ho||!s)){var a=o.zoomRange(-t);a&&n.push({axis:o,range:a})}}return this.axisRanges=n,Em(n)},e.prototype.zoom=function(){var t=this.axisRanges;if(t&&t.length){for(var e=this.chart._plotArea,n=0;n<t.length;n++){var i=t[n];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(mo),Nm=function(t){function e(e,n){t.call(this,e),this.chartService=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){var t=this.children,e=this.options,n=e.vertical;this.visual=new l.Layout(null,{spacing:n?0:e.spacing,lineSpacing:n?e.spacing:0,orientation:n?"vertical":"horizontal",reverse:e.rtl,alignItems:n?"start":"center"});for(var i=0;i<t.length;i++){var r=t[i];r.reflow(new qf),r.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?pd(e):new qf},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(Jf),Hm=function(t){function e(e){t.call(this,e),this.createContainer(),e.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createContainer=function(){this.container=new ad({vertical:!1,wrap:!1,align:Xr,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new ed(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return Bu({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=Bu({},t.labels);this.container.append(new fd(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},n=this._itemOverlay=l.Path.fromRect(this.container.box.toRect(),{fill:{color:a
1o,opacity:0},stroke:null,cursor:e.style||e});this.appendVisual(n)},e.prototype.click=function(t,e){var n=this.eventArgs(e);!t.trigger("legendItemClick",n)&&e&&"contextmenu"===e.type&&e.preventDefault()},e.prototype.over=function(t,e){var n=this.eventArgs(e);return t.trigger("legendItemHover",n)||t._legendItemHover(n.seriesIndex,n.pointIndex),!0},e.prototype.out=function(t,e){t._unsetActivePoint(),t.trigger("legendItemLeave",this.eventArgs(e))},e.prototype.eventArgs=function(t){var e=this.options;return{element:Pf(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,n=this.options,i=n.visual;i?(this.visual=i({active:n.active,series:n.series,sender:this.getSender(),pointIndex:n.pointIndex,options:{markers:this.markerOptions(),labels:n.labels},createVisual:function(){e.createVisual(),e.renderChildren(),e.renderComplete();var t=e.visual;return delete e.visual,t}}),this.addVisual()):t.prototype.renderVisual.call(this)},e}(Qf),Um="custom",Gm=function(t){function e(e,n){void 0===n&&(n={}),t.call(this,e),this.chartService=n,vf(this.options.position,[oo,io,$r,Qr,Um])||(this.options.position=io),this.createContainer(),this.createItems()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createContainer=function(){var t=this.options,e=t.position,n=t.align,i=e,r=Xr;e===Um?i=Qr:vf(e,[oo,$r])?(i="start"===n?Qr:"end"===n?io:Xr,r=e):n&&("start"===n?r=oo:"end"===n&&(r=$r)),this.container=new Qf({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:r,align:i,zIndex:t.zIndex,shrinkToFit:!0}),this.append(this.container)},e.prototype.createItems=function(){var t=this.getService(),e=this.options,n=this.isVertical(),i=new Nm({vertical:n,spacing:e.spacing,rtl:t.rtl},t),r=e.items;e.reverse&&(r=r.slice(0).reverse());for(var o=r.length,s=0;s<o;s++)i.append(new Hm(Bu({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,r[s])));i.render(),this.container.append(i)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,n=t.position;return n===Um&&"horizontal"!==e||(kf(e)?"horizontal"!==e:vf(n,[Qr,io]))},e.prototype.hasItems=function(){return this.container.children[0].children.length>0},e.prototype.reflow=function(t){var e=this.options,n=t.clone();this.hasItems()?e.position===Um?(this.containerCustomReflow(n),this.box=n):this.containerReflow(n):this.box=n},e.prototype.containerReflow=function(t){var e=this.options,n=this.container,i=e.position,r=e.width,o=e.height,s=i===oo||i===$r?lo:ho,a=this.isVertical(),l=t.clone(),h=t.clone();i!==Qr&&i!==io||(h.y1=l.y1=0),a&&o?(h.y2=h.y1+o,h.align(l,ho,n.options.vAlign)):!a&&r&&(h.x2=h.x1+r,h.align(l,lo,n.options.align)),n.reflow(h);var c=(h=n.box).clone();(e.offsetX||e.offsetY)&&(h.translate(e.offsetX,e.offsetY),this.container.reflow(h)),c[s+1]=t[s+1],c[s+2]=t[s+2],this.box=c},e.prototype.containerCustomReflow=function(t){var e=this.options,n=this.container,i=e.offsetX,r=e.offsetY,o=e.width,s=e.height,a=this.isVertical(),l=t.clone();a&&s?l.y2=l.y1+s:!a&&o&&(l.x2=l.x1+o),n.reflow(l),n.reflow(new qf(i,r,i+(l=n.box).width(),r+l.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e}(Jf);Vf(Gm,{position:io,items:[],offsetX:0,offsetY:0,margin:Uu(5),padding:Uu(5),border:{color:qr,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:Qr,vAlign:Xr}});var qm=Gm,$m=function(t){function e(){t.call(this),this._registry=[]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.register=function(t,e){this._registry.push({type:t,seriesTypes:e})},e.prototype.create=function(t,e,n){for(var i,r=this._registry,o=r[0],s=0;s<r.length;s++){var a=r[s];if((i=Gy(t,a.seriesTypes)).length>0){o=a;break}}return new o.type(i,e,n)},e}(mo);$m.current=new $m;var Xm=$m;function Wm(t){var e=document.createElement("div");return t&&(e.className=t),e}function Ym(t){for(var e=t;e&&!ff(e,"k-handle");)e=e.parentNode;return e}var Zm=function(t){function e(e,n,i,r){t.call(this);var o=e.element;this.options=Bu({},this.options,i),this.chart=e,this.observer=r,this.chartElement=o,this.categoryAxis=n,this._dateAxis=this.categoryAxis instanceof fg,this.initOptions(),this.options.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.onPane=function(t){return this.categoryAxis.pane===t},e.prototype.createElements=function(){var t=this.options,e=this.wrapper=Wm("k-selector");
vendor: 10,095 bytes, line 1
1Hu(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var n=this.selection=Wm("k-selection");this.leftMask=Wm("k-mask"),this.rightMask=Wm("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(n),n.appendChild(Wm("k-selection-bg"));var i=this.leftHandle=Wm("k-handle k-left-handle"),r=this.rightHandle=Wm("k-handle k-right-handle");i.appendChild(Wm()),r.appendChild(Wm()),n.appendChild(i),n.appendChild(r),this.chartElement.appendChild(e);var o=Hu(n,["borderLeftWidth","borderRightWidth","height"]),s=Hu(i,"height").height,a=Hu(r,"height").height;t.selection={border:{left:o.borderLeftWidth,right:o.borderRightWidth}},Hu(i,{top:(o.height-s)/2}),Hu(r,{top:(o.height-a)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),Sf(this.wrapper,((t={})[dv]=this._mousewheelHandler,t))),this._domEvents=rf.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},e.prototype.initOptions=function(){var t=this.options,e=this.categoryAxis.pane.chartsBox(),n=this.chart.chartService.intl;this._dateAxis&&Bu(t,{min:tg(n,t.min),max:tg(n,t.max),from:tg(n,t.from),to:tg(n,t.to)});var i=Hu(this.chartElement,["paddingLeft","paddingTop"]),r=i.paddingLeft,o=i.paddingTop;this.options=Bu({},{width:e.width(),height:e.height()+.1,padding:{left:r,top:o},offset:{left:e.x1+r,top:e.y1+o},from:t.min,to:t.max},t)},e.prototype.destroy=function(){var t;this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(Lf(this.wrapper,((t={})[dv]=this._mousewheelHandler,t)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)},e.prototype._rangeEventArgs=function(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}},e.prototype._start=function(t){var e=this.options,n=Pf(t);if(!this._state&&n){this.chart._unsetActivePoint(),this._state={moveTarget:Ym(n)||n,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};var i=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger("selectStart",i)&&(this._state=null)}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:Ym(Pf(t)))&&po(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this._state,n=this.options,i=this.categoryAxis,r=e.range,o=e.moveTarget,s=i.options.reverse,a=this._index(n.from),l=this._index(n.to),h=this._index(n.min),c=this._index(n.max),p=e.startLocation-t.x.location,u=r.from,f=r.to,d=r.to-r.from,g=Hu(this.wrapper,"width").width/(i.categoriesCount()-1),v=Math.round(p/g)*(s?-1:1);if(o){var y=ff(o,"k-left-handle"),m=ff(o,"k-right-handle");ff(o,"k-selection k-selection-bg")?(r.from=Math.min(Math.max(h,a-v),c-d),r.to=Math.min(r.from+d,c)):y&&!s||m&&s?(r.from=Math.min(Math.max(h,a-v),c-1),r.to=Math.max(r.from+1,r.to)):(y&&s||m&&!s)&&(r.to=Math.min(Math.max(h+1,l-v),c),r.from=Math.min(r.to-1,r.from)),r.from===u&&r.to===f||(this.move(r.from,r.to),this.trigger("select",this._rangeEventArgs(r)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&(n=t)&&n.className&&(n.className=n.className.replace("k-handle-active","").replace(uo," "));var e=this._state.range;this.set(e.from,e.to),this.trigger("selectEnd",this._rangeEventArgs(e)),delete this._state}var n},e.prototype._tap=function(t){var e=this.options,n=this.categoryAxis,i=this.chart._eventCoordinates(t),r=n.pointCategoryIndex(new Uf(i.x,n.box.y1)),o=this._index(e.from),s=this._index(e.to),a=this._index(e.min),l=this._index(e.max),h=s-o,c={},p=3===t.event.which,u=Math.round(o+h/2-r);this._state||p||(this.chart._unsetActivePoint(),n.options.justified||u--,c.from=Math.min(Math.max(a,o-u),l-h),c.to=Math.min(c.from+h,l),this._start(t),this._state&&(this._state.range=c,this.trigger("select",this._rangeEventArgs(c)),this._end()))},e.prototype._mousewheel=function(t){var e=this,n=_f(t);if(this._start({target:this.selection}),this._state){var i=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(n)>1&&(n*=3),this.options.mousewheel.reverse&&(n*=-1),this.expand(n)&&this.trigger("select",{axis:this.categoryAxis.options,delta:n,originalEvent:t,from:this._value(i.from),to:this._value(i.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(function(){e._end()},150)}},e.prototype._gesturestart=function(t){var e=this.options;this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var n=this._rangeEventArgs(this._state.range);this.trigger("selectStart",n)?this._state=null:t.preventDefault()},e.prototype._gestureend=function(){this._state&&(this.trigger("selectEnd",this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){var e=this.chart,n=this.options,i=this.categoryAxis,r=this._state.range,o=e._toModelCoordinates(t.touches[0].x.location).x,s=e._toModelCoordinates(t.touches[1].x.location).x,a=Math.min(o,s),l=Math.max(o,s);t.preventDefault(),r.from=i.pointCategoryIndex(new Uf(a))||n.min,r.to=i.pointCategoryIndex(new Uf(l))||n.max,this.move(r.from,r.to),this.trigger("select",this._rangeEventArgs(r))},e.prototype._index=function(t){var e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e},e.prototype._value=function(t){var e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t))>this.options.max&&(e=this.options.max),e},e.prototype._slot=function(t){var e=this.categoryAxis,n=this._index(t);return e.getSlot(n,n,!0)},e.prototype.move=function(t,e){var n=this.options,i=this.categoryAxis.options.reverse,r=n.offset,o=n.padding,s=n.selection.border,a=i?t:e,l="x"+(i?2:1),h=this._slot(i?e:t),c=Ef(h[l]-r.left+o.left);Hu(this.leftMask,{width:c}),Hu(this.selection,{left:c}),h=this._slot(a);var p=Ef(n.width-(h[l]-r.left+o.left));Hu(this.rightMask,{width:p});var u=n.width-p;u!==n.width&&(u+=s.right),Hu(this.rightMask,{left:u}),Hu(this.selection,{width:Math.max(n.width-(c+p)-s.right,0)})},e.prototype.set=function(t,e){var n=this.options,i=this._index(n.min),r=this._index(n.max),o=Rf(this._index(t),i,r),s=Rf(this._index(e),o+1,r);n.visible&&this.move(o,s),n.from=this._value(o),n.to=this._value(s)},e.prototype.expand=function(t){var e=this.options,n=this._index(e.min),i=this._index(e.max),r=e.mousewheel.zoom,o=this._index(e.from),s=this._index(e.to),a={from:o,to:s},l=Bu({},a);if(this._state&&(a=this._state.range),r!==io&&(a.from=Rf(Rf(o-t,0,s-1),n,i)),r!==Qr&&(a.to=Rf(Rf(s+t,a.from+1,i),n,i)),a.from!==l.from||a.to!==l.to)return this.set(a.from,a.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(mo);Vf(Zm,{visible:!0,mousewheel:{zoom:"both"},min:eo,max:to});var Jm=Zm,Km=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.show=function(e){if(e&&e.tooltipAnchor&&(!this._current||this._current!==e)){var n=Bu({},this.options,e.options.tooltip),i=e.tooltipAnchor();i?(this._current=e,t.prototype.show.call(this,{point:e,anchor:i},n,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(Ty),Qm=function(t){function e(e,n){t.call(this,e.chartService,n),this.plotArea=e,this.formatService=e.chartService.format}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.showAt=function(t,e){var n=uf(t,function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)});if(n.length>0){var i=n[0],r=this.plotArea.categoryAxis.getSlot(i.categoryIx),o=e?this._slotAnchor(e,r):this._defaultAnchor(i,r);this.show({anchor:o,shared:!0,points:t,category:i.category,categoryText:this.formatService.auto(this.options.categoryFormat,i.category),series:this.plotArea.series},this.options)}},e.prototype._slotAnchor=function(t,e){return this.plotArea.categoryAxis.options.vertical||(t.x=e.center().x),{point:t,align:{horizontal:"left",vertical:"center"}}},e.prototype._defaultAnchor=function(t,e){var n=t.owner.pane.chartsBox(),i=this.plotArea.categoryAxis.options.vertical,r=n.center(),o=e.center();return{point:i?new Uf(r.x,o.y):new Uf(o.x,r.y),align:{horizontal:"center",vertical:"center"}}},e}(Ty);Vf(Qm,{categoryFormat:"{0:d}"});var tx=Qm,ex=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setup=function(){var t=this.element,e=this.options;if(t.bbox()){this.origin=e.origin;var n=e.vertical?ho:lo,i=this.fromScale=new o.Point(1,1);i[n]=ev,t.transform(o.transform().scale(i.x,i.y))}else this.abort()},e.prototype.step=function(t){var e=yf(this.fromScale.x,1,t),n=yf(this.fromScale.y,1,t);this.element.transform(o.transform().scale(e,n,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(l.Animation);Vf(ex,{duration:600}),l.AnimationFactory.current.register(rv,ex);var nx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(o.transform().scale(ev,ev,t))},e.prototype.step=function(t){this.element.transform(o.transform().scale(t,t,this.center))},e}(l.Animation);Vf(nx,{easing:"easeOutElastic"}),l.AnimationFactory.current.register("bubble",nx);var ix=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(l.Animation);Vf(ix,{duration:200,easing:"linear"}
1),l.AnimationFactory.current.register("fadeIn",ix);var rx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setup=function(){this.element.transform(o.transform().scale(ev,ev,this.options.center))},e.prototype.step=function(t){this.element.transform(o.transform().scale(t,t,this.options.center))},e}(l.Animation);Vf(rx,{easing:"easeOutElastic",duration:600}),l.AnimationFactory.current.register(av,rx);var ox=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,n){return new("smooth"===e.style?Iv:Ov)(t,e,n)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===nv){var n={x:t.x,y:t.y};return vy(n.x)||(n.x=0),vy(n.y)||(n.y=0),n}},e}(my);Bu(ox.prototype,zv);var sx=ox,ax=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new $v,this.yAxisRangeTracker=new $v},e.prototype.render=function(t){void 0===t&&(t=this.panes);for(var e=this.groupSeriesByPane(),n=0;n<t.length;n++){var i=t[n],r=e[i.options.name||"default"]||[];this.addToLegend(r);var o=this.filterVisibleSeries(r);o&&(this.createScatterChart(Gy(o,"scatter"),i),this.createScatterLineChart(Gy(o,"scatterLine"),i),this.createBubbleChart(Gy(o,"bubble"),i))}this.createAxes(t)},e.prototype.appendChart=function(e,n){this.xAxisRangeTracker.update(e.xAxisRanges),this.yAxisRangeTracker.update(e.yAxisRanges),t.prototype.appendChart.call(this,e,n)},e.prototype.removeAxis=function(e){var n=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?(this.yAxisRangeTracker.reset(n),delete this.namedYAxes[n]):(this.xAxisRangeTracker.reset(n),delete this.namedXAxes[n]),e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype.seriesPaneName=function(t){var e=this.options,n=t.xAxis,i=uf([].concat(e.xAxis),function(t){return t.name===n})[0],r=t.yAxis,o=uf([].concat(e.yAxis),function(t){return t.name===r})[0];return(i||{}).pane||(o||{}).pane||(e.panes||[{}])[0].name||"default"},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new my(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new sx(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new wy(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,n){for(var i,r=t.name,o=e?this.namedYAxes:this.namedXAxes,s=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=Bu({reverse:!e&&this.chartService.rtl},t,{vertical:e}),l=Uy(a.type,"log"),h=s.query(),c=l?{min:.1,max:1}:{min:0,max:1},p=s.query(r)||h||c,u=[a.min,a.max],f=this.series,d=0;d<f.length;d++){var g=f[d],v=g[e?"yAxis":"xAxis"];if(v===a.name||0===n&&!v){var y=Jg.current.bindPoint(g,0).valueFields;u.push(y[e?"y":"x"]);break}}0===n&&h&&(p.min=Math.min(p.min,h.min),p.max=Math.max(p.max,h.max));for(var m=0;m<u.length;m++)if(u[m]instanceof Date){i=!0;break}var x=new(Uy(a.type,Zr)||!a.type&&i?wg:l?Ag:bg)(p.min,p.max,a,this.chartService);if(x.axisIndex=n,r){if(o[r])throw new Error((e?"Y":"X")+" axis with name "+r+" is already defined");o[r]=x}return this.appendAxis(x),x},e.prototype.createAxes=function(t){for(var e=this.options,n=[].concat(e.xAxis),i=[],r=[].concat(e.yAxis),o=[],s=0;s<n.length;s++)vf(this.findPane(n[s].pane),t)&&i.push(this.createXYAxis(n[s],!1,s));for(var a=0;a<r.length;a++)vf(this.findPane(r[a].pane),t)&&o.push(this.createXYAxis(r[a],!0,a));this.axisX=this.axisX||i[0],this.axisY=this.axisY||o[0]},e.prototype._dispatchEvent=function(t,e,n){for(var i=t._eventCoordinates(e),r=new Uf(i.x,i.y),o=this.axes,s=o.length,a=[],l=[],h=0;h<s;h++){var c=o[h],p=c.options.vertical?l:a,u=c.getValue(r);null!==u&&p.push(u)}a.length>0&&l.length>0&&t.trigger(n,{element:Pf(e),originalEvent:e,x:Xy(a),y:Xy(l)})},e.prototype.updateAxisOptions=function(t,e){var n=t.options.vertical,i=this.groupAxes(this.panes),r=(n?i.y:i.x).indexOf(t);lx(this.options,r,n,e),lx(this.originalOptions,r,n,e)},e}(nm);function lx(t,e,n,i){Bu([].concat(n?t.yAxis:t.xAxis)[e],i)}Vf(ax,{xAxis:{},yAxis:{}}),Bu(ax.prototype,im);var hx=ax,cx=function(t){function e(e,n,i){t.call(this,i),this.value=e,this.sector=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){var t=this.options.labels,e=this.owner.chartService,n=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var i=lf(t),r=this.pointData();if(i?n=i(r):t.format&&(n=e.format.auto(t.format,n)),t.visible&&(n||0===n)){if(t.position===Xr||"insideEnd"===t.position){if(!t.color){var o=new Xo(this.options.color).percBrightness();t.color=o>180?qr:ao}t.background||(t.background=this.options.color)}else{var s=e.theme.seriesDefaults.labels;t.color=t.color||s.color,t.background=t.background||s.background}this.label=new fd(n,Bu({},t,{align:Xr,vAlign:"",animation:{type:"fadeIn",delay:this.animationDelay}}),r),this.append(this.label)}}},e.prototype.reflow=function(t){this.render(),this.box=t,this.reflowLabel()},e.prototype.reflowLabel=function(){var t=this.options.labels,e=this.label,n=this.sector.clone(),i=t.distance,r=n.middle();if(e){var o,s=e.box.height(),a=e.box.width();if(t.position===Xr)n.radius=Math.abs((n.radius-s)/2)+s,o=n.point(r),e.reflow(new qf(o.x,o.y-s/2,o.x,o.y));else if("insideEnd"===t.position)n.radius=n.radius-s/2,o=n.point(r),e.reflow(new qf(o.x,o.y-s/2,o.x,o.y));else{var l;(o=n.clone().expand(i).point(r)).x>=n.center.x?(l=o.x+a,e.orientation=io):(l=o.x-a,e.orientation=Qr),e.reflow(new qf(l,o.y-s,o.x,o.y))}}},e.prototype.createVisual=function(){var e=this,n=this.sector,i=this.options;if(t.prototype.createVisual.call(this),this.value)if(i.visual){var r=(n.startAngle+180)%360,s=i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new o.Point(n.center.x,n.center.y),radius:n.radius,innerRadius:n.innerRadius,startAngle:r,endAngle:r+n.angle,options:i,sender:this.getSender(),createVisual:function(){var t=new l.Group;return e.createSegmentVisual(t),t}});s&&this.visual.append(s)}else this.createSegmentVisual(this.visual)},e.prototype.createSegmentVisual=function(t){var e=this.sector,n=this.options,i=n.border||{},r=n.color,o={color:r,opacity:n.opacity},s=this.createSegment(e,Bu({fill:o,stroke:{opacity:n.opacity},zIndex:n.zIndex},i.width>0?{stroke:{color:i.color,width:i.width,opacity:i.opacity,dashType:i.dashType}}:{}));t.append(s),Yv(n)&&t.append(this.createGradientOverlay(s,{baseColor:r,fallbackFill:o},Bu({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace
1:!0},n.overlay)))},e.prototype.createSegment=function(t,e){return e.singleSegment?new l.Circle(new o.Circle(new o.Point(t.center.x,t.center.y),t.radius),e):Yf.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.sector.center;Bu(this.options,{animation:{center:[e.x,e.y],delay:this.animationDelay}}),t.prototype.createAnimation.call(this)},e.prototype.createHighlight=function(t){var e=this.options.highlight||{},n=e.border||{};return this.createSegment(this.sector,Bu({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:n.opacity,width:n.width,color:n.color}}))},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new o.Point(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},e.prototype.tooltipAnchor=function(){var t,e,n,i=this.sector.clone().expand(5),r=i.middle();return{point:i.point(r),align:(t=zf(r+180),e=Ef(Math.sin(t),Jr),n=Ef(Math.cos(t),Jr),{horizontal:Math.abs(e)>ux?Xr:n<0?io:Qr,vertical:Math.abs(e)<px?Xr:e<0?$r:oo})}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}},e}(Jf),px=Ef(zf(30),Jr),ux=Ef(zf(60),Jr);Vf(cx,{color:ao,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:"12px sans-serif",margin:Uu(.5),align:Wr,zIndex:1,position:"outsideEnd"},animation:{type:av},highlight:{visible:!0,border:{width:1}},visible:!0}),Bu(cx.prototype,Cv);var fx=cx,dx={createLegendItem:function(t,e,n){var i=this.options.legend||{},r=i.labels||{},o=i.inactiveItems||{},s=o.labels||{};if(n&&!1!==n.visibleInLegend){var a,l,h=!1!==n.visible,c=h?lf(r):lf(s)||lf(r),p=n.category;c&&(p=c({text:p,series:n.series,dataItem:n.dataItem,percentage:n.percentage,value:t})),h?(a={},l=e.color):(a={color:s.color,font:s.font},l=(o.markers||{}).color),vy(p)&&""!==p&&this.legendItems.push({active:h,pointIndex:n.index,text:p,series:n.series,markerColor:l,labels:a})}}},gx=function(t){function e(e,n){t.call(this,n),this.plotArea=e,this.chartService=e.chartService,this.points=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.traverseDataPoints=function(t){var e=this.options,n=this.plotArea.options.seriesColors;void 0===n&&(n=[]);for(var i=n.length,r=e.series,o=r.length,s=0;s<o;s++){var a=r[s],l=a.data,h=Hy(a),c=h.total,p=h.points,u=h.count,f=360/c,d=void 0;isFinite(f)||(d=360/u);var g=void 0;g=kf(a.startAngle)?a.startAngle:e.startAngle,s!==o-1&&"outsideEnd"===a.labels.position&&(a.labels.position=Xr);for(var v=0;v<p.length;v++){var y=p[v];if(y){var m=y.fields,x=y.value,b=y.visible,_=0!==x?d||x*f:0,w=1!==l.length&&Boolean(m.explode);Iu(a.color)||(a.color=m.color||n[v%i]),t(y.valueFields.value,new Xf(null,0,0,g,_),{owner:this,category:kf(m.category)?m.category:"",index:v,series:a,seriesIx:s,dataItem:l[v],percentage:0!==c?x/c:0,explode:w,visibleInLegend:m.visibleInLegend,visible:b,zIndex:o-s,animationDelay:this.animationDelay(v,s,o)}),!1!==b&&(g+=_)}}}},e.prototype.evalSegmentOptions=function(t,e,n){var i=n.series;xv(t,{value:e,series:i,dataItem:n.dataItem,category:n.category,percentage:n.percentage},{defaults:i._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,n){var i=Bu({},n.series,{index:n.index});if(this.evalSegmentOptions(i,t,n),this.createLegendItem(t,i,n),!1!==n.visible){var r=new fx(t,e,i);Object.assign(r,n),this.append(r),this.points.push(r)}},e.prototype.reflow=function(t){var e=this.options,n=this.points,i=this.seriesConfigs;void 0===i&&(i=[]);var r=n.length,o=t.clone(),s=Math.min(o.width(),o.height()),a=s/2,l=s-.85*s,h=new qf(o.x1,o.y1,o.x1+s,o.y1+s),c=h.center(),p=o.center(),u=e.series.length,f=[],d=[],g=Bf(e.padding,l);this.targetBox=t,g=g>a-5?a-5:g,h.translate(p.x-c.x,p.y-c.y);for(var v=a-g,y=new Uf(v+h.x1+g,v+h.y1+g),m=0;m<r;m++){var x=n[m],b=x.sector,_=x.seriesIx;if(b.radius=v,b.center=y,i.length){var w=i[_];
1b.innerRadius=w.innerRadius,b.radius=w.radius}_===u-1&&x.explode&&(b.center=b.clone().setRadius(.15*b.radius).point(b.middle())),x.reflow(h);var C=x.label;C&&"outsideEnd"===C.options.position&&_===u-1&&(C.orientation===io?d.push(C):f.push(C))}f.length>0&&(f.sort(this.labelComparator(!0)),this.leftLabelsReflow(f)),d.length>0&&(d.sort(this.labelComparator(!1)),this.rightLabelsReflow(d)),this.box=h},e.prototype.leftLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.rightLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.distanceBetweenLabels=function(t){var e=jf(this.points),n=e.sector,i=t.length-1,r=n.radius+e.options.labels.distance,o=[],s=t[0].box,a=Ef(s.y1-(n.center.y-r-s.height()-s.height()/2));o.push(a);for(var l=0;l<i;l++)a=Ef(t[l+1].box.y1-(s=t[l].box).y2),o.push(a);return a=Ef(n.center.y+r-t[i].box.y2-t[i].box.height()/2),o.push(a),o},e.prototype.distributeLabels=function(t,e){for(var n,i,r,o=t.length,s=0;s<o;s++)for(r=-t[s],n=i=s;r>0&&(n>=0||i<o);)r=this._takeDistance(t,s,--n,r),r=this._takeDistance(t,s,++i,r);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,n,i){var r=i;if(t[n]>0){var o=Math.min(t[n],r);r-=o,t[n]-=o,t[e]+=o}return r},e.prototype.reflowLabels=function(t,e){var n,i=jf(this.points),r=i.sector,o=i.options.labels,s=e.length,a=o.distance,l=r.center.y-(r.radius+a)-e[0].box.height();t[0]+=2;for(var h=0;h<s;h++){var c=e[h],p=c.box;l+=t[h],n=this.hAlignLabel(p.x2,r.clone().expand(a),l,l+p.height(),c.orientation===io),c.orientation===io?(o.align!==Wr&&(n=r.radius+r.center.x+a),c.reflow(new qf(n+p.width(),l,n,l))):(o.align!==Wr&&(n=r.center.x-r.radius-a),c.reflow(new qf(n-p.width(),l,n,l))),l+=p.height()}},e.prototype.createVisual=function(){var e=this.options.connectors,n=this.points,i=n.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var r=0;r<i;r++){var o=n[r],s=o.sector,a=o.label,h=s.middle();if(a){var c=new l.Path({stroke:{color:(o.options.connectors||{}).color||e.color,width:e.width},animation:{type:"fadeIn",delay:o.animationDelay}});if("outsideEnd"===a.options.position){var p=a.box,u=s.center,f=s.point(h),d=new Uf(p.x1,p.center().y),g=void 0,v=void 0,y=void 0;f=s.clone().expand(e.padding).point(h),c.moveTo(f.x,f.y),a.orientation===io?(y=vx(u,f,d,v=new Uf(p.x1-e.padding,p.center().y)),d=new Uf(v.x-4,v.y),(y=y||d).x=Math.min(y.x,d.x),this.pointInCircle(y,s.center,s.radius+4)||y.x<s.center.x?(g=s.center.x+s.radius+4,c.lineTo(o.options.labels.align!==ov?g<d.x?g:f.x+8:g,f.y),c.lineTo(d.x,v.y)):(y.y=v.y,c.lineTo(y.x,y.y))):(y=vx(u,f,d,v=new Uf(p.x2+e.padding,p.center().y)),d=new Uf(v.x+4,v.y),(y=y||d).x=Math.max(y.x,d.x),this.pointInCircle(y,s.center,s.radius+4)||y.x>s.center.x?(g=s.center.x-s.radius-4,c.lineTo(o.options.labels.align!==ov?g>d.x?g:f.x-8:g,f.y),c.lineTo(d.x,v.y)):(y.y=v.y,c.lineTo(y.x,y.y))),c.lineTo(v.x,v.y),this._connectorLines.push(c),this.visual.append(c)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),this.options.series.find(function(t){return t.autoFit})){var e=this.targetBox.toRect();l.fit(this.visual,e);var n=this.visual.transform();if(n){l.align([this.visual],e,"center");var i=this.box.toRect().transformCopy(n);n.matrix().f+=e.center().y-i.center().y}}},e.prototype.labelComparator=function(t){var e=t?-1:1;return function(t,n){return((t.parent.sector.middle()+270)%360-(n.parent.sector.middle()+270)%360)*e}},e.prototype.hAlignLabel=function(t,e,n,i,r){var o=e.radius,s=e.center,a=s.x,l=s.y,h=Math.min(Math.abs(l-n),Math.abs(l-i));return h>o?t:a+Math.sqrt(o*o-h*h)*(r?1:-1)},e.prototype.pointInCircle=function(t,e,n){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<Math.pow(n,2)},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.animationDelay=function(t){return 70*t},e.prototype.stackRoot=function(){return this},e}(Jf);function vx(t,e,n,i){var r,o=(i.y-n.y)*(e.x-t.x)-(i.x-n.x)*(e.y-t.y);if(0!==o){var s=((i.x-n.x)*(t.y-n.y)-(i.y-n.y)*(t.x-n.x))/o;r=new Uf(t.x+s*(e.x-t.x),t.y+s*(e.y-t.y))}return r}Vf(gx,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),Bu(gx.prototype,dx);var yx=gx,mx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],n=new yx(this,{series:t,padding:e.padding,startAngle:e.startAngle,connectors:e.connectors,legend:this.options.legend});this.appendChart(n)},e.prototype.appendChart=function(e,n){t.prototype.appendChart.call(this,e,n),Cf(this.options.legend.items,e.legendItems)},e}(nm),xx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflowLabel=function(){var e=this.options.labels,n=this.label,i=this.sector.clone(),r=i.middle();if(n){var o=n.box.height();if(e.position===Xr){i.radius-=(i.radius-i.innerRadius)/2;var s=i.point(r);n.reflow(new qf(s.x,s.y-o/2,s.x,s.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return Yf.current.createRing(t,e)},e}(fx);Vf(xx,{overlay:{gradient:"roundedGlass"},labels:{position:Xr},animation:{type:av}}),Bu(xx.prototype,Cv);var bx=xx,_x=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.addValue=function(t,e,n){var i=Bu({},n.series,{index:n.index});if(this.evalSegmentOptions(i,t,n),this.createLegendItem(t,i,n),t&&!1!==n.visible){var r=new bx(t,e,i);Object.assign(r,n),this.append(r),this.points.push(r)}},e.prototype.reflow=function(e){for(var n,i=this.options,r=e.clone(),o=Math.min(r.width(),r.height()),s=o/2,a=i.series,l=a.length,h=Bf(i.padding,o-.85*o),c=s-(h=h>s-5?s-5:h),p=0,u=0;u<l;u++){var f=a[u];0===u&&kf(f.holeSize)&&(n=f.holeSize,c-=f.holeSize),kf(f.size)?c-=f.size:p++,kf(f.margin)&&u!==l-1&&(c-=f.margin)}kf(n)||(c-=n=(s-h)/(l+.75)*.75);var d,g,v=n,y=0;this.seriesConfigs=[];for(var m=0;m<l;m++){var x=a[m];d=Bf(x.size,c/p),this.seriesConfigs.push({innerRadius:v+=y,radius:g=v+d}),y=x.margin||0,v=g}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,n){return 50*t+600*(e+1)/(n+1)},e}(yx);Vf(_x,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var wx=_x,Cx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],n=new wx(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(n)},e}(mx),Sx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initFields=function(){this.valueAxisRangeTracker=new $v},e.prototype.render=function(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()},e.prototype.alignAxes=function(){var t=this.valueAxis,e=t.range(),n=t.getSlot(t.options.reverse?e.max:e.min),i=this.polarAxis.get
1Slot(0).center,r=t.box.translate(i.x-n.x1,i.y-n.y1);t.reflow(r)},e.prototype.createValueAxis=function(){var t,e,n=this.valueAxisRangeTracker,i=n.query(),r=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});"log"===r.type?(t=Dg,e={min:.1,max:1}):(t=Lg,e={min:0,max:1});var o=n.query(name)||i||e;o&&i&&(o.min=Math.min(o.min,i.min),o.max=Math.max(o.max,i.max));var s=new t(o.min,o.max,r,this.chartService);this.valueAxis=s,this.appendAxis(s)},e.prototype.reflowAxes=function(){var t=this.options.plotArea,e=this.valueAxis,n=this.polarAxis,i=this.box,r=.15*Math.min(i.width(),i.height()),o=Uu(t.padding||{},r),s=i.clone().unpad(o),a=s.clone();a.y2=a.y1+Math.min(a.width(),a.height()),a.align(s,ho,Xr);var l=a.clone().shrink(0,a.height()/2);n.reflow(a),e.reflow(l);var h=e.lineBox().height()-e.box.height();e.reflow(e.box.unpad({top:h})),this.axisBox=a,this.alignAxes(a)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(nm),kx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.pointSlot=function(t,e){var n=Uf.onCircle(t.center,t.startAngle,t.center.y-e.y1);return new qf(n.x,n.y,n.x,n.y)},e}(my);Vf(kx,{clip:!1});var Mx=kx,Ax=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(sx);Ax.prototype.pointSlot=Mx.prototype.pointSlot,Vf(Ax,{clip:!1});var Ox=Ax,Px=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.fillToAxes=function(t){var e=this._polarAxisCenter();t.lineTo(e.x,e.y)},e.prototype._polarAxisCenter=function(){return this.parent.plotArea.polarAxis.box.center()},e.prototype.strokeSegments=function(){var t=this._strokeSegments;if(!t){var e=this._polarAxisCenter(),n=new Vg(!1),i=this.points();i.push(e),(t=this._strokeSegments=n.process(i)).pop()}return t},e}(Gv),Tx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),n=new o.Segment([e.x,e.y]);t.segments.unshift(n),t.segments.push(n)},e}(Nv);function jx(t,e){return t.value.x-e.value.x}var Rx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createSegment=function(t,e,n){return"smooth"===(e.line||{}).style?new Px(t,e,n):new Tx(t,e,n)},e.prototype.createMissingValue=function(t,e){var n;return vy(t.x)&&e!==iv&&(n={x:t.x,y:t.y},e===nv&&(n.y=0)),n},e.prototype.seriesMissingValues=function(t){return t.missingValues||nv},e.prototype._hasMissingValuesGap=function(){for(var t=this.options.series,e=0;e<t.length;e++)if("gap"===this.seriesMissingValues(t[e]))return!0},e.prototype.sortPoints=function(t){if(t.sort(jx),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var n=t[e];n&&(vy(n.value.y)||"gap"!==this.seriesMissingValues(n.series)||delete t[e])}return t},e}(Ox),Ix=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createPolarAxis=function(){var t=new Rg(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return Bu(t,{majorGridLines:{type:Gr},minorGridLines:{type:Gr}},this.options.yAxis)},e.prototype.createValueAxis=function(){t.prototype.createValueAxis.call(this),this.axisY=this.valueAxis},e.prototype.appendChart=function(t,e){this.valueAxisRangeTracker.update(t.yAxisRanges),nm.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Gy(t,["polarLine"]),e),this.createScatterChart(Gy(t,["polarScatter"]),e),this.createAreaChart(Gy(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var n=new Ox(this,{series:t});this.appendChart(n,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var n=new Mx(this,{series:t});this.appendChart(n,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var n=new Rx(this,{series:t});this.appendChart(n,e)}},e.prototype._dispatchEvent=function(t,e,n){var i=t._eventCoordinates(e),r=new Uf(i.x,i.y),o=this.axisX.getValue(r),s=this.axisY.getValue(r);null!==o&&null!==s&&t.trigger(n,{element:Pf(e),x:o,y:s}
1)},e.prototype.createCrosshairs=function(){},e}(Sx);Vf(Ix,{xAxis:{},yAxis:{}}),Bu(Ix.prototype,im);var zx=Ix,Ex=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.pointSlot=function(t,e){var n=t.center.y-e.y1,i=Uf.onCircle(t.center,t.middle(),n);return new qf(i.x,i.y,i.x,i.y)},e.prototype.createSegment=function(t,e,n){var i=new("smooth"===e.style?Iv:Ov)(t,e,n);return t.length===e.data.length&&(i.options.closed=!0),i},e}(Vv);Vf(Ex,{clip:!1,limitPoints:!1});var Lx=Ex,Bx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.fillToAxes=function(){},e}(Gv),Dx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.fillToAxes=function(){},e}(Nv),Fx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createSegment=function(t,e,n,i){var r,o,s,a=(e.line||{}).style;return this.options.isStacked&&n>0&&i&&(o=i.linePoints.slice(0),r=i),"smooth"===a?(s=new Bx(t,e,n,r,o)).options.closed=!0:(t.push(t[0]),s=new Dx(t,e,n,r,o)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||nv},e}(Lx),Vx=function(t){function e(e,n){t.call(this,e,null,n)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(bx);Vf(Vx,{overlay:{gradient:"none"},labels:{distance:10}});var Nx=Vx,Hx=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Qv:Kv}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){var e=this.options,n=this.children,i=e.gap,r=e.spacing,o=n.length,s=t.angle/(o+i+r*(o-1)),a=t.startAngle+s*(i/2);this.forEach(n,function(e){var n=t.clone();n.startAngle=a,n.angle=s,e.sector&&(n.radius=e.sector.radius),e.reflow(n),e.sector=n,a+=s+s*r})},e}(Jf);Vf(Hx,{gap:1,spacing:0});var Ux=Hx,Gx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){var e=this.options.reverse,n=this.children,i=n.length,r=e?i-1:0,o=e?-1:1;this.box=new qf;for(var s=r;s>=0&&s<i;s+=o){var a=n[s].sector;a.startAngle=t.startAngle,a.angle=t.angle}},e}(Jf),qx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.pointType=function(){return Nx},e.prototype.clusterType=function(){return Ux},e.prototype.stackType=function(){return Gx},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var n=t.clone(),i=t.center.y;return n.radius=i-e.y1,n.innerRadius=i-e.y2,n},e.prototype.reflowPoint=function(t,e){t.sector=e,t.reflow()},e.prototype.createAnimation=function(){this.options.animation.center=this.box.toRect().center(),t.prototype.createAnimation.call(this)},e}(oy);qx.prototype.reflow=wv.prototype.reflow,Vf(qx,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var $x=qx,Xx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createPolarAxis=function(){var t=new Tg(this.options.categoryAxis,this.chartService);this.polarAxis=t,this.categoryAxis=t,this.appendAxis(t),this.aggregateCategories(),this.createCategoryAxesLabels()},e.prototype.valueAxisOptions=function(t){return this._hasBarCharts&&Bu(t,{majorGridLines:{type:Gr},minorGridLines:{type:Gr}}),this._isStacked100&&Bu(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),Bu(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){jm.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){jm.prototype.createCategoryAxesLabels.call(this,this.panes)},e.prototype.filterSeries=function(t){return t},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createAreaChart(Gy(t,["radarArea"]),e),this.createLineChart(Gy(t,["radarLine"]),e),this.createBarChart(Gy(t,["radarColumn"]),e)},e.prototype.chartOptions=function(t){var e={series:t},n=t[0];if(n){var i=this.filterVisibleSeries(t),r=n.stack;e.isStacked=r&&i.length>1,e.isStacked100=r&&"100%"===r.type&&i.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var n=new Fx(this,this.chartOptions(t));this.appendChart(n,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var n=new Lx(this,this.chartOptions(t));this.appendChart(n,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var n=t[0],i=this.chartOptions(t);i.gap=n.gap,i.spacing=n.spacing;var r=new $x(this,i);this.appendChart(r,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,n){var i=t._eventCoordinates(e),r=new Uf(i.x,i.y),o=this.categoryAxis.getCategory(r),s=this.valueAxis.getValue(r);null!==o&&null!==s&&t.trigger(n,{element:Pf(e),category:o,value:s})},e.prototype.createCrosshairs=function(){},e}(Sx);Bu(Xx.prototype,im,{appendChart:jm.prototype.appendChart,aggregateSeries:jm.prototype.aggregateSeries,seriesSourcePoints:jm.prototype.seriesSourcePoints}),Vf(Xx,{categoryAxis:{categories:[]},valueAxis:{}});var Wx=Xx,Yx=function(t){function e(e,n,i){t.call(this,n),this.value=e,this.options.index=i.index}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){var e=this.points,n=this.children[0];this.box=new qf(e[0].x,e[0].y,e[1].x,e[2].y),n&&n.reflow(new qf(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,n=this,i=this.options;t.prototype.createVisual.call(this),(e=i.visual?i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:i,sender:this.getSender(),createVisual:function(){return n.createPath()}}):this.createPath())&&this.visual.append(e)},e.prototype.createPath=function(){var t=this.options,e=t.border;return l.Path.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close()},e.prototype.createHighlight=function(t){return l.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=l.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;
1return{point:new Uf(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(Jf);Vf(Yx,{color:ao,border:{width:1}}),Bu(Yx.prototype,Cv);var Zx=Yx,Jx=function(t){function e(e,n){t.call(this,n),this.plotArea=e,this.points=[],this.labels=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.render=function(){var t=this.plotArea.options.seriesColors;void 0===t&&(t=[]);var e=this.options.series[0],n=e.data;if(n)for(var i=Hy(e),r=i.total,o=i.points,s=0;s<o.length;s++){var a=o[s];if(a){var l=a.fields;Iu(e.color)||(e.color=l.color||t[s%t.length]),l=Bu({index:s,owner:this,series:e,dataItem:n[s],percentage:a.value/r},l,{visible:a.visible});var h=a.valueFields.value,c=this.createSegment(h,l),p=this.createLabel(h,l);c&&p&&c.append(p)}}},e.prototype.evalSegmentOptions=function(t,e,n){var i=n.series;xv(t,{value:e,series:i,dataItem:n.dataItem,index:n.index},{defaults:i._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var n=Bu({},e.series);if(this.evalSegmentOptions(n,t,e),this.createLegendItem(t,n,e),!1!==e.visible){var i=new Zx(t,n,e);return Object.assign(i,e),this.append(i),this.points.push(i),i}},e.prototype.createLabel=function(t,e){var n=e.series,i=e.dataItem,r=Bu({},this.options.labels,n.labels),o=t;if(r.visible){var s=lf(r),a={dataItem:i,value:t,percentage:e.percentage,category:e.category,series:n};if(s?o=s(a):r.format&&(o=this.plotArea.chartService.format.auto(r.format,o)),!r.color){var l=new Xo(n.color).percBrightness();r.color=l>180?qr:ao,r.background||(r.background=n.color)}this.evalSegmentOptions(r,t,e);var h=new fd(o,Bu({vAlign:r.position},r),a);return this.labels.push(h),h}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},n=0;n<t.length;n++){var i=t[n].options.align;if(i!==Xr){var r=t[n].box.width();i===Qr?e.left=Math.max(e.left,r):e.right=Math.max(e.right,r)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,n){for(var i=this.options,r=this.points,s=r.length,a=r[0],l=a,h=0;h<r.length;h++)r[h].percentage>l.percentage&&(l=r[h]);for(var c=a.percentage/l.percentage*e,p=(e-c)/2,u=0,f=0;f<s;f++){var d=r[f].percentage,g=r[f+1],v=g?g.percentage:d,y=r[f].points=[],m=i.dynamicHeight?n*d:n/s,x=void 0;x=Rf(x=d?(e-c*(v/d))/2:v?0:e/2,0,e),y.push(new o.Point(t.x1+p,t.y1+u)),y.push(new o.Point(t.x1+e-p,t.y1+u)),y.push(new o.Point(t.x1+e-x,t.y1+m+u)),y.push(new o.Point(t.x1+x,t.y1+m+u)),p=x,u+=m+i.segmentSpacing,c=Rf(e-2*x,0,e)}},e.prototype.constantSlopeReflow=function(t,e,n){for(var i=this.options,r=this.points,s=r.length,a=i.neckRatio<=1,l=a?0:(e-e/i.neckRatio)/2,h=((a?e:e-2*l)-(a?i.neckRatio*e:e))/2,c=0,p=0;p<s;p++){var u=r[p].points=[],f=r[p].percentage,d=i.dynamicHeight?h*f:h/s,g=i.dynamicHeight?n*f:n/s;u.push(new o.Point(t.x1+l,t.y1+c)),u.push(new o.Point(t.x1+e-l,t.y1+c)),u.push(new o.Point(t.x1+e-l-d,t.y1+g+c)),u.push(new o.Point(t.x1+l+d,t.y1+g+c)),l+=d,c+=g+i.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,n=e.length;if(n){var i=this.options,r=t.clone().unpad(this.labelPadding()),o=r.height()-i.segmentSpacing*(n-1),s=r.width();i.dynamicSlope?this.dynamicSlopeReflow(r,s,o):this.constantSlopeReflow(r,s,o);for(var a=0;a<n;a++)e[a].reflow(t)}},e}(Jf);Vf(Jx,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:Xr,position:Xr,zIndex:1}}),Bu(Jx.prototype,dx);var Kx=Jx,Qx=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],n=new Kx(this,{series:t,legend:this.options.legend,neckRatio:e.neckRatio,dynamicHeight:e.dynamicHeight,dynamicSlope:e.dynamicSlope,segmentSpacing:e.segmentSpacing,highlight:e.highlight});this.appendChart(n)},e.prototype.appendChart=function(e,n){t.prototype.appendChart.call(this,e,n),Cf(this.options.legend.items,e.legendItems)},e}(nm),tb="color",eb="first",nb="max";Xm.current.register(jm,[rv,ov,sv,lv,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),Xm.current.register(hx,["scatter","scatterLine","bubble"]),Xm.current.register(mx,[av]),Xm.current.register(Cx,["donut"]),Xm.current.register(Qx,["funnel"]),Xm.current.register(zx,["polarArea","polarLine","polarScatter"]),Xm.current.register(Wx,["radarArea","radarColumn","radarLine"]),Jg.current.register([rv,ov,sv,lv,"area","verticalArea"],[so],["category",tb,"noteText","errorLow","errorHigh"]),Jg.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",tb,"noteText"]),Jg.current.register(["waterfall","horizontalWaterfall"],[so],["category",tb,"noteText","summary"]),Jg.current.register(["polarArea","polarLine","polarScatter"],[lo,ho],[tb]),Jg.current.register(["radarArea","radarColumn","radarLine"],[so],[tb]),Jg.current.register(["funnel"],[so],["category",tb,"visibleInLegend","visible"]),am.current.register([rv,ov,sv,lv,"area","verticalArea","waterfall","horizontalWaterfall"],{value:nb,color:eb,noteText:eb,errorLow:"min",errorHigh:nb}),am.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:nb,color:eb,noteText:eb}),am.current.register(["radarArea","radarColumn","radarLine"],{value:nb,color:eb}),Jg.current.register(["scatter","scatterLine","bubble"],[lo,ho],[tb,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Jg.current.register(["bubble"],[lo,ho,"size"],[tb,"category","noteText"]),Jg.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",tb,"downColor","noteText"]),am.current.register(["candlestick","ohlc"],{open:nb,high:nb,low:"min",close:nb,color:eb,downColor:eb,noteText:eb}),Jg.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",tb,"noteText"]),am.current.register(["boxPlot","verticalBoxPlot"],{lower:nb,q1:nb,median:nb,q3:nb,upper:nb,mean:nb,outliers:eb,color:eb,noteText:eb}),Jg.current.register(["bullet","verticalBullet"],["current","target"],["category",tb,"visibleInLegend","noteText"]),am.current.register(["bullet","verticalBullet"],{current:nb,target:nb,color:eb,noteText:eb}),Jg.current.register([av,"donut"],[so],["category",tb,"explode","visibleInLegend","visible"]);var ib=["category",so,lo,ho],rb=function(t){function e(e,n,i,r){var o=this;void 0===r&&(r={}),t.call(this),this.observers=[],this.addObserver(r.observer),this.chartService=new ef(this,r),this.chartService.theme=i,this._initElement(e);var s=Bu({},this.options,n);this._originalOptions=Bu({},s),this._theme=i,this._initTheme(s,i),this._initHandlers(),this._initSurface(),this.bindCategories(),Ff.preloadFonts(n,function(){o.fontLoaded=!0,o._destroyed||(o.trigger("init"),o._redraw(),o._attachEvents())})}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._initElement=function(t){for(this._setElementClass(t),t.style.position="relative";t.firstChild;)t.removeChild(t.firstChild);this.element=t}
vendor: 15,272 bytes, line 1
1,e.prototype._setElementClass=function(t){po(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var n=[],i=t.series||[],r=0;r<i.length;r++)n.push(Object.assign({},i[r]));t.series=n,function(t){for(var e=ib,n=0;n<e.length;n++){var i=e[n]+"Axes";t[i]&&(t[e[n]+"Axis"]=t[i],delete t[i])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=Bu({},e,t),this.applySeriesColors()},e.prototype.getSize=function(){var t=this.options.chartArea||{};return{width:t.width?parseInt(t.width,10):Math.floor(this.element.offsetWidth),height:t.height?parseInt(t.height,10):Math.floor(this.element.offsetHeight)}},e.prototype.resize=function(t){var e=this.getSize(),n=this._size;(t||(e.width>0||e.height>0)&&(!n||e.width!==n.width||e.height!==n.height))&&(this._size=e,this._resize(e,t),this.trigger("resize",e))},e.prototype._resize=function(){this._noTransitionsRedraw()},e.prototype.redraw=function(t){if(this.applyDefaults(this.options),this.applySeriesColors(),t){var e=this._model._plotArea,n=e.findPane(t);e.redraw(n)}else this._redraw()},e.prototype.getAxis=function(t){return Hg(t,this._plotArea.axes)},e.prototype.findAxisByName=function(t){return this.getAxis(t)},e.prototype.findPaneByName=function(t){for(var e=this._plotArea.panes,n=0;n<e.length;n++)if(e[n].options.name===t)return new Gg(e[n])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Gg(e[t])},e.prototype.plotArea=function(){return new qg(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var n,i,r,o=this._plotArea,s=(o.srcSeries||o.series||[])[0];Iu(e)?n=o.filterPoints(e):(Du(e)?(i=e.series,r=e.category):i=r=e,n="donut"===s.type?ob(o.pointsBySeriesName(i),r):s.type===av||"funnel"===s.type?ob((o.charts[0]||{}).points,r):o.pointsBySeriesName(i)),n&&this.togglePointsHighlight(t,n)},e.prototype.togglePointsHighlight=function(t,e){for(var n=this._highlight,i=0;i<e.length;i++)n.togglePointHighlight(e[i],t)},e.prototype.showTooltip=function(t){var e,n,i=this._sharedTooltip(),r=this._tooltip,o=this._plotArea;if(Iu(t)?(e=o.findPoint(t))&&i&&(n=e.categoryIx):i&&kf(t)&&(n=o.categoryAxis.categoryIndex(t)),i){if(n>=0){var s=this._plotArea.pointsByCategoryIndex(n);r.showAt(s)}}else e&&r.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),n=this.options.chartArea;n.width&&Of(e,{width:n.width}),n.height&&Of(e,{height:n.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=l.Surface.create(e,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))},e.prototype._surfaceWrap=function(){return this.element},e.prototype._redraw=function(){var t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._model=t,this._plotArea=t._plotArea,t.renderVisual(),!1!==this.options.transitions&&t.traverse(function(t){t.animation&&t.animation.setup()}),this._initSurface(),this.surface.draw(t.visual),!1!==this.options.transitions&&t.traverse(function(t){t.animation&&t.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new Im,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),cb(this._plotArea.panes),this._navState||this._cancelDomEvents()},e.prototype.exportVisual=function(t){var e;if(t&&(t.width||t.height||t.options)){var n=this.options,i=Bu({},t.options,{chartArea:{width:t.width,height:t.height}});hb(this._originalOptions,i),this.options=Bu({},this._originalOptions,i),this._initTheme(this.options,this._theme),this.bindCategories();var r=this._getModel();r.renderVisual(),cb(r._plotArea.panes),e=r.visual,this.options=n}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof jm&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new Bm(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new Fm(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Vm(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.zoomable,e=(t||{}).mousewheel,n=!(this.options.pannable||!1!==t&&!1!==(t||{}).selection||this.requiresHandlers(["dragStart",cv,pv])),i=(!1===t||!1===e)&&!this.requiresHandlers(["zoomStart",uv,fv]),r=this.element;this._dragZoomEnabled&&n&&i?(r.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||n&&i||(r.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!n,!i)},e.prototype._toggleDomEvents=function(t,e){var n=this.domEvents;n&&(n.toggleDrag&&n.toggleDrag(t),n.toggleZoom&&n.toggleZoom(e))},e.prototype._createTooltip=function(){var t=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(t):new Km(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new tx(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var n,i,r,o=(e||{}).axisDefaults||{};function s(t){var e=(t||{}).color||i.color,r=Bu({},o,o[n],i,i[n],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete r[n],r}for(var a=0;a<ib.length;a++)n=ib[a]+"Axis",i=t.axisDefaults||{},r=(r=[].concat(t[n])).map(s),t[n]=r.length>1?r:r[0]}(t,e),function(t,e){var n=t.series,i=n.length,r=t.seriesDefaults,o=Bu({},t.seriesDefaults),s=e?Bu({},e.seriesDefaults):{},a=Bu({},s);sb(o),sb(a);for(var l=0;l<i;l++){var h=n[l].type||t.seriesDefaults.type,c=Bu({data:[]},a,s[h],{tooltip:t.tooltip},o,r[h]);n[l]._defaults=c,n[l]=Bu({},c,n[l]),n[l].data=n[l].data||[]}}(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,n=t.seriesColors||[],i=0;i<e.length;i++){var r=e[i],o=n[i%n.length],s=r._defaults;r.color=r.color||o,s&&(s.color=s.color||o)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),n=new od(this._modelOptions());return n.chart=this,n._plotArea=e,gd.buildTitle(t.title,n),t.legend&&t.legend.visible&&n.append(new qm(e.options.legend,this.chartService)),n.append(e),n.reflow(),n},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return Bu({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return Xm.current.create(t?[]:e.series,e,this.chartService)},e.prototype._setupSelection=function(){for(var t=this._plotArea.axes,e=this._selections=[],n=0;n<t.length;n++){var i=t[n],r=i.options;if(i instanceof ig&&r.select&&!r.vertical){var o=i.range(),s=new Jm(this,i,Bu({min:o.min,max:o.max},r.select));e.push(s)}}},e.prototype._selectStart=function(t){return this.trigger("selectStart",t)},e.prototype._select=function(t){return this.trigger("select",t)},e.prototype._selectEnd=function(t){return this.trigger("selectEnd",t)},e.prototype._initHandlers=function(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=zo(this._mousemove.bind(this),20)},e.prototype.addObserver=function(t){t&&this.observers.push(t)},e.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)},e.prototype.requiresHandlers=function(t){for(var e=this.observers,n=0;n<e.length;n++)if(e[n].requiresHandlers(t))return!0},e.prototype.trigger=function(t,e){void 0===e&&(e={}),"showTooltip"===t&&(e.anchor.point=this._toDocumentCoordinates(e.anchor.point)),e.sender=this;for(var n=this.observers,i=!1,r=0;r<n.length;r++)n[r].trigger(t,e)&&(i=!0);return i},e.prototype._attachEvents=function(){var t,e,n=this.element;this._touchAction=n.style.touchAction,Sf(n,((t={}).contextmenu=this._clickHandler,t[dv]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&Sf(n,((e={}).mousemove=this._mousemove,e)),this.domEvents=rf.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()},e.prototype._mouseleave=function(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotArea.hovered&&(this.trigger("plotAreaLeave"),this._plotArea.hovered=!1)},e.prototype._cancelDomEvents=function(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()},e.prototype._gesturestart=function(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this.surface.suspendTracking())},e.prototype._gestureend=function(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger(fv,{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var n=-t.distance/this._gestureDistance+1;if(Math.abs(n)>=.1){n=Math.round(10*n),this._gestureDistance=t.distance;var i={delta:n,axisRanges:ab(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger("zoomStart",i)||(this._zooming||(this._zooming=!0),(i.axisRanges=e.updateRanges(n))&&!this.trigger(uv,i)&&e.zoom())}}},e.prototype._mouseout=function(t){if(t.element){var e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}},e.prototype._start=function(t){var e=this._eventCoordinates(t);!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(e)&&(this.requiresHandlers(["dragStart",cv,pv])&&this._startNavigation(t,e,"dragStart"),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger("zoomStart",{axisRanges:ab(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,n=this._pannable;if(!this._stopChartHandlers(t)){if(n){var i=n.move(t);i&&!this.trigger(cv,{axisRanges:i,originalEvent:t})&&n.pan()}else if(e){for(var r={},o=e.axes,s=0;s<o.length;s++){var a=o[s];if(a.options.name){var l=a.options.vertical?t.y:t.x,h=l.startLocation-l.location;0!==h&&(r[a.options.name]=a.translateRange(h))}}e.axisRanges=r,this.trigger(cv,{axisRanges:r,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}},e.prototype._end=function(t){if(!this._stopChartHandlers(t)){var e=this._pannable;if(e&&e.end(t)?(this.surface.resumeTracking(),this.trigger(pv,{axisRanges:ab(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,pv),this._zoomSelection){var n=this._zoomSelection.end(t);n&&!this.trigger(uv,{axisRanges:n,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger(fv,{axisRanges:n,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var n=this._eventCoordinates(t),i=this._plotArea.paneByPoint(n);if(i)for(var r=0;r<e.length;r++)if(e[r].onPane(i))return!0},e.prototype._mousewheel=function(t){var e=this,n=_f(t),i=this._mousewheelZoom,r=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(r))if(i){var o={delta:n,axisRanges:ab(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger("zoomStart",o)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),o.axisRanges=i.updateRanges(n),o.axisRanges&&!this.trigger(uv,o)&&i.zoom(),this._mwTimeout=setTimeout(function(){e.trigger(fv,o),e._zooming=!1,e.surface&&e.surface.resumeTracking()},150))}else{var s=this._navState;if(s||this._startNavigation(t,r,"zoomStart")||(s=this._navState),s){var a=s.totalDelta||n;s.totalDelta=a+n;for(var l=this._navState.axes,h={},c=0;c<l.length;c++){var p=l[c],u=p.options.name;u&&(h[u]=p.scaleRange(-a))}this.trigger(uv,{delta:n,axisRanges:h,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(function(){e._endNavigation(t,fv)},150)}}},e.prototype._startNavigation=function(t,e,n){var i=this._model._plotArea,r=i.findPointPane(e),o=i.axes.slice(0);if(r){var s=ab(o);this.trigger(n,{axisRanges:s,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:r,axes:o})}},e.prototype._endNavigation=function(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)},e.prototype._getChartElement=function(t,e){var n=this.surface.eventTarget(t);if(n)return this._drawingChartElement(n,t,e)},e.prototype._drawingChartElement=function(t,e,n){for(var i,r=t;r&&!i;)i=r.chartElement,r=r.parent;if(i)return i.aliasFor&&(i=i.aliasFor(e,this._eventCoordinates(e))),n&&(i=i.closest(n))&&i.aliasFor&&(i=i.aliasFor()),i},e.prototype._eventCoordinates=function(t){var e=Tf(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=Hu(this.element,["paddingLeft","paddingTop"]);this._padding={top:t.paddingTop,left:t.paddingLeft}}return this._padding},e.prototype._toDocumentCoordinates=function(t){var e=this._elementPadding(),n=Af(this.element);return{left:Ef(t.x+e.left+n.left),top:Ef(t.y+e.top+n.top)}},e.prototype._toModelCoordinates=function(t,e){var n=Af(this.element),i=this._elementPadding();return new Uf(t-n.left-i.left,e-n.top-i.top)},e.prototype._tap=function(t){var e=this,n=this.surface.eventTarget(t),i=this._drawingChartElement(n,t),r=this._sharedTooltip();this._startHover(n,t)||r||this._unsetActivePoint(),r&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(i,t),this.handlingTap=!0,setTimeout(function(){e.handlingTap=!1},0)},e.prototype._click=function(t){var e=this._getChartElement(t);this._propagateClick(e,t)},e.prototype._propagateClick=function(t,e){for(var n=t;n;)n.click&&n.click(this,e),n=n.parent},e.prototype._startHover=function(t,e){if(this._suppressHover)return!1;var n=this._drawingChartElement(t,e,function(t){return(t.hover||t.over)&&!(t instanceof nm)}),i=this._activePoint,r=this._hoveredPoint;return r&&r!==n&&(r.out(this,e),this._hoveredPoint=null),n&&r!==n&&n.over&&(this._hoveredPoint=n,n.over(this,e)),n&&i!==n&&n.hover&&(this._activePoint=n,this._sharedTooltip()||n.hover(this,e)||(Bu({},this.options.tooltip,n.options.tooltip).visible&&this._tooltip.show(n),this._highlight.show(n))),n},e.prototype._mouseover=function(t){var e,n=this._startHover(t.element,t.originalEvent);n&&n.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),Sf(
1document,((e={}).mousemove=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,n=this.options,i=this._tooltip,r=this._highlight,o=this._activePoint,s=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(s)){if(o&&o.tooltipTracking&&o.series&&o.parent.getNearestPoint){var a=o.parent.getNearestPoint(s.x,s.y,o.seriesIx);a&&a!==o&&(this._activePoint=a,a.hover(this,t)||(Bu({},n.tooltip,a.options.tooltip).visible&&i.show(a),r.show(a)))}}else Lf(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),n=this._plotArea;if(this._trackCrosshairs(e),n.hover){var i=n.backgroundContainsPoint(e);i?(n.hovered=!0,this._plotArea.hover(this,t)):n.hovered&&!i&&(this.trigger("plotAreaLeave"),n.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,n=0;n<e.length;n++){var i=e[n];i.box.containsPoint(t)?i.showAt(t):i.hide()}},e.prototype._trackSharedTooltip=function(t,e,n){if(!this._suppressHover){var i=this.options.tooltip,r=this._plotArea,o=this._plotArea.categoryAxis,s=this._tooltip,a=this._highlight;if(r.backgroundContainsPoint(t)){var l=o.pointCategoryIndex(t);if(l!==this._tooltipCategoryIx||!this._sharedHighlight&&n){var h=r.pointsByCategoryIndex(l),c=h.map(function(t){return t.eventArgs(e)}),p=c[0]||{};p.categoryPoints=c,h.length>0&&!this.trigger("seriesHover",p)?(i.visible&&s.showAt(h,t),a.show(h),this._sharedHighlight=!0):s.hide(),this._tooltipCategoryIx=l}else n&&this._sharedHighlight&&(a.hide(),s.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(a.hide(),s.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}},e.prototype.hideElements=function(){var t=this._plotArea;this._mousemove.cancel(),t.hideCrosshairs(),this._unsetActivePoint()},e.prototype._unsetActivePoint=function(){var t=this._tooltip,e=this._highlight;this._activePoint=null,this._hoveredPoint=null,t&&t.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,e&&e.hide()},e.prototype._deferRedraw=function(){this._redraw()},e.prototype._clearRedrawTimeout=function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)},e.prototype.bindCategories=function(){for(var t=[].concat(this.options.categoryAxis),e=0;e<t.length;e++){var n=t[e];!1!==n.autoBind&&this.bindCategoryAxisFromSeries(n,e)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var n,i=this.options.series,r=i.length,o=new gf,s=[],a=!1,l=0;l<r;l++){var h=i[l],c=h.data,p=c.length,u=h.categoryField&&(h.categoryAxis===t.name||!h.categoryAxis&&0===e);if(a=u||a,u&&p>0)for(var f=(n=$y(t,Yg(h.categoryField,c[0])))?qy:Yg,d=0;d<p;d++){var g=c[d],v=f(h.categoryField,g,this.chartService.intl);!n&&o.get(v)||(s.push([v,g]),n||o.set(v,!0))}}if(s.length>0){n&&(s=function(t,e){void 0===e&&(e=Xd);for(var n=function(t,e){void 0===e&&(e=Xd);for(var n=1,i=t.length;n<i;n++)if(e(t[n],t[n-1])<0){t.sort(e);break}return t}(s,e),i=n.length,r=i>0?[n[0]]:[],o=1;o<i;o++)0!==e(n[o],jf(r))&&r.push(n[o]);return r}(0,function(t,e){return Xd(t[0],e[0])}));var y=function(t){for(var e=t.length,n=[],i=0;i<e;i++)for(var r=t[i],o=r.length,s=0;s<o;s++)n[s]=n[s]||[],n[s].push(r[s]);return n}(s);t.categories=y[0]}else a&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Jg.current.valueFields(t),n=!0,i=0;i<e.length;i++){var r=e[i];if(r===so?r="field":r+="Field",!kf(t[r])){n=!1;break}}return n},e.prototype._noTransitionsRedraw=function(){var t,e=this.options;e.transitions&&(e.transitions=!1,t=!0),this._redraw(),t&&(e.transitions=!0)},e.prototype._legendItemHover=function(t,e){var n,i=this._plotArea,r=this._highlight;n=vf((i.srcSeries||i.series)[t].type,[av,"donut","funnel"])?i.findPoint(function(n){return n.series.index===t&&n.index===e}):i.pointsBySeriesIndex(t),r.show(n)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers(["plotAreaHover","plotAreaLeave"])},e.prototype.updateMouseMoveHandler=function(){var t,e;Lf(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&Sf(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){hb(this._originalOptions,t),this._originalOptions=Bu(this._originalOptions,t),this.options=Bu({},this._originalOptions),e&&(this._theme=e,this.chartService.theme=e),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()},e.prototype.setOptions=function(t,e){this.applyOptions(t,e),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()},e.prototype.setDirection=function(t){this.chartService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&this._destroySurface()},e.prototype.setIntlService=function(t){this.chartService.intl=t},e.prototype.noTransitionsRedraw=function(){this._noTransitionsRedraw()},e.prototype.destroy=function(){var t,e;this._destroyed=!0,Lf(this.element,((t={}).contextmenu=this._clickHandler,t[dv]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&Lf(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()},e.prototype._destroySurface=function(){var t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)},e.prototype._destroyView=function(){var t=this._model,e=this._selections;
1if(t&&(t.destroy(),this._model=null),e)for(;e.length>0;)e.shift().destroy();this._unsetActivePoint(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)},e}(mo);function ob(t,e){if(t)for(var n=0;n<t.length;n++)if(t[n].category===e)return[t[n]]}function sb(t){delete t.bar,delete t.column,delete t.rangeColumn,delete t.line,delete t.verticalLine,delete t.pie,delete t.donut,delete t.area,delete t.verticalArea,delete t.scatter,delete t.scatterLine,delete t.bubble,delete t.candlestick,delete t.ohlc,delete t.boxPlot,delete t.bullet,delete t.verticalBullet,delete t.polarArea,delete t.polarLine,delete t.radarArea,delete t.radarLine,delete t.waterfall}function ab(t){for(var e={},n=0;n<t.length;n++){var i=t[n],r=i.options.name;r&&(e[r]=i.range())}return e}var lb=["data","categories"];function hb(t,e){for(var n in e)if(!vf(n,lb)&&e.hasOwnProperty(n)){var i=e[n],r=t[n];if(kf(r)){var o=null===i;o||!kf(i)?(delete t[n],o&&delete e[n]):r&&Du(i)&&Du(r)&&hb(r,i)}}}function cb(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}Vf(rb,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:ov,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});var pb=rb,ub=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._slotAnchor=function(t,e){var n=this.plotArea.categoryAxis.options.vertical,i=n?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:n?new Uf(this.plotArea.box.x2,e.center().y):new Uf(e.center().x,-2),align:i}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(tx),fb=[rv,"bullet"];function db(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];e[n]=i.style.display,i.style.display="none"}return e}function gb(t,e){for(var n=0;n<t.length;n++)t[n].style.display=e[n]}function vb(t){return Tu(t)?[t]:t}Vf(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._setElementClass=function(t){po(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(Of(e).width)},e.prototype._resize=function(){var e=this.element,n=db(e.childNodes);this._initialWidth=Math.floor(Of(e).width),gb(e.childNodes,n),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),n=db(e.childNodes),i=document.createElement("span");i.innerHTML=" ",e.appendChild(i);var r=Bu({width:this._autoWidth,height:Of(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return Of(e,{width:r.width,height:r.height}),e.removeChild(i),gb(e.childNodes,n),this.surface&&this.surface.resize(),r},e.prototype._surfaceWrap=function(){if(!this.stage){var t=this.stage=document.createElement("span");this.element.appendChild(t)}return this.stage},e.prototype._createPlotArea=function(e){var n=t.prototype._createPlotArea.call(this,e);return this._autoWidth=this._initialWidth||this._calculateWidth(n),n},e.prototype._calculateWidth=function(t){for(var e=this.options,n=Uu(e.chartArea.margin),i=t.charts,r=this._surfaceWrap(),o=0,s=0;s<i.length;s++){var a=i[s],l=(a.options.series||[])[0];if(l){if(l.type===rv)return 150;if("bullet"===l.type)return 150;if(l.type===av)return Of(r).height;var h=a.categoryAxis;if(h){var c=h.categoriesCount()*(!a.options.isStacked&&vf(l.type,[ov,"verticalBullet"])?a.seriesOptions.length:1);o=Math.max(o,c)}}}var p=o*e.pointWidth;return p>0&&(p+=n.left+n.right),p},e.prototype._createSharedTooltip=function(t){return new ub(this._plotArea,t)},e.normalizeOptions=function(t){var e=vb(t);return(e=co(e)?{seriesDefaults:{data:e}}:Bu({},e)).series||(e.series=[{data:vb(e.data)}]),Bu(e,{seriesDefaults:{type:e.type}}),(vf(e.series[0].type,fb)||vf(e.seriesDefaults.type,fb))&&(e=Bu({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(pb),{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var yb=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setup=function(){this._initialOpacity=parseFloat(Hu(this.element,"opacity").op
1acity)},e.prototype.step=function(t){Hu(this.element,{opacity:String(yf(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),Hu(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),Hu(this.element,{opacity:String(this._initialOpacity)})},e}(l.Animation);function mb(t,e){var n=document.createElement("div");return n.className=t,e&&(n.style.cssText=e),n}var xb=function(t){function e(e,n,i){t.call(this),this.options=Bu({},this.options,i),this.container=e,this.chartService=n;var r=Hu(e,["paddingLeft","paddingTop"]);this.chartPadding={top:r.paddingTop,left:r.paddingLeft},this.createElements(),e.appendChild(this.element)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createElements=function(){var t=this.element=mb("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=mb("k-tooltip k-chart-tooltip"),n=this.scroll=mb("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(n)},e.prototype.show=function(t,e,n){var i=this.element,r=this.options,o=this.scroll,s=this.tooltip,a=Hd(Yd(t)+Yd(e-t)/2),l=.4*n.width(),h=n.center().x-l,c=(n.center().x-h)/(r.max-r.min),p=a-r.min,u=this.chartService.intl.format(r.format,t,e),f=lf(r);this.clearHideTimeout(),this._visible||(Hu(i,{visibility:"hidden",display:"block"}),this._visible=!0),f&&(u=f({from:t,to:e})),s.innerHTML=u,Hu(s,{left:n.center().x-s.offsetWidth/2,top:n.y1});var d=Hu(s,["marginTop","borderTopWidth","height"]);Hu(o,{width:l,left:h+p*c,top:n.y1+d.marginTop+d.borderTopWidth+d.height/2}),Hu(i,{visibility:"visible"})},e.prototype.clearHideTimeout=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()},e.prototype.hide=function(){var t=this;this.clearHideTimeout(),this._hideTimeout=setTimeout(function(){t._visible=!1,t._hideAnimation=new yb(t.element),t._hideAnimation.setup(),t._hideAnimation.play()},this.options.hideDelay)},e.prototype.destroy=function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll},e}(mo);Vf(xb,{format:"{0:d} - {1:d}",hideDelay:500});var bb=xb;function _b(){}var wb=function(t){function e(e){var n;t.call(this),this.chart=e;var i=this.options=Bu({},this.options,e.options.navigator),r=i.select;r&&(r.from=this.parseDate(r.from),r.to=this.parseDate(r.to)),kf(i.hint.visible)||(i.hint.visible=i.visible),this.chartObserver=new xf(this,((n={})[cv]="_drag",n[pv]="_dragEnd",n[uv]="_zoom",n[fv]="_zoomEnd",n)),e.addObserver(this.chartObserver)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.parseDate=function(t){return tg(this.chart.chartService.intl,t)},e.prototype.clean=function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)},e.prototype.destroy=function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()},e.prototype.redraw=function(){this._redrawSelf(),this.initSelection()},e.prototype.initSelection=function(){var t=this.chart,e=this.options,n=this.mainAxis(),i=n.roundedRange(),r=i.min,o=i.max,s=e.select,a=s.from,l=s.to,h=s.mousewheel,c=(_b.prototype=n,new _b);0!==n.categoriesCount()&&(this.clean(),c.box=n.box,this.selection=new Jm(t,c,{min:r,max:o,from:a||r,to:l||o,mousewheel:Bf(h,{zoom:"left"}),visible:e.visible},new xf(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),e.hint.visible&&(this.hint=new bb(t.element,t.chartService,{min:r,max:o,template:lf(e.hint),format:e.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes._navigator.roundedRange(),e=t.min,n=t.max,i=this.options.select||{},r=i.from||e;r<e&&(r=e);var o=i.to||n;o>n&&(o=n),this.options.select=Bu({},i,{from:r,to:o}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(jf(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,n=e.panes.slice(0,-1);e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(n)},e.prototype._drag=function(t){var e,n=this.chart,i=this.selection,r=n._eventCoordinates(t.originalEvent),o=this.mainAxis(),s=o.roun
1dedRange(),a=o.pane.box.containsPoint(r),l=t.axisRanges[n._plotArea.categoryAxis.options.name],h=this.options.select;if(l&&!a&&i){e=h.from&&h.to?Yd(h.to)-Yd(h.from):Yd(i.options.to)-Yd(i.options.from);var c=Hd(Rf(Yd(l.min),s.min,Yd(s.max)-e)),p=Hd(Rf(Yd(c)+e,Yd(s.min)+e,s.max));this.options.select={from:c,to:p},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),i.set(c,p),this.showHint(c,p)}},e.prototype._dragEnd=function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()},e.prototype.readSelection=function(){var t=this.selection.options,e=t.to,n=this.options.select;n.from=t.from,n.to=e},e.prototype.filterAxes=function(){var t=this.options.select;void 0===t&&(t={});for(var e=this.chart.options.categoryAxis,n=t.from,i=t.to,r=0;r<e.length;r++){var o=e[r];"_navigator"!==o.pane&&(o.min=n,o.max=i)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var n=this.mainAxis(),i={from:e.from,to:e.to};if("category"!==n.options.type){var r=new fg(Bu({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;i.from=Gd(r.min,-r.baseUnitStep,r.baseUnit),i.to=Gd(r.max,r.baseUnitStep,r.baseUnit)}this.chart.trigger("navigatorFilter",i)}},e.prototype._zoom=function(t){var e=this.chart._plotArea.categoryAxis,n=this.selection,i=this.options,r=i.select,o=i.liveDrag,s=this.mainAxis(),a=t.delta;if(n){var l=s.categoryIndex(n.options.from),h=s.categoryIndex(n.options.to);t.originalEvent.preventDefault(),Math.abs(a)>1&&(a*=3),h-l>1?(n.expand(a),this.readSelection()):(e.options.min=r.from,r.from=e.scaleRange(-t.delta).min),o&&(this.filterAxes(),this.redrawSlaves()),n.set(r.from,r.to),this.showHint(this.options.select.from,this.options.select.to)}},e.prototype._zoomEnd=function(t){this._dragEnd(t)},e.prototype.showHint=function(t,e){this.hint&&this.hint.show(t,e,this.chart._plotArea.backgroundBox())},e.prototype._selectStart=function(t){return this.chart._selectStart(t)},e.prototype._select=function(t){return this.showHint(t.from,t.to),this.chart._select(t)},e.prototype._selectEnd=function(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)},e.prototype.mainAxis=function(){var t=this.chart._plotArea;if(t)return t.namedCategoryAxes._navigator},e.prototype.select=function(t,e){var n=this.options.select;return t&&e&&(n.from=this.parseDate(t),n.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:n.from,to:n.to}},e.setup=function(t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),!t.__navi){t.__navi=!0;var i=Bu({},n.navigator,t.navigator),r=t.panes=[].concat(t.panes),o=Bu({},i.pane,{name:"_navigator"});i.visible||(o.visible=!1,o.height=.1),r.push(o),e.attachAxes(t,i),e.attachSeries(t,i,n)}},e.attachAxes=function(t,e){var n=e.series||[],i=t.categoryAxis=[].concat(t.categoryAxis),r=t.valueAxis=[].concat(t.valueAxis),o=0===Gy(n,hv).length,s=Bu({type:"date",pane:"_navigator",roundToBaseUnit:!o,justified:o,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),a=e.categoryAxis;i.push(Bu({},s,{maxDateGroups:200},a,{name:"_navigator",title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),Bu({},s,a,{name:"_navigator_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),Bu({},s,a,{name:"_navigator_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),r.push(Bu({name:"_navigator",pane:"_navigator",majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,n){for(var i=t.series=t.series||[],r=[].concat(e.series||[]),o=n.seriesColors,s=e.seriesDefaults,a=0;a<r.length;a++)i.push(Bu({color:o[a%o.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,r[a],{axis:"_navigator",categoryAxis:"_navigator",autoBind:e.autoBindElements}))},e}(mo);Vf(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.applyDefaults=function(e,n){var i=Of(this.element).width||600,r=n,o={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(i/28)}}};r&&(r=Bu({},r,o)),wb.setup(e,r),t.prototype.applyDefaults.call(this,e,r)}
1,e.prototype._setElementClass=function(t){po(t,"k-chart k-stockchart")},e.prototype.setOptions=function(e){this.destroyNavigator(),t.prototype.setOptions.call(this,e)},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t},e.prototype._resize=function(){this.noTransitionsRedraw()},e.prototype._redraw=function(){var t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()},e.prototype._dirty=function(){var t=this.options,e=uf([].concat(t.series,t.navigator.series),function(t){return t&&t.visible}).length,n=this._seriesCount!==e;return this._seriesCount=e,n},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new wb(this),this.trigger("navigatorCreated",{navigator:e})),e.clean(),e.setRange(),t.prototype._redraw.call(this),e.initSelection()},e.prototype._trackSharedTooltip=function(e){var n=this._plotArea.paneByPoint(e);n&&"_navigator"===n.options.name?this._unsetActivePoint():t.prototype._trackSharedTooltip.call(this,e)},e.prototype.bindCategories=function(){t.prototype.bindCategories.call(this),this.copyNavigatorCategories()},e.prototype.copyNavigatorCategories=function(){for(var t,e=[].concat(this.options.categoryAxis),n=0;n<e.length;n++){var i=e[n];"_navigator"===i.name?t=i.categories:t&&"_navigator"===i.pane&&(i.categories=t)}},e.prototype.destroyNavigator=function(){this.navigator&&(this.navigator.destroy(),this.navigator=null)},e.prototype.destroy=function(){this.destroyNavigator(),t.prototype.destroy.call(this)},e.prototype._stopChartHandlers=function(e){var n=this._eventCoordinates(e),i=this._plotArea.paneByPoint(n);return t.prototype._stopChartHandlers.call(this,e)||i&&"_navigator"===i.options.name},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(pb),{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});var Cb=150,Sb=Math.PI/180;function kb(t,e){var n=t.getOrigin(),i=t.getSize(),r=Uu(e);return t.setOrigin([n.x-r.left,n.y-r.top]),t.setSize([i.width+(r.left+r.right),i.height+(r.top+r.bottom)]),t}var Mb=l.Group,Ab=l.Path,Ob=l.Text;function Pb(t,e){var n=t.box,i=t.children[0].box,r=e.border||{},s=e.background||"",a=Ab.fromRect(new o.Rect([n.x1,n.y1],[n.width(),n.height()]),{stroke:{}}),l=new Ob(t.text,new o.Point(i.x1,i.y1),{font:e.font,fill:{color:e.color}}),h=kb(l.bbox().clone(),e.padding),c=Ab.fromRect(h,{stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:s}}),p=new Mb;return p.append(a),p.append(c),p.append(l),p}function Tb(t,e,n){var i=kf(t.from)?t.from:eo,r=kf(t.to)?t.to:to;return t.from=Math.max(Math.min(r,i),e),t.to=Math.min(Math.max(r,i),n),t}function jb(t,e){var n=Uu(e);return n.left=-n.left,n.top=-n.top,n.right=-n.right,n.bottom=-n.bottom,kb(t,n)}var Rb=l.Path,Ib=l.Surface,zb=function(t){function e(e,n,i,r){void 0===r&&(r={}),t.call(this),this.element=e,this.theme=i,this.contextService=new ef(this,r),this._originalOptions=Bu({},this.options,n),this.options=Bu({},this._originalOptions),this._initTheme(i),this.redraw()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.destroy=function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement},e.prototype.value=function(t){var e=this.pointers[0];if(0===arguments.length)return e.value();e.value(t),this._setValueOptions(t)},e.prototype._draw=function(){var t=this.surface;t.clear(),t.draw(this._visuals)},e.prototype.exportVisual=function(){return this._visuals},e.prototype.allValues=function(t){var e=this.pointers,n=[];if(0===arguments.length){for(var i=0;i<e.length;i++)n.push(e[i].value());return n}if(co(t))for(var r=0;r<t.length;r++)Tu(t[r])&&e[r].value(t[r]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),n=[].concat(t),i=0;i<n.length;i++)e[i].value=n[i]},e.prototype.resize=function(){this.noTransitionsRedraw()},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(t)},e.prototype.redraw=function(){var t=this._surfaceSize(),e=new o.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var n=jb(e.bbox(),this._gaugeAreaMargin);this.reflow(n)},e.prototype.setOptions=function(t,e){this._originalOptions=Bu(this._originalOptions,t),this.options=Bu({},this._originalOptions),this._initTheme(e),this.redraw()},e.prototype.setDirection=function(t){this.contextService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)},e.prototype.setIntlService=function(t){this.contextService.intl=t},e.prototype._initTheme=function(t){var e=t||this.theme||{};this.theme=e,this.options=Bu({},e,this.options);var n=this.options,i=n.pointer;if(co(i)){for(var r=[],o=0;o<i.length;o++)r.push(Bu({},e.pointer,i[o]));n.pointer=r}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),n=t.border||{},i=new o.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,n.width>0&&(i=jb(i,n.width)),Rb.fromRect(i,{stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},e.prototype._initSurface=function(){var t=this.options,e=this.surface,n=this._surfaceElement(),i=this._surfaceSize();Of(n,i),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=Ib.create(n,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&Bu(e,t.gaugeArea),e},e.prototype._surfaceElement=function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement},e.prototype.getSize=function(){return this._getSize()},e.prototype._getSize=function(){var t=this.element,e=this._defaultSize(),n=t.offsetWidth,i=t.offsetHeight;return n||(n=e.width),i||(i=e.height),{width:n,height:i}},e.prototype._defaultSize=function(){return{width:200,height:200}},e.prototype._toggleTransitions=function(t){this.options.transitions=t;for(var e=0;e<this.pointers.length;e++)this.pointers[e].options.animation.transitions=t},e}(mo);Vf(zb,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Eb=zb,Lb=l.Path,Bb=l.Group,Db=o.Point;function Fb(t,e){var n,i,r=t.position,o=t.tickX,s=t.tickY;
1return t.vertical?(n=new Db(o,r),i=new Db(o+e.size,r)):(n=new Db(r,s),i=new Db(r,s+e.size)),new Lb({stroke:{color:e.color,width:e.width}}).moveTo(n).lineTo(i)}function Vb(t,e,n,i){var r=e.length;if(i.visible)for(var o=n.mirror,s=n.lineBox,a=i.skip;a<r;a+=i.step)a%i.skipUnit!=0&&(n.tickX=o?s.x2:s.x2-i.size,n.tickY=o?s.y1-i.size:s.y1,n.position=e[a],t.append(Fb(n,i)))}var Nb=function(t){function e(e,n){var i=e||{};!kf(i.reverse)&&!1===i.vertical&&(n||{}).rtl&&(i=Object.assign({},i,{reverse:!0})),t.call(this,0,1,i,n),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initUserOptions=function(t){var e=Bu({},this.options,t);return(e=Bu({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||Hf(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Bb,e=this.renderLabels(),n=this.renderLine(),i=this.renderTicks(),r=this.renderRanges();return t.append(n,e,i,r),t},e.prototype.renderRanges=function(){for(var t=this.options,e=t.min,n=t.max,i=t.vertical,r=t.labels.mirror,s=t.ranges||[],a=new Bb,l=s.length,h=t.rangeSize||t.minorTicks.size/2,c=0;c<l;c++){var p=Tb(s[c],e,n),u=this.getSlot(p.from,p.to),f=i?this.lineBox():u,d=i?u:this.lineBox();i?f.x1-=h*(r?-1:1):d.y2+=h*(r?-1:1),a.append(Lb.fromRect(new o.Rect([f.x1,d.y1],[f.x2-f.x1,d.y2-d.y1]),{fill:{color:p.color,opacity:p.opacity},stroke:{}}))}return a},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,n=new Bb,i=0;i<t.length;i++)n.append(Pb(t[i],e.labels));return n},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),n=new Bb;if(t.width>0&&t.visible){var i=new Lb({stroke:{color:t.color,dashType:t.dashType,width:t.width}});i.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),n.append(i)}return n},e.prototype.renderTicks=function(){var t=new Bb,e=this.options,n=e.majorTicks.visible?e.majorUnit:0,i={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Vb(t,this.getMajorTickPositions(),i,e.majorTicks),Vb(t,this.getMinorTickPositions(),i,Bu({},{skipUnit:n/e.minorUnit},e.minorTicks)),t},e}(bg);Vf(Nb,{min:0,max:50,majorTicks:{size:15,align:"inside",color:qr,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:qr,width:.5,visible:!0},line:{width:.5},labels:{position:"inside",padding:2},mirror:!1,_alignLines:!1});var Hb=Nb,Ub=function(t){function e(e,n){t.call(this);var i=e.options,r=i.min,o=i.max,s=this.options=Bu({},this.options,n);s.fill=s.color,this.scale=e,s.value=kf(s.value)?Rf(s.value,r,o):r}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.value=function(t){var e=this.options;if(0===arguments.length)return e.value;var n=this.scale.options,i=n.min,r=n.max;e._oldValue=kf(e._oldValue)?e.value:i,e.value=Rf(t,i,r),this.elements&&this.repaint()},e}(mo);Vf(Ub,{color:qr});var Gb=Ub,qb=function(t){function e(e,n){t.call(this,e,n),this.options=Bu({track:{visible:kf(n.track)}},this.options)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(){var t,e,n,i=this.options,r=this.scale,o=r.options,s=o.mirror,a=o.vertical,l=r.lineBox(),h=i.track.size||i.size,c=i.size/2,p=Uu(i.margin),u=a?p[s?"left":"right"]:p[s?"bottom":"top"];u=s?-u:u,a?(n=new qf(l.x1+u,l.y1,l.x1+u,l.y2),s?n.x1-=h:n.x2+=h,"barPointer"!==i.shape&&(t=e=new qf(l.x2+u,l.y1-c,l.x2+u,l.y2+c))):(n=new qf(l.x1,l.y1-u,l.x2,l.y1-u),s?n.y2+=h:n.y1-=h,"barPointer"!==i.shape&&(t=e=new qf(l.x1-c,l.y1-u,l.x2+c,l.y1-u))),this.trackBox=n,this.pointerRangeBox=e,this.box=t||n.clone().pad(i.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:kf(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}},e.prototype._margin=function(){var t=this.scale.options,e=t.mirror,n=t.vertical,i=Uu(this.options.margin);return n?i[e?"left":"right"]:i[e?"bottom":"top"]},e}(Gb);Vf(qb,{shape:"barPointer",track:{border:{width:1}},color:qr,border:{width:1},opacity:1,margin:Uu(3),animation:{type:"barPointer"},visible:!0});var $b=qb,Xb=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setup=function(){var t=this.options,e=t.margin,n=t.from,i=t.to,r=t.vertical,s=r?"x1":"y1";t.mirror===r?(n[s]-=e,i[s]-=e):(n[s]+=e,i[s]+=e);var a=this.fromScale=new o.Point(n.x1,n.y1),l=this.toScale=new o.Point(i.x1,i.y1);0!==t.duration&&(t.duration=Math.max(a.distanceTo(l)/t.duration*1e3,1))},e.prototype.step=function(t){var e=yf(this.fromScale.x,this.toScale.x,t),n=yf(this.fromScale.y,this.toScale.y,t);this.element.transform(o.transform().translate(e,n))},e}(l.Animation);Vf(Xb,{easing:"linear",duration:250}),l.AnimationFactory.current.register("arrowPointer",Xb);var Wb=Xb,Yb=o.Point,Zb=l.Path,Jb=function(t){function e(e,n){t.call(this,e,n),kf(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.pointerShape=function(){var t=this.scale,e=this.options.size,n=e/2,i=t.options.mirror?-1:1;return t.options.vertical?[new Yb(0,0-n),new Yb(0-i*e,0),new Yb(0,0+n)]:[new Yb(0-n,0),new Yb(0,0+i*e),new Yb(0+n,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,n=new Wb(this.elements,Bu(e.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(e.margin),from:t.getSlot(e._oldValue),to:t.getSlot(e.value)}));!1===e.animation.transitions&&(n.options.duration=0),n.setup(),n.play()},e.prototype.render=function(){var t=this.scale,e=this.options,n=this.getElementOptions(),i=this.pointerShape(e.value);e.animation.type="arrowPointer";var r=new Zb({stroke:n.stroke,fill:n.fill}).moveTo(i[0]).lineTo(i[1]).lineTo(i[2]).close(),s=t.getSlot(e.value);return r.transform(o.transform().translate(s.x1,s.y1)),this.elements=r,r},e}($b),Kb=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setup=function(){var t=this.options,e=this.axis=t.vertical?ho:lo,n=this.to=t.newPoints[0][e],i=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(n-i)/t.speed*1e3,1)),this._set(i)},e.prototype.step=function(t){var e=yf(this.from,this.to,t);this._set(e)},e.prototype._set=function(t){var e="set"+this.axis.toUpperCase(),n=this.options.newPoints;n[0][e](t),n[1][e](t)},e}(l.Animation);Vf(Kb,{easing:"linear",speed:250}),l.AnimationFactory.current.register("barPointer",Kb);var Qb=Kb,t_=l.Group,e_=l.Path,n_=function(t){function e(e,n){t.call(this,e,n),kf(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.pointerShape=function(t){var e=this.scale,n=e.options,i=n.vertical,r=n.mirror===i?-1:1,s=this.options.size*r,a=e.getSlot(e.options.min),l=e.getSlot(t),h=i?ho:lo,c=i?lo:ho,p=this._margin()
vendor: 7,493 bytes, line 1
1*r,u=new o.Point;u[h]=a[h+"1"],u[c]=a[c+"1"];var f=new o.Point;f[h]=l[h+"1"],f[c]=l[c+"1"],i?(u.translate(p,0),f.translate(p,0)):(u.translate(0,p),f.translate(0,p));var d=f.clone(),g=u.clone();return i?(d.translate(s,0),g.translate(s,0)):(d.translate(0,s),g.translate(0,s)),[u,f,d,g]},e.prototype.repaint=function(){var t=this.scale,e=this.options,n=this.pointerShape(e.value),i=this.pointerPath,r=this.pointerShape(e._oldValue);i.moveTo(n[0]).lineTo(n[1]).lineTo(n[2]).lineTo(n[3]).close();var o=new Qb(i,Bu(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[r[1],r[2]],newPoints:[n[1],n[2]]}));!1===e.animation.transitions&&(o.options.duration=0),o.setup(),o.play()},e.prototype.render=function(){var t=new t_,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var n=this.pointerPath=new e_({stroke:e.stroke,fill:e.fill});return t.append(n),this.elements=t,t},e.prototype.renderTrack=function(){var t=this.options.track,e=t.border||{},n=this.trackBox.clone().pad(e.width||0);return new e_.fromRect(n.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})},e}($b),i_=l.Group;Vf(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){var e=this.pointers,n=t.origin.x,i=t.origin.y,r=new qf(n,i,n+t.width(),i+t.height());this.scale.reflow(r),this._shrinkScaleWidth(r);for(var o=0;o<e.length;o++)e[o].reflow();this.bbox=this._getBox(r),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new i_,e=this.scale.render(),n=this.pointers;t.append(this.gaugeArea),t.append(e);for(var i=0;i<n.length;i++){var r=n[i];t.append(r.render()),r.value(r.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Hb(t.scale,this.contextService);this.pointers=[];var n=t.pointer;n=co(n)?n:[n];for(var i=0;i<n.length;i++){var r=Bu({},n[i],{animation:{transitions:t.transitions}});this.pointers.push(new("arrow"===r.shape?Jb:n_)(e,r))}},e.prototype._defaultSize=function(){var t=this.options.scale.vertical;return{width:t?60:200,height:t?200:60}},e.prototype._getBox=function(t){for(var e,n=this.scale,i=this.pointers,r=t.center(),o=i[0].box.clone().wrap(n.box),s=0;s<i.length;s++)o.wrap(i[s].box.clone());return n.options.vertical?(e=o.width()/2,o=new qf(r.x-e,t.y1,r.x+e,t.y2)):(e=o.height()/2,o=new qf(t.x1,r.y-e,t.x2,r.y+e)),o},e.prototype._alignElements=function(){for(var t,e=this.scale,n=this.pointers,i=e.box,r=n[0].box.clone().wrap(e.box),o=this.bbox,s=0;s<n.length;s++)r.wrap(n[s].box.clone());e.options.vertical?(t=o.center().x-r.center().x,e.reflow(new qf(i.x1+t,o.y1,i.x2+t,o.y2))):(t=o.center().y-r.center().y,e.reflow(new qf(i.x1,i.y1+t,i.x2,i.y2+t)));for(var a=0;a<n.length;a++)n[a].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var n=e.contentBox().width()-t.width();n>0&&(e.box.shrink(n,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,n=t.box.clone(),i=t.options.vertical?"y":"x",r=e[0].box,o=0;o<e.length;o++)r.wrap(e[o].box.clone());n[i+1]+=Math.max(n[i+1]-r[i+1],0),n[i+2]-=Math.max(r[i+2]-n[i+2],0),t.reflow(n);for(var s=0;s<e.length;s++)e[s].reflow(this.bbox)},e}(Eb),{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var r_=l.Arc,o_=l.Path,s_=l.Group;function a_(t,e,n,i){var r=new s_,s=t.center,a=t.getRadiusX();if(i.visible)for(var l=0;l<e.length;l++){var h=t.pointAt(e[l]),c=new o.Point(s.x+a-i.size,s.y).rotate(e[l],s);r.append(new o_({stroke:{color:i.color,width:i.width}}).moveTo(h).lineTo(c))}return r}function l_(t,e,n,i){return{from:t,to:e,color:n,opacity:i}}var h_=function(t){function e(e,n){t.call(this,0,1,e,n)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initUserOptions=function(t){var e=Bu({},this.options,t);return e.majorUnit=e.majorUnit||Hf(e.min,e.max),e.minorUnit=e.minorUnit||e.majorUnit/10,e},e.prototype.initFields=function(){},e.prototype.render=function(t,e){var n=this.renderArc(t,e);this.bbox=n.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()},e.prototype.reflow=function(t){var e=t.center(),n=Math.min(t.height(),t.width())/2;if(!kf(this.bbox))return this.render(e,n);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()},e.prototype.slotAngle=function(t){var e=this.options,n=e.min,i=e.max,r=e.startAngle,o=e.endAngle,s=o-r;return(e.reverse?o-(t-n)/(i-n)*s:(t-n)/(i-n)*s+r)+180},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,n=t.minorTicks,i=0;return e.visible&&(i=e.size),n.visible&&(i=Math.max(n.size,i)),i},e.prototype.renderLabels=function(){var t=this.options,e=this.arc.clone(),n=e.getRadiusX(),i=this.tickAngles(e,t.majorUnit),r=t.rangeSize=t.rangeSize||.1*n,s=new s_,a=.05*n;kf(t.rangeDistance)?a=t.rangeDistance:t.rangeDistance=a;var l=t.labels,h="inside"===l.position,c=kf(this.labelElements);h&&(n-=this.ticksSize(),this.hasRanges()&&!c&&(n-=r+a),e.setRadiusX(n).setRadiusY(n));for(var p=this.labels,u=p.length,f=l.padding,d=0;d<u;d++){var g=p[d],v=g.box.width()/2,y=g.box.height()/2,m=i[d],x=(m-180)*Sb,b=e.pointAt(m),_=b.x+Math.cos(x)*(v+f)*(h?1:-1),w=b.y+Math.sin(x)*(y+f)*(h?1:-1);g.reflow(new qf(_-v,w-y,_+v,w+y));var C=new o.Point(g.box.x1,g.box.y1),S=void 0;if(c){var k=(S=this.labelElements.children[d]).bbox().origin,M=S.transform()||o.transform();M.translate(C.x-k.x,C.y-k.y),S.transform(M)}else S=Pb(g,t.labels),s.append(S);this.bbox=o.Rect.union(this.bbox,S.bbox())}return s},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,n=e.rangeDistance,i=e.rangeSize,r=this.getRangeRadius();"inside"===this.options.labels.position&&(r+=i+n);for(var s=r+i/2,a=0;a<t.length;a++)t[a]._geometry.setRadiusX(s).setRadiusY(s);this.bbox=o.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this.rangeSegments(),e=t.length,n=new s_;if(e){var i=this.options,r=i.rangeSize,o=i.reverse,s=i.rangeDistance,a=this.getRangeRadius();this.radius(this.radius()-r-s);for(var l=0;l<e;l++){var h=t[l],c=this.slotAngle(h[o?"to":"from"]),p=this.slotAngle(h[o?"from":"to"]);p-c!=0&&n.append(this.createRange(c,p,a,h))}}return n},e.prototype.createRange=function(t,e,n,i){var r=this.options.rangeSize,s=new o.Arc(this.arc.center,{radiusX:n+r/2,radiusY:n+r/2,startAngle:t,endAngle:e});return new r_(s,{stroke:{width:r,color:i.color,opacity:i.opacity,lineCap:i.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],n=e.length,i=[];if(n){var r=t.min,o=t.max,s=t.rangePlaceholderColor;i.push(l_(r,o,s));for(var a=0;a<n;a++)for(var l=Tb(e[a],r,o),h=i.length,c=0;c<h;c++){var p=i[c];if(p.from<=l.from&&l.from<=p.to){i.push(l_(l.from,l.to,l.color,l.opacity)),p.from<=l.to&&l.to<=p.to&&i.push(l_(l.to,p.to,s,l.opacity)),p.to=l.from;break}}}return i},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,n=e.rangeSize,i=e.rangeDistance,r=e.majorTicks.size;return"outside"===e.labels.position?t.getRadiusX()-r-i-n:t.getRadiusX()-n},e.prototype.renderArc=function(t,e){var n=this.options;
1return this.arc=new o.Arc(t,{radiusX:e,radiusY:e,startAngle:n.startAngle+180,endAngle:n.endAngle+180})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,n=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=a_(n,this.majorTickAngles,0,e.majorTicks);var i=new s_;i.append(this.majorTicks);var r=e.majorTicks.size,o=e.minorTicks.size;if(this._tickDifference=r-o,"outside"===e.labels.position){var s=n.getRadiusX();n.setRadiusX(s-r+o).setRadiusY(s-r+o)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=a_(n,this.minorTickAngles,0,e.minorTicks),i.append(this.minorTicks),i},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,n=e.majorUnit/e.minorUnit,i=t.length-1;i>=0;i--)i%n==0&&t.splice(i,1);return t},e.prototype.tickAngles=function(t,e){var n=this.options,i=t.endAngle-t.startAngle,r=(n.max-n.min)/e,o=t.startAngle,s=i/r;n.reverse&&(o+=i,s=-s);for(var a=[],l=0;l<r;l++)a.push(Ef(o,Yr)),o+=s;return Ef(o)<=t.endAngle&&a.push(o),a},e.prototype.radius=function(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)},e.prototype.repositionTicks=function(t,e,n){var i=n&&this._tickDifference||0,r=this.arc,s=r.getRadiusX();n&&"outside"===this.options.labels.position&&0!==i&&(r=this.arc.clone()).setRadiusX(s-i).setRadiusY(s-i);for(var a=0;a<t.length;a++){var l=r.pointAt(e[a]),h=t[a].segments,c=l.x-h[0].anchor().x,p=l.y-h[0].anchor().y;t[a].transform((new o.transform).translate(c,p))}},e}(bg);Vf(h_,{min:0,max:100,majorTicks:{size:15,align:"inside",color:qr,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:qr,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:"inside",padding:2}});var c_=h_,p_=function(t){function e(e,n){t.call(this,e,n);var i=this.options;i.duration=Math.max(Math.abs(i.newAngle-i.oldAngle)/i.duration*1e3,1)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.step=function(t){var e=this.options,n=yf(e.oldAngle,e.newAngle,t);this.element.transform(o.transform().rotate(n,e.center))},e}(l.Animation);Vf(p_,{easing:"linear",duration:Cb}),l.AnimationFactory.current.register("radialPointer",p_);var u_=p_,f_=l.Circle,d_=l.Group,g_=l.Path,v_=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setAngle=function(t){this.elements.transform(o.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,n=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(i):new u_(this.elements,Bu(e.animation,{oldAngle:n,newAngle:i})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,n=new d_;return!1!==e.animation&&Bu(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),n.append(this._renderNeedle(),this._renderCap()),this.elements=n,this.setAngle(Sb),n},e.prototype.reflow=function(t){var e=this.center=t.center,n=Rf(this.options.length||1,.1,1.5),i=this.radius=t.getRadiusX()*n,r=this.capSize=Math.round(i*this.options.cap.size);this.bbox=o.Rect.fromPoints(new o.Point(e.x-r,e.y-r),new o.Point(e.x+r,e.y+r))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,n=this.options.color,i=new g_({fill:{color:n},stroke:{color:n,width:.5}});return i.moveTo(e.x+this.radius-t,e.y).lineTo(e.x,e.y-this.capSize/2).lineTo(e.x,e.y+this.capSize/2).close(),i},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,n=new o.Circle(this.center,this.capSize);return new f_(n,{fill:{color:e},stroke:{color:e}})},e}(Gb);Vf(v_,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:Cb}});var y_=v_,m_=l.Group,x_=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reflow=function(t){var e=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var n=0;n<e.length;n++)e[n].reflow(this.scale.arc),this._initialPlotArea=o.Rect.union(this._initialPlotArea,e[n].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,e,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,n){var i=this._visuals=new m_;i.append(t),i.append(n.ticks),i.append(n.ranges),this._buildPointers(e),i.append(n.labelElements)},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var n=t[e];n.render(),this._visuals.append(n.elements),n.value(n.options.value)}},e.prototype.fitScale=function(t){for(var e,n,i,r,o,s=this.scale.arc,a=Math.abs(this.getDiff(this._initialPlotArea,t)),l=Ef(a,Yr),h=Ef(-a,Yr),c=0,p=0;!(!(p++<100)||(c=o===i?c+1:0)>5||l!==r&&0<=(e=this.getPlotBox(l,t,s))&&e<=2||h!==r&&0<=(i=this.getPlotBox(
1h,t,s))&&i<=2||(r=e>0&&i>0?2*l:e<0&&i<0?2*h:Ef((l+h)/2||1,Yr),0<=(n=this.getPlotBox(r,t,s))&&n<=2));)o=i,n>0?(h=r,i=n):(l=r,e=n)},e.prototype.getPlotBox=function(t,e,n){var i=this.scale,r=this.pointers,s=n.getRadiusX(),a=n.clone();a.setRadiusX(s+t).setRadiusY(s+t),i.arc=a,i.reflow(e),this.plotBbox=i.bbox;for(var l=0;l<r.length;l++)r[l].reflow(a),this.plotBbox=o.Rect.union(this.plotBbox,r[l].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),n=t.center(),i=e.y-n.y,r=this.scale,s=this.pointers;r.arc.center.x-=e.x-n.x,r.arc.center.y-=i,r.reflow(t);for(var a=0;a<s.length;a++)s[a].reflow(r.arc),this.plotBbox=o.Rect.union(r.bbox,s[a].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,n=this.scale=new c_(t.scale,this.contextService);this.pointers=[];for(var i=co(e)?e:[e],r=0;r<i.length;r++){var o=new y_(n,Bu({},i[r],{animation:{transitions:t.transitions}}));this.pointers.push(o)}},e}(Eb);Vf(x_,{transitions:!0,gaugeArea:{background:""}});var b_=x_,__=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.rangeSegments=function(){var t=this.options;return[{from:t.min,to:t.max,color:t.rangePlaceholderColor,lineCap:t.rangeLineCap}]},e.prototype.hasRanges=function(){return!0},e.prototype.placeholderRangeAngle=function(t){var e=this.ranges.children[0].geometry();this.options.reverse?e.setEndAngle(t):e.setStartAngle(t)},e.prototype.addRange=function(t,e,n){var i=this.options.reverse,r=this.slotAngle(i?e:t),o=this.slotAngle(i?t:e),s=this.createRange(r,o,this.getRangeRadius(),n);return this.ranges.append(s),s},e}(c_);Vf(__,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var w_=__,C_=800,S_=function(t){function e(e,n){t.call(this,e,n);var i=this.options,r=Math.abs(i.newAngle-i.oldAngle)/i.duration*1e3;i.duration=Rf(r,Cb,C_);var o=e.elements.options.get("stroke.color"),s=e.currentColor();o!==s&&(this.startColor=new Xo(o),this.color=new Xo(s))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.step=function(t){var e=this.options,n=this.startColor,i=this.color,r=yf(e.oldAngle,e.newAngle,t);if(this.element.angle(r),i){var o=Ef(yf(n.r,i.r,t)),s=Ef(yf(n.g,i.g,t)),a=Ef(yf(n.b,i.b,t));this.element.stroke(new Xo(o,s,a).toHex())}},e}(l.Animation);Vf(S_,{easing:"linear",duration:Cb}),l.AnimationFactory.current.register("radialRangePointer",S_);var k_=S_,M_=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.repaint=function(){var t=this.scale,e=this.options,n=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(i),this.stroke(this.currentColor())):(this.animation=new k_(this,Bu(e.animation,{oldAngle:n,newAngle:i})),this.animation.play())},e.prototype.angle=function(t){var e=this.elements.geometry();this.scale.options.reverse?e.setStartAngle(t):e.setEndAngle(t),this.scale.placeholderRangeAngle(t)},e.prototype.stroke=function(t){this.elements.stroke(t)},e.prototype.render=function(){if(!this.elements){var t=this.scale,e=this.options;!1!==e.animation&&Bu(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),this.elements=t.addRange(t.options.min,this.options.value,{color:this.currentColor(),opacity:e.opacity,lineCap:t.options.rangeLineCap})}},e.prototype.currentColor=function(){var t=this.scale.options,e=t.min,n=t.max,i=this.options,r=i.colors,o=i.color,s=i.value,a=Tu(s)?s:e;if(r)for(var l=0;l<r.length;l++){var h=r[l],c=h.from;void 0===c&&(c=e);var p=h.to;if(void 0===p&&(p=n),c<=a&&a<=p)return h.color}return o},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Gb);Vf(M_,{animation:{type:"radialRangePointer",duration:Cb}});var A_=M_,O_=(function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._initTheme=function(e){t.prototype._initTheme.call(this,e),this.options.color=this.options.color||(this.theme.pointer||{}).color},e.prototype._createModel=function(){var t=this.options,e=this.scale=new w_(t.scale,this.contextService),n=new A_(e,Bu({},{colors:t.colors,color:t.color,value:t.value,opacity:t.opacity,animation:{transitions:t.transitions}}));this.pointers=[n]},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var n=t[e];n.render(),n.value(n.options.value)}},e.prototype._setValueOptions=function(t){this.options.value=t},e.prototype.currentColor=function(){var t=this.pointers[0];if(t)return t.currentColor()},e.prototype.centerLabelPosition=function(t,e){var n=this.getSize(),i=this.scale.arc.center,r=i.x-t/2,o=i.y-e/2;if(t<n.width){var s=r+t;r=Math.max(r,0),s>n.width&&(r-=s-n.width)}if(e<n.height){var a=this.scale.bbox,l=a.bottomRight().y,h=o+e;o=Math.max(o,a.origin.y),h>l&&(o-=h-l)}return{left:r,top:o}}}(b_),"Arial, Helvetica, sans-serif"),P_="12px "+O_,T_="16px "+O_,j_=function(){return{icon:{border:{width:1}},label:{font:P_,padding:3},line:{length:10,width:2},visible:!0}},R_=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:P_},notes:j_(),title:{font:T_,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:function(t){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:t.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:"transparent"},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:j_(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}}(t),title:{font:T_},legend:{labels:{font:P_}}}},I_=function(t){return t.fontSize+" "+t.fontFamily},z_=function(t){function e(e){var n=t.call(this,e)||this;return n.loaded=!1,n}return Object(ht.d)(e,t),e.prototype.loadTheme=function(){this.loaded||"undefined"==typeof document||(this.readTheme()||this.readDefaultTheme(),this.loaded=!0,this.next())},e.prototype.readTheme=function(){this.createElement();
1var t=this.queryColor("accent")!==this.queryColor("accent-contrast");try{t&&(this.push(R_()),this.setColors(),this.setFonts(),this.setSeriesColors())}finally{this.destroyElement()}return t},e.prototype.readDefaultTheme=function(){this.push(Object.assign({},R_(),{axisDefaults:{crosshair:{color:"rgba(0, 0, 0, 0.5)"},labels:{color:"rgb(101, 101, 101)",font:"12px serif"},line:{color:"rgba(0, 0, 0, 0.08)"},majorGridLines:{color:"rgba(0, 0, 0, 0.08)"},minorGridLines:{color:"rgba(0, 0, 0, 0.04)"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},title:{color:"rgb(101, 101, 101)",font:"14px serif"}},chartArea:{background:"rgb(255, 255, 255)"},legend:{inactiveItems:{labels:{color:"rgba(102, 102, 102, 0.5)"},markers:{color:"rgba(102, 102, 102, 0.5)"}},labels:{color:"rgb(101, 101, 101)",font:"14px serif"}},seriesDefaults:{boxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},bullet:{target:{color:"rgb(101, 101, 101)"}},candlestick:{downColor:"rgb(101, 101, 101)",line:{color:"rgb(101, 101, 101)"}},errorBars:{color:"rgba(0, 0, 0, 0.5)"},horizontalWaterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},icon:{border:{color:"rgba(0, 0, 0, 0.08)"}},labels:{background:"rgb(255, 255, 255)",color:"rgb(101, 101, 101)",opacity:.8,font:"12px serif"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},verticalBoxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},verticalBullet:{target:{color:"rgb(101, 101, 101)"}},waterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},area:{opacity:.8}},title:{color:"rgb(101, 101, 101)",font:"16px serif"},seriesColors:["rgb(255, 99, 88)","rgb(255, 210, 70)","rgb(120, 210, 55)","rgb(40, 180, 200)","rgb(45, 115, 245)","rgb(170, 70, 190)"]}))},e.prototype.createElement=function(){var t=this.element=document.createElement("div");t.style.display="none",t.innerHTML='\n <div class="k-var--accent"></div>\n <div class="k-var--accent-contrast"></div>\n <div class="k-var--base"></div>\n <div class="k-var--background"></div>\n\n <div class="k-var--normal-background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--hover-background"></div>\n <div class="k-var--hover-text-color"></div>\n <div class="k-var--selected-background"></div>\n <div class="k-var--selected-text-color"></div>\n <div class="k-var--chart-error-bars-background"></div>\n <div class="k-var--chart-notes-background"></div>\n <div class="k-var--chart-notes-border"></div>\n <div class="k-var--chart-notes-lines"></div>\n <div class="k-var--chart-crosshair-background"></div>\n\n <div class="k-var--chart-inactive"></div>\n <div class="k-var--chart-major-lines"></div>\n <div class="k-var--chart-minor-lines"></div>\n <div class="k-var--chart-area-opacity"></div>\n\n <div class="k-widget">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n <div class="k-var--chart-label-font"></div>\n </div>\n\n <div class="k-var--series">\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n </div>\n',document.body.appendChild(t)},e.prototype.destroyElement=function(){this.element&&(document.body.removeChild(this.element),this.element=void 0)},e.prototype.setStyle=function(t,e){this.set(t,e)},e.prototype.setColors=function(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor
1("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color");var t=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(t)||(this.setStyle("seriesDefaults.area.opacity",t),this.setStyle("seriesDefaults.labels.opacity",t))},e.prototype.setFonts=function(){var t=I_(this.queryStyle("chart-font")),e=I_(this.queryStyle("chart-title-font")),n=I_(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",n),this.setStyle("axisDefaults.notes.label.font",t),this.setStyle("axisDefaults.title.font",t),this.setStyle("legend.labels.font",t),this.setStyle("seriesDefaults.labels.font",n),this.setStyle("seriesDefaults.notes.label.font",t),this.setStyle("title.font",e)},e.prototype.setSeriesColors=function(){var t=[].slice.call(this.element.querySelectorAll(".k-var--series div")).reduce(function(t,e){return t[e.className.match(/series-([a-z])$/)[1].toLowerCase().charCodeAt(0)-"a".charCodeAt(0)]=window.getComputedStyle(e).backgroundColor,t},[]);this.setStyle("seriesColors",t)},e.prototype.mapColor=function(t,e){this.setStyle(t,this.queryColor(e))},e.prototype.queryColor=function(t){return this.queryStyle(t).backgroundColor},e.prototype.queryStyle=function(t){return window.getComputedStyle(this.element.querySelector(".k-var--"+t))},e}(function(){function t(t){this.ngZone=t,this.store={},this.source=new Ur.BehaviorSubject({}),this.initSource()}return t.prototype.initSource=function(){this.onFastChange$=this.source.asObservable(),this.onChange$=this.onFastChange$.pipe(Object(O.a)(1e3/60))},t.prototype.push=function(t){this.store=t,this.next()},t.prototype.notify=function(t){this.set(t.key,t.value),this.next()},t.prototype.set=function(t,e){for(var n=this.store,i=t.split("."),r=i.shift();i.length>0;)n=n[r]=n[r]||{},r=i.shift();n[r]=e},t.prototype.next=function(){var t=this;this.ngZone.runOutsideAngular(function(){t.source.next(t.store)})},t}()),E_=function(t){return{x:{location:t.pageX},y:{location:t.pageY}}};function L_(t,e){for(var n=0;n<t.length;n++)if(e[t[n]])return!0;return!1}var B_=[{end:"panend",move:"panmove",start:"panstart"},{gesturechange:"pinchmove",gestureend:"pinchend",gesturestart:"pinchstart"},{press:"press"},{tap:"tap"}],D_=function(){function t(t,e){this.hammerInstance=t,this.eventHandlers={},this.tap=this.tap.bind(this),this.press=this.press.bind(this),this.panstart=this.panstart.bind(this),this.panmove=this.panmove.bind(this),this.panend=this.panend.bind(this),this.pinchstart=this.pinchstart.bind(this),this.pinchmove=this.pinchmove.bind(this),this.pinchend=this.pinchend.bind(this),e&&this.bind(e)}return t.prototype.tap=function(t){this.trigger("tap",t)},t.prototype.press=function(t){this.trigger("press",t)},t.prototype.panstart=function(t){delete this.previous,this.previous=this.trigger("start",t)},t.prototype.panmove=function(t){this.previous=this.trigger("move",t)},t.prototype.panend=function(t){this.trigger("end",t),delete this.previous},t.prototype.pinchstart=function(t){this.trigger("gesturestart",t)},t.prototype.pinchmove=function(t){this.trigger("gesturechange",t)},t.prototype.pinchend=function(t){this.trigger("gestureend",t)},t.prototype.trigger=function(t,e){var n=function(t,e){var n=t.pointers,i=n[0],r=i.pageX,o=i.pageY,s=0;if(n.length>1){var a=n[0],l=n[1];s=Math.sqrt(Math.pow(a.pageX-l.pageX,2)+Math.pow(a.pageY-l.pageY,2))}return{distance:s,event:t.srcEvent,preventDefault:function(){t.preventDefault()},target:t.target,touches:n.map(E_),type:t.type,x:{delta:e?r-e.x.location:0,initialDelta:t.deltaX,location:r,startLocation:r-t.deltaX},y:{delta:e?o-e.y.location:0,initialDelta:t.deltaY,location:o,startLocation:o-t.deltaY}}}(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](n),n},t.prototype.bind=function(t){void 0===t&&(t={}),this.unbind(),this.eventHandlers=t;
1for(var e=0;e<B_.length;e++){var n=B_[e],i=Object.keys(n);if(L_(i,t))for(var r=0;r<i.length;r++){var o=n[i[r]];this.hammerInstance.on(o,this[o])}}},t.prototype.unbind=function(){this.hammerInstance&&this.hammerInstance.off(),this.eventHandlers={}},t.prototype.destroy=function(){this.hammerInstance&&(this.hammerInstance.destroy(),delete this.hammerInstance),delete this.eventHandlers},t.prototype.toggleDrag=function(t){this.toggle("pan",t)},t.prototype.toggleZoom=function(t){this.toggle("pinch",t)},t.prototype.toggle=function(t,e){this.hammerInstance&&this.hammerInstance.get(t).set({enable:e})},t}(),F_=function(){function t(){}return t.create=function(t,e){if("undefined"!=typeof window){var n=window.Hammer;if(!n){if(Object(h.isDevMode)())throw new Error("Hammerjs is not loaded.Solution: http://www.telerik.com/kendo-angular-ui/components/charts/troubleshooting/#toc-hammerjs-is-not-loaded");return}var i=new n(t,{recognizers:[[n.Tap],[n.Pan],[n.Pinch],[n.Press,{time:0}]]});return new D_(i,e)}},t}(),V_=wg.prototype.options.labels.dateFormats,N_={milliseconds:"HH:mm:ss.SSS",seconds:{time:"medium"},minutes:{time:"short"},hours:{time:"short"},days:{skeleton:"Md"},weeks:{skeleton:"Md"},months:{skeleton:"yyMMM"},years:{skeleton:"y"}};Object.assign(fg.prototype.options.labels.dateFormats,N_),Object.assign(V_,N_),rf.register(F_),new h.InjectionToken("configuration prefix");var H_=function(){},U_=function(){},G_=function(){},q_=function(){},$_=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},X_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return $_({},t,{statistic:$_({},t.statistic,{loading:!0})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),W_=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Y_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return W_({},t,{news:W_({},t.news,{entities:this.news})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),Z_=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},J_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return Z_({},t,{socialMedia:Z_({},t.socialMedia,{entities:this.socialMedia})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),K_=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Q_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return K_({},t,{statistic:K_({},t.statistic,{entity:{employment:this.employment,training:this.training,industrial:this.industrial}})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),tw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},ew=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return tw({},t,{news:tw({},t.news,{loading:!1,errorMessages:this.message})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),nw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},iw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return nw({},t,{news:nw({},t.news,{loading:!1})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),rw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},ow=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return rw({},t,{socialMedia:rw({},t.socialMedia,{loading:!1,errorMessages:this.message})})}
1,Object(ht.c)([Object(ct.d)()],e)}(ct.b),sw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},aw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return sw({},t,{socialMedia:sw({},t.socialMedia,{loading:!1})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),lw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},hw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return lw({},t,{statistic:lw({},t.statistic,{loading:!1,errorMessages:this.message})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),cw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},pw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return cw({},t,{statistic:cw({},t.statistic,{loading:!1})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),uw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},fw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return uw({},t,{jobSector:uw({},t.jobSector,{loading:!1,errorMessages:this.message})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),dw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},gw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return dw({},t,{jobSector:dw({},t.jobSector,{loading:!1})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),vw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},yw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return vw({},t,{jobSector:vw({},t.jobSector,{entities:this.jobSectors})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),mw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},xw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return mw({},t,{highlightedCompany:mw({},t.highlightedCompany,{entities:this.highlightedCompanies})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),bw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},_w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return bw({},t,{highlightedCompany:bw({},t.highlightedCompany,{loading:!1})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),ww=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Cw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return ww({},t,{highlightedCompany:ww({},t.highlightedCompany,{loading:!1,errorMessages:this.message})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),Sw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},kw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return Sw({},t,{projectCategory:Sw({},t.projectCategory,{statistics:this.projectCategoryStatistics})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),Mw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Aw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return Mw({},t,{projectCategory:Mw({},t.projectCategory,{loading:!1})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),Ow=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Pw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return Ow({},t,{projectCategory:Ow({},t.projectCategory,{loading:!1,errorMessages:this.message})})}
1,Object(ht.c)([Object(ct.d)()],e)}(ct.b),Tw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},jw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return Tw({},t,{training:Tw({},t.training,{loading:!1})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),Rw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Iw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return Rw({},t,{training:Rw({},t.training,{loading:!1,errorMessages:this.message})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),zw=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ew=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e.prototype.handle=function(t){return zw({},t,{training:zw({},t.training,{entities:this.availableTrainings})})},Object(ht.c)([Object(ct.d)()],e)}(ct.b),Lw={news:{loading:!1,entities:[],errorMessages:null},socialMedia:{loading:!1,entities:{twitter:[],instagram:[],youtube:[]},errorMessages:null},statistic:{loading:!1,entity:{employment:{stats:null,province:[]},training:{stats:[],trends:null},industrial:{stats:null,trends:[]}},errorMessages:null},jobSector:{loading:!1,entities:[],errorMessages:null},highlightedCompany:{loading:!1,entities:[],errorMessages:null},projectCategory:{loading:!1,statistics:[],errorMessages:null},training:{loading:!1,entities:[],errorMessages:null}},Bw=Object(ct.f)(Ne,Y_,ew,iw,Ue,J_,ow,aw,Q_,qe,yw,fw,gw,Je,xw,Cw,_w,Ye,kw,Aw,Pw,Xe,Ew,jw,Iw,X_,hw,pw);function Dw(t,e){return void 0===t&&(t=Lw),Bw(t,e)}var Fw,Vw,Nw,Hw=n("cS+F"),Uw=n("RORj"),Gw=n("Qfjh"),qw=function(){function t(t,e){this.newsService=t,this.socialMediaService=e}return t.prototype.getLatestNews=function(t,e){return void 0===t&&(t={}),void 0===e&&(e=hn.b),this.newsService.getLatestNews(t,e)},t.prototype.getSocialMediaNews=function(){return this.socialMediaService.fetchSocialMedia()},t}(),$w=n("/ynX"),Xw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e}(pe.b),Ww=n("8IEe"),Yw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ht.d)(e,t),e}(pe.b),Zw=Ww.a.toCollection,Jw=Ww.a.toData,Kw=function(){function t(t){this.api=t}return t.prototype.getJobSectors=function(){return this.api.get("job-functions?limit=17").pipe(Zw(Xw))},t.prototype.getHighlightedCompanies=function(t){return this.api.get("company-highlights",{params:t}).pipe(Zw(Yw))},t.prototype.getProjectCategoryStatistics=function(){return this.api.get("stats/project-by-categories").pipe(Jw())},t}(),Qw=n("E+Fe"),tC=Ww.a.toCollection,eC=function(){function t(t){this.api=t}return t.prototype.getAvailableTrainings=function(){return this.api.get("available-programs?limit=6").pipe(tC(ue))},t}(),nC=n("D3xR"),iC=n("pN2L"),rC=n("HnWI"),oC=n("AouM"),sC=n("IMYO"),aC=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.frontStore=n,s.service=i,s.ninjaService=r,s.pelatihanService=o,s.fetchFrontNews$=s.actions$.pipe(Object(ct.g)(Ne),Object(oC.a)(function(t){return s.service.getLatestNews(null,hn.a).pipe(Object(oC.a)(function(t){return[new Y_({news:t.data}),new iw]}),Object(sC.a)(function(t){return Object(iC.a)(new ew({message:t.message}))}))})),s.fetchFrontSocialMedia$=s.actions$.pipe(Object(ct.g)(Ue),Object(oC.a)(function(t){return s.service.getSocialMediaNews().pipe(Object(oC.a)(function(t){return[new J_({socialMedia:t.data}),new aw]}),Object(sC.a)(function(t){return Object(iC.a)(new ow({message:t.message}))}))})),s.fetchJobSectors$=s.actions$.pipe(Object(ct.g)(qe),Object(oC.a)(function(t){return s.ninjaService.getJobSectors().pipe(Object(oC.a)(function(t){return[new yw({jobSectors:t.data}),new gw]}),Object(sC.a)(function(t){return Object(iC.a)(new fw({message:t.message}))}))})),s.fetchHighlightedCompanies$=s.actions$.pipe(Object(ct.g)(Je),Object(oC.a)(function(t){return s.ninjaService.getHighlightedCompanies({page:1,limit:9}).pipe(Object(oC.a)(function(t){return[new xw({highlightedCompanies:t.data}),new _w]}),Object(sC.a)(function(t){return Object(iC.a)(new Cw({message:t.message}))}))})),s.fetchProjectCategoryStatistics$=s.actions$.pipe(Object(ct.g)(Ye),Object(oC.a)(function(t){return s.ninjaService.getProjectCategoryStatistics().pipe(Object(oC.a)(function(t){return[new kw({projectCategoryStatistics:t}),new Aw]}),Object(sC.a)(function(t){return Object(iC.a)(new Pw({message:t.message}))}))})),s.fetchAvailableTrainings$=s.actions$.pipe(Object(ct.g)(Xe),Object(oC.a)(function(t){return s.pelatihanService.getAvailableTrainings().pipe(Object(oC.a)(function(t){return[new Ew({availableTrainings:t.data}),new jw]}),Object(sC.a)(function(t){return Object(iC.a)(new Iw({message:t.message}))}))})),s}return Object(ht.d)(e,t),Object(ht.c)([Object(nC.b)(),Object(ht.f)("design:type",rC.a)],e.prototype,"fetchFrontNews$",void 0),Object(ht.c)([Object(nC.b)(),Object(ht.f)("design:type",rC.a)],e.prototype,"fetchFrontSocialMedia$",void 0),Object(ht.c)([Object(nC.b)(),Object(ht.f)("design:type",rC.a)],e.prototype,"fetchJobSectors$",void 0),Object(ht.c)([Object(nC.b)(),Object(ht.f)("design:type",rC.a)],e.prototype,"fetchHighlightedCompanies$",void 0),Object(ht.c)([Object(nC.b)(),Object(ht.f)("design:type",rC.a)],e.prototype,"fetchProjectCategoryStatistics$",void 0),Object(ht.c)([Object(nC.b)(),Object(ht.f)("design:type",rC.a)],e.prototype,"fetchAvailableTrainings$",void 0),e}(ct.a),lC=n("vxVO"),hC=n("pUKq"),cC=function(){},pC=n("Ti6E"),uC=n("7WXZ"),fC=n("TVn4"),dC=n("xtbs"),gC=n("zE1s"),vC=n("KoYH"),yC=n("IoUF"),mC=n("cF9F"),xC=n("xOqL"),bC=n("HJER"),_C=n("3kqb"),wC=n("NxCk"),CC=n("Dq9y"),SC=n("xuEU"),kC=n("+t5O"),MC=n("abk
1R"),AC=n("WV+C"),OC=n("IvSS"),PC=([function(){},function(){},function(){},function(){}].slice(),function(){}),TC=function(){},jC=function(){},RC=n("EoAa");!function(t){t.PKWT="PKWT",t.PKWTT="PKWTT"}(Fw||(Fw={})),function(t){function e(e){return t.values.find(function(t){return t.id===e})||null}t.values=[{id:t.PKWT,text:"PKWT"},{id:t.PKWTT,text:"PKWTT"}],t.get=e,t.getText=function(t){var n=e(t);return n?n.text:""}}(Fw||(Fw={})),function(t){t.DOMESTIC_EMPLOYEE="domestic_employee",t.FOREIGN_EMPLOYEE="foreign_employee"}(Vw||(Vw={})),function(t){function e(e){return t.values.find(function(t){return t.id===e})||null}t.values=[{id:t.DOMESTIC_EMPLOYEE,text:"Dalam Negeri"},{id:t.FOREIGN_EMPLOYEE,text:"Asing"}],t.get=e,t.getText=function(t){var n=e(t);return n?n.text:""}}(Vw||(Vw={})),function(t){t.MALE="male",t.FEMALE="female"}(Nw||(Nw={})),function(t){function e(e){return t.values.find(function(t){return t.id===e})||null}t.values=[{id:t.MALE,text:"Laki-laki"},{id:t.FEMALE,text:"Wanita"}],t.get=e,t.getText=function(t){var n=e(t);return n?n.text:""}}(Nw||(Nw={})),n("kpum");var IC=function(){},zC=n("ONSr"),EC=n("2+ku"),LC={slug:"home",title:"Beranda"};lt.q.forChild([{path:"",component:Ke,data:LC,resolve:{meta:zC.a,page:EC.a}}]),n.d(e,"KemnakerFrontModuleNgFactory",function(){return BC});var BC=h["\u0275cmf"](c,[],function(t){return h["\u0275mod"]([h["\u0275mpd"](512,h.ComponentFactoryResolver,h["\u0275CodegenComponentFactoryResolver"],[[8,[p.a,u.c,it,nn]],[3,h.ComponentFactoryResolver],h.NgModuleRef]),h["\u0275mpd"](4608,Q.NgLocalization,Q.NgLocaleLocalization,[h.LOCALE_ID,[2,Q["\u0275angular_packages_common_common_a"]]]),h["\u0275mpd"](4608,rn.a,rn.a,[]),h["\u0275mpd"](4608,on,on,[h.NgZone]),h["\u0275mpd"](4608,an.t,an.t,[]),h["\u0275mpd"](4608,ln.a,ln.a,[hn.c,lt.o]),h["\u0275mpd"](4608,cn.a,cn.a,[]),h["\u0275mpd"](4608,pn.b,pn.b,[pn.h,pn.c,h.ComponentFactoryResolver,pn.f,pn.d,h.Injector,h.NgZone,Q.DOCUMENT,un.b]),h["\u0275mpd"](5120,pn.i,pn.j,[pn.b]),h["\u0275mpd"](4608,J,J,[h.ApplicationRef,h.ComponentFactoryResolver,h.Injector,[2,Z]]),h["\u0275mpd"](135680,fn,fn,[h.NgZone]),h["\u0275mpd"](4608,kr,Nr,[h.LOCALE_ID]),h["\u0275mpd"](4608,z_,z_,[h.NgZone]),h["\u0275mpd"](1024,pt.k,function(){return[{key:"front",reducerFactory:pt.B,metaReducers:[],initialState:void 0},{key:"news",reducerFactory:pt.B,metaReducers:[],initialState:void 0}]},[]),h["\u0275mpd"](1024,pt.s,function(){return[Dw,Hw.a]},[]),h["\u0275mpd"](1024,pt.t,function(t,e){return[t,e]},[pt.s,pt.s]),h["\u0275mpd"](1024,pt.b,function(t,e,n,i,r,o){return[pt.y(t,e,n),pt.y(i,r,o)]},[h.Injector,pt.s,pt.t,h.Injector,pt.s,pt.t]),h["\u0275mpd"](1073873408,pt.p,pt.p,[pt.k,pt.b,pt.h,pt.q]),h["\u0275mpd"](512,ut,ut,[pt.o]),h["\u0275mpd"](512,hn.c,hn.c,[Uw.a]),h["\u0275mpd"](512,Gw.b,Gw.b,[Uw.a]),h["\u0275mpd"](512,qw,qw,[hn.c,Gw.b]),h["\u0275mpd"](512,Kw,Kw,[$w.a]),h["\u0275mpd"](512,eC,eC,[Qw.a]),h["\u0275mpd"](512,aC,aC,[nC.a,ut,qw,Kw,eC]),h["\u0275mpd"](512,lC.a,lC.a,[pt.o]),h["\u0275mpd"](512,hC.a,hC.a,[nC.a,lC.a,hn.c]),h["\u0275mpd"](1024,nC.i,function(t,e){return[nC.e(t),nC.e(e)]},[aC,hC.a]),h["\u0275mpd"](1073742336,nC.g,nC.g,[nC.f,nC.i,[2,pt.q],[2,pt.p]]),h["\u0275mpd"](1073742336,cC,cC,[]),h["\u0275mpd"](1073742336,pC.a,pC.a,[]),h["\u0275mpd"](1073742336,Q.CommonModule,Q.CommonModule,[]),h["\u0275mpd"](1073742336,uC.a,uC.a,[]),h["\u0275mpd"](1073742336,fC.a,fC.a,[]),h["\u0275mpd"](1073742336,dC.LazyLoadImagesModule,dC.LazyLoadImagesModule,[]),h["\u0275mpd"](1073742336,gC.a,gC.a,[]),h["\u0275mpd"](1073742336,vC.a,vC.a,[]),h["\u0275mpd"](1073742336,yC.a,yC.a,[]),h["\u0275mpd"](1073742336,mC.a,mC.a,[]),h["\u0275mpd"](1073742336,lt.q,lt.q,[[2,lt.x],[2,lt.o]]),h["\u0275mpd"](1073742336,ot.b,ot.b,[]),h["\u0275mpd"](1073742336,sn,sn,[]),h["\u0275mpd"](1073742336,xC.c,xC.c,[]),h["\u0275mpd"](1073742336,an.r,an.r,[]),h["\u0275mpd"](1073742336,an.g,an.g,[]),h["\u0275mpd"](1073742336,bC.e,bC.e,[]),h["\u0275mpd"](1073742336,_C.a,_C.a,[]),h["\u0275mpd"](1073742336,wC.a,wC.a,[]),h["\u0275mpd"](1073742336,CC.a,CC.a,[]),h["\u0275mpd"](1073742336,SC.a,SC.a,[]),h["\u0275mpd"](1073742336,kC.a,kC.a,[]),h["\u0275mpd"](1073742336,un.a,un.a,[]),h["\u0275mpd"](1073742336,MC.c,MC.c,[]),h["\u0275mpd"](1073742336,AC.b,AC.b,[]),h["\u0275mpd"](1073742336,OC.a,OC.a,[]),h["\u0275mpd"](1073742336,pn.e,pn.e,[]),h["\u0275mpd"](1073742336,bt.c,bt.c,[]),h["\u0275mpd"](1073742336,K,K,[]),h["\u0275mpd"](1073742336,dn,dn,[]),h["\u0275mpd"](1073742336,H_,H_,[]),h["\u0275mpd"](1073742336,G_,G_,[]),h["\u0275mpd"](1073742336,U_,U_,[]),h["\u0275mpd"](1073742336,q_,q_,[]),h["\u0275mpd"](1073742336,Hr,Hr,[]),h["\u0275mpd"](1073742336,PC,PC,[]),h["\u0275mpd"](1073742336,TC,T
1C,[]),h["\u0275mpd"](1073742336,jC,jC,[]),h["\u0275mpd"](1073742336,RC.a,RC.a,[]),h["\u0275mpd"](1073742336,IC,IC,[]),h["\u0275mpd"](1073742336,c,c,[]),h["\u0275mpd"](1024,lt.m,function(){return[[{path:"",component:Ke,data:LC,resolve:{meta:zC.a,page:EC.a}}]]},[])])})},gWZe:function(t,e,n){var i;t.exports=function t(e,n,r){function o(a,l){if(!n[a]){if(!e[a]){if(!l&&"function"==typeof i&&i)return i(a,!0);if(s)return s(a,!0);var h=new Error("Cannot find module '"+a+"'");throw h.code="MODULE_NOT_FOUND",h}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){return o(e[a][1][t]||t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var s="function"==typeof i&&i,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){var e,n,i,r,o,s;for(i=0,e=0,n=t.length;e<n;e++)i+=t[e].length;for(s=new Uint8Array(i),r=0,e=0,n=t.length;e<n;e++)s.set(o=t[e],r),r+=o.length;return s}},s={arraySet:function(t,e,n,i,r){for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,o)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,s))},n.setTyped(i)},{}],2:[function(t,e,n){"use strict";var i=t("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new i.Buf8(256),a=0;a<256;a++)s[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",s=0;s<e;s++)n+=String.fromCharCode(t[s]);return n}s[254]=s[254]=1,n.string2buf=function(t){var e,n,r,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(l),s=0,o=0;s<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?e[s++]=n:n<2048?(e[s++]=192|n>>>6,e[s++]=128|63&n):n<65536?(e[s++]=224|n>>>12,e[s++]=128|n>>>6&63,e[s++]=128|63&n):(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63,e[s++]=128|n>>>6&63,e[s++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,r,o,a=e||t.length,h=new Array(2*a);for(i=0,n=0;n<a;)if((r=t[n++])<128)h[i++]=r;else if((o=s[r])>4)h[i++]=65533,n+=o-1;else{for(r&=2===o?31:3===o?15:7;o>1&&n<a;)r=r<<6|63&t[n++],o--;o>1?h[i++]=65533:r<65536?h[i++]=r:(h[i++]=55296|(r-=65536)>>10&1023,h[i++]=56320|1023&r)}return l(h,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+s[t[n]]>e?n:e}},{"./common":1}],3:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t|0,o=t>>>16&65535|0,s=0;0!==n;){n-=s=n>2e3?2e3:n;do{o=o+(r=r+e[i++]|0)|0}while(--s);r%=65521,o%=65521}return r|o<<16|0}},{}],4:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,r){var o=i,s=r+n;t^=-1;for(var a=r;a<s;a++)t=t>>>8^o[255&(t^e[a])];return-1^t}},{}],5:[function(t,e,n){"use strict";var i,r=t("../utils/common"),o=t("./trees"),s=t("./adler32"),a=t("./crc32"),l=t("./messages"),h=0,c=4,p=0,u=-2,f=-1,d=1,g=4,v=2,y=8,m=9,x=286,b=30,_=19,w=2*x+1,C=15,S=3,k=258,M=k+S+1,A=42,O=113,P=1,T=2,j=3,R=4;function I(t,e){return t.msg=l[e],e}function z(t){return(t<<1)-(t>4?9:0)}function E(t){for(var e=t.length;--e>=0;)t[e]=0}function L(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pen
vendor: 4,472 bytes, line 1
1ding_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function B(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,L(t.strm)}function D(t,e){t.pending_buf[t.pending++]=e}function F(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function V(t,e){var n,i,r=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-M?t.strstart-(t.w_size-M):0,h=t.window,c=t.w_mask,p=t.prev,u=t.strstart+k,f=h[o+s-1],d=h[o+s];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(h[(n=e)+s]===d&&h[n+s-1]===f&&h[n]===h[o]&&h[++n]===h[o+1]){o+=2,n++;do{}while(h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&o<u);if(i=k-(u-o),o=u-k,i>s){if(t.match_start=e,s=i,i>=a)break;f=h[o+s-1],d=h[o+s]}}}while((e=p[e&c])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead}function N(t){var e,n,i,o,l,h,c,p,u,f,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-M)){r.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=n=t.hash_size;do{i=t.head[--e],t.head[e]=i>=d?i-d:0}while(--n);e=n=d;do{i=t.prev[--e],t.prev[e]=i>=d?i-d:0}while(--n);o+=d}if(0===t.strm.avail_in)break;if(h=t.strm,c=t.window,p=t.strstart+t.lookahead,f=void 0,(f=(h=t.strm).avail_in)>(u=o)&&(f=u),n=0===f?0:(h.avail_in-=f,r.arraySet(c,h.input,h.next_in,f,p),1===h.state.wrap?h.adler=s(h.adler,c,f,p):2===h.state.wrap&&(h.adler=a(h.adler,c,f,p)),h.next_in+=f,h.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=S)for(t.ins_h=t.window[l=t.strstart-t.insert],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+S-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<S)););}while(t.lookahead<M&&0!==t.strm.avail_in)}function H(t,e){for(var n,i;;){if(t.lookahead<M){if(N(t),t.lookahead<M&&e===h)return P;if(0===t.lookahead)break}if(n=0,t.lookahead>=S&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+S-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-M&&(t.match_length=V(t,n)),t.match_length>=S)if(i=o._tr_tally(t,t.strstart-t.match_start,t.match_length-S),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=S){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+S-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(B(t,!1),0===t.strm.avail_out))return P}return t.insert=t.strstart<S-1?t.strstart:S-1,e===c?(B(t,!0),0===t.strm.avail_out?j:R):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?P:T}function U(t,e){for(var n,i,r;;){if(t.lookahead<M){if(N(t),t.lookahead<M&&e===h)return P;if(0===t.lookahead)break}if(n=0,t.lookahead>=S&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+S-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=S-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-M&&(t.match_length=V(t,n),t.match_length<=5&&(t.strategy===d||t.match_length===S&&t.strstart-t.match_start>4096)&&(t.match_length=S-1)),t.prev_length>=S&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-S,i=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-S),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+S-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=S-1,t.strstart++,i&&(B(t,!1),0===t.strm.avail_out))return P}else if(t.match_available){if((i=o._tr_tally(t,0,t.window[t.strstart-1]))&&B(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return P}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<S-1?t.strstart:S-1,e===c?(
1B(t,!0),0===t.strm.avail_out?j:R):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?P:T}function G(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function q(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=v,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?A:O,t.adler=2===e.wrap?0:1,e.last_flush=h,o._tr_init(e),p):I(t,u)}function $(t){var e,n=q(t);return n===p&&((e=t.state).window_size=2*e.w_size,E(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0),n}function X(t,e,n,i,o,s){if(!t)return u;var a=1;if(e===f&&(e=6),i<0?(a=0,i=-i):i>15&&(a=2,i-=16),o<1||o>m||n!==y||i<8||i>15||e<0||e>9||s<0||s>g)return I(t,u);8===i&&(i=9);var l=new function(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*w),this.dyn_dtree=new r.Buf16(2*(2*b+1)),this.bl_tree=new r.Buf16(2*(2*_+1)),E(this.dyn_ltree),E(this.dyn_dtree),E(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(C+1),this.heap=new r.Buf16(2*x+1),E(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*x+1),E(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0};return t.state=l,l.strm=t,l.wrap=a,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+S-1)/S),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=n,$(t)}i=[new G(0,0,0,0,function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(N(t),0===t.lookahead&&e===h)return P;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,B(t,!1),0===t.strm.avail_out))return P;if(t.strstart-t.block_start>=t.w_size-M&&(B(t,!1),0===t.strm.avail_out))return P}return t.insert=0,e===c?(B(t,!0),0===t.strm.avail_out?j:R):(t.strstart>t.block_start&&B(t,!1),P)}),new G(4,4,8,4,H),new G(4,5,16,8,H),new G(4,6,32,32,H),new G(4,4,16,16,U),new G(8,16,32,32,U),new G(8,16,128,128,U),new G(8,32,128,256,U),new G(32,128,258,1024,U),new G(32,258,258,4096,U)],n.deflateInit=function(t,e){return X(t,e,y,15,8,0)},n.deflateInit2=X,n.deflateReset=$,n.deflateResetKeep=q,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?u:(t.state.gzhead=e,p):u},n.deflate=function(t,e){var n,r,s,l;if(!t||!t.state||e>5||e<0)return t?I(t,u):u;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&e!==c)return I(t,0===t.avail_out?-5:u);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===A)if(2===r.wrap)t.adler=0,D(r,31),D(r,139),D(r,8),r.gzhead?(D(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),D(r,255&r.gzhead.time),D(r,r.gzhead.time>>8&255),D(r,r.gzhead.time>>16&255),D(r,r.gzhead.time>>24&255),D(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),D(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(D(r,255&r.gzhead.extra.length),D(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(D(r,0),D(r,0),D(r,0),D(r,0),D(r,0),D(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),D(r,3),r.status=O);else{var f=y+(r.w_bits-8<<4)<<8;f|=(r.strategy>
vendor: 4,245 bytes, line 1
1=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(f|=32),f+=31-f%31,r.status=O,F(r,f),0!==r.strstart&&(F(r,t.adler>>>16),F(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),L(t),s=r.pending,r.pending!==r.pending_buf_size));)D(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),L(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,D(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),L(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,D(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&L(t),r.pending+2<=r.pending_buf_size&&(D(r,255&t.adler),D(r,t.adler>>8&255),t.adler=0,r.status=O)):r.status=O),0!==r.pending){if(L(t),0===t.avail_out)return r.last_flush=-1,p}else if(0===t.avail_in&&z(e)<=z(n)&&e!==c)return I(t,-5);if(666===r.status&&0!==t.avail_in)return I(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==h&&666!==r.status){var d=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(N(t),0===t.lookahead)){if(e===h)return P;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(B(t,!1),0===t.strm.avail_out))return P}return t.insert=0,e===c?(B(t,!0),0===t.strm.avail_out?j:R):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?P:T}(r,e):3===r.strategy?function(t,e){for(var n,i,r,s,a=t.window;;){if(t.lookahead<=k){if(N(t),t.lookahead<=k&&e===h)return P;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=S&&t.strstart>0&&(i=a[r=t.strstart-1])===a[++r]&&i===a[++r]&&i===a[++r]){s=t.strstart+k;do{}while(i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&r<s);t.match_length=k-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=S?(n=o._tr_tally(t,1,t.match_length-S),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(B(t,!1),0===t.strm.avail_out))return P}return t.insert=0,e===c?(B(t,!0),0===t.strm.avail_out?j:R):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?P:T}(r,e):i[r.level].func(r,e);if(d!==j&&d!==R||(r.status=666),d===P||d===j)return 0===t.avail_out&&(r.last_flush=-1),p;if(d===T&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(E(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),L(t),0===t.avail_out))return r.last_flush=-1,p}return e!==c?p:r.wrap<=0?1:(2===r.wrap?(D(r,255&t.adler),D(r,t.adler>>8&255),D(r,t.adler>>16&255),D(r,t.adler>>24&255),D(r,255&t.total_in),D(r,t.total_in>>8&255),D(r,t.total_in>>16&255),D(r,t.total_in>>24&255)):(F(r,t.adler>>>16),F(r,65535&t.adler)),L(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?p:1)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==A&&69!==e&&73!==e&&91!==e&&103!==e&&e!==O&&666!==e?I(t,u):(t.state=null,e===O?I(t,-3):p):u},n.deflateSetDictionary=function(t,e){var n,i,o,a,l,h,c,f,d=e.length;if(!t||!t.state)return u;if(2===(a=(n=t.state).wrap)||1===a&&n.status!==A||n.lookahead)return u;for(1===a&&(t.adler=s(t.adler,e,d,0)),n.wrap=0,d>=n.w_size&&(0===a&&(E(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new r.Buf8(n.w_size),r.arraySet(f,e,d-n.w_size,n.w_size,0),e=f,d=n.w_size),l=t.avail_in,h=t.next_in,
vendor: 4,192 bytes, line 1
1c=t.input,t.avail_in=d,t.next_in=0,t.input=e,N(n);n.lookahead>=S;){i=n.strstart,o=n.lookahead-(S-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+S-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++}while(--o);n.strstart=i,n.lookahead=S-1,N(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=S-1,n.match_available=0,t.next_in=h,t.input=c,t.avail_in=l,n.wrap=a,p},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(t,e,n){"use strict";var i=t("../utils/common");function r(t){for(var e=t.length;--e>=0;)t[e]=0}var o=0,s=256,a=s+1+29,l=30,h=19,c=2*a+1,p=15,u=16,f=256,d=16,g=17,v=18,y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],m=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],b=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(2*(a+2));r(_);var w=new Array(2*l);r(w);var C=new Array(512);r(C);var S=new Array(256);r(S);var k=new Array(29);r(k);var M,A,O,P=new Array(l);function T(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function j(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function R(t){return t<256?C[t]:C[256+(t>>>7)]}function I(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function z(t,e,n){t.bi_valid>u-n?(t.bi_buf|=e<<t.bi_valid&65535,I(t,t.bi_buf),t.bi_buf=e>>u-t.bi_valid,t.bi_valid+=n-u):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function E(t,e,n){z(t,n[2*e],n[2*e+1])}function L(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function B(t,e,n){var i,r,o=new Array(p+1),s=0;for(i=1;i<=p;i++)o[i]=s=s+n[i-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=L(o[a]++,a))}}function D(t){var e;for(e=0;e<a;e++)t.dyn_ltree[2*e]=0;for(e=0;e<l;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*f]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function F(t){t.bi_valid>8?I(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function V(t,e,n,i){var r=2*e,o=2*n;return t[r]<t[o]||t[r]===t[o]&&i[e]<=i[n]}function N(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&V(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!V(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function H(t,e,n){var i,r,o,a,l=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===i?E(t,r,e):(E(t,(o=S[r])+s+1,e),0!==(a=y[o])&&z(t,r-=k[o],a),E(t,o=R(--i),n),0!==(a=m[o])&&z(t,i-=P[o],a))}while(l<t.last_lit);E(t,f,e)}function U(t,e){var n,i,r,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=c,n=0;n<l;n++)0!==o[2*n]?(t.heap[++t.heap_len]=h=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=h<2?++h:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=s[2*r+1]);for(e.max_code=h,n=t.heap_len>>1;n>=1;n--)N(t,o,n);r=l;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],N(t,o,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,o[2*r]=o[2*n]+o[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,o[2*n+1]=o[2*i+1]=r,t.heap[1]=r++,N(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,o,s,a,l=e.dyn_tree,h=e.max_code,u=e.stat_desc.static_tree,f=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,g=e.stat_desc.extra_base,v=e.stat_desc.max_length,y=0;for(o=0;o<=p;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<c;n++)(o=l[2*l[2*(i=t.heap[n])+1]+1]+1)>v&&(o=v,y++),l[2*i+1]=o,i>h||(t.bl_count[o]++,s=0,i>=g&&(s=d[i-g]),t.opt_len+=(a=l[2*i])*(o+s),f&&(t.static_len+=a*(u[2*i+1]+s)));if(0!==y){do{for(o=v-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[v]--,y-=2}
1while(y>0);for(o=v;0!==o;o--)for(i=t.bl_count[o];0!==i;)(r=t.heap[--n])>h||(l[2*r+1]!==o&&(t.opt_len+=(o-l[2*r+1])*l[2*r],l[2*r+1]=o),i--)}}(t,e),B(o,h,t.bl_count)}function G(t,e,n){var i,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=s,s=e[2*(i+1)+1],++a<l&&r===s||(a<h?t.bl_tree[2*r]+=a:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[2*d]++):a<=10?t.bl_tree[2*g]++:t.bl_tree[2*v]++,a=0,o=r,0===s?(l=138,h=3):r===s?(l=6,h=3):(l=7,h=4))}function q(t,e,n){var i,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),i=0;i<=n;i++)if(r=s,s=e[2*(i+1)+1],!(++a<l&&r===s)){if(a<h)do{E(t,r,t.bl_tree)}while(0!=--a);else 0!==r?(r!==o&&(E(t,r,t.bl_tree),a--),E(t,d,t.bl_tree),z(t,a-3,2)):a<=10?(E(t,g,t.bl_tree),z(t,a-3,3)):(E(t,v,t.bl_tree),z(t,a-11,7));a=0,o=r,0===s?(l=138,h=3):r===s?(l=6,h=3):(l=7,h=4)}}r(P);var $=!1;function X(t,e,n,r){z(t,(o<<1)+(r?1:0),3),function(t,e,n,r){F(t),I(t,n),I(t,~n),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n)}n._tr_init=function(t){$||(function(){var t,e,n,i,r,o=new Array(p+1);for(n=0,i=0;i<28;i++)for(k[i]=n,t=0;t<1<<y[i];t++)S[n++]=i;for(S[n-1]=i,r=0,i=0;i<16;i++)for(P[i]=r,t=0;t<1<<m[i];t++)C[r++]=i;for(r>>=7;i<l;i++)for(P[i]=r<<7,t=0;t<1<<m[i]-7;t++)C[256+r++]=i;for(e=0;e<=p;e++)o[e]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,o[8]++;for(;t<=255;)_[2*t+1]=9,t++,o[9]++;for(;t<=279;)_[2*t+1]=7,t++,o[7]++;for(;t<=287;)_[2*t+1]=8,t++,o[8]++;for(B(_,a+1,o),t=0;t<l;t++)w[2*t+1]=5,w[2*t]=L(t,5);M=new T(_,y,s+1,a,p),A=new T(w,m,0,l,p),O=new T(new Array(0),x,0,h,7)}(),$=!0),t.l_desc=new j(t.dyn_ltree,M),t.d_desc=new j(t.dyn_dtree,A),t.bl_desc=new j(t.bl_tree,O),t.bi_buf=0,t.bi_valid=0,D(t)},n._tr_stored_block=X,n._tr_flush_block=function(t,e,n,i){var r,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<s;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),U(t,t.l_desc),U(t,t.d_desc),a=function(t){var e;for(G(t,t.dyn_ltree,t.l_desc.max_code),G(t,t.dyn_dtree,t.d_desc.max_code),U(t,t.bl_desc),e=h-1;e>=3&&0===t.bl_tree[2*b[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),(o=t.static_len+3+7>>>3)<=(r=t.opt_len+3+7>>>3)&&(r=o)):r=o=n+5,n+4<=r&&-1!==e?X(t,e,n,i):4===t.strategy||o===r?(z(t,2+(i?1:0),3),H(t,_,w)):(z(t,4+(i?1:0),3),function(t,e,n,i){var r;for(z(t,e-257,5),z(t,n-1,5),z(t,i-4,4),r=0;r<i;r++)z(t,t.bl_tree[2*b[r]+1],3);q(t,t.dyn_ltree,e-1),q(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),H(t,t.dyn_ltree,t.dyn_dtree)),D(t),i&&F(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(S[n]+s+1)]++,t.dyn_dtree[2*R(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){z(t,2,3),E(t,f,_),function(t){16===t.bi_valid?(I(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":1}],8:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(t,e,n){"use strict";var i=t("./zlib/deflate"),r=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/messages"),a=t("./zlib/zstream"),l=Object.prototype.toString,h=0,c=-1,p=0,u=8;function f(t){if(!(this instanceof f))return new f(t);this.options=r.assign({level:c,method:u,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==h)throw new Error(s[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=i.deflateSetDictionary(this.strm,d))!==h)throw new Error(s[n]);this._dict_set=!0}}function d(t,e){var n=new f(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}f.prototype.push=function(t,e){var n,s,a=this.strm,c=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,a.input="string"==typeof t?o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?new Uint8Array(t):t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(c),a.next_out=0,a.avail_out=c),1!==(n=i.deflate(a,s))&&n!==h)return this.onEnd(n),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||this.onData("string"===this.options.to?o.buf2binstring(r.shrinkBuf(a.output,a.next_out)):r.shrinkBuf(a.output,a.next_out))}while((a.avail_in>
10||0===a.avail_out)&&1!==n);return 4===s?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===h):2!==s||(this.onEnd(h),a.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===h&&(this.result="string"===this.options.to?this.chunks.join(""):r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=f,n.deflate=d,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.