1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TelerikBlazor=e():t.TelerikBlazor=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var r=n(13);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var i=n(16);Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var s=n(34);Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})});var a=n(49);Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})});var l=n(60);Object.keys(l).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})});var c=n(63);Object.keys(c).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})});var u=n(66);Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var p=n(70);Object.keys(p).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}})});var h=n(125);Object.keys(h).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return h[t]}})});var f=n(130);Object.keys(f).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}})});var d=n(137);Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}})});var v=n(141);Object.keys(v).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return v[t]}})});var y=n(145);Object.keys(y).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return y[t]}})});var g=n(148);Object.keys(g).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return g[t]}})});var m=n(151);Object.keys(m).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return m[t]}})});var b=n(154);Object.keys(b).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}})});var _=n(159);Object.keys(_).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return _[t]}})});var x=n(169);Object.keys(x).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return x[t]}})})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var r=n(5);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var i=n(6);
1Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var s=n(3);Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})});var a=n(7);Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})})},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(3);e.Component=function(){function t(e,n){o(this,t),this.options={dotNetInstance:null,events:{}},this.element=e,this.dotNetInstance=n.dotNetInstance}return r(t,[{key:"destroy",value:function(){this.element=null,this.dotNetInstance=null}},{key:"extendOptions",value:function(t){this.options=(0,i.deepExtend)(this.options,t)}},{key:"setOptions",value:function(t){this.options=t}},{key:"invokeMethodAsync",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.dotNetInstance;if(n&&n.invokeMethodAsync&&t)return n.invokeMethodAsync(t,e)}},{key:"trigger",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={defaultPrevented:!1,preventDefault:function(){n.defaultPrevented=!0}};if((0,i.isFunction)(this.options.events[t]))return this.options.events[t]((0,i.extend)(n,e,{sender:this})),n.defaultPrevented}}]),t}()},function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e.stringifyToStyle=e.saveFile=e.noop=e.htmlEncode=e.createCancellableTimerPromise=e.delay=e.isDefined=e.isFunction=e.guid=e.deepExtend=e.extend=e.supportsTouchEvents=e.debounce=e.throttle=void 0;var r=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);o=!0);}catch(t){r=!0,i=t}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=n(4),a=(e.throttle=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0,o=0;return!e||e<=0?t:function(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];var a=this,l=0,c=function(){t.call.apply(t,[a].concat(i)),o=performance.now()};return o||(o=performance.now(),n=setTimeout(c,e)),l=performance.now()-o,l>3*e?(clearTimeout(n),void(o=0)):(clearTimeout(n),void(l>e?c():n=setTimeout(c,e-l)))}},e.debounce=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;return function(){for(var o=arguments.length,r=Array(o),i=0;i<o;i++)r[i]=arguments[i];var s=this;clearTimeout(n),n=setTimeout(function(){clearTimeout(n),t.call.apply(t,[s].concat(r))},e)}},e.supportsTouchEvents=function(){var t="ontouchstart"in window;return Boolean(t)},e.extend=function(){return Object.assign.apply(Object,arguments)}),l=function(t){return t&&"object"===("undefined"==typeof t?"undefined":i(t))&&!Array.isArray(t)},c=(e.deepExtend=function t(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(!r.length)return e;var s=r.shift();if(l(e)&&l(s))for(var c in s)l(s[c])?(e[c]||a(e,o({},c,{})),t(e[c],s[c])):a(e,o({},c,s[c]));return t.apply(void 0,[e].concat(r))},e.guid=function(){var t="",e=void 0,n=void 0;for(e=0;e<32;e++)n=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(t+="-"),t+=(12===e?4:16===e?3&n|8:n).toString(16);return t},e.isFunction=function(t){return"function"==typeof t},e.isDefined=function(t){return"undefined"!=typeof t}),u=(e.delay=function(t){return new Promise(function(e){return setTimeout(e,t)})},e.createCancellableTimerPromise=function(t){var e=void 0,n=void 0,o=void 0;return n=new Promise(function(n,r){o=r,e=setTimeout(function(){n("timer done")},t)}),{promise:n,cancel:function(){clearTimeout(e),o()}}},e.htmlEncode=function(t){var e=String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");return e},e.noop=function(){},e.saveFile=function(t,e){(0,s.saveAs)(e,t)},e.stringifyToStyle=function(t){var e=[],n=Object.entries(t),o=!0,i=!1,s=void 0;try{for(var a,l=n[Symbol.iterator]();!(o=(a=l.next()).done);o=!0){var p=r(a.value,2),h=p[0],f=p[1];if(c(f)){var d=u(h)+": "+f;e.push(d.toLowerCase())}}}catch(t){i=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(i)throw s}}return e.join("; ")},function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2")})},function(t,e){"use strict";function n(t,e,n){void 0===n&&(n={});var s=i;if(n.forceProxy&&!n.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");
1n.forceProxy||(c()&&(s=r),navigator.msSaveBlob&&(s=o)),s(t,e,n)}function o(t,e){var n=t;if("string"==typeof t){for(var o=t.split(";base64,"),r=o[0],i=atob(o[1]),s=new Uint8Array(i.length),a=0;a<i.length;a++)s[a]=i.charCodeAt(a);n=new Blob([s.buffer],{type:r})}navigator.msSaveBlob(n,e)}function r(t,e){var n=t;window.Blob&&t instanceof Blob&&(n=URL.createObjectURL(t));var o=l();o.download=e,o.href=n;var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),o.dispatchEvent(r),setTimeout(function(){return URL.revokeObjectURL(n)})}function i(t,e,n){if(n.proxyURL){var o=document.createElement("form");o.setAttribute("action",n.proxyURL),o.setAttribute("method","POST"),o.setAttribute("target",n.proxyTarget||"_self");var r=n.proxyData||{};r.fileName=e;var i=t.split(";base64,");r.contentType=i[0].replace("data:",""),r.base64=i[1];for(var s in r)if(r.hasOwnProperty(s)){var a=document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name",s),a.setAttribute("value",r[s]),o.appendChild(a)}document.body.appendChild(o),o.submit(),document.body.removeChild(o)}}function s(t){for(var e,n,o,r,i,s,l,c=a(t),p="",h=0;h<c.length;)e=c.charCodeAt(h++),n=c.charCodeAt(h++),o=c.charCodeAt(h++),r=e>>2,i=(3&e)<<4|n>>4,s=(15&n)<<2|o>>6,l=63&o,isNaN(n)?s=l=64:isNaN(o)&&(l=64),p=p+u.charAt(r)+u.charAt(i)+u.charAt(s)+u.charAt(l);return p}function a(t){for(var e="",n=0;n<t.length;n++){var o=t.charCodeAt(n);o<128?e+=p(o):o<2048?(e+=p(192|o>>>6),e+=p(128|63&o)):o<65536&&(e+=p(224|o>>>12),e+=p(128|o>>>6&63),e+=p(128|63&o))}return e}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){return document.createElement("a")},c=function(){return"download"in l()},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p=String.fromCharCode;e.saveAs=n,e.encodeBase64=s},function(t,e,n){"use strict";function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=y(e),r=(0,h.getElementByDataId)(o);if(r){var i=a(e);if(!i){var s=new t(r,n);l(e,s)}}}function r(t){var e=a(t);e&&e.destroy&&(e.destroy(),e=null),c(t)}function i(t,e){t&&t.setOptions&&t.setOptions(e)}function s(t,e){var n=v()[t];i(n,e)}function a(t){var e=v();return e[t]}function l(t,e){var n=v();n[t]=e}function c(t){var e=window.TelerikBlazor._instances||{};delete e[t]}function u(t,e,n){var o=a(e);if(o&&(0,p.isFunction)(o[t]))return o[t](n)}Object.defineProperty(e,"__esModule",{value:!0}),e.removeComponentSuffix=e.addComponentSuffix=void 0,e.initComponent=o,e.destroyComponent=r,e.setComponentOptions=i,e.setOptions=s,e.getComponentInstance=a,e.setComponentInstance=l,e.removeComponentInstance=c,e.invokeComponentMethod=u;var p=n(3),h=n(6),f="telerik",d=new RegExp("-"+f+"-.*$","ig"),v=function(){if("undefined"==typeof window.TelerikBlazor)throw new Error("The telerik-blazor.js script is not loaded");return window.TelerikBlazor._instances=window.TelerikBlazor._instances||{},window.TelerikBlazor._instances},y=(e.addComponentSuffix=function(t,e){return t+"-"+f+"-"+e},e.removeComponentSuffix=function(t){return t.replace(d,"")})},function(t,e,n){"use strict";function o(t,e){if(!e)return!1;for(var n=e.parentNode;null!==n;){if(n===t)return!0;n=n.parentNode}return!1}function r(t){var e=i(t)||document.getElementById(t);return e.scrollHeight.toString()}function i(t){return document.querySelector('[data-id="'+t+'"]')}Object.defineProperty(e,"__esModule",{value:!0}),e.getScrollBarWidth=e.scrollListToItem=e.setPosition=e.setIndeterminate=e.focusFirstFocusableChild=e.findEditable=e.findFocusable=e.isFocusable=e.hasAncestor=e.setElementValue=e.focusElement=e.focusInNextFrameAsync=e.isChild=e.hasAnyClass=e.hasClass=e.removeClass=e.addClass=e.hideElement=e.showElement=void 0,e.ownsElement=o,e.getElementScrollHeight=r,e.getElementByDataId=i;var s=n(3),a=(e.showElement=function(t){t instanceof HTMLElement&&(t.style.display="")},e.hideElement=function(t){t instanceof HTMLElement&&(t.style.display="none")},e.addClass=function(t,e){e.classList.add(t)},e.removeClass=function(t,e){e.classList.remove(t)},e.hasClass=function(t,e){if(e instanceof HTMLElement)return e.classList.contains(t)}),l=(e.hasAnyClass=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],n=0;n<t.length;
1n++)if(a(t[n],e))return!0},e.isChild=function(t,e){for(var n=t;n&&n!==document;){if(e.indexOf(n)>=0)return!0;n=n.parentElement}return!1},e.focusInNextFrameAsync=function(t){return(0,s.delay)(33).then(function(){return t.focus()})},e.focusElement=function(t,e){var n=i(t);n instanceof HTMLElement&&n.focus({preventScroll:e})},e.setElementValue=function(t,e){var n=i(t);n instanceof HTMLElement&&(n.value=e)},e.hasAncestor=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t instanceof HTMLElement&&t.closest(e);return n?Boolean(o):o&&!t.matches(e)},e.isFocusable=function(t){var e=t.nodeName.toLowerCase(),n=/input|^a$|area|iframe|select|textarea|button|object/.test(e),o=t.tabIndex>-1,r="none"!==window.getComputedStyle(t).display;return(n||o)&&r&&!t.disabled}),c=e.findFocusable=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=p(t,l,e);return n},u=(e.findEditable=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=p(t,u,e);return n},e.focusFirstFocusableChild=function(t,e){var n=i(t)||document.getElementById(t);if(n){var o=c(n,!1);o instanceof HTMLElement&&setTimeout(function(){o.focus({preventScroll:e})},20)}},function(t){var e=l(t),n=(t.tagName||"").toLowerCase();return e&&n&&/input|^a$|area|select|textarea/.test(n)}),p=function t(e,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)return null;if(o&&n(e))return e;for(e=e.firstElementChild;e;){var r=t(e,n,!0);if(r)return r;e=e.nextElementSibling}};e.setIndeterminate=function(t,e){var n=i(t)||document.getElementById(t);n&&(n.indeterminate=e)},e.setPosition=function(t,e,n){var o=i(t)||document.getElementById(t);o&&(o.style.top=e,o.style.left=n)},e.scrollListToItem=function(t,e){var n=i(t)||document.getElementById(t),o="UL"===n.tagName?n:n.getElementsByTagName("ul")[0],r=o.getElementsByTagName("li")[e],s=o.offsetParent;if(r&&s){var a=s.scrollTop,l=a+s.offsetHeight,c=r.offsetTop,u=c+r.offsetHeight;u>l?s.scrollTop+=u-l:c<a&&(s.scrollTop=c)}},e.getScrollBarWidth=function(){var t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);var e=document.createElement("div");t.appendChild(e);var n=t.offsetWidth-e.offsetWidth;return t.parentNode.removeChild(t),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var r=n(9);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var i=n(10);
1Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var s=n(11);Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})});var a=n(12);Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})})},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationService=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(9),s="keydown",a="printableKey";e.NavigationService=function(){function t(e){var n=this;o(this,t),this.onNavigate=function(t){var e=new i.Shortcut(t),o=1===e.name.length,r=n.shortcuts.find(function(t){return i.Shortcut.equals(t,e)})||o&&n.shortcuts.find(function(t){return t.name===a});r&&n.callbacks[r.name].forEach(function(n){n(e,t)||(t.preventDefault(),t.stopPropagation())})},this.element=e,this.callbacks={},this.shortcuts=[],this.bindEvents()}return r(t,[{key:"destroy",value:function(){this.unbindEvents(),this.element=this.callbacks=this.shortcuts=null}},{key:"bindEvents",value:function(){this.element.addEventListener(s,this.onNavigate)}},{key:"unbindEvents",value:function(){this.element.removeEventListener(s,this.onNavigate)}},{key:"bind",value:function(t,e){var n=Array.isArray(t)?t:[t],o=!0,r=!1,s=void 0;try{for(var a,l=n[Symbol.iterator]();!(o=(a=l.next()).done);o=!0){var c=a.value,u=new i.Shortcut(c);this.callbacks[u.name]=this.callbacks[u.name]||[],this.shortcuts.push(u),this.callbacks[u.name].push(e)}}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}}}]),t}()},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Shortcut=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(10);e.Shortcut=function(){function t(e){o(this,t),"string"==typeof e?this._initFromString(e):e instanceof KeyboardEvent&&this._initFromEvent(e)}return r(t,null,[{key:"equals",value:function(t,e){return t.ctrl===e.ctrl&&t.alt===e.alt&&t.shift===e.shift&&t.code===e.code}}]),r(t,[{key:"_initFromString",value:function(t){var e=t.toUpperCase().split(/[\t-\r \+\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/),n=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var l=s.value;switch(l){case i.KeyModifiers.CTRL:this.ctrl=!0;break;case i.KeyModifiers.ALT:this.alt=!0;break;case i.KeyModifiers.SHIFT:this.shift=!0;break;default:this.code=this._toNormalizedCode(l)}}}catch(t){o=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}this.name=t}},{key:"_initFromEvent",value:function(t){this.name="",t.ctrlKey&&(this.ctrl=t.ctrlKey,this.name+=i.KeyModifiers.CTRL+" "),t.shiftKey&&(this.shift=t.shiftKey,this.name+=i.KeyModifiers.SHIFT+" "),t.altKey&&(this.alt=t.altKey,this.name+=i.KeyModifiers.ALT+" "),this.code=t.keyCode,this.name+=t.key}},{key:"_toNormalizedCode",value:function(t){return i.KeyCode[t.toUpperCase()]}}]),t}()},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.KeyCode={DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,ARROWLEFT:37,ARROWUP:38,ARROWRIGHT:39,ARROWDOWN:40,SPACE:32,END:35,HOME:36,PAGE_UP:33,PAGE_DOWN:34},e.Key={DELETE:"Delete",BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESC:"Escape",ARROWLEFT:"ArrowLeft",ARROWUP:"ArrowUp",ARROWRIGHT:"ArrowRight",ARROWDOWN:"ArrowDown",SPACE:"Space",END:"End",HOME:"Home",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"},e.KeyModifiers={CTRL:"CTRL",ALT:"ALT",SHIFT:"SHIFT"}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}
1Object.defineProperty(e,"__esModule",{value:!0}),e.TabKeyTrap=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(10),s="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], *[contenteditable]";e.TabKeyTrap=function(){function t(e){var n=this;o(this,t),this.disableTabKeyTrap=function(){n.element&&n.element.removeEventListener("keydown",n.onKeyDown)},this.onKeyDown=function(t){return n.tryFindEdgeElements()?void(t.keyCode===i.KeyCode.TAB&&(t.shiftKey?document.activeElement===n.firstElement&&(n.lastElement.focus(),t.preventDefault()):document.activeElement===n.lastElement&&(n.firstElement.focus(),t.preventDefault()))):void n.element.removeEventListener("keydown",n.onKeyDown)},this.element=e}return r(t,[{key:"destroy",value:function(){this.disableTabKeyTrap(),this.element=null,this.firstElement=null,this.lastElement=null}},{key:"enableKeyTrap",value:function(){this.element&&this.element.addEventListener("keydown",this.onKeyDown)}},{key:"tryFindEdgeElements",value:function(){return this.findEdgeElements(),this.firstElement&&this.lastElement}},{key:"findEdgeElements",value:function(){var t=this.element.querySelectorAll(s);this.firstElement=t[0],this.lastElement=t[t.length-1]}}]),t}()},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.FormKeyTrap=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(10),s=n(6),a=function(t){if(t.length)return t[t.length-1]};e.FormKeyTrap=function(){function t(e){var n=this;o(this,t),this.disableTabKeyTrap=function(){n.firstElement&&n.firstElement.removeEventListener("keydown",n.onFirstElementKeyDown),n.lastElement&&n.lastElement.removeEventListener("keydown",n.onLastElementKeyDown)},this.onFirstElementKeyDown=function(t){t.keyCode===i.KeyCode.TAB&&t.shiftKey&&(t.preventDefault(),n.lastElement&&n.lastElement.focus())},this.onLastElementKeyDown=function(t){t.keyCode!==i.KeyCode.TAB||t.shiftKey||(t.preventDefault(),n.firstElement&&n.firstElement.focus())},e&&(this.element=e,this.firstElement=(0,s.findFocusable)(e,!1),this.lastElement=a(e.querySelectorAll("button, .k-button")))}return r(t,[{key:"destroy",value:function(){this.disableTabKeyTrap(),this.element=null,this.firstElement=null,this.lastElement=null}},{key:"enableKeyTrap",value:function(){this.element&&this.firstElement&&this.lastElement&&(this.firstElement.addEventListener("keydown",this.onFirstElementKeyDown),this.lastElement.addEventListener("keydown",this.onLastElementKeyDown))}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(14);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,c.initComponent)(l.AnimationGroup,t,e)}function r(t,e){var n=(0,c.getComponentInstance)(t);return n?(n.setOptions(e),n.showAsync().catch(u.noop)):null}function i(t,e){var n=(0,c.getComponentInstance)(t);return n?(n.setOptions(e),n.hideAsync().catch(u.noop)):null}function s(t){var e=(0,c.getComponentInstance)(t);e&&e.hide()}function a(t){var e=(0,c.getComponentInstance)(t);e&&e.show()}Object.defineProperty(e,"__esModule",{value:!0}),e.initAnimationGroup=o,e.showAnimationGroupAsync=r,e.hideAnimationGroupAsync=i,e.hideAnimationGroup=s,e.showAnimationGroup=a;var l=n(15),c=n(1),u=n(3)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}
1Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationGroup=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),l=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},u=n(3),p=n(1),h="none",f={vertical:"reveal-vertical",horizontal:"reveal-horizontal"},d={"slide-down":"slide-up","push-down":"push-up"},v={appear:"appear",exit:"exit"},y=function(){return(0,p.delay)(20)},g=function(t,e){return"k-"+t+"-"+e},m=function(t){var e=Object.keys(v);return e.reduce(function(e,n){return c({},e,s({},n,{base:g(t,n),active:g(t,n+"-active")}))},{})};e.AnimationGroup=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,animationName:"slide-down",duration:300,showDelay:10,hideDelay:10,jsinterop:{showStart:null,hideStart:null}},i.extendOptions(n),i.element.parentElement.style.display=h,i.animationClasses=m(i.options.animationName),i}return i(e,t),a(e,[{key:"setOptions",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setOptions",this).call(this,t),this.animationClasses=m(this.options.animationName)}},{key:"destroy",value:function(){this.cancelCallback(),this.parentComponent=null,l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"showAsync",value:function(){var t=this;return this.cancelCallback(),this.onAppearStart().then(function(){return t.onAppearing()}).then(function(){return t.onTransitionEnd(t.onAppearEnd.bind(t))})}},{key:"hideAsync",value:function(){var t=this;return this.cancelCallback(),this.onExitStart().then(this.onExiting()).then(function(){return t.onTransitionEnd(t.onExitEnd.bind(t))})}},{key:"show",value:function(){this.cancelCallback(),this.removeClasses(v.exit),this.removeClasses(v.appear),this.element.style.display=null,this.element.parentElement.style.display=null,this.triggerOpen()}},{key:"hide",value:function(){this.cancelCallback(),this.removeClasses(v.exit),this.removeClasses(v.appear),this.element.style.display=h,this.element.parentElement.style.display=h,this.triggerClose()}},{key:"onAppearStart",value:function(){var t=this;return this.updateAppearStartState().then(function(){var e=t.getParentPosition(),n=t.o
1ptions.animationName;return t.maxDimensions(),e&&e.flipped&&d[n]?(t.element.style.display=h,t.element.parentElement.style.display=h,y().then(function(){return t.removeClasses(v.appear),t.animationClasses=m(d[n]),t.updateAppearStartState()})):Promise.resolve()})}},{key:"updateAppearStartState",value:function(){var t=this;return this.removeClasses(v.exit),this.addClasses(this.animationClasses[v.appear].base),this.addClasses(this.options.class),y().then(function(){t.element&&(t.element.style.display=null,t.element.parentElement.style.display=null)})}},{key:"onAppearing",value:function(){var t=this;return this.triggerOpen(),y().then(function(){t.addClasses(t.animationClasses[v.appear].active)})}},{key:"onAppearEnd",value:function(){var t=this,e=v.appear;y().then(function(){t.removeClasses(e),t.removeMaxDimensions()})}},{key:"onExitStart",value:function(){var t=this;return y().then(function(){var e=t.getParentPosition(),n=t.options.animationName;e&&e.flipped&&d[n]&&(t.animationClasses=m(d[n])),t.removeClasses(v.appear),t.addClasses(t.animationClasses[v.exit].base)})}},{key:"onExiting",value:function(){var t=this;return this.triggerClose(),this.maxDimensions(),y().then(function(){t.addClasses(t.animationClasses[v.exit].active)})}},{key:"onExitEnd",value:function(){this.removeClasses(v.exit),this.removeMaxDimensions(),this.element.style.display=h,this.element.parentElement.style.display=h}},{key:"onTransitionEnd",value:function(t){var e=this.options,n=e.duration+e.showDelay;return this.timer=(0,p.createCancellableTimerPromise)(n),this.timer.promise.then(t)}},{key:"cancelCallback",value:function(){this.timer&&this.timer.cancel(),this.timer=null}},{key:"getParentComponent",value:function(){if(this.parentComponent)return this.parentComponent;if(!this.element)return null;var t=this.element.closest(".k-animation-container"),e=t.getAttribute("data-id");return this.parentComponent=(0,p.getComponentInstance)(e),this.parentComponent}},{key:"callParentMethod",value:function(t,e){var n=this.getParentComponent();if(n&&(0,u.isFunction)(n[t]))return n[t](e)}},{key:"getParentPosition",value:function(){return this.callParentMethod("getElementPosition")}},{key:"triggerOpen",value:function(){this.invokeMethodAsync(this.options.jsinterop.showStart),this.callParentMethod("onOpen")}},{key:"triggerClose",value:function(){this.invokeMethodAsync(this.options.jsinterop.hideStart),this.callParentMethod("onClose")}},{key:"removeClasses",value:function(t){var e=this.animationClasses[t];this.element&&(this.element.classList.remove(e.base),this.element.classList.remove(e.active))}},{key:"addClasses",value:function(t){var e=this;t&&t.split(/\s+/).forEach(function(t){e.element&&e.element.classList.add(t)})}},{key:"maxDimensions",value:function(){var t=this.options,e=this.element,n=e.scrollHeight+"px",o=e.scrollWidth+"px";return t.animationName.includes(f.vertical)?(e.style.maxHeight=n,"max-height: "+n):t.animationName.includes(f.horizontal)?(e.style.maxWidth=o,"max-width: "+o):""}},{key:"removeMaxDimensions",value:function(){this.element&&(this.element.style.maxHeight=null,this.element.style.maxWidth=null)}}]),e}(p.Component)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(17);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e,n){var o=(0,c.getElementByDataId)(t);if(o){var r=JSON.parse(e),s=(0,c.getComponentInstance)(t),a=(0,c.extend)(r,n);if(s)(0,c.setComponentOptions)(s,a);else{a.locale.name=t,l.IntlService.setLocale(a.locale);var u=i(o,a,new l.ThemeService,l.IntlService);(0,c.setComponentInstance)(t,u)}}}function r(t){(0,c.destroyComponent)(t)}function i(t,e,n,o){var r=new s.Chart(t,e,n,o);return r}Object.defineProperty(e,"__esModule",{value:!0}),e.initOrUpdateChart=o,e.destroyChart=r;var s=n(18),a=n(19),l=n(26),c=n(1);a.TemplateService.register(l.TemplateService)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){ 2if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
2Object.defineProperty(e,"__esModule",{value:!0}),e.Chart=void 0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),l=n(1),c=n(19),u=n(22),p=n(23),h="mouseleave";c.DomEventsBuilder.register(p.DomEventsBuilder);e.Chart=function(t){function e(t,n,i,s){o(this,e);var a=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return a.options={seriesTooltipPopupId:"",jsinterop:{onObserverShowTooltip:"",onObserverSeriesClick:""}},a.onMouseLeave=function(t){a.hideElements(t)},a.onObserverShowTooltip=function(t){a.showTooltip(t)},a.onObserverHideTooltip=function(){a.hideTooltip()},a.onObserverSeriesClick=function(t){var e=a.createSeriesClickEventArgs(t);a.invokeSeriesClickAsync(e)},a.options=n,a.themeService=i,a.createInstanceObserver(),a.chartInstance=a.createChart(t,n,a.getThemeOptions(),s,a.chartInstanceObserver),a.bindEvents(),a}return i(e,t),a(e,[{key:"destroy",value:function(){this.unbindEvents(),this.destroyInstanceObserver(),this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null)}},{key:"bindEvents",value:function(){this.element.addEventListener(h,this.onMouseLeave)}},{key:"unbindEvents",value:function(){this.element.removeEventListener(h,this.onMouseLeave)}},{key:"getThemeOptions",value:function(){return this.themeService.loadTheme(),this.themeService.getThemeOptions()}},{key:"createChart",value:function(t,e,n,o,r){var i=new c.Chart(t,e,n,{intlService:o,observer:r,sender:this});return i}},{key:"setOptions",value:function(t){this.chartInstance&&(this.options=t,this.chartInstance.setOptions(t,this.getThemeOptions()))}},{key:"refresh",value:function(){this.themeService.reset(),this.setOptions(this.options)}},{key:"createInstanceObserver",value:function(){this.chartInstanceObserver=new u.ChartInstanceObserver(this)}},{key:"destroyInstanceObserver",value:function(){this.chartInstanceObserver=null}},{key:"trigger",value:function(){}},{key:"requiresHandlers",value:function(){return!1}},{key:"invokeShowTooltipAsync",value:function(t){return this.invokeMethodAsync(this.options.jsinterop.onObserverShowTooltip,t)}},{key:"invokeSeriesClickAsync",value:function(t){return this.invokeMethodAsync(this.options.jsinterop.onObserverSeriesClick,t)}},{key:"showTooltip",value:function(t){this.setTooltipPosition(t.anchor);var e=this.getTooltipTemplateContext(t);this.invokeShowTooltipAsync(e)}},{key:"hideTooltip",value:function(){var t=this.getTooltipPopup();t&&t.close()}},{key:"getTooltipAnchorRect",value:function(t){var e=this.getTooltipAnchorOffset(t);return{x:0,y:0,width:0,height:0,top:e.top,left:e.left,right:e.right,bottom:e.bottom}}},{key:"getTooltipAnchorOffset",value:function(t){return t?t.point:{top:0,left:0}}},{key:"getTooltipPopup",value:function(){return(0,l.getComponentInstance)(this.options.seriesTooltipPopupId)}},{key:"setTooltipPosition",value:function(t){var e=this.getTooltipAnchorRect(t),n=this.getTooltipPopup();n&&(n.options.anchorAlign=t.align,n.options.anchorRect=e,n.positionElement())}},{key:"getTooltipTemplateContext",value:function(t){if(t.shared)return this.getTooltipSharedTemplateContext(t);var e=this.createTooltipTemplatePoint(t.point,t.format),n=s({},e,{tooltipStyle:(0,l.stringifyToStyle)(t.style)});return n}},{key:"getTooltipSharedTemplateContext",value:function(t){var e=t.points.filter(function(t){return(0,l.isDefined)(t.series.name)}).length>0,n=t.series.length>1,o=1;e&&o++,n&&o++;var r=this.createTooltipTemplatePoints(t),i={category:t.category,categoryText:t.categoryText,points:r,showSeriesColorMarker:n,showSeriesName:e,headerColumnColSpan:o,tooltipStyle:(0,l.stringifyToStyle)(t.style)};return i}},{key:"createTooltipTemplatePoints",value:function(t){var e=this,n=t.points?t.points.map(function(n){return e.createTooltipTemplatePoint(n,t.format)}):[];return n}},{key:"createTooltipTemplatePoint",value:function(t,e){var n=this.convertToSeriesPoint(t),o=s({},n,{formattedValue:e&&t.formatValue?t.formatValue(e):String(t.value)});return o}},{key:"hideElements",value:function(t){var e=t.relatedTarget,n=e&&Boolean(e.closest(".k-ch
2art-tooltip")),o=(0,l.ownsElement)(this.element,e);e&&(n||o)||this.chartInstance.hideElements()}},{key:"createSeriesClickEventArgs",value:function(t){var e=this.convertToSeriesPoint(t.point);return e}},{key:"convertToSeriesPoint",value:function(t){var e=void 0;t.category instanceof Date&&(e=t.dataItem);var n={dataItem:e,category:t.category,categoryIndex:t.categoryIx,seriesIndex:t.series.index,seriesColor:t.series.color,seriesName:t.series.name||"",percentage:t.percentage,pointIndex:t.pointIx||t.index};return n}}]),e}(l.Component)},function(t,e,n){"use strict";function o(t){return Array.isArray(t)}function r(t,e){for(var n=o(e)?e:[e],r=0;r<n.length;r++){var i=n[r];t.className.indexOf(i)===-1&&(t.className+=" "+i)}}function i(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(kn," "))}function s(t){var e=.5;t.options.stroke&&ze.drawing.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 a(t,e){return-t.x*e.y+t.y*e.x<0}function l(t){return"number"==typeof t&&!isNaN(t)}function c(t){return typeof t===vn}function u(t){return l(t)||c(t)&&isFinite(t)}function p(t){return"function"==typeof t}function h(t,e){for(var n in e){var o=e[n],r=typeof o,i=void 0;if(i=r===Sn&&null!==o?o.constructor:null,i&&i!==Array)if(o instanceof Date)t[n]=new Date(o.getTime());else if(p(o.clone))t[n]=o.clone();else{var s=t[n];typeof s===Sn?t[n]=s||{}:t[n]={},h(t[n],o)}else r!==On&&(t[n]=o)}return t}function f(t){for(var e=arguments,n=arguments.length,o=1;o<n;o++)h(t,e[o]);return t}function d(t){return"object"==typeof t}function v(t){return l(t)?t+"px":t}function y(t){return Cn.test(t)}function g(t,e){var n=c(e)?[e]:e;if(o(n)){for(var r={},i=window.getComputedStyle(t),s=0;s<n.length;s++){var a=n[s];r[a]=y(a)?parseFloat(i[a]):i[a]}return r}if(d(e))for(var l in e)t.style[l]=v(e[l])}function m(t,e){void 0===e&&(e=0);var n={top:0,right:0,bottom:0,left:0};return"number"==typeof t?n[yn]=n[fn]=n[Ve]=n[on]=t:(n[yn]=t[yn]||e,n[fn]=t[fn]||e,n[Ve]=t[Ve]||e,n[on]=t[on]||e),n}function b(t){void 0===t&&(t={});var e;return t.template?t.template=e=Bn.compile(t.template):p(t.content)&&(e=t.content),e}function _(t){if(Hn[t])return Hn[t];var e=[];return t.replace(Nn,function(t,n,o,r){e.push(ze.drawing.util.defined(n)?n:o||r)}),Hn[t]=function(t){for(var n=t,o=0;o<e.length&&n;o++)n=n[e[o]];return n},Hn[t]}function x(t,e){for(var n=t.length,o=[],r=0;r<n;r++)e(t[r])&&o.push(t[r]);return o}function w(t,e){if(t.className)for(var n=e.split(" "),o=0;o<n.length;o++)if(t.className.indexOf(n[o])!==-1)return!0}function k(t,e){if(e)return e.indexOf(t)!==-1}function S(t,e,n){return ze.drawing.util.round(t+(e-t)*n,qe)}function O(t,e){for(var n=t.length,o=[],r=0;r<n;r++){var i=e(t[r]);ze.drawing.util.defined(i)&&o.push(i)}return o}function C(t){var e=0;return t.wheelDelta&&(e=-t.wheelDelta/120,e=e>0?Math.ceil(e):Math.floor(e)),t.detail&&(e=ze.drawing.util.round(t.detail/3)),e}function T(t,e){var n=t.prototype;n.options?n.options=f({},n.options,e):n.options=e}function E(t){for(var e=rn,n=sn,o=0,r=t.length;o<r;o++){var i=t[o];null!==i&&isFinite(i)&&(e=Math.min(e,i),n=Math.max(n,i))}return{min:e===rn?void 0:e,max:n===sn?void 0:n}}function A(t,e){var n=ro(e-t,Ze-1);if(0===n){if(0===e)return.1;n=Math.abs(e)}var o=Math.pow(10,Math.floor(Math.log(n)/Math.log(10))),r=ro(n/o,Ze),i=1;return i=r<1.904762?.2:r<4.761904?.5:r<9.523809?1:2,ro(o*i,Ze)}function M(t,e,n,o,r){var i=oo(r);return new lo(n+(t-n)*Math.cos(i)+(e-o)*Math.sin(i),o-(t-n)*Math.sin(i)+(e-o)*Math.cos(i))}function P(t,e){return t-e}function j(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),o=Math.max(t.x1,e.x1),r=Math.min(t.x2,e.x2),i=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),c=Math.max(t.y2,e.y2),u=[];return u[0]=new co(o,s,r,a),u[1]=new co(n,a,o,l),u[2]=new co(r,a,i,l),u[3]=new co(o,l,r,c),t.x1===n&&t.y1===s||e.x1===n&&e.y1===s?(u[4]=new co(n,s,o,a),u[5]=new co(r,l,i,c)):(u[4]=new co(r,s,i,a),u[5]=new co(n,l,o,c)),x(u,function(t){return t.height()>0&&t.width()>0})[0]}function D(t){for(var e=t.stops,n=t.innerRadius/t.radius*100,o=e.length,r=[],i=0;i<o;i++){var s=Object.assign({},e[i]);s.offset=(s.offset*(100-n)+n)/100,r.push(s)}return r}function R(t){var e=t.origin,n=t.bottomRight();return new co(e.x,e.y,n.x,n.y)}function I(t,e){var n=t.tickX,o=t.tickY,r=t.position,i=new ze.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?i.moveTo(n,r).lineTo(n+e.size,r):i.moveTo(r,o).lineTo(r,o+e.size),s(i),i}function F(t,e){var n=t.lineStart,o=t.lineEnd,r=t.position,i=new ze.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?i.moveTo(n,r).lineTo(o,r):i.moveTo(r,n).lineTo(r,o),s(i),i}function L(t,e){var n=t.getTime()-e,o=t.getTimezoneOffset()-e.getTimezoneOffset();return n-o*Uo}function z(t,e){return new Date(t.getTime()+e)}function B(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function N(t,e){void 0===e&&(e=0);var n=0,o=t.getDay();if(!isNaN(o))for(;o!==e;)0===o?o=6:o--,n++;return z(t,-n*qo)}function H(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function V(t,e){var n=new Date(t);n.setMinutes(0,0,0);var o=(t.getTimezoneOffset()-n.getTimezoneOffset())*Uo;return z(n,o+e*Go)}function U(t,e,n,o){var r=t;if(t){var i=B(t),s=i.getHours();
2n===No?(r=new Date(i.getFullYear()+e,0,1),H(r,0)):n===Bo?(r=new Date(i.getFullYear(),i.getMonth()+e,1),H(r,s)):n===zo?(r=U(N(i,o),7*e,Lo),H(r,s)):n===Lo?(r=new Date(i.getFullYear(),i.getMonth(),i.getDate()+e),H(r,s)):n===Fo?r=V(i,e):n===Io?(r=z(i,e*Uo),r.getSeconds()>0&&r.setSeconds(0)):n===Ro?r=z(i,e*Vo):n===Do&&(r=z(i,e)),n!==Do&&r.getMilliseconds()>0&&r.setMilliseconds(0)}return r}function G(t,e,n){return U(B(t),0,e,n)}function q(t,e,n){var o=B(t);return o&&G(o,e,n).getTime()===o.getTime()?o:U(o,1,e,n)}function K(t,e){return t&&e?t.getTime()-e.getTime():-1}function W(t,e){return t.getTime()-e}function Y(t){if(o(t)){for(var e=[],n=0;n<t.length;n++)e.push(Y(t[n]));return e}if(t)return B(t).getTime()}function X(t,e){return t&&e?Y(t)===Y(e):t===e}function Z(t,e,n){return L(t,e)/Xo[n]}function $(t,e,n,o){var r,i=B(t),s=B(e);return r=n===Bo?i.getMonth()-s.getMonth()+12*(i.getFullYear()-s.getFullYear())+Z(i,new Date(i.getFullYear(),i.getMonth()),Lo)/new Date(i.getFullYear(),i.getMonth()+1,0).getDate():n===No?i.getFullYear()-s.getFullYear()+$(i,new Date(i.getFullYear(),0),Bo,1)/12:n===Lo||n===zo?Z(i,s,n):W(i,e)/Xo[n],r/o}function J(t,e,n){var o;return o=n===No?e.getFullYear()-t.getFullYear():n===Bo?12*J(t,e,No)+e.getMonth()-t.getMonth():n===Lo?Math.floor(W(e,t)/qo):Math.floor(W(e,t)/Xo[n])}function Q(t,e){var n;return n=c(e)?t.parseDate(e)||B(e):B(e)}function tt(t,e){if(o(e)){for(var n=[],r=0;r<e.length;r++)n.push(Q(t,e[r]));return n}return Q(t,e)}function et(t,e){if(t instanceof Date){for(var n=e.length,o=0;o<n;o++)if(X(e[o],t))return o;return-1}return e.indexOf(t)}function nt(t){var e=t._range;return e||(e=t._range=E(t),e.min=B(e.min),e.max=B(e.max)),e}function ot(t,e,n){for(var o,r,i,s=nt(t.categories),a=(t.max||s.max)-(t.min||s.min),l=t.autoBaseUnitSteps,c=t.maxDateGroups,u=t.baseUnit===or,p=e?nr.indexOf(e):0,h=u?nr[p++]:t.baseUnit,f=a/Xo[h],d=f;!r||f>=c;){o=o||l[h].slice(0);do i=o.shift();while(i&&e===h&&i<n);if(i)r=i,f=d/r;else{if(h===to(nr)){r=Math.ceil(d/c);break}if(!u){f>c&&(r=Math.ceil(d/c));break}h=nr[p++]||to(nr),d=a/Xo[h],o=null}}t.baseUnitStep=r,t.baseUnit=h}function rt(t){for(var e,n,o=t.categories,r=Yn(o)?o.length:0,i=rn,s=0;s<r;s++){var a=o[s];if(a&&e){var l=L(a,e);l>0&&(i=Math.min(i,l),n=i>=Yo?No:i>=Wo-3*qo?Bo:i>=Ko?zo:i>=qo?Lo:i>=Go?Fo:i>=Uo?Io:Ro)}e=a}t.baseUnit=n||Lo}function it(t){var e=(t.baseUnit||"").toLowerCase(),n=e!==or&&!k(e,nr);return n&&rt(t),e!==or&&t.baseUnitStep!==er||ot(t),t}function st(t,e,n){if(!t&&!e)return 0;var o;if(t>=0&&e>=0){var r=t===e?0:t,i=(e-r)/e;if(n===!1||!n&&i>tr)return 0;o=Math.max(0,r-(e-r)/2)}else o=t;return o}function at(t,e,n){if(!t&&!e)return 1;var o;if(t<=0&&e<=0){var r=t===e?0:e,i=Math.abs((r-t)/r);if(n===!1||!n&&i>tr)return 0;o=Math.min(0,r-(t-r)/2)}else o=e;return o}function lt(t,e){return ro(Math.floor(t/e)*e,Ze)}function ct(t,e){return ro(Math.ceil(t/e)*e,Ze)}function ut(t){return Math.max(Math.min(t,Jo),-Jo)}function pt(t,e,n){var o=n.narrowRange,r=st(t,e,o),i=at(t,e,o),s=A(r,i),a={majorUnit:s};return n.roundToMajorUnit!==!1&&(r<0&&vt(r,s,1/3)&&(r-=s),i>0&&vt(i,s,1/3)&&(i+=s)),a.min=lt(r,s),a.max=ct(i,s),a}function ht(t,e){return{min:Yn(e.min)?Math.min(t.min,e.min):t.min,max:Yn(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}function ft(t,e){for(var n=0;n<e.length;n++){var o=e[n];null===t[o]&&(t[o]=void 0)}}function dt(t,e){var n,o,r=e;if(e){ft(e,["min","max"]),n=Yn(e.min),o=Yn(e.max);var i=n||o;i&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=lt(t.min,e.majorUnit),t.max=ct(t.max,e.majorUnit)):i&&(r=f(t,e),t.majorUnit=A(r.min,r.max))}t.minorUnit=(r.majorUnit||t.majorUnit)/5;var s=f(t,r);return s.min>=s.max&&(n&&!o?s.max=s.min+s.majorUnit:!n&&o&&(s.min=s.max-s.majorUnit)),s}function vt(t,e,n){var o=ro(Math.abs(t%e),Ze),r=e*(1-n);return 0===o||o>r}function yt(t){var e=Fo;return t>=Yo?e=No:t>=Wo?e=Bo:t>=Ko?e=zo:t>=qo&&(e=Lo),e}function gt(t,e,n){var o=n.min||t,r=n.max||e,i=n.baseUnit||(r&&o?yt(L(r,o)):Fo),s=Xo[i],a=n.weekStartDay||0,l=G(Y(o)-1,i,a)||B(r),c=q(Y(r)+1,i,a),u=n.majorUnit?n.majorUnit:void 0,p=u||ct(A(l.getTime(),c.getTime()),s)/s,h=J(l,c,i),f=ct(h,p),d=f-h,v=Math.floor(d/2),y=d-v;return n.baseUnit||delete n.baseUnit,n.baseUnit=n.baseUnit||i,n.min=n.min||U(l,
2-v,i,a),n.max=n.max||U(c,y,i,a),n.minorUnit=n.minorUnit||p/5,n.majorUnit=p,n}function mt(t,e,n,o){var r=n.min,i=n.max;return Yn(n.axisCrossingValue)&&n.axisCrossingValue<=0&&xt(),Yn(o.max)?o.max<=0&&xt():i=e,Yn(o.min)?o.min<=0&&xt():r=t,{min:r,max:i}}function bt(t,e,n){var o=n.majorUnit,r=t;return t<=0?r=e<=1?Math.pow(o,-2):1:n.narrowRange||(r=Math.pow(o,Math.floor(wt(t,o)))),r}function _t(t,e){var n,o=ro(wt(t,e),Ze)%1;return n=t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,wt(t,e)+.2):Math.pow(e,Math.ceil(wt(t,e)))}function xt(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function wt(t,e){return Math.log(t)/Math.log(e)}function kt(t,e){return 180-Math.abs(Math.abs(t-e)-180)}function St(t){return t<=0?-1:1}function Ot(t,e){for(var n=0;n<e.length;n++)if(e[n].options.name===t)return e[n].prepareUserOptions(),new xr(e[n])}function Ct(t){for(var e=t.length,n=0,o=0;o<e;o++){var r=t[o];l(r)&&n++}return n}function Tt(t,e){if(null===e)return e;var n=_(t,!0);return n(e)}function Et(t,e,n,o){void 0===n&&(n={}),void 0===o&&(o=!1);var r=n.defaults=n.defaults||{},i=n.depth=n.depth||0,s=!1;if(n.excluded=n.excluded||[],i>as)return null;for(var a in t)if(!k(a,n.excluded)&&t.hasOwnProperty(a)){var l=t[a];p(l)?(s=!0,o||(t[a]=so(l(e),r[a]))):d(l)&&(o||(n.defaults=r[a]),n.depth++,s=Et(l,e,n,o)||s,n.depth--)}return s}function At(t){for(var e=t.length,n=0,o=0;o<e;o++)n=Math.max(n,t[o].data.length);return n}function Mt(t,e,n,o,r){var i=t.box,s=new ze.geometry.Point;return s[e]=i[e+n],s[o]=i[o+r],s}function Pt(t){for(var e=0;e<t.length;e++)if(Yn(t[e].zIndex))return!0}function jt(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}function Dt(t,e){t.forEach(e)}function Rt(t,e){for(var n=t.length,o=n-1;o>=0;o--)e(t[o],o-n-1)}function It(t){return Ct(t)===t.length}function Ft(t){return Yn(t)&&null!==t}function Lt(t){for(var e=t.series,n=0;n<e.length;n++){var r=e[n],i=r.data;!i||o(i[0])||d(i[0])||(r.data=[i])}}function zt(){return"pane"+Ys++}function Bt(t,e){null!==e&&t.push(e)}function Nt(t,e,n){var o=e.visible;if(Yn(o))return o;var r=t.pointVisibility;return r?r[n]:void 0}function Ht(t){for(var e=t.data,n=[],o=0,r=0,i=0;i<e.length;i++){var s=Or.current.bindPoint(t,i),a=s.valueFields.value;c(a)&&(a=parseFloat(a)),l(a)?(s.visible=Nt(t,s.fields,i)!==!1,s.value=Math.abs(a),n.push(s),s.visible&&(o+=s.value),0!==a&&r++):n.push(null)}return{total:o,points:n,count:r}}function Vt(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Ut(t,e){for(var n=[],o=[].concat(e),r=0;r<t.length;r++){var i=t[r];k(i.type,o)&&n.push(i)}return n}function Gt(t,e,n){if(null===e)return e;var o="_date_"+t,r=e[o];return r||(r=Q(n,_(t,!0)(e)),e[o]=r),r}function qt(t,e){var n=t.type,o=e instanceof Date;return!n&&o||Vt(n,We)}function Kt(t){return 1===t.length?t[0]:t}function Wt(t){return t.missingValues?t.missingValues:Xs.test(t.type)||t.stack?Gr:qr}function Yt(t,e){var n=Or.current.bindPoint(t,null,e),o=n.valueFields;for(var r in o)if(u(o[r]))return!0}function Xt(t){var e,n,o=t.start,r=t.dir,i=t.min,s=t.max,a=t.getter,l=t.hasItem,c=t.series,u=o;do u+=r,l(u)&&(n=a(u),e=Yt(c,n.item));while(i<=u&&u<=s&&!e);if(e)return n}function Zt(t,e,n,o,r){var i=e.min,s=e.max,a=i>0&&i<n,l=s+1<n;if(a||l){var c,u,p=Wt(t);if(p!==qr)a&&(c=o(i-1)),l&&(u=o(s+1));else{var h,f;a&&(h=o(i-1),f=Yt(t,h.item),c=f?h:Xt({start:i,dir:-1,min:0,max:n-1,getter:o,hasItem:r,series:t})),l&&(h=o(s+1),f=Yt(t,h.item),u=f?h:Xt({start:s,dir:1,min:0,max:n-1,getter:o,hasItem:r,series:t}))}c&&(t._outOfRangeMinPoint=c),u&&(t._outOfRangeMaxPoint=u)}}function $t(t){return!t.pane.axes.some(function(e){return e.options.vertical===t.options.vertical&&e!==t&&e.options.visible!==!1})}function Jt(t){for(var e,n=t.length,o=0;o<n;o++){var r=t[o],i=r.options.visible!==!1;if(i||$t(r)){var s=i?r.contentBox():r.lineBox();e?e.wrap(s):e=s.clone()}}return e||new co}function Qt(t,e){for(var n=0;n<t.length;n++){var o=t[n];if(o&&o.pane===e)return o}}function te(t){return""===t||null===t||"none"===t||"transparent"===t||!Yn(t)}function ee(t,e,n){var o=e,r=t;if(t.indexOf(".")>-1){for(var i=t.split(".");i.length>1;)r=i.shift(),Yn(o[r])||(o[r]={}),o=o[r];r=i.shift()}o[r]=n}function ne(t,e,n){var o=e instanceof $o?[].concat(t.categoryAxis):[].concat(t.valueAxis);f(o[e.axisIndex],n)}function oe(t,e,n){return x(t,function(t){return 0===n&&!t.categoryAxis||t.categoryAxis===e})}function re(){this._defaultPrevented=!0}function ie(t,e){var n=(e||"").toLowerCase(),o=t.event,r="none"===n&&!(o.ctrlKey||o.shiftKey||o.altKey)||o[n+"Key"];return r}function se(t){for(var e={},n=0;n<t.length;n++){var o=t[n];o.axis.options.name&&(e[o.axis.options.name]={min:o.range.min,max:o.range.max})}return e}function ae(t){var e=document.createElement("div");return t&&(e.className=t),e}function le(t){for(var e=t;e&&!w(e,"k-handle");)e=e.parentNode;return e}
2function ce(t,e,n,o){var r=[].concat(n?t.yAxis:t.xAxis)[e];f(r,o)}function ue(t){var e,n=oo(t),o=ro(Math.sin(n),Ze),r=ro(Math.cos(n),Ze);e=Math.abs(o)>Ua?Ue:r<0?fn:on;var i;return i=Math.abs(o)<Va?Ue:o<0?Ve:yn,{horizontal:e,vertical:i}}function pe(t,e,n,o){var r,i=(o.x-n.x)*(t.y-n.y)-(o.y-n.y)*(t.x-n.x),s=(o.y-n.y)*(e.x-t.x)-(o.x-n.x)*(e.y-t.y);if(0!==s){var a=i/s;r=new lo(t.x+a*(e.x-t.x),t.y+a*(e.y-t.y))}return r}function he(t,e){return t.value.x-e.value.x}function fe(t){for(var e=Cl,n=0;n<e.length;n++){var o=e[n]+"Axes";t[o]&&(t[e[n]+"Axis"]=t[o],delete t[o])}}function de(t,e){if(t)for(var n=0;n<t.length;n++)if(t[n].category===e)return[t[n]]}function ve(t,e){function n(t){var e=(t||{}).color||r.color,n=f({},s,s[o],r,r[o],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete n[o],n}for(var o,r,i,s=(e||{}).axisDefaults||{},a=0;a<Cl.length;a++)o=Cl[a]+"Axis",r=t.axisDefaults||{},i=[].concat(t[o]),i=i.map(n),t[o]=i.length>1?i:i[0]}function ye(t,e){var n=t.series,o=n.length,r=t.seriesDefaults,i=f({},t.seriesDefaults),s=e?f({},e.seriesDefaults):{},a=f({},s);ge(i),ge(a);for(var l=0;l<o;l++){var c=n[l].type||t.seriesDefaults.type,u=f({data:[]},a,s[c],{tooltip:t.tooltip},i,r[c]);n[l]._defaults=u,n[l]=f({},u,n[l]),n[l].data=n[l].data||[]}}function ge(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 me(t){for(var e={},n=0;n<t.length;n++){var o=t[n],r=o.options.name;r&&(e[r]=o.range())}return e}function be(t,e){void 0===e&&(e=K);for(var n=1,o=t.length;n<o;n++)if(e(t[n],t[n-1])<0){t.sort(e);break}return t}function _e(t,e){void 0===e&&(e=K);for(var n=be(t,e),o=n.length,r=o>0?[n[0]]:[],i=1;i<o;i++)0!==e(n[i],to(r))&&r.push(n[i]);return r}function xe(t){for(var e=t.length,n=[],o=0;o<e;o++)for(var r=t[o],i=r.length,s=0;s<i;s++)n[s]=n[s]||[],n[s].push(r[s]);return n}function we(t,e){for(var n in e)if(!k(n,jl)&&e.hasOwnProperty(n)){var o=e[n],r=t[n];if(Yn(r)){var i=null===o;i||!Yn(o)?(delete t[n],i&&delete e[n]):r&&d(o)&&d(r)&&we(r,o)}}}function ke(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}function Se(t){for(var e=[],n=0;n<t.length;n++){var o=t[n];e[n]=o.style.display,o.style.display="none"}return e}function Oe(t,e){for(var n=0;n<t.length;n++)t[n].style.display=e[n]}function Ce(t){return l(t)?[t]:t}function Te(t,e){var n=document.createElement("div");return n.className=t,e&&(n.style.cssText=e),n}function Ee(){}function Ae(t){return Ee.prototype=t,new Ee}function Me(t,e){var n=t.getOrigin(),o=t.getSize(),r=m(e);return t.setOrigin([n.x-r.left,n.y-r.top]),t.setSize([o.width+(r.left+r.right),o.height+(r.top+r.bottom)]),t}function Pe(t,e){var n=t.box,o=t.children[0].box,r=e.border||{},i=e.background||"",s=cc.fromRect(new ze.geometry.Rect([n.x1,n.y1],[n.width(),n.height()]),{stroke:{}}),a=new uc(t.text,new ze.geometry.Point(o.x1,o.y1),{font:e.font,fill:{color:e.color}}),l=Me(a.bbox().clone(),e.padding),c=cc.fromRect(l,{stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:i}}),u=new lc;return u.append(s),u.append(c),u.append(a),u}function je(t,e,n){var o=Yn(t.from)?t.from:sn,r=Yn(t.to)?t.to:rn;return t.from=Math.max(Math.min(r,o),e),t.to=Math.min(Math.max(r,o),n),t}function De(t,e){var n=m(e);return n.left=-n.left,n.top=-n.top,n.right=-n.right,n.bottom=-n.bottom,Me(t,n)}function Re(t,e){var n,o,r=t.position,i=t.tickX,s=t.tickY;t.vertical?(n=new gc(i,r),o=new gc(i+e.size,r)):(n=new gc(r,s),o=new gc(r,s+e.size));var a=new vc({stroke:{color:e.color,width:e.width}}).moveTo(n).lineTo(o);return a}function Ie(t,e,n,o){var r=e.length;if(o.visible)for(var i=n.mirror,s=n.lineBox,a=o.skip;a<r;a+=o.step)a%o.skipUnit!==0&&(n.tickX=i?s.x2:s.x2-o.size,n.tickY=i?s.y1-o.size:s.y1,n.position=e[a],t.append(Re(n,o)))}function Fe(t,e,n,o){var r=new Fc,i=t.center,s=t.getRadiusX();if(o.visible)for(var a=0;a<e.length;a++){var l=t.pointAt(e[a]),c=new ze.geometry.Point(i.x+s-o.size,i.y).rotate(e[a],i);r.append(new Ic({stroke:{color:o.color,width:o.width}}).moveTo(l).lineTo(c))}return r}function Le(t,e,n,o){return{from:t,to:e,color:n,opacity:o}}
2Object.defineProperty(e,"__esModule",{value:!0});var ze=n(20),Be="arc",Ne="axisLabelClick",He="#000",Ve="bottom",Ue="center",Ge="circle",qe=3,Ke="cross",We="date",Ye="12px sans-serif",Xe=400,Ze=10,$e=600,Je="end",Qe=/\{\d+:?/,tn="height",en=100,nn="inside",on="left",rn=Number.MAX_VALUE,sn=-Number.MAX_VALUE,an="none",ln="noteClick",cn="noteHover",un="noteLeave",pn="object",hn="outside",fn="right",dn="start",vn="string",yn="top",gn="triangle",mn="value",bn="#fff",_n="width",xn="x",wn="y",kn=/\s+/g,Sn="object",On="undefined",Cn=/width|height|top|left|bottom|right/i,Tn={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)}},En=Tn,An=function(){},Mn={implementation:{}};An.register=function(t){En=t},Mn.implementation.get=function(){return En},Object.defineProperties(An,Mn);var Pn=/\{(\d+)(:[^\}]+)?\}/g,jn=function(t){this._intlService=t},Dn={intl:{}};Dn.intl.get=function(){return this._intlService||An.implementation},Dn.intl.set=function(t){this._intlService=t},jn.prototype.auto=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var o=this.intl;return c(t)&&t.match(Qe)?o.format.apply(o,[t].concat(e)):o.toString(e[0],t)},jn.prototype.localeAuto=function(t,e,n){var o,r=this.intl;return o=c(t)&&t.match(Qe)?t.replace(Pn,function(t,o,i){var s=e[parseInt(o,10)];return r.toString(s,i?i.substring(1):"",n)}):r.toString(e[0],t,n)},Object.defineProperties(jn.prototype,Dn);var Rn=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new jn(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},In={intl:{}};In.intl.get=function(){return this._intlService||An.implementation},In.intl.set=function(t){this._intlService=t,this.format.intl=t},Rn.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},Rn.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(Rn.prototype,In);var Fn,Ln=function(){};Ln.register=function(t){Fn=t},Ln.create=function(t,e){if(Fn)return Fn.create(t,e)};var zn={compile:function(t){return t}},Bn=function(){};Bn.register=function(t){zn=t},Bn.compile=function(t){return zn.compile(t)};var Nn=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,Hn={};Hn.undefined=function(t){return t};var Vn=function(){this._map={}};Vn.prototype.get=function(t){return this._map[this._key(t)]},Vn.prototype.set=function(t,e){this._map[this._key(t)]=e},Vn.prototype._key=function(t){return t instanceof Date?t.getTime():t};var Un="trigger",Gn=function(t,e){this.observer=t,this.handlerMap=f({},this.handlerMap,e)};Gn.prototype.trigger=function(t,e){var n,o=this,r=o.observer,i=o.handlerMap;return i[t]?n=this.callObserver(i[t],e):r[Un]&&(n=this.callObserver(Un,t,e)),n},Gn.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)},Gn.prototype.requiresHandlers=function(t){var e=this;if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var n=0;n<t.length;n++)if(e.handlerMap[t[n]])return!0};var qn=ze.drawing.util,Kn=qn.append,Wn=qn.bindEvents,Yn=qn.defined,Xn=qn.deg,Zn=qn.elementOffset,$n=qn.elementSize,Jn=qn.eventElement,Qn=qn.eventCoordinates,to=qn.last,eo=qn.limitValue,no=qn.objectKey,oo=qn.rad,ro=qn.round,io=qn.unbindEvents,so=qn.valueOrDefault,ao=function(){};ao.fetchFonts=function(t,e,n){void 0===n&&(n={depth:0});var o=5;!t||n.depth>o||!document.fonts||Object.keys(t).forEach(function(o){var r=t[o];"dataSource"!==o&&"$"!==o[0]&&r&&("font"===o?e.push(r):"object"==typeof r&&(n.depth++,ao.fetchFonts(r,e,n),n.depth--))})},ao.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){ze.logToConsole(t)}Promise.all(n).then(e,e)}else e()},ao.preloadFonts=function(t,e){var n=[];ao.fetchFonts(t,n),ao.loadFonts(n,e)};var lo=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),e.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=oo(e),o=Math.cos(n),r=Math.sin(n),i=t.x,s=t.y,a=this,l=a.x,c=a.y;
2return this.x=ro(i+(l-i)*o+(c-s)*r,qe),this.y=ro(s+(c-s)*o-(l-i)*r,qe),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,o){var r=oo(n);return new e(t.x-o*Math.cos(r),t.y-o*Math.sin(r))},e}(ze.Class),co=function(t){function e(e,n,o,r){t.call(this),this.x1=e||0,this.y1=n||0,this.x2=o||0,this.y2=r||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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(),o=this.width();return Yn(t)&&(this.x1=t,this.x2=this.x1+o),Yn(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=o(t),r=n?t[0]:t.x,i=n?t[1]:t.y;return this.wrap(new e(r,i,r,i)),this},e.prototype.snapTo=function(t,e){return e!==xn&&e||(this.x1=t.x1,this.x2=t.x2),e!==wn&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var n=this.height(),o=this.width(),r=e===yn||e===Ve?wn:xn,i=r===wn?n:o;if(e===Ue){var s=t.center(),a=this.center();this.x1+=s.x-a.x,this.y1+=s.y-a.y}else e===yn||e===on?this[r+1]=t[r+1]-i:this[r+1]=t[r+2];return this.x2=this.x1+o,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=m(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=m(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 lo(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 lo(this.x1,this.y1),new lo(this.x2,this.y1),new lo(this.x2,this.y2),new lo(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(),o=this.center(),r=o.x,i=o.y,s=M(0,0,r,i,t),a=M(e,0,r,i,t),l=M(e,n,r,i,t),c=M(0,n,r,i,t);return e=Math.max(s.x,a.x,l.x,c.x)-Math.min(s.x,a.x,l.x,c.x),n=Math.max(s.y,a.y,l.y,c.y)-Math.min(s.y,a.y,l.y,c.y),this.x2=this.x1+e,this.y2=this.y1+n,this},e.prototype.toRect=function(){return new ze.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},e.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},e.prototype.align=function(t,e,n){var o=e+1,r=e+2,i=e===xn?_n:tn,s=this[i]();k(n,[on,yn])?(this[o]=t[o],this[r]=this[o]+s):k(n,[fn,Ve])?(this[r]=t[r],this[o]=this[r]-s):n===Ue&&(this[o]=t[o]+(t[i]()-s)/2,this[r]=this[o]+s)},e}(ze.Class),uo=function(t){function e(e,n,o,r,i){t.call(this),this.center=e,this.innerRadius=n,this.radius=o,this.startAngle=r,this.angle=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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=oo(t),o=Math.cos(n),r=Math.sin(n),i=e?this.innerRadius:this.radius,s=ro(this.center.x-o*i,qe),a=ro(this.center.y-r*i,qe); 3return new lo(s,a)},e.prototype.adjacentBox=function(t,e,n){var o=this.clone().expand(t),r=o.middle(),i=o.point(r),s=e/2,a=n/2,l=Math.sin(oo(r)),c=Math.cos(oo(r)),u=i.x-s,p=i.y-a;return Math.abs(l)<.9&&(u+=s*-c/Math.abs(c)),Math.abs(c)<.9&&(p+=a*-l/Math.abs(l)),new co(u,p,u+e,p+n)},e.prototype.containsPoint=function(t){var e=this.center,n=this.innerRadius,o=this.radius,r=this.startAngle,i=this.startAngle+this.angle,s=t.x-e.x,l=t.y-e.y,c=new lo(s,l),u=this.point(r),p=new lo(u.x-e.x,u.y-e.y),h=this.point(i),f=new lo(h.x-e.x,h.y-e.y),d=ro(s*s+l*l,qe);return(p.equals(c)||a(p,c))&&!a(f,c)&&d>=n*n&&d<=o*o},e.prototype.getBBox=function(){var t,e=this,n=new co(rn,rn,sn,sn),o=ro(this.startAngle%360),r=ro((o+this.angle)%360),i=this.innerRadius,s=[0,90,180,270,o,r].sort(P),a=s.indexOf(o),l=s.indexOf(r);t=o===r?s:a<l?s.slice(a,l+1):[].concat(s.slice(0,l+1),s.slice(a,s.length));for(var c=0;c<t.length;c++){var u=e.point(t[c]);n.wrapPoint(u),n.wrapPoint(u,i)}return i||n.wrapPoint(this.center),n},e.prototype.expand=function(t){return this.radius+=t,this},e}(ze.Class),po=function(t){function e(e,n,o,r){t.call(this,e,0,n,o,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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},e}(uo),ho=.001,fo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRing=function(t,e){var n=t.startAngle+180,o=t.angle+n;t.angle>0&&n===o&&(o+=ho);var r=new ze.geometry.Point(t.center.x,t.center.y),i=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new ze.geometry.Arc(r,{startAngle:n,endAngle:o,radiusX:i,radiusY:i}),l=ze.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var c=a.pointAt(o);l.lineTo(c.x,c.y),l.arc(o,n,s,s,!0)}else l.lineTo(r.x,r.y);return l},e}(ze.Class);
3fo.current=new fo;var vo=function(t){function e(e){t.call(this),this.children=[],this.options=f({},this.options,this.initUserOptions(e))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){return t},e.prototype.reflow=function(t){for(var e,n=this.children,o=0;o<n.length;o++){var r=n[o];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,o=n.length,r=0;r<o;r++)n[r].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=this,n=0;n<arguments.length;n++){var o=t[n];e.children.push(o),o.parent=e}},e.prototype.renderVisual=function(){this.options.visible!==!1&&(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 ze.drawing.Group({zIndex:this.options.zIndex,visible:so(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=ze.drawing.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):Yn(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},e.prototype.stackVisual=function(t){var e,n=t.options.zIndex||0,o=this.visual.children,r=o.length;for(e=0;e<r;e++){var i=o[e],s=so(i.options.zIndex,0);if(s>n)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,n=e.length,o=0;o<n;o++){var r=e[o];t(r),r.traverse&&r.traverse(t)}},e.prototype.closest=function(t){for(var e=this,n=!1;e&&!n;)n=t(e),n||(e=e.parent);if(n)return e},e.prototype.renderComplete=function(){},e.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&t.visible===!1)},e.prototype.toggleHighlight=function(t){var e=this,n=(this.options||{}).highlight||{},o=n.visual,r=this._highlight;if(!r){var i={fill:{color:bn,opacity:.2},stroke:{color:bn,width:1,opacity:.2}};if(o){if(r=this._highlight=o(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return e.createHighlight(i)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total})),!r)return}else r=this._highlight=this.createHighlight(i);Yn(r.options.zIndex)||(r.options.zIndex=so(n.zIndex,this.options.zIndex)),this.appendVisual(r)}r.visible(t)},e.prototype.createGradientOverlay=function(t,e,n){var o=new ze.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(n),closed:t.options.closed},e));return o.segments.elements(t.segments.elements()),o},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e}(ze.Class);vo.prototype.options={};var yo=function(t){function e(e){t.call(this,e),this.options.margin=m(this.options.margin),this.options.padding=m(this.options.padding)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){var n,o=this,r=this.options,i=r.width,s=r.height,a=r.shrinkToFit,l=i&&s,c=r.margin,u=r.padding,p=r.border.width,h=function(){o.align(e,xn,r.align),o.align(e,wn,r.vAlign),o.paddingBox=n.
3clone().unpad(c).unpad(p)},f=e.clone();l&&(f.x2=f.x1+i,f.y2=f.y1+s),a&&f.unpad(c).unpad(p).unpad(u),t.prototype.reflow.call(this,f),n=l?this.box=new co(0,0,i,s):this.box,a&&l?(h(),f=this.contentBox=this.paddingBox.clone().unpad(u)):(f=this.contentBox=n.clone(),n.pad(u).pad(p).pad(c),h()),this.translateChildren(n.x1-f.x1+c.left+p+u.left,n.y1-f.y1+c.top+p+u.top);for(var d=this.children,v=0;v<d.length;v++){var y=d[v];y.reflow(y.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);var e=this.options;e.visible&&this.hasBox()&&this.visual.append(ze.drawing.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:so(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(vo);T(yo,{align:on,vAlign:yn,margin:{},padding:{},border:{color:He,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var go=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),e.prototype.constructor=e,e.prototype.getElement=function(){var t=this,e=t.options,n=t.paddingBox,o=e.type,r=e.rotation,i=n.center(),s=n.width()/2;if(!e.visible||!this.hasBox())return null;var a,l=this.visualStyle();return o===Ge?a=new ze.drawing.Circle(new ze.geometry.Circle([ro(n.x1+s,qe),ro(n.y1+n.height()/2,qe)],s),l):o===gn?a=ze.drawing.Path.fromPoints([[n.x1+s,n.y1],[n.x1,n.y2],[n.x2,n.y2]],l).close():o===Ke?(a=new ze.drawing.MultiPath(l),a.moveTo(n.x1,n.y1).lineTo(n.x2,n.y2),a.moveTo(n.x1,n.y2).lineTo(n.x2,n.y1)):a=ze.drawing.Path.fromRect(n.toRect(),l),r&&a.transform(ze.geometry.transform().rotate(-r,[i.x,i.y])),a.options.zIndex=e.zIndex,a},e.prototype.createElement=function(){var t,e=this,n=this.options.visual,o=this.pointData||{};return t=n?n({value:o.value,dataItem:o.dataItem,sender:this.getSender(),series:o.series,category:o.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return e.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}(yo);T(go,{type:Ge,align:Ue,vAlign:Ue});var mo="linear",bo="radial",_o={glass:{type:mo,rotation:0,stops:[{offset:0,color:bn,opacity:0},{offset:.25,color:bn,opacity:.3},{offset:1,color:bn,opacity:0}]},sharpBevel:{type:bo,stops:[{offset:0,color:bn,opacity:.55},{offset:.65,color:bn,opacity:0},{offset:.95,color:bn,opacity:.25}]},roundedBevel:{type:bo,stops:[{offset:.33,color:bn,opacity:.06},{offset:.83,color:bn,opacity:.2},{offset:.95,color:bn,opacity:0}]},roundedGlass:{type:bo,supportVML:!1,stops:[{offset:0,color:bn,opacity:0},{offset:.5,color:bn,opacity:.3},{offset:.99,color:bn,opacity:0}]},sharpGlass:{type:bo,supportVML:!1,stops:[{offset:0,color:bn,opacity:.2},{offset:.15,color:bn,opacity:.15},{offset:.17,color:bn,opacity:.35},{offset:.85,color:bn,opacity:.05},{offset:.87,color:bn,opacity:.15},{offset:.99,color:bn,opacity:0}]},bubbleShadow:{type:bo,center:[.5,.5],radius:.5}},xo=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),e.prototype.constructor=e,e.prototype.reflow=function(){var t=this,e=t.options,n=t.children,o=new co(0,0,e.width,e.height);this.box=o.unpad(e.margin);for(var r=0;r<n.length;r++)n[r].reflow(o),o=j(o,n[r].box)||new co},e.prototype.createVisual=function(){this.visual=new ze.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},n=this.box.clone().pad(t.margin).unpad(e.width),o=ze.drawing.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(o)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,n=this.gradients,o=no(t),r=_o[t.gradient];if(n[o])e=n[o];else{var i=Object.assign({},r,t);"linear"===r.type?e=new ze.drawing.LinearGradient(i):(t.innerRadius&&(i.stops=D(i)),e=new ze.drawing.RadialGradient(i),e.supportVML=r.supportVML!==!1),n[o]=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 co(0,0,t.width,t.height)},e}(vo);T(xo,{width:$e,height:Xe,background:bn,border:{color:He,width:0},margin:m(5),zIndex:-2});var wo=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=xn,this.elementAxis=wn,this.groupSizeField=_n,this.elementSizeField=tn,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=wn,this.elementAxis=xn,this.groupSizeField=tn,this.elementSizeField=_n,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,e=this,n=e.box,o=e.elementAxis,r=e.groupAxis,i=e.elementSizeField,s=e.groupSizeField,a=this.groupOptions(),l=a.groups,c=a.groupsSize,u=a.maxGroupElementsSize,p=l.length,h=n[r+1]+this.alignStart(c,n[s]());if(p){for(var f=h,d=0;d<p;d++){for(var v=l[d],y=v.groupElements,g=n[o+1],m=y.length,b=0;b<m;b++){var _=y[b],x=t.elementSize(_),w=f+t.alignStart(x[s],v.groupSize),k=new co;k[r+1]=w,k[r+2]=w+x[s],k[o+1]=g,k[o+2]=g+x[i],_.reflow(k),g+=x[i]+t.elementSpacing}f+=v.groupSize+t.groupSpacing}n[r+1]=h,n[r+2]=h+c,n[o+2]=n[o+1]+u}},e.prototype.alignStart=function(t,e){var n=0,o=this.options.align;return o===fn||o===Ve?n=e-t:o===Ue&&(n=(e-t)/2),n},e.prototype.groupOptions=function(){for(var t=this,e=this,n=e.box,o=e.children,r=e.elementSizeField,i=e.groupSizeField,s=e.elementSpacing,a=e.groupSpacing,l=ro(n[r]()),c=o.length,u=[],p=0,h=0,f=0,d=0,v=[],y=0;y<c;y++){var g=o[y];g.box||g.reflow(n);var m=t.elementSize(g);t.options.wrap&&ro(h+s+m[r])>l&&(u.push({groupElements:v,groupSize:p,groupElementsSize:h}),d=Math.max(d,h),f+=a+p,p=0,h=0,v=[]),p=Math.max(p,m[i]),h>0&&(h+=s),h+=m[r],v.push(g)}return u.push({groupElements:v,groupSize:p,groupElementsSize:h}),d=Math.max(d,h),f+=p,{groups:u,groupsSize:f,maxGroupElementsSize:d}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(vo);T(wo,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var ko=ze.drawing.Text,So=function(t){function e(e,n){t.call(this,n),this.content=e,this.reflow(new co)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,n=e.size=ze.drawing.util.measureText(this.content,{font:e.font});this.baseline=n.baseline,this.box=new co(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,o=t.opacity,r=t.cursor;this.visual=new ko(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:n,opacity:o},cursor:r})},e}(vo);T(So,{font:Ye,color:He});var Oo=/\n/m,Co=function(t){function e(e,n,o){t.call(this,n),this.content=e,this.data=o,this._initContainer(),this.options._autoReflow!==!1&&this.reflow(new co)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(Oo),n=new wo({vertical:!0,align:t.align,wrap:!1}),o=f({},t,{opacity:1,animation:null});this.container=n,this.append(n);for(var r=0;r<e.length;r++){var i=new So(e[r].trim(),o);n.append(i)}},e.prototype.reflow=function(e){var n=this.options,o=n.visual;if(this.container.options.align=n.align,o&&!this._boxReflow){var r=e;r.hasSize()||(this._boxReflow=!0,this.reflow(r),this._boxReflow=!1,r=this.box);var i=this.visual=o(this.visualContext(r));i&&(r=R(i.clippedBBox()||new ze.geometry.Rect),i.options.zIndex=n.zIndex),this.box=this.contentBox=this.paddingBox=r}else if(t.prototype.reflow.call(this,e),n.rotation){var s=m(n.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),a=this.rotate(),a.translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new ze.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=ze.drawing.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&&!Yn(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,xn,t.align),this.align(this.targetBox,wn,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,o=e.y,r=this.rotatedBox.center();return ze.geometry.transform().translate(r.x-n,r.y-o).rotate(t,[n,o])},e}(yo),To=function(t){function e(e){t.call(this,e),this.append(new Co(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){t.prototype.reflow.call(this,e),this.box.snapTo(e,xn)},e.buildTitle=function(t,n,o){var r=t;"string"==typeof t&&(r={text:t}),r=Object.assign({visible:!0},o,r);var i;return r&&r.visible&&r.text&&(i=new e(r),n.append(i)),i},e}(vo);T(To,{color:He,position:yn,align:Ue,margin:m(5),padding:m(5)});var Eo=function(t){function e(e,n,o,r,i){t.call(this,n,i),this.text=n,this.value=e,this.index=o,this.dataItem=r,this.reflow(new co)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.visualContext=function(e){var n=t.prototype.visualContext.call(this,e);
vendor: 7,622 bytes, line 3
3return 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(Ne,{element:Jn(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!==Ue){var e=this.normalBox.toRect(),n=this.rotationTransform();this.box=R(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===Ue)return t.prototype.rotationTransform.call(this);var o=ze.geometry.transform().rotate(n).matrix(),r=this.normalBox.toRect(),i=this.targetBox.toRect(),s=e.rotationOrigin||yn,a=s===yn||s===Ve?xn:wn,l=s===yn||s===Ve?wn:xn,c=s===yn||s===on?i.origin:i.bottomRight(),u=r.topLeft().transformCopy(o),p=r.topRight().transformCopy(o),h=r.bottomRight().transformCopy(o),f=r.bottomLeft().transformCopy(o),d=ze.geometry.Rect.fromPoints(u,p,h,f),v={};v[l]=i.origin[l]-d.origin[l];var y,g,m=Math.abs(u[l]+v[l]-c[l]),b=Math.abs(p[l]+v[l]-c[l]);ro(m,Ze)===ro(b,Ze)?(y=u,g=p):b<m?(y=p,g=h):(y=u,g=f);var _=y[a]+(g[a]-y[a])/2;return v[a]=i.center()[a]-_,ze.geometry.transform().translate(v.x,v.y).rotate(n)},e}(Co);T(Eo,{_autoReflow:!1});var Ao=7,Mo="#fff",Po=function(t){function e(e,n,o){t.call(this,n),this.fields=e,this.chartService=o,this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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,o,r=e.label,i=e.icon,s=new co,a=function(){return t},l=i.size,c=this.fields.text;if(Yn(r)&&r.visible){var u=b(r);u?c=u(this.fields):r.format&&(c=this.chartService.format.auto(r.format,c)),r.color||(r.color=r.position===nn?Mo:i.background),this.label=new Co(c,f({},r)),this.label.aliasFor=a,r.position!==nn||Yn(l)||(i.type===Ge?l=Math.max(this.label.box.width(),this.label.box.height()):(n=this.label.box.width(),o=this.label.box.height()),s.wrap(this.label.box))}i.width=n||l||Ao,i.height=o||l||Ao;var p=new go(f({},i));p.aliasFor=a,this.marker=p,this.append(p),this.label&&this.append(this.label),p.reflow(new co),this.wrapperBox=s.wrap(p.box)}},e.prototype.reflow=function(t){var e=this,n=e.options,o=e.label,r=e.marker,i=e.wrapperBox,s=t.center(),a=n.line.length,l=n.position;if(n.visible){var c,u,p;k(l,[on,fn])?l===on?(p=i.alignTo(t,l).translate(-a,t.center().y-i.center().y),n.line.visible&&(c=[t.x1,s.y],this.linePoints=[c,[p.x2,s.y]],u=p.clone().wrapPoint(c))):(p=i.alignTo(t,l).translate(a,t.center().y-i.center().y),n.line.visible&&(c=[t.x2,s.y],this.linePoints=[c,[p.x1,s.y]],u=p.clone().wrapPoint(c))):l===Ve?(p=i.alignTo(t,l).translate(t.center().x-i.center().x,a),n.line.visible&&(c=[s.x,t.y2],this.linePoints=[c,[s.x,p.y1]],u=p.clone().wrapPoint(c))):(p=i.alignTo(t,l).translate(t.center().x-i.center().x,-a),n.line.visible&&(c=[s.x,t.y1],this.linePoints=[c,[s.x,p.y2]],u=p.clone().wrapPoint(c))),r&&r.reflow(p),o&&(o.reflow(p),r&&(n.label.position===hn&&o.box.alignTo(r.box,l),o.reflow(o.box))),this.contentBox=p,this.targetBox=t,this.box=u||p}},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,o=n.visual;n.visible&&o?(this.visual=o(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=ze.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});s(e),this.visual.append(e)}},e.prototype.click=function(t,e){var n=this.eventArgs(e);t.trigger(ln,n)||e.preventDefault()},e.prototype.over=function(t,e){var n=this.eventArgs(e);t.trigger(cn,n)||e.preventDefault()},e.prototype.out=function(t,e){var n=this.eventArgs(e);t.trigger(un,n)},e.prototype.eventArgs=function(t){var e=this.options;return Object.assign(this.fields,{element:Jn(t),text:Yn(e.label)?e.label.text:"",visual:this.visual})},e}(yo);T(Po,{icon:{visible:!0,type:Ge},label:{position:nn,visible:!0,align:Ue,vAlign:Ue},line:{visible:!0},visible:!0,position:yn,zIndex:2});var jo=function(t){function e(e,n){void 0===n&&(n=new Rn),t.call(this,e),this.chartService=n,this.options.visible||(this.options=f({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=f({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.minorTickType!==an},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=f({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.majorTickType!==an},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),e.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,e=this.options,n=e.vertical?fn:Ue,o=f({},e.labels,{align:n,zIndex:e.zIndex}),r=Math.max(1,o.step);if(this.clearLabels(),o.visible){var i=this.labelsRange(),s=o.rotation;d(s)&&(o.alignRotation=s.align,o.rotation=s.angle),"auto"===o.rotation&&(o.rotation=0,e.autoRotateLabels=!0);for(var a=i.min;a<i.max;a+=r){var l=t.createAxisLabel(a,o);l&&(t.append(l),t.labels.push(l))}}},e.prototype.clearLabels=function(){this.children=x(this.children,function(t){return!(t instanceof Eo)}),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=x(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,e=t.options,n=t.box,o=e.vertical,r=e.labels.mirror,i=r?n.x1:n.x2,s=r?n.y2:n.y1,a=e.line.width||0;return o?new co(i,n.y1,i,n.y2-a):new co(n.x1,s,n.x2-a,s)},e.prototype.createTitle=function(){var t=this.options,e=f({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var n=new Co(e.text,e);this.append(n),this.title=n}},e.prototype.createNotes=function(){var t=this,e=this.options,n=e.notes,o=n.data||[];this.notes=[];for(var r=0;r<o.length;r++){var i=f({},n,o[r]);i.value=t.parseNoteValue(i.value);var s=new Po({value:i.value,text:i.label.text,dataItem:i},i,t.chartService);s.options.visible&&(Yn(s.options.position)?e.vertical&&!k(s.options.position,[on,fn])?s.options.position=e.reverse?on:fn:e.vertical||k(s.options.position,[yn,Ve])||(s.options.position=e.reverse?Ve:yn):e.vertical?s.options.position=e.reverse?on:fn:s.options.position=e.reverse?Ve:yn,t.append(s),t.notes.push(s))}},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.createBackgroun
3d(),this.createLine()},e.prototype.gridLinesVisual=function(){var t=this._gridLines;return t||(t=this._gridLines=new ze.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){function e(e,n,i){var a=e.length,l=Math.max(1,n.step);if(n.visible)for(var c=n.skip;c<a;c+=l)Yn(i)&&c%i===0||(s.tickX=r?o.x2:o.x2-n.size,s.tickY=r?o.y1-n.size:o.y1,s.position=e[c],t.append(I(s,n)))}var n=this.options,o=this.lineBox(),r=n.labels.mirror,i=n.majorTicks.visible?n.majorUnit:0,s={vertical:n.vertical};e(this.getMajorTickPositions(),n.majorTicks),e(this.getMinorTickPositions(),n.minorTicks,i/n.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,n=this.lineBox();if(e.width>0&&e.visible){var o=new ze.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});o.moveTo(n.x1,n.y1).lineTo(n.x2,n.y2),t._alignLines&&s(o);var r=this._lineGroup=new ze.drawing.Group;r.append(o),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},e.prototype.createBackground=function(){var t=this,e=t.options,n=t.box,o=e.background;o&&(this._backgroundPath=ze.drawing.Path.fromRect(n.toRect(),{fill:{color:o},stroke:null}),this.visual.append(this._backgroundPath))},e.prototype.createPlotBands=function(){var t=this,e=this.options,n=e.plotBands||[],o=e.vertical,r=this.plotArea;if(0!==n.length){for(var i=this._plotbandGroup=new ze.drawing.Group({zIndex:-1}),s=x(this.pane.axes,function(e){return e.options.vertical!==t.options.vertical})[0],a=0;a<n.length;a++){var l=n[a],c=void 0,u=void 0;if(o?(c=(s||r.axisX).lineBox(),u=t.getSlot(l.from,l.to,!0)):(c=t.getSlot(l.from,l.to,!0),u=(s||r.axisY).lineBox()),0!==c.width()&&0!==u.height()){var p=new ze.geometry.Rect([c.x1,u.y1],[c.width(),u.height()]),h=ze.drawing.Path.fromRect(p,{fill:{color:l.color,opacity:l.opacity},stroke:null});i.append(h)}}this.appendVisual(i)}},e.prototype.createGridLines=function(t){function e(t,e,n){var o=t.length,r=Math.max(1,e.step);if(e.visible)for(var i=e.skip;i<o;i+=r){var s=ro(t[i]);k(s,h)||i%n===0||a&&u===s||(p.position=s,f.append(F(p,e)),h.push(s))}}var n=this.options,o=n.minorGridLines,r=n.majorGridLines,i=n.minorUnit,s=n.vertical,a=t.options.line.visible,l=r.visible?n.majorUnit:0,c=t.lineBox(),u=c[s?"y1":"x1"],p={lineStart:c[s?"x1":"y1"],lineEnd:c[s?"x2":"y2"],vertical:s},h=[],f=this.gridLinesVisual();return e(this.getMajorTickPositions(),r),e(this.getMinorTickPositions(),o,l/i),f.children},e.prototype.reflow=function(t){for(var e=this,n=e.options,o=e.labels,r=e.title,i=n.vertical,s=o.length,a=i?_n:tn,l=r?r.box[a]():0,c=this.getActualTickSize()+n.margin+l,u=(this.getRoot()||{}).box||t,p=u[a](),h=0,f=0;f<s;f++){var d=o[f].box[a]();d+c<=p&&(h=Math.max(h,d))}i?this.box=new co(t.x1,t.y1,t.x1+h+c,t.y2):this.box=new co(t.x1,t.y1,t.x2,t.y1+h+c),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,e=this,n=e.options,o=e.labels,r=this.labelsBetweenTicks(),i=n.vertical,s=this.lineBox(),a=n.labels.mirror,l=this.getLabelsTickPositions(),c=this.getActualTickSize()+n.margin,u=0;u<o.length;u++){var p=o[u],h=t.labelTickIndex(p),f=i?p.box.height():p.box.width(),d=l[h]-f/2,v=void 0,y=void 0,g=void 0;if(i){if(r){y=l[h],g=l[h+1];var m=y+(g-y)/2;d=m-f/2}var b=s.x2;a?(b+=c,p.options.rotationOrigin=on):(b-=c+p.box.width(),p.options.rotationOrigin=fn),v=p.box.move(b,d)}else{r?(y=l[h],g=l[h+1]):(y=d,g=d+f);var _=s.y1;a?(_-=c+p.box.height(),p.options.rotationOrigin=Ve):(_+=c,p.options.rotationOrigin=yn),v=new co(y,_,g,_+p.box.height())}p.reflow(v)}},e.prototype.autoRotateLabels=function(){if(this.options.autoRotateLabels&&!this.options.vertical){for(var t,e=this.getMajorTickPositions(),n=this.labels,o=0;o<n.length;o++){var r=Math.abs(e[o+1]-e[o]),i=n[o].box;if(i.width()>r){if(i.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 co);return!0}}},e.prototype.arrangeTitle=function(){var t=this,e=t.options,n=t.t
3itle,o=e.labels.mirror,r=e.vertical;n&&(r?(n.options.align=o?fn:on,n.options.vAlign=n.options.position):(n.options.align=n.options.position,n.options.vAlign=o?yn:Ve),n.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=this,e=0;e<this.notes.length;e++){var n=t.notes[e],o=n.options.value,r=void 0;Yn(o)?(t.shouldRenderNote(o)?n.show():n.hide(),r=t.noteSlot(o)):n.hide(),n.reflow(r||t.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),n=this.options.vertical,o=n?wn:xn;this.box.snapTo(e,o),n?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[o+1]-=this.lineBox()[o+1]-e[o+1],this.box[o+2]-=this.lineBox()[o+2]-e[o+2]},e.prototype.axisLabelText=function(t,e,n){var o=b(n),r=t;return o?r=o({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,o){var t=this.getSlot(e,n,o);if(t)return t.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var n=this.options.vertical?wn:xn;if(this.chartService.isPannable(n)){var o=this.maxLabelOffset();t[n+1]-=o.start,t[n+2]+=o.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,e=this.options,n=e.vertical,o=e.reverse,r=this.labelsBetweenTicks(),i=this.getLabelsTickPositions(),s=n?wn:xn,a=this.labels,l=o?1:0,c=o?0:1,u=0,p=0,h=0;h<a.length;h++){var f=a[h],d=t.labelTickIndex(f),v=void 0,y=void 0;r?(v=i[d+l],y=i[d+c]):v=y=i[d],u=Math.max(u,v-f.box[s+1]),p=Math.max(p,f.box[s+2]-y)}return{start:u,end:p}},e.prototype.limitRange=function(t,e,n,o,r){var i=this.options;if(t<n&&r<0&&(!Yn(i.min)||i.min<=n)||o<e&&r>0&&(!Yn(i.max)||o<=i.max))return null;if(e<n&&r>0||o<t&&r<0)return{min:t,max:e};var s=e-t,a=t,l=e;return t<n&&r<0?(a=eo(t,n,o),l=eo(t+s,n+s,o)):e>o&&r>0&&(l=eo(e,n,o),a=eo(e-s,n,o-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}(vo);T(jo,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:He,visible:!0},title:{visible:!0,position:Ue},majorTicks:{align:hn,size:4,skip:0,step:1},minorTicks:{align:hn,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:hn,minorTickType:an,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:He,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var Do="milliseconds",Ro="seconds",Io="minutes",Fo="hours",Lo="days",zo="weeks",Bo="months",No="years",Ho=1,Vo=1e3,Uo=60*Vo,Go=60*Uo,qo=24*Go,Ko=7*qo,Wo=31*qo,Yo=365*qo,Xo={ 4years:Yo,months:Wo,weeks:Ko,days:qo,hours:Go,minutes:Uo,seconds:Vo,milliseconds:Ho},Zo=.01,$o=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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,{categories:this.options.srcCategories}),this.chartService);return t.createLabels(),t},e.prototype.initUserOptions=function(t){var e=t.categories||[],n=Yn(t.min),o=Yn(t.max);if(t.srcCategories=t.categories=e,(n||o)&&e.length){var r,i=n?Math.floor(t.min):0;r=o?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(i,r)}return t},e.prototype.rangeIndices=function(){var t,e=this.options,n=e.categories.length||1,o=l(e.min)?e.min%1:0;return t=l(e.max)&&e.max%1!==0&&e.max<this.totalRange().max?n-(1-e.max%1):n-(e.justified?1:0),{min:o,max:t}},e.prototype.totalRangeIndices=function(t){var e,n=this.options,o=l(n.min)?n.min:0;if(e=l(n.max)?n.max:l(n.min)?o+n.categories.length:this.totalRange().max||1,t){var r=this.totalRange();o=eo(o,0,r.max),e=eo(e,0,r.max)}return{min:o,max:e}},e.prototype.range=function(){var t=this.options,e=l(t.min)?t.min:0,n=l(t.max)?t.max:this.totalRange().max;return{min:e,max:n}},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,o=this.lineBox(),r=this.options.vertical?o.height():o.width(),i=r/(n-e||1);return{scale:i*(this.options.reverse?-1:1),box:o,min:e,max:n}},e.prototype.arrangeLabels=function(){t.prototype.arrangeLabels.call(this),this.hideOutOfRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){var t=this,e=t.box,n=t.labels;if(n.length){var o=this.options.vertical?wn:xn,r=e[o+1],i=e[o+2],s=n[0],a=to(n);(s.box[o+1]>i||s.box[o+2]<r)&&(s.options.visible=!1),(a.box[o+1]>i||a.box[o+2]<r)&&(a.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,o=e.max,r=Math.ceil(o),i=Math.floor(n),s=[];i<=r;)s.push(i),i+=t;return s},e.prototype.getTickPositions=function(t){for(var e=this.options,n=e.vertical,o=e.reverse,r=this.scaleOptions(),i=r.scale,s=r.box,a=r.min,l=s[(n?wn:xn)+(o?2:1)],c=this.tickIndices(t),u=[],p=0;p<c.length;p++)u.push(l+ro(i*(c[p]-a),qe));return u},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,n=this.rangeIndices(),o=this.lineBox(),r=o.getHash()+n.min+","+n.max+t.reverse+t.justified;
4if(e._hash!==r){var i=t.minorTicks.visible||t.minorGridLines.visible;e._hash=r,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,o),e.minorTicks=i?this.filterOutOfRangePositions(this.getTickPositions(.5),o):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var n=this.options.vertical?wn:xn,o=function(t){return e[n+1]<=t&&t<=e[n+2]},r=t.length-1,i=0;!o(t[i])&&i<=r;)i++;for(var s=r;!o(t[s])&&s>=0;)s--;return t.slice(i,s+1)},e.prototype.getSlot=function(t,e,n){var o=this.options,r=o.reverse,i=o.justified,s=o.vertical,a=this.scaleOptions(),l=a.scale,c=a.box,u=a.min,p=s?wn:xn,h=c[p+(r?2:1)],f=c.clone(),d=!Yn(e),v=so(t,0),y=so(e,v);y=Math.max(y-1,v),y=Math.max(v,y);var g=h+(v-u)*l,m=h+(y+1-u)*l;return d&&i&&(m=g),n&&(g=eo(g,c[p+1],c[p+2]),m=eo(m,c[p+1],c[p+2])),f[p+1]=r?m:g,f[p+2]=r?g:m,f},e.prototype.limitSlot=function(t){var e=this.options.vertical,n=e?wn:xn,o=this.lineBox(),r=t.clone();return r[n+1]=eo(t[n+1],o[n+1],o[n+2]),r[n+2]=eo(t[n+2],o[n+1],o[n+2]),r},e.prototype.slot=function(e,n,o){var r=Math.floor(this.options.min||0),i=e,s=n;return"string"==typeof i?i=this.categoryIndex(i):l(i)&&(i-=r),"string"==typeof s?s=this.categoryIndex(s):l(s)&&(s-=r),t.prototype.slot.call(this,i,s,o)},e.prototype.pointCategoryIndex=function(t){var e=this.options,n=e.reverse,o=e.justified,r=e.vertical,i=r?wn:xn,s=this.scaleOptions(),a=s.scale,l=s.box,c=s.min,u=s.max,p=n?u:c,h=l[i+1],f=l[i+2],d=t[i];if(d<h||d>f)return null;var v=p+(d-h)/a,y=v%1;return o?v=Math.round(v):0===y&&v>0&&v--,Math.floor(v)},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(),o=e.vertical?n.height():n.width(),r=e.categories.length,i=o/r,s=ro(t/i,Ze);return{min:s,max:r+s}},e.prototype.zoomRange=function(t){var e=this.totalRangeIndices(),n=this.totalRange(),o=n.min,r=n.max,i=eo(e.min+t,o,r),s=eo(e.max-t,o,r);if(s-i>0)return{min:i,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,o=this.totalRangeIndices(!0),r=o.min,i=o.max,s=Math.floor(r);e?(r=Math.ceil(r),i=Math.floor(i)):(r=Math.floor(r),i=Math.ceil(i));var a;return a=r>n.skip?n.skip+n.step*Math.ceil((r-n.skip)/n.step):n.skip,{min:a-s,max:(t.categories.length?i+(e?1:0):0)-s}},e.prototype.createAxisLabel=function(t,e){var n=this.options,o=n.dataItems?n.dataItems[t]:null,r=so(n.categories[t],""),i=this.axisLabelText(r,o,e);return new Eo(r,i,t,o,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=this.options,n=t-Math.floor(e.min||0);return this.getSlot(n)},e.prototype.arrangeNotes=function(){t.prototype.arrangeNotes.call(this),this.hideOutOfRangeNotes()},e.prototype.hideOutOfRangeNotes=function(){var t=this,e=t.notes,n=t.box;if(e&&e.length)for(var o=this.options.vertical?wn:xn,r=n[o+1],i=n[o+2],s=0;s<e.length;s++){var a=e[s];a.box&&(i<a.box[o+1]||a.box[o+2]<r)&&a.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),n=this.scaleOptions(),o=n.scale,r=ro(t/o,Ze),i=this.totalRange(),s=e.min+r,a=e.max+r;return this.limitRange(s,a,0,i.max,r)},e.prototype.pointsRange=function(t,e){var n=this.options,o=n.reverse,r=n.vertical,i=r?wn:xn,s=this.totalRangeIndices(!0),a=this.scaleOptions(),l=a.scale,c=a.box,u=c[i+(o?2:1)],p=t[i]-u,h=e[i]-u,f=s.min+p/l,d=s.min+h/l,v=Math.min(f,d),y=Math.max(f,d);if(y-v>=Zo)return{min:v,max:y}},e.prototype.valueRange=function(){return this.range()},e.prototype.totalIndex=function(t){var e=this.options,n=this._categoriesMap?this._categoriesMap.get(t):et(t,e.srcCategories);return n},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;l(t.min)&&(e=Math.floor(t.min));var n;return n=l(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1,{min:e,max:n}},e.prototype.mapCategories=function(){if(!this._categoriesMap)for(var t=this._categoriesMap=new Vn,e=this.options.srcCategories,n=0;n<e.length;
4n++)t.set(e[n],n)},e.prototype.totalCount=function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)},e}(jo);T($o,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:He},labels:{zIndex:1},justified:!1,_deferLabels:!0});var Jo=3e5,Qo={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"},tr=.2,er="auto",nr=[Do,Ro,Io,Fo,Lo,zo,Bo,No],or="fit",rr=function(t){this.options=t};rr.prototype.displayIndices=function(){return{min:0,max:1}},rr.prototype.displayRange=function(){return{}},rr.prototype.total=function(){return{}},rr.prototype.valueRange=function(){return{}},rr.prototype.valueIndex=function(){return-1},rr.prototype.values=function(){return[]},rr.prototype.totalIndex=function(){return-1},rr.prototype.valuesCount=function(){return 0},rr.prototype.totalCount=function(){return 0},rr.prototype.dateAt=function(){return null};var ir=function(t,e,n){this.options=n,n.baseUnitStep=n.baseUnitStep||1;var o=n.roundToBaseUnit,r=n.justified;this.start=U(t,0,n.baseUnit,n.weekStartDay);var i=this.roundToTotalStep(e),s=!r&&X(e,i)&&!n.justifyEnd;this.end=this.roundToTotalStep(e,!r,s?1:0);var a=n.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=o?this.valueStart:a;var l=n.max;l?(this.valueEnd=this.roundToTotalStep(l,!1,!r&&X(l,this.roundToTotalStep(l))?-1:0),this.displayEnd=o?this.roundToTotalStep(l,!r):n.max):(this.valueEnd=i,this.displayEnd=o||s?this.end:e),this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};ir.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},ir.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,n=t.baseUnitStep,o=$(this.displayStart,this.valueStart,e,n),r=$(this.displayEnd,this.valueStart,e,n);this._indices={min:o,max:r}}return this._indices},ir.prototype.total=function(){return{min:this.start,max:this.end}},ir.prototype.totalCount=function(){var t=this.totalIndex(this.end);return t+(this.options.justified?1:0)},ir.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},ir.prototype.valueIndex=function(t){var e=this.options;return Math.floor($(t,this.valueStart,e.baseUnit,e.baseUnitStep))},ir.prototype.totalIndex=function(t){var e=this.options;return Math.floor($(t,this.start,e.baseUnit,e.baseUnitStep))},ir.prototype.dateIndex=function(t){var e=this.options;return $(t,this.valueStart,e.baseUnit,e.baseUnitStep)},ir.prototype.valuesCount=function(){var t=this.valueIndex(this.valueEnd);return t+1},ir.prototype.values=function t(){var t=this._values;if(!t){var e=this.options,n=this.valueRange();this._values=t=[];for(var o=n.min;o<=n.max;)t.push(o),o=U(o,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},ir.prototype.dateAt=function(t,e){var n=this.options;return U(e?this.start:this.valueStart,n.baseUnitStep*t,n.baseUnit,n.weekStartDay)},ir.prototype.roundToTotalStep=function(t,e,n){var o=this.options,r=o.baseUnit,i=o.baseUnitStep,s=o.weekStartDay,a=this.start,l=$(t,a,r,i),c=e?Math.ceil(l):Math.floor(l);return n&&(c+=n),U(a,c*i,r,s)};var sr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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,o=this.options,r=o.categories||[];if(r._parsed||(r=tt(n,r),r._parsed=!0),o=f({roundToBaseUnit:!0},o,{categories:r,min:Q(n,o.min),max:Q(n,o.max)}),e.panning&&e.isPannable(o.vertical?wn:xn)&&(o.roundToBaseUnit=!1),o.userSetBaseUnit=o.userSetBaseUnit||o.baseUnit,o.userSetBaseUnitStep=o.userSetBaseUnitStep||o.baseUnitStep,this.options=o,o.srcCategories=r,r.length>0){var i=nt(r),s=o.maxDivisions;
4if(this.dataRange=new ir(i.min,i.max,it(o)),s){var a=this.dataRange.displayRange(),l=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),c=this.dataRange.options;ot(l,c.baseUnit,c.baseUnitStep),this.divisionRange=new ir(i.min,i.max,l)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||Lo,this.dataRange=this.divisionRange=new rr(o)},e.prototype.tickIndices=function(e){var n=this,o=n.dataRange,r=n.divisionRange,i=r.valuesCount();if(!this.options.maxDivisions||!i)return t.prototype.tickIndices.call(this,e);var s=[],a=r.values(),l=0;this.options.justified||(a=a.concat(r.dateAt(i)),l=.5);for(var c=0;c<a.length;c++)if(s.push(o.dateIndex(a[c])+l),1!==e&&c>=1){var u=s.length-1;s.splice(c,0,s[u-1]+(s[u]-s[u-1])*e)}return s},e.prototype.shouldRenderNote=function(t){var e=this.range(),n=this.options.categories||[];return K(t,e.min)>=0&&K(t,e.max)<=0&&n.length},e.prototype.parseNoteValue=function(t){return Q(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,o=e.weekStartDay,r=e.vertical,i=this.lineBox(),s=r?i.height():i.width(),a=this.range(),l=s/(a.max-a.min),c=ro(t/l,Ze);if(a.min&&a.max){var u=z(e.min||a.min,c),p=z(e.max||a.max,c);a={min:U(u,0,n,o),max:U(p,0,n,o)}}return a},e.prototype.scaleRange=function(t){var e=Math.abs(t),n=this.range(),o=n.min,r=n.max;if(o&&r){for(;e--;){var i=W(o,r),s=Math.round(.1*i);t<0?(o=z(o,s),r=z(r,-s)):(o=z(o,-s),r=z(r,s))}n={min:o,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(),o=e.vertical?n.height():n.width(),r=this.dataRange.displayRange(),i=r.min,s=r.max,a=this.dataRange.total(),l=o/(s-i),c=ro(t/l,Ze)*(e.reverse?-1:1),u=z(i,c),p=z(s,c),h=this.limitRange(Y(u),Y(p),Y(a.min),Y(a.max),c);return h?(h.min=B(h.min),h.max=B(h.max),h.baseUnit=e.baseUnit,h.baseUnitStep=e.baseUnitStep||1,h.userSetBaseUnit=e.userSetBaseUnit,h.userSetBaseUnitStep=e.userSetBaseUnitStep,h):void 0},e.prototype.pointsRange=function e(n,o){if(this.isEmpty())return null;var e=t.prototype.pointsRange.call(this,n,o),r=this.dataRange.displayRange(),i=this.dataRange.displayIndices(),s=W(r.max,r.min)/(i.max-i.min),a=this.options,l=z(r.min,e.min*s),c=z(r.min,e.max*s);return{min:l,max:c,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===or,o=this.dataRange.total(),r=this.dataRange.displayRange(),i=r.min,s=r.max,a=this.dataRange.options,l=a.weekStartDay,c=a.baseUnit,u=a.baseUnitStep,p=U(i,t*u,c,l),h=U(s,-t*u,c,l);if(n){var f,d,v=e.autoBaseUnitSteps,y=e.maxDateGroups,g=to(v[c])*y*Xo[c],m=W(s,i),b=W(h,p),_=nr.indexOf(c);if(b<Xo[c]&&c!==Do)c=nr[_-1],f=to(v[c]),d=(m-(y-1)*f*Xo[c])/2,p=z(i,d),h=z(s,-d);else if(b>g&&c!==No){var x=0;do{_++,c=nr[_],x=0,d=2*Xo[c];do f=v[c][x],x++;while(x<v[c].length&&d*f<m)}while(c!==No&&d*f<m);d=(d*f-m)/2,d>0&&(p=z(i,-d),h=z(s,d),p=z(p,eo(h,o.min,o.max)-h),h=z(h,eo(p,o.min,o.max)-p))}}return p<o.min&&(p=o.min),h>o.max&&(h=o.max),p&&h&&W(h,p)>0?{min:p,max:h,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,o=n.dataItems&&!n.maxDivisions?n.dataItems[t]:null,r=this.divisionRange.dateAt(t),i=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||i;var s=this.axisLabelText(r,o,e);if(s)return new Eo(r,s,t,o,e)},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function t(e,n,o){var r=this.dataRange,i=e,s=n;i instanceof Date&&(i=r.dateIndex(i)),s instanceof Date&&(s=r.dateIndex(s));var t=this.getSlot(i,s,o);if(t)return t.toRect()},e.prototype.getSlot=function(e,n,o){var r=e,i=n;return typeof r===pn&&(r=this.categoryIndex(r)),typeof i===pn&&(i=this.categoryIndex(i)),t.prototype.getSlot.call(this,r,i,o)},e.prototype.valueRange=function(){var t=this.options,e=nt(t.srcCategories);return{min:B(e.min),max:B(e.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(this.options.roundToBaseUnit!==!1||this.isEmpty())return this.range();var t=this.options,e=nt(t.srcCategories),n=new ir(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified}));return n.displayRange()},e}($o);T(sr,{type:We,labels:{dateFormats:Qo},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 ar=Math.pow(10,-Ze+1),lr=function(t){function e(e,n,o,r){t.call(this,Object.assign({},o,{seriesMin:e,seriesMax:n}),r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=pt(t.seriesMin,t.seriesMax,t);return this.totalOptions=ht(e,t),dt(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,n=e.max-e.min;return Math.floor(ro(n/t,qe))+1},e.prototype.getTickPositions=function(t,e){var n=this.options,o=n.vertical,r=n.reverse,i=this.lineBox(),s=o?i.height():i.width(),a=n.max-n.min,l=s/a,c=t*l,u=this.getDivisions(t),p=(o?-1:1)*(r?-1:1),h=1===p?1:2,f=[],d=i[(o?wn:xn)+h],v=0;e&&(v=e/t);for(var y=0;y<u;y++)y%v!==0&&f.push(ro(d,qe)),d+=c*p;return f},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 o=this.options,r=o.vertical,i=o.reverse,s=r?wn:xn,a=this.lineBox(),l=a[s+(i?2:1)],c=r?a.height():a.width(),u=i?-1:1,p=u*(c/(o.max-o.min)),h=new co(a.x1,a.y1,a.x1,a.y1),f=t,d=e;Yn(f)||(f=d||0),Yn(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));var v,y;return r?(v=o.max-Math.max(f,d),y=o.max-Math.min(f,d)):(v=Math.min(f,d)-o.min,y=Math.max(f,d)-o.min),h[s+1]=ut(l+p*(i?y:v)),h[s+2]=ut(l+p*(i?v:y)),h},e.prototype.getValue=function(t){var e=this.options,n=e.vertical,o=e.reverse,r=Number(e.max),i=Number(e.min),s=n?wn:xn,a=this.lineBox(),l=a[s+(o?2:1)],c=n?a.height():a.width(),u=o?-1:1,p=u*(t[s]-l),h=(r-i)/c,f=p*h;if(p<0||p>c)return null;var d=n?r-f:i+f;return ro(d,Ze)},e.prototype.translateRange=function(t){var e=this.options,n=e.vertical,o=e.reverse,r=e.max,i=e.min,s=this.lineBox(),a=n?s.height():s.width(),l=r-i,c=a/l,u=ro(t/c,Ze);return!n&&!o||n&&o||(u=-u),{min:i+u,max:r+u,offset:u}},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,o=ro(n.min+t*n.majorUnit,Ze),r=this.axisLabelText(o,null,e);return new Eo(o,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),o=this.getValue(e),r=Math.min(n,o),i=Math.max(n,o);if(this.isValidRange(r,i))return{min:r,max:i}},e.prototype.zoomRange=function(t){var e=this,n=e.totalMin,o=e.totalMax,r=this.scaleRange(t),i=eo(r.min,n,o),s=eo(r.max,n,o);if(this.isValidRange(i,s))return{min:i,max:s}},e.prototype.isValidRange=function(t,e){return e-t>ar},e}(jo);T(lr,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:He},labels:{format:"#.####################"},zIndex:1});var cr=function(t){function e(e,n,o,r){var i=B(e),s=B(n),a=r.intl,l=o||{};l=f(l||{},{min:Q(a,l.min),max:Q(a,l.max),axisCrossingValue:tt(a,l.axisCrossingValues||l.axisCrossingValue)}),l=gt(i,s,l),t.call(this,l,r),this.intlService=a,this.seriesMin=i,this.seriesMax=s;var c=l.weekStartDay||0;this.totalMin=Y(G(Y(i)-1,l.baseUnit,c)),this.totalMax=Y(q(Y(s)+1,l.baseUnit,c))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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(J(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,n=e.vertical,o=this.lineBox(),r=(n?-1:1)*(e.reverse?-1:1),i=1===r?1:2,s=o[(n?wn:xn)+i],a=this.getDivisions(t),l=W(e.max,e.min),c=n?o.height():o.width(),u=c/l,p=e.weekStartDay||0,h=[s],f=1;f<a;f++){var d=U(e.min,f*t,e.baseUnit,p),v=s+W(d,e.min)*u*r;h.push(ro(v,qe))}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 lr.prototype.getSlot.call(this,Q(this.intlService,t),Q(this.intlService,e),n)},e.prototype.getValue=function(t){var e=lr.prototype.getValue.call(this,t);return null!==e?B(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e){var n=this.options,o=t*n.majorUnit,r=n.weekStartDay||0,i=n.min;o>0&&(i=U(i,o,n.baseUnit,r));var s=e.dateFormats[n.baseUnit];e.format=e.format||s;var a=this.axisLabelText(i,null,e);return new Eo(i,a,t,null,e)},e.prototype.translateRange=function(t,e){var n=this.options,o=n.baseUnit,r=n.weekStartDay||0,i=this.lineBox(),s=n.vertical?i.height():i.width(),a=this.range(),l=s/W(a.max,a.min),c=ro(t/l,Ze)*(n.reverse?-1:1),u=z(n.min,c),p=z(n.max,c);return e||(u=U(u,0,o,r),p=U(p,0,o,r)),{min:u,max:p,offset:c}},e.prototype.scaleRange=function(t){for(var e=this.options,n=e.min,o=e.max,r=Math.abs(t);r--;){var i=W(n,o),s=Math.round(.1*i);t<0?(n=z(n,s),o=z(o,-s)):(n=z(n,-s),o=z(o,s))}return{min:n,max:o}},e.prototype.shouldRenderNote=function(t){var e=this.range();return K(t,e.min)>=0&&K(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),n=this.limitRange(Y(e.min),Y(e.max),this.totalMin,this.totalMax,e.offset);if(n)return{min:B(n.min),max:B(n.max)}},e.prototype.pointsRange=function(t,e){var n=this.getValue(t),o=this.getValue(e),r=Math.min(n,o),i=Math.max(n,o);return{min:B(r),max:B(i)}},e.prototype.zoomRange=function(t){var e=this.scaleRange(t),n=B(eo(Y(e.min),this.totalMin,this.totalMax)),o=B(eo(Y(e.max),this.totalMin,this.totalMax));return{min:n,max:o}},e}(jo);T(cr,{type:We,majorGridLines:{visible:!0,width:1,color:He},labels:{dateFormats:Qo}});var ur=10,pr=function(t){function e(e,n,o,r){var i=f({majorUnit:ur,min:e,max:n},o),s=i.majorUnit,a=_t(n,s),l=bt(e,n,i),c=mt(l,a,i,o);i.max=c.max,i.min=c.min,i.minorUnit=o.minorUnit||ro(s-1,Ze),t.call(this,i,r),this.totalMin=Yn(o.min)?Math.min(l,o.min):l,this.totalMax=Yn(o.max)?Math.max(a,o.max):a,this.logMin=ro(wt(c.min,s),Ze),this.logMax=ro(wt(c.max,s),Ze),this.seriesMin=e,this.seriesMax=n,this.createLabels()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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 o=this,r=o.options,i=o.logMin,s=o.logMax,a=r.reverse,l=r.vertical,c=r.majorUnit,u=l?wn:xn,p=this.lineBox(),h=p[u+(a?2:1)],f=l?p.height():p.width(),d=a?-1:1,v=d*(f/(s-i)),y=new co(p.x1,p.y1,p.x1,p.y1),g=t,m=e;if(Yn(g)||(g=m||1),Yn(m)||(m=g||1),g<=0||m<=0)return null;n&&(g=Math.max(Math.min(g,r.max),r.min),m=Math.max(Math.min(m,r.max),r.min)),g=wt(g,c),m=wt(m,c);var b,_;return l?(b=s-Math.max(g,m),_=s-Math.min(g,m)):(b=Math.min(g,m)-i,_=Math.max(g,m)-i),y[u+1]=ut(h+v*(a?_:b)),y[u+2]=ut(h+v*(a?b:_)),y},e.prototype.getValue=function(t){var e=this,n=e.options,o=e.logMin,r=e.logMax,i=n.reverse,s=n.vertical,a=n.majorUnit,l=this.lineBox(),c=s===i?1:-1,u=1===c?1:2,p=s?l.height():l.width(),h=(r-o
4)/p,f=s?wn:xn,d=l[f+u],v=c*(t[f]-d),y=v*h;if(v<0||v>p)return null;var g=o+y;return ro(Math.pow(a,g),Ze)},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,n=e.options,o=e.logMin,r=e.logMax,i=n.reverse,s=n.vertical,a=n.majorUnit,l=this.lineBox(),c=s?l.height():l.width(),u=c/(r-o),p=ro(t/u,Ze);return!s&&!i||s&&i||(p=-p),{min:Math.pow(a,o+p),max:Math.pow(a,r+p),offset:p}},e.prototype.labelsCount=function(){var t=Math.floor(this.logMax),e=Math.floor(t-this.logMin)+1;return e},e.prototype.getMajorTickPositions=function(){var t=[];return this.traverseMajorTicksPositions(function(e){t.push(e)},{step:1,skip:0}),t},e.prototype.createTicks=function(t){function e(e,n){c.tickX=s?a.x2:a.x2-n.size,c.tickY=s?a.y1-n.size:a.y1,c.position=e,t.append(I(c,n))}var n=this.options,o=n.majorTicks,r=n.minorTicks,i=n.vertical,s=n.labels.mirror,a=this.lineBox(),l=[],c={vertical:i};return o.visible&&this.traverseMajorTicksPositions(e,o),r.visible&&this.traverseMinorTicksPositions(e,r),l},e.prototype.createGridLines=function(t){function e(t,e){k(t,l)||(a.position=t,c.append(F(a,e)),l.push(t))}var n=this.options,o=n.minorGridLines,r=n.majorGridLines,i=n.vertical,s=t.lineBox(),a={lineStart:s[i?"x1":"y1"],lineEnd:s[i?"x2":"y2"],vertical:i},l=[],c=this.gridLinesVisual();return r.visible&&this.traverseMajorTicksPositions(e,r),o.visible&&this.traverseMinorTicksPositions(e,o),c.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var n=this._lineOptions(),o=n.lineStart,r=n.step,i=this,s=i.logMin,a=i.logMax,l=Math.ceil(s)+e.skip;l<=a;l+=e.step){var c=ro(o+r*(l-s),Ze);t(c,e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var n=this,o=this.options,r=o.min,i=o.max,s=o.minorUnit,a=o.majorUnit,l=this._lineOptions(),c=l.lineStart,u=l.step,p=this,h=p.logMin,f=p.logMax,d=Math.floor(h),v=d;v<f;v++)for(var y=n._minorIntervalOptions(v),g=e.skip;g<s;g+=e.step){var m=y.value+g*y.minorStep;if(m>i)break;if(m>=r){var b=ro(c+u*(wt(m,a)-h),Ze);t(b,e)}}},e.prototype.createAxisLabel=function(t,e){var n=Math.ceil(this.logMin+t),o=Math.pow(this.options.majorUnit,n),r=this.axisLabelText(o,null,e);return new Eo(o,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),o=this.getValue(e),r=Math.min(n,o),i=Math.max(n,o);return{min:r,max:i}},e.prototype.zoomRange=function(t){var e=this,n=e.options,o=e.totalMin,r=e.totalMax,i=this.scaleRange(t),s=eo(i.min,o,r),a=eo(i.max,o,r),l=n.majorUnit,c=a>s&&n.min&&n.max&&ro(wt(n.max,l)-wt(n.min,l),Ze)<1,u=!(n.min===o&&n.max===r)&&ro(wt(a,l)-wt(s,l),Ze)>=1;if(c||u)return{min:s,max:a}},e.prototype._minorIntervalOptions=function(t){var e=this.options,n=e.minorUnit,o=e.majorUnit,r=Math.pow(o,t),i=Math.pow(o,t+1),s=i-r,a=s/n;return{value:r,minorStep:a}},e.prototype._lineOptions=function(){var t=this.options,e=t.reverse,n=t.vertical,o=n?wn:xn,r=this.lineBox(),i=n===e?1:-1,s=1===i?1:2,a=n?r.height():r.width(),l=i*(a/(this.logMax-this.logMin)),c=r[o+s];return{step:l,lineStart:c,lineBox:r}},e}(jo);T(pr,{type:"log",majorUnit:ur,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:He},zIndex:1,_deferLabels:!0});var hr={createGridLines:function(t){var e,n,o=this.options,r=Math.abs(this.box.center().y-t.lineBox().y1),i=[],s=!1;return o.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,i=this.renderMajorGridLines(e,r,o.majorGridLines)),o.minorGridLines.visible&&(n=this.minorGridLineAngles(t,s),Kn(i,this.renderMinorGridLines(n,r,o.minorGridLines,t,s))),i},renderMajorGridLines:function(t,e,n){return this.renderGridLines(t,e,n)},renderMinorGridLines:function(t,e,n,o,r){var i=this.radiusCallback&&this.radiusCallback(e,o,r);return this.renderGridLines(t,e,n,i)},renderGridLines:function(t,e,n,o){for(var r={stroke:{width:n.width,color:n.color,dashType:n.dashType}},i=this.box.center(),s=new ze.geometry.Circle([i.x,i.y],e),a=this.gridLinesVisual(),l=0;l<t.length;l++){var c=new ze.drawing.Path(r);o&&(s.radius=o(t[l])),c.moveTo(s.center).lineTo(s.pointAt(t[l]+180)),a.append(c)}return a.children},gridLineAngles:function(t,e,n,o,r){var i=this,s=this.intervals(e,n,o,r),a=t.options,l=a.visible&&(a.line||{}).visible!==!1;return O(s,function(t){var e=i.intervalAngle(t);if(!l||90!==e)return e})}},fr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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,e=this,n=e.labels,o=e.options.labels,r=o.skip||0,i=o.step||1,s=new co,a=0;a<n.length;a++){n[a].reflow(s);var l=n[a].box;n[a].reflow(t.getSlot(r+a*i).adjacentBox(0,l.width(),l.height()))}},e.prototype.intervals=function(t,e,n,o){void 0===o&&(o=!1);for(var r=this.options,i=r.categories.length,s=i/t||1,a=360/s,l=e||0,c=n||1,u=[],p=0,h=l;h<s;h+=c)p=r.reverse?360-h*a:h*a,p=ro(p,qe)%360,o&&k(p,o)||u.push(p);return u},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 O(this.majorIntervals(),function(e){return t.intervalAngle(e)}
4)},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,o=n.minorGridLines,r=n.majorGridLines,i=e?this.intervals(1,r.skip,r.step):null;return this.gridLineAngles(t,.5,o.skip,o.step,i)},e.prototype.radiusCallback=function t(e,n,o){if(n.options.type!==Be){var r=oo(360/(2*this.options.categories.length)),i=Math.cos(r)*e,s=this.majorAngles(),t=function(t){return!o&&k(t,s)?e:i};return t}},e.prototype.createPlotBands=function(){for(var t=this,e=this.options.plotBands||[],n=this._plotbandGroup=new ze.drawing.Group({zIndex:-1}),o=0;o<e.length;o++){var r=e[o],i=t.plotBandSlot(r),s=t.getSlot(r.from),a=r.from-Math.floor(r.from);i.startAngle+=a*s.angle; 5var l=Math.ceil(r.to)-r.to;i.angle-=(l+a)*s.angle;var c=fo.current.createRing(i,{fill:{color:r.color,opacity:r.opacity},stroke:{opacity:r.opacity}});n.append(c)}this.appendVisual(n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to-1)},e.prototype.getSlot=function(t,e){var n=this.options,o=n.justified,r=this.box,i=this.majorAngles(),s=i.length,a=360/s,l=t;n.reverse&&!o&&(l=(l+1)%s),l=eo(Math.floor(l),0,s-1);var c=i[l];o&&(c-=a/2,c<0&&(c+=360));var u=eo(Math.ceil(e||l),l,s-1),p=u-l+1,h=a*p;return new uo(r.center(),0,r.height()/2,c,h)},e.prototype.slot=function t(e,n){var t=this.getSlot(e,n),o=t.startAngle+180,r=o+t.angle;return new ze.geometry.Arc([t.center.x,t.center.y],{startAngle:o,endAngle:r,radiusX:t.radius,radiusY:t.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this,n=this.options.categories.length,o=null,r=0;r<n;r++){var i=e.getSlot(r);if(i.containsPoint(t)){o=r;break}}return o},e}($o);T(fr,{startAngle:90,labels:{margin:m(10)},majorGridLines:{visible:!0},justified:!0}),f(fr.prototype,hr);var dr=function(t){function e(e,n){t.call(this,e,n);var o=this.options;o.minorUnit=o.minorUnit||o.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return lr.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this,e=this,n=e.options,o=e.labels,r=e.options.labels,i=r.skip||0,s=r.step||1,a=new co,l=this.intervals(n.majorUnit,i,s),c=0;c<o.length;c++){o[c].reflow(a);var u=o[c].box;o[c].reflow(t.getSlot(l[c]).adjacentBox(0,u.width(),u.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,n,o){void 0===o&&(o=!1);for(var r=this.options.min,i=this.getDivisions(t),s=[],a=e||0,l=n||1,c=a;c<i;c+=l){var u=(360+r+c*t)%360;o&&k(u,o)||s.push(u)}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,o=n.minorGridLines,r=n.majorGridLines,i=e?this.intervals(n.majorUnit,r.skip,r.step):null;return this.gridLineAngles(t,n.minorUnit,o.skip,o.step,i)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var n=this,o=n.options,r=n.box,i=o.startAngle,s=eo(t,o.min,o.max),a=eo(e||s,s,o.max);if(o.reverse&&(s*=-1,a*=-1),s=(540-s-i)%360,a=(540-a-i)%360,a<s){var l=s;s=a,a=l}return new uo(r.center(),0,r.height()/2,s,a-s)},e.prototype.slot=function t(e,n){void 0===n&&(n=e);var o,r,i=this.options,s=360-i.startAngle,t=this.getSlot(e,n),a=Math.min(e,n),l=Math.max(e,n);return i.reverse?(o=a,r=l):(o=360-l,r=360-a),o=(o+s)%360,r=(r+s)%360,new ze.geometry.Arc([t.center.x,t.center.y],{startAngle:o,endAngle:r,radiusX:t.radius,radiusY:t.radius})},e.prototype.getValue=function(t){var e=this.options,n=this.box.center(),o=t.x-n.x,r=t.y-n.y,i=Math.round(Xn(Math.atan2(r,o))),s=e.startAngle;return e.reverse||(i*=-1,s*=-1),(i+s+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(jo);T(dr,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:m(10)},majorGridLines:{color:He,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),f(dr.prototype,hr,{createPlotBands:fr.prototype.createPlotBands,majorAngles:fr.prototype.majorAngles,range:lr.prototype.range,labelsCount:lr.prototype.labelsCount,createAxisLabel:lr.prototype.createAxisLabel});var vr={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this,e=this.options,n=e.majorGridLines.type,o=e.plotBands;void 0===o&&(o=[]);for(var r=this.plotArea.polarAxis,i=r.majorAngles(),s=r.box.center(),a=this._plotbandGroup=new ze.drawing.Group({zIndex:-1}),l=0;l<o.length;
5l++){var c=o[l],u={fill:{color:c.color,opacity:c.opacity},stroke:{opacity:c.opacity}},p=t.getSlot(c.from,c.to,!0),h=new uo(s,s.y-p.y2,s.y-p.y1,0,360),f=void 0;f=n===Be?fo.current.createRing(h,u):ze.drawing.Path.fromPoints(t.plotBandPoints(h,i),u).close(),a.append(f)}this.appendVisual(a)},plotBandPoints:function(t,e){for(var n=[],o=[],r=[t.center.x,t.center.y],i=new ze.geometry.Circle(r,t.innerRadius),s=new ze.geometry.Circle(r,t.radius),a=0;a<e.length;a++)n.push(i.pointAt(e[a]+180)),o.push(s.pointAt(e[a]+180));return n.reverse(),n.push(n[0]),o.push(o[0]),o.concat(n)},createGridLines:function(t){var e=this.options,n=this.radarMajorGridLinePositions(),o=t.majorAngles(),r=t.box.center(),i=[];if(e.majorGridLines.visible&&(i=this.renderGridLines(r,n,o,e.majorGridLines)),e.minorGridLines.visible){var s=this.radarMinorGridLinePositions();Kn(i,this.renderGridLines(r,s,o,e.minorGridLines))}return i},renderGridLines:function(t,e,n,o){var r={stroke:{width:o.width,color:o.color,dashType:o.dashType}},i=o.skip;void 0===i&&(i=0);var s=o.step;void 0===s&&(s=0);for(var a=this.gridLinesVisual(),l=i;l<e.length;l+=s){var c=t.y-e[l];if(c>0){var u=new ze.geometry.Circle([t.x,t.y],c);if(o.type===Be)a.append(new ze.drawing.Circle(u,r));else{for(var p=new ze.drawing.Path(r),h=0;h<n.length;h++)p.lineTo(u.pointAt(n[h]+180));p.close(),a.append(p)}}}return a.children},getValue:function(t){var e=this.lineBox(),n=this.plotArea.polarAxis,o=n.majorAngles(),r=n.box.center(),i=t.distanceTo(r),s=i;if(this.options.majorGridLines.type!==Be&&o.length>1){var a=t.x-r.x,l=t.y-r.y,c=(Xn(Math.atan2(l,a))+540)%360;o.sort(function(t,e){return kt(t,c)-kt(e,c)});var u=kt(o[0],o[1])/2,p=kt(c,o[0]),h=90-u,f=180-p-h;s=i*(Math.sin(oo(f))/Math.sin(oo(h)))}return this.axisType().prototype.getValue.call(this,new lo(e.x1,e.y2-s))}},yr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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}(lr);f(yr.prototype,vr);var gr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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}(pr);f(gr.prototype,vr);var mr=.333,br=.01,_r=function(t){function e(e){t.call(this),this.closed=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.process=function(t){var e=this,n=t.slice(0),o=[],r=this.closed,i=n.length;if(i>2&&(this.removeDuplicates(0,n),i=n.length),i<2||2===i&&n[0].equals(n[1]))return o;var s=n[0],a=n[1],l=n[2];for(o.push(new ze.geometry.Segment(s));s.equals(n[i-1]);)r=!0,n.pop(),i--;if(2===i){var c=this.tangent(s,a,xn,wn);return to(o).controlOut(this.firstControlPoint(c,s,a,xn,wn)),o.push(new ze.geometry.Segment(a,this.secondControlPoint(c,s,a,xn,wn))),o}var u,p;if(r){s=n[i-1],a=n[0],l=n[1];var h=this.controlPoints(s,a,l);u=h[1],p=h[0]}else{var f=this.tangent(s,a,xn,wn);u=this.firstControlPoint(f,s,a,xn,wn)}for(var d=u,v=0;v<=i-3;v++)if(e.removeDuplicates(v,n),i=n.length,v+3<=i){s=n[v],a=n[v+1],l=n[v+2];var y=e.controlPoints(s,a,l);to(o).controlOut(d),d=y[1];var g=y[0];o.push(new ze.geometry.Segment(a,g))}if(r){s=n[i-2],a=n[i-1],l=n[0];var m=this.controlPoints(s,a,l);to(o).controlOut(d),o.push(new ze.geometry.Segment(a,m[0])),to(o).controlOut(m[1]),o.push(new ze.geometry.Segment(l,p))}else{var b=this.tangent(a,l,xn,wn);to(o).controlOut(d),o.push(new ze.geometry.Segment(l,this.secondControlPoint(b,a,l,xn,wn)))}return o},e.prototype.removeDuplicates=function(t,e){for(;
5e[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,o){var t=!1;if(e.x===n.x)t=!0;else if(n.x===o.x)(n.y<o.y&&e.y<=n.y||o.y<n.y&&n.y<=e.y)&&(t=!0);else{var r=this.lineFunction(e,n),i=this.calculateFunction(r,o.x);e.y<=n.y&&o.y<=i||n.y<=e.y&&o.y>=i||(t=!0)}return t},e.prototype.isLine=function(t,e,n){var o=this.lineFunction(t,e),r=this.calculateFunction(o,n.x);return t.x===e.x&&e.x===n.x||ro(r,1)===ro(n.y,1)},e.prototype.lineFunction=function(t,e){var n=(e.y-t.y)/(e.x-t.x),o=t.y-n*t.x;return[o,n]},e.prototype.controlPoints=function(t,e,n){var o,r=xn,i=wn,s=!1,a=!1;if(this.isLine(t,e,n))o=this.tangent(t,e,xn,wn);else{var l={x:this.isMonotonicByField(t,e,n,xn),y:this.isMonotonicByField(t,e,n,wn)};if(l.x&&l.y)o=this.tangent(t,n,xn,wn),s=!0;else if(this.invertAxis(t,e,n)&&(r=wn,i=xn),l[r])o=0;else{var c;c=n[i]<t[i]&&t[i]<=e[i]||t[i]<n[i]&&e[i]<=t[i]?St((n[i]-t[i])*(e[r]-t[r])):-St((n[r]-t[r])*(e[i]-t[i])),o=br*c,a=!0}}var u=this.secondControlPoint(o,t,e,r,i);if(a){var p=r;r=i,i=p}var h=this.firstControlPoint(o,e,n,r,i);return s&&(this.restrictControlPoint(t,e,u,o),this.restrictControlPoint(e,n,h,o)),[u,h]},e.prototype.restrictControlPoint=function(t,e,n,o){t.y<e.y?e.y<n.y?(n.x=t.x+(e.y-t.y)/o,n.y=e.y):n.y<t.y&&(n.x=e.x-(e.y-t.y)/o,n.y=t.y):n.y<e.y?(n.x=t.x-(t.y-e.y)/o,n.y=e.y):t.y<n.y&&(n.x=e.x+(t.y-e.y)/o,n.y=t.y)},e.prototype.tangent=function t(e,n,o,r){var t,i=n[o]-e[o],s=n[r]-e[r];return t=0===i?0:s/i},e.prototype.isMonotonicByField=function(t,e,n,o){return n[o]>e[o]&&e[o]>t[o]||n[o]<e[o]&&e[o]<t[o]},e.prototype.firstControlPoint=function(t,e,n,o,r){var i=e[o],s=n[o],a=(s-i)*mr;return this.point(i+a,e[r]+a*t,o,r)},e.prototype.secondControlPoint=function(t,e,n,o,r){var i=e[o],s=n[o],a=(s-i)*mr;return this.point(s-a,n[r]-a*t,o,r)},e.prototype.point=function(t,e,n,o){var r=new ze.geometry.Point;return r[n]=t,r[o]=e,r},e.prototype.calculateFunction=function(t,e){for(var n=t.length,o=0,r=0;r<n;r++)o+=Math.pow(e,r)*t[r];return o},e}(ze.Class),xr=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),e.prototype.constructor=e,e.prototype.value=function t(e){var n=this._axis,t=n.getCategory?n.getCategory(e):n.getValue(e);return 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}(ze.Class),wr=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};wr.prototype.findAxisByName=function(t){return Ot(t,this._pane.axes)};var kr=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),e.prototype.constructor=e,e}(ze.Class),Sr={min:function(t){for(var e=t.length,n=rn,o=0;o<e;o++){var r=t[o];l(r)&&(n=Math.min(n,r))}return n===rn?t[0]:n},max:function(t){for(var e=t.length,n=sn,o=0;o<e;o++){var r=t[o];l(r)&&(n=Math.max(n,r))}return n===sn?t[0]:n},sum:function(t){for(var e=t.length,n=0,o=0;o<e;o++){var r=t[o];l(r)&&(n+=r)}return n},sumOrNull:function(t){var e=null;return Ct(t)&&(e=Sr.sum(t)),e},count:function(t){for(var e=t.length,n=0,o=0;o<e;o++){var r=t[o];null!==r&&Yn(r)&&n++}return n},avg:function(t){var e=Ct(t),n=t[0];return e>0&&(n=Sr.sum(t)/e),n},first:function(t){for(var e=t.length,n=0;n<e;n++){var o=t[n];if(null!==o&&Yn(o))return o}return t[0]}},Or=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),e.prototype.constructor=e,e.prototype.register=function(t,e,n){var o=this;void 0===e&&(e=[mn]),void 0===n&&(n={});for(var r=0;r<t.length;r++){var i=t[r];o._valueFields[i]=e,o._otherFields[i]=n,o._nullValue[i]=o._makeValue(e,null),o._undefinedValue[i]=o._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]||[mn]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[mn]},e.prototype.bindPoint=function(t,e,n){var o,r,i=t.data,s=Yn(n)?n:i[e],a={valueFields:{value:s}},l=this.valueFields(t),c=this._otherFields[t.type];if(null===s)r=this._nullValue[t.type];else if(Yn(s)){if(Array.isArray(s)){var u=s.slice(l.length);r=this._bindFromArray(s,l),o=this._bindFromArray(u,c)}else if("object"==typeof s){var p=this.sourceFields(t,l),h=this.sourceFields(t,c);r=this._bindFromObject(s,l,p),o=this._bindFromObject(s,c,h)}}else r=this._undefinedValue[t.type];return Yn(r)&&(1===l.length?a.valueFields.value=r[l[0]]:a.valueFields=r),a.fields=o||{},a},e.prototype._makeValue=function(t,e){for(var n={},o=t.length,r=0;r<o;r++){var i=t[r];n[i]=e}return n},e.prototype._bindFromArray=function(t,e){var n={};if(e)for(var o=Math.min(e.length,t.length),r=0;r<o;r++)n[e[r]]=t[r];return n},e.prototype._bindFromObject=function(t,e,n){void 0===n&&(n=e);var o={};if(e)for(var r=e.length,i=0;i<r;i++){var s=e[i],a=n[i];null!==a&&(o[s]=Tt(a,t))}return o},e.prototype.sourceFields=function t(e,n){var t=[];if(n)for(var o=n.length,r=0;r<o;r++){var i=n[r],s=i===mn?"field":i+"Field";t.push(null!==e[s]?e[s]||i:null)}return t},e}(ze.Class);
5Or.current=new Or;var Cr="stderr",Tr="stddev",Er=/percent(?:\w*)\((\d+)\)/,Ar=new RegExp("^"+Tr+"(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),Mr=function(t){function e(e,n,o){t.call(this),this.initGlobalRanges(e,n,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,n){var o=e.data,r=Ar.exec(t);if(r){this.valueGetter=this.createValueGetter(e,n);var i=this.getAverage(o),s=this.getStandardDeviation(o,i,!1),a=r[1]?parseFloat(r[1]):1,l={low:i.value-s*a,high:i.value+s*a};this.globalRange=function(){return l}}else if(t.indexOf&&t.indexOf(Cr)>=0){this.valueGetter=this.createValueGetter(e,n);var c=this.getStandardError(o,this.getAverage(o));this.globalRange=function(t){return{low:t-c,high:t+c}}}},e.prototype.createValueGetter=function(t,e){var n,r=t.data,i=Or.current,s=i.valueFields(t),a=Yn(r[0])?r[0]:{};if(o(a)){var c=e?s.indexOf(e):0;n=_("["+c+"]")}else if(l(a))n=_();else if(typeof a===pn){var u=i.sourceFields(t,s);n=_(u[s.indexOf(e)])}return n},e.prototype.getErrorRange=function(t,e){var n,r,i;if(!Yn(e))return null;if(this.globalRange)return this.globalRange(t);if(o(e))n=t-e[0],r=t+e[1];else if(l(i=parseFloat(e)))n=t-i,r=t+i;else{if(!(i=Er.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var s=t*(parseFloat(i[1])/100);n=t-Math.abs(s),r=t+Math.abs(s)}return{low:n,high:r}},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 o=this,r=t.length,i=n?e.count-1:e.count,s=0,a=0;a<r;a++){var c=o.valueGetter(t[a]);l(c)&&(s+=Math.pow(c-e.value,2))}return Math.sqrt(s/i)},e.prototype.getAverage=function(t){for(var e=this,n=t.length,o=0,r=0,i=0;i<n;i++){var s=e.valueGetter(t[i]);l(s)&&(o+=s,r++)}return{value:o/r,count:r}},e}(ze.Class),Pr=ze.support.browser||{},jr=600,Dr="fadeIn",Rr=.8,Ir=5,Fr=Pr.msie?.001:0,Lr="errorLow",zr="errorHigh",Br="xErrorLow",Nr="xErrorHigh",Hr="yErrorLow",Vr="yErrorHigh",Ur=8,Gr="zero",qr="interpolate",Kr="gap",Wr="above",Yr="below",Xr="smooth",Zr="step",$r="area",Jr="bar",Qr="boxPlot",ti="bubble",ei="bullet",ni="candlestick",oi="column",ri="donut",ii="funnel",si="horizontalWaterfall",ai="line",li="ohlc",ci="pie",ui="polarArea",pi="polarLine",hi="polarScatter",fi="radarArea",di="radarColumn",vi="radarLine",yi="rangeArea",gi="rangeBar",mi="rangeColumn",bi="scatter",_i="scatterLine",xi="verticalArea",wi="verticalBoxPlot",ki="verticalBullet",Si="verticalLine",Oi="verticalRangeArea",Ci="waterfall",Ti=[Jr,oi,li,ni,Qr,wi,ei,mi,gi,Ci,si],Ei="legendItemClick",Ai="legendItemHover",Mi="legendItemLeave",Pi="seriesClick",ji="seriesHover",Di="seriesOver",Ri="seriesLeave",Ii="plotAreaClick",Fi="plotAreaHover",Li="plotAreaLeave",zi="drag",Bi="dragEnd",Ni="dragStart",Hi="zoomStart",Vi="zoom",Ui="zoomEnd",Gi="selectStart",qi="select",Ki="selectEnd",Wi="render",Yi="showTooltip",Xi="hideTooltip",Zi="paneRender",$i="log",Ji="category",Qi="insideEnd",ts="insideBase",es="outsideEnd",ns="DOMMouseScroll mousewheel",os=150,rs=4,is=function(t){function e(e,n,o,r,i,s){t.call(this,s),this.low=e,this.high=n,this.isVertical=o,this.chart=r,this.series=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,n=this.options.endCaps,o=this.isVertical,r=this.getAxis(),i=r.getSlot(this.low,this.high),s=t.center(),a=this.getCapsWidth(t,o),l=o?s.x:s.y,c=l-a,u=l+a;o?(e=[new lo(s.x,i.y1),new lo(s.x,i.y2)],n&&e.push(new lo(c,i.y1),new lo(u,i.y1),new lo(c,i.y2),new lo(u,i.y2)),this.box=new co(c,i.y1,u,i.y2)):(e=[new lo(i.x1,s.y),new lo(i.x2,s.y)],n&&e.push(new lo(i.x1,c),new lo(i.x1,u),new lo(i.x2,c),new lo(i.x2,u)),this.box=new co(i.x1,c,i.x2,u)),this.linePoints=e},e.prototype.getCapsWidth=function(t,e){var n=e?t.width():t.height(),o=Math.min(Math.floor(n/2),rs)||rs;return o},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,n=this,o=n.options,r=n.linePoints,i={stroke:{color:o.color,width:o.line.width,dashType:o.line.dashType}};t.prototype.createVisual.call(this);for(var a=0;a<r.length;a+=2){var l=new ze.drawing.Path(i).moveTo(r[a].x,r[a].y).lineTo(r[a+1].x,r[a+1].y);s(l),e.visual.append(l)}},e}(vo);T(is,{animation:{type:Dr,delay:jr},endCaps:!0,line:{width:2},zIndex:1});var ss=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){var t=this.chart.seriesValueAxis(this.series);return t},e}(is),as=5,ls=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),e.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 o=this.pointType().prototype.defaults;this.seriesOptions[e]=n=f({},o,{vertical:!this.options.invertAxes},t)}return n},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&l(t.value)){for(var e=t.categoryIx,n=this.categoryPoints[e],o=[],r=0,i=0;i<n.length;i++){var s=n[i];if(s){var a=t.series.stack,c=s.series.stack;if(a&&c&&a.group!==c.group)continue;l(s.value)&&(r+=Math.abs(s.value),o.push(Math.abs(s.value)))}}if(r>0)return t.value/r}return t.value},e.prototype.plotRange=function(t,e){var n=this;void 0===e&&(e=0);var o=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var r=this.plotValue(t),i=r>=0,s=e,a=!1,l=0;l<o.length;l++){var c=o[l];if(t===c)break;var p=t.series.stack,h=c.series.stack;if(p&&h){if(typeof p===vn&&p!==h)continue;if(p.group&&p.group!==h.group)continue}var f=n.plotValue(c);(f>=0&&i||f<0&&!i)&&(s+=f,r+=f,a=!0,n.options.isStacked100&&(r=Math.min(r,1)))}return a&&(s-=e),[s,r]}var d=t.series,v=this.seriesValueAxis(d),y=this.categoryAxisCrossingValue(v);return[y,u(t.value)?t.value:y]},e.prototype.stackLimits=function(t,e){for(var n=this,o=rn,r=sn,i=0;i<this.categoryPoints.length;i++){var s=n.categoryPoints[i];if(s)for(var a=0;a<s.length;a++){var l=s[a];if(l&&(l.series.stack===e||l.series.axis===t)){var c=n.plotRange(l,0)[1];Yn(c)&&isFinite(c)&&(r=Math.max(r,c),o=Math.min(o,c))}}}return{min:o,max:r}},e.prototype.updateStackRange=function(){var t=this,e=this.options,n=e.isStacked,o=e.series,r={};if(n)for(var i=0;i<o.length;i++){var s=o[i],a=s.axis,l=a+s.stack,c=r[l];if(!c){c=t.stackLimits(a,s.stack);var u=t.errorTotals;u&&(u.negative.length&&(c.min=Math.min(c.min,E(u.negative).min)),u.positive.length&&(c.max=Math.max(c.max,E(u.positive).max)
5)),c.min!==rn||c.max!==sn?r[l]=c:c=null}c&&(t.valueAxisRanges[a]=c)}},e.prototype.addErrorBar=function(t,e,n){var o,r=t.value,i=t.series,s=t.seriesIx,a=t.options.errorBars,c=e.fields[Lr],u=e.fields[zr];l(c)&&l(u)?o={low:c,high:u}:a&&Yn(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new Mr(a.value,i,mn),o=this.seriesErrorRanges[s].getErrorRange(r,a.value)),o&&(t.low=o.low,t.high=o.high,this.addPointErrorBar(t,n))},e.prototype.addPointErrorBar=function(t,e){var n=!this.options.invertAxes,o=t.options.errorBars,r=t.series,i=t.low,s=t.high;if(this.options.isStacked){var a=this.stackedErrorRange(t,e);i=a.low,s=a.high}else{var l={categoryIx:e,series:r};this.updateRange({value:i},l),this.updateRange({value:s},l)}var c=new ss(i,s,n,this,r,o);t.errorBars=[c],t.append(c)},e.prototype.stackedErrorRange=function(t,e){var n=this.plotRange(t,0)[1]-t.value,o=t.low+n,r=t.high+n;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},o<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,o)),r>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,r)),{low:o,high:r}},e.prototype.addValue=function(t,e){var n=e.categoryIx,o=e.series,r=e.seriesIx,i=this.categoryPoints[n];i||(this.categoryPoints[n]=i=[]);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,Yn(a.dataItem)||(a.dataItem=o.data[n]),this.addErrorBar(a,t,n)),this.points.push(a),s.push(a),i.push(a),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,n,o,r,i){var s={defaults:r._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},a=this._evalSeries[i];Yn(a)||(this._evalSeries[i]=a=Et(t,{},s,!0));var l=t;return a&&(l=f({},l),Et(l,{value:e,category:n,index:o,series:r,dataItem:r.data[o]},s)),l},e.prototype.updateRange=function(t,e){var n=e.series.axis,o=t.value,r=this.valueAxisRanges[n];isFinite(o)&&null!==o&&(r=this.valueAxisRanges[n]=r||{min:rn,max:sn},r.min=Math.min(r.min,o),r.max=Math.max(r.max,o))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,n=t.axis,o=n?e.namedValueAxes[n]:e.valueAxis;if(!o)throw new Error("Unable to locate value axis with name "+n);return o},e.prototype.reflow=function(t){var e=this,n=this.categorySlots=[],o=this.points,r=this.categoryAxis,i=0;this.traverseDataPoints(function(t,s){var a=s.categoryIx,l=s.series,c=e.seriesValueAxis(l),u=o[i++],p=n[a];if(p||(n[a]=p=e.categorySlot(r,a,c)),u){var h=e.plotRange(u,c.startValue()),f=e.valueSlot(c,h);if(f){var d=e.pointSlot(p,f);u.aboveAxis=e.aboveAxis(u,c),u.stackValue=h[1],e.options.isStacked100&&(u.percentage=e.plotValue(u)),e.reflowPoint(u,d)}else u.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,e=this.categoryPoints,n=e[0].concat(to(e)),o=0;o<n.length;o++)n[o]&&t.limitPoint(n[o])},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),o=t.value;return e.options.reverse?o<n:o>=n},e.prototype.categoryAxisCrossingValue=function(t){var e=this.categoryAxis,n=t.options,o=[].concat(n.axisCrossingValues||n.axisCrossingValue);return o[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,o=n.invertAxes,r=o?e:t,i=o?t:e;return new co(r.x1,i.y1,r.x2,i.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this,n=this.options.series,o=At(n),r=n.length,i=0;i<r;i++)e._outOfRangeCallback(n[i],"_outOfRangeMinPoint",i,t);for(var s=0;s<o;s++)for(var a=0;a<r;a++){var l=n[a],c=e.categoryAxis.categoryAt(s),u=e._bindPoint(l,a,s);t(u,{category:c,categoryIx:s,series:l,seriesIx:a})}for(var p=0;p<r;p++)e._outOfRangeCallback(n[p],"_outOfRangeMaxPoint",p,t)},e.prototype._outOfRangeCallback=function(t,e,n,o){var r=t[e];if(r){var i=r.categoryIx,s=this._bindPoint(t,n,i,r.item);o(s,{category:r.category,categoryIx:i,series:t,seriesIx:n,dataItem:r.item})}},e.prototype._bindPoint=function(t,e,n,o){this._bindCache||(this._bindCache=[]);var r=this._bindCache[e];r||(r=this._bindCache[e]=[]);var i=r[n];
5return i||(i=r[n]=Or.current.bindPoint(t,n,o)),i},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}(vo);T(ls,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var cs={click:function(t,e){return t.trigger(Pi,this.eventArgs(e))},hover:function(t,e){return t.trigger(ji,this.eventArgs(e))},over:function(t,e){return t.trigger(Di,this.eventArgs(e))},out:function(t,e){return t.trigger(Ri,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:Jn(t),originalEvent:t,point:this}}},us={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;t.visible!==!1&&Yn(e)&&null!==e&&(this.note=new Po({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},ps=function(t){function e(e,n){t.call(this),this.value=e,this.options=n,this.aboveAxis=so(this.options.aboveAxis,!0),this.tooltipTracking=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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 o=b(n),r=this.pointData(),i=this.value;o?i=o(r):n.format&&(i=this.formatValue(n.format)),this.label=new Co(i,f({align:Ue,vAlign:Ue,margin:{left:5,right:5},zIndex:so(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=f({color:this.color},t.border);return Yn(n.color)||(n.color=new ze.Color(e).brightness(Rr).toHex()),n},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers,e=new go({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:t.opacity,zIndex:so(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});return e},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,n=this,o=n.options,r=n.aboveAxis,i=o.vertical;this.render(),this.box=t;var s=t.clone();if(i?r?s.y1-=s.height():s.y2+=s.height():r?s.x1+=s.width():s.x2-=s.width(),this._childBox=s,this.marker&&this.marker.reflow(s),this.reflowLabel(s),this.errorBars)for(var a=0;a<this.errorBars.length;a++)e.errorBars[a].reflow(s);if(this.note){var l=this.markerBox();if(!o.markers.visible||!o.markers.size){var c=l.center();l=new co(c.x,c.y,c.x,c.y)}this.note.reflow(l)}},e.prototype.reflowLabel=function(t){var e=this,n=e.options,o=e.label,r=n.labels.position;o&&(r=r===Wr?yn:r,r=r===Yr?Ve:r,o.reflow(t),o.box.alignTo(this.markerBox(),r),o.reflow(o.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,n=this.options.markers,o=n.size+(n.border.width||0)+(t.border.width||0),r=new go({type:n.type,width:o,height:o,rotation:n.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:so(t.border.opacity,1)},opacity:so(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 o=this.options.markers.size,r=o/2,i=this.box.center();e=new ze.geometry.Rect([i.x-r,i.y-r],[o,o])}return{options:this.options,rect:e,visual:t}},e.prototype.tooltipAnchor=function(){var t=this.markerBox(),e=this.owner.pane.clipBox(),n=!e||e.overlaps(t);
vendor: 2,460 bytes, line 5
5if(n){var o,r,i=t.x2+Ir,s=on;return this.aboveAxis?(o=t.y1,r=Ve):(o=t.y2,r=yn),{point:new lo(i,o),align:{horizontal:s,vertical:r}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){var e=this.markerBox();return e.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}(vo);ps.prototype.defaults={vertical:!0,markers:{visible:!0,background:bn,size:Ur,type:Ge,border:{width:2},opacity:1},labels:{visible:!1,position:Wr,margin:m(3),padding:m(4),animation:{type:Dr,delay:jr}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:en},errorBars:{line:{width:1}}},f(ps.prototype,cs),f(ps.prototype,us);var hs=function(t){function e(e,n,o){t.call(this),this.linePoints=e,this.series=n,this.seriesIx=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.toGeometryPoints(this.linePoints)},e.prototype.toGeometryPoints=function(t){for(var e=[],n=0,o=t.length;n<o;n++)t[n]&&t[n].visible!==!1&&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&&!Yn(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},e.prototype.segmentVisual=function(){var t=this,e=t.options,n=t.series,o=n.color,r=n._defaults;p(o)&&r&&(o=r.color);var i=ze.drawing.Path.fromPoints(this.points(),{stroke:{color:o,width:n.width,opacity:n.opacity,dashType:n.dashType},zIndex:n.zIndex});e.closed&&i.close(),this.visual=i},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(vo);T(hs,{closed:!1});var fs={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series),n=e.options,o=n.justified,r=n.vertical,i=n.reverse,s=r?xn:wn,a=r?wn:xn,l=i?2:1,c=l,u=Mt(t[0],s,l,a,c),p=[u],h=1;h<t.length;h++){var f=Mt(t[h],s,l,a,c);if(u[s]!==f[s]){var d=new ze.geometry.Point;d[s]=u[s],d[a]=f[a],p.push(d,f)}u=f}
5return o?u!==to(p)&&p.push(u):p.push(Mt(to(t),s,l,a,i?1:2)), 6p}},ds=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.calculateStepPoints(this.linePoints)},e}(hs);f(ds.prototype,fs);var vs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.segmentVisual=function(){var t=this.series,e=t._defaults,n=t.color;p(n)&&e&&(n=e.color);var o=new _r(this.options.closed),r=o.process(this.points()),i=new ze.drawing.Path({stroke:{color:n,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});i.segments.push.apply(i.segments,r),this.visual=i},e}(hs),ys={renderSegments:function(){var t,e=this,n=this,o=n.options,r=n.seriesPoints,i=o.series,s=r.length;this._segments=[];for(var a=0;a<s;a++){for(var l=i[a],c=e.sortPoints(r[a]),u=c.length,p=[],h=0;h<u;h++){var f=c[h];f?p.push(f):e.seriesMissingValues(l)!==qr&&(p.length>1&&(t=e.createSegment(p,l,a,t),e._addSegment(t)),p=[])}p.length>1&&(t=e.createSegment(p,l,a,t),e._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,n=!e&&this.options.isStacked;return n?Gr:e||qr},getNearestPoint:function(t,e,n){for(var o,r=new lo(t,e),i=this.seriesPoints[n],s=rn,a=0;a<i.length;a++){var l=i[a];if(l&&Yn(l.value)&&null!==l.value&&l.visible!==!1){var c=l.box,u=c.center().distanceTo(r);u<s&&(o=l,s=u)}}return o}},gs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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(S(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,n=e.segments,o=n[1].anchor(),r=n[2].anch
6or();e.suspend(),o.setX(t),e.resume(),r.setX(t)},e}(ze.drawing.Animation);T(gs,{duration:jr}),ze.drawing.AnimationFactory.current.register("clip",gs);var ms={createAnimation:function(){var t=this.getRoot();if(t&&(t.options||{}).transitions!==!1){var e=t.size(),n=ze.drawing.Path.fromRect(e.toRect());this.visual.clip(n),this.animation=new gs(n,{box:e}),Pt(this.options.series)&&this._setChildrenAnimation(n)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),n=0;n<e.length;n++){var o=e[n];o&&o.visual&&Yn(o.visual.options.zIndex)&&o.visual.clip(t)}}},bs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return ps},e.prototype.createPoint=function(t,e){var n=e.categoryIx,o=e.category,r=e.series,i=e.seriesIx,s=this.seriesMissingValues(r),a=t.valueFields.value;if(!Yn(a)||null===a){if(s!==Gr)return null;a=0}var l=this.pointOptions(r,i);l=this.evalPointOptions(l,a,o,n,r,i);var c=t.fields.color||r.color;p(r.color)&&(c=l.color);var u=new ps(a,l);return u.color=c,this.append(u),u},e.prototype.plotRange=function(t){var e=this,n=this.plotValue(t);if(this.options.isStacked)for(var o=t.categoryIx,r=this.categoryPoints[o],i=0;i<r.length;i++){var s=r[i];if(t===s)break;n+=e.plotValue(s),e.options.isStacked100&&(n=Math.min(n,1))}return[n,n]},e.prototype.createSegment=function(t,e,n){var o,r=e.style;return new(o=r===Zr?ds:r===Xr?vs:hs)(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}(ls);f(bs.prototype,ys,ms);var _s=function(t){function e(e,n,o,r,i){t.call(this,e,n,o),this.prevSegment=r,this.stackPoints=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){var t=this.series,e=t._defaults,n=t.line||{},o=t.color;p(o)&&e&&(o=e.color),this.visual=new ze.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:o,opacity:t.opacity},stroke:null}),n.width>0&&n.visible!==!1&&this.createStroke({stroke:f({color:o,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 ze.geometry.Segment(t)})},e.prototype.createStroke=function(t){var e=new ze.drawing.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),o=this.hasStackSegment();if(o){var r=this.stackSegments();Kn(n,r)}var i=new ze.drawing.Path(t);i.segments.push.apply(i.segments,n),!o&&e.length>1&&this.fillToAxes(i),this.visual.append(i)},e.prototype.fillToAxes=function(t){var e=this.parent,n=e.options.invertAxes,o=e.seriesValueAxis(this.series),r=e.categoryAxisCrossingValue(o),i=o.getSlot(r,r,!0),s=this.strokeSegments(),a=s[0].anchor(),l=to(s).anchor(),c=n?i.x1:i.y1;n?t.lineTo(c,l.y).lineTo(c,a.y):t.lineTo(l.x,c).lineTo(a.x,c)},e}(hs),xs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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}(_s);f(xs.prototype,fs);var ws=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){var t=new _r(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 o=t[n];e.push(new ze.geometry.Segment(o.anchor(),o.controlOut(),o.controlIn()))}return e},e}(_s),ks=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,n,o){var r,i,s=this.options.isStacked,a=(e.line||{}).style;if(s&&n>0&&o){var l=this.seriesMissingValues(e);"gap"!==l?(i=o.linePoints,r=o):i=this._gapStackPoints(t,n,a)}var c;return new(c=a===Zr?xs:a===Xr?ws:_s)(t,e,n,r,i)},e.prototype.reflow=function(e){var n=this;t.prototype.reflow.call(this,e);var o=this._stackPoints;if(o)for(var r=0;r<o.length;r++){var i=o[r],s=n.categoryAxis.getSlot(i.categoryIx);i.reflow(s)}},e.prototype._gapStackPoints=function(t,e,n){var o=this,r=this.seriesPoints,i=t[0].categoryIx,s=t.length;i<0&&(i=0,s--);var a=i+s,l=this.seriesOptions[0]._outOfRangeMinPoint?1:0,c=[];this._stackPoints=this._stackPoints||[];for(var u=i;u<a;u++){var p=u+l,h=e,f=void 0;do h--,f=r[h][p];while(h>0&&!f);if(f)n!==Zr&&u>i&&!r[h][p-1]&&c.push(o._previousSegmentPoint(u,p,p-1,h)),c.push(f),n!==Zr&&u+1<a&&!r[h][p+1]&&c.push(o._previousSegmentPoint(u,p,p+1,h));else{var d=o._createGapStackPoint(u);o._stackPoints.push(d),c.push(d)}}return c},e.prototype._previousSegmentPoint=function(t,e,n,o){for(var r,i=this.seriesPoints,s=o;s>0&&!r;)s--,r=i[s][n];return r?r=i[s][e]:(r=this._createGapStackPoint(t),this._stackPoints.push(r)),r},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),n=new ps(0,e);return n.categoryIx=t,n.series={},n},e.prototype.seriesMissingValues=function(t){return t.missingValues||Gr},e}(bs),Ss=function(t){function e(){t.call(this),this.axisRanges={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.update=function(t){var e=this.axisRanges;for(var n in t){var o=t[n],r=e[n];e[n]=r=r||{min:rn,max:sn},r.min=Math.min(r.min,o.min),r.max=Math.max(r.max,o.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(ze.Class),Os=function(t){function e(e,n,o){t.call(this,n),this.textBox=new Co(e,this.options,o),this.append(this.textBox)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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,o=e.aboveAxis,r=this.children[0],i=r.options,s=r.box,a=r.options.padding,l=t;i.align=n?Ue:on,i.vAlign=n?yn:Ue,e.position===Qi?n?(i.vAlign=yn,!o&&s.height()<t.height()&&(i.vAlign=Ve)):i.align=o?fn:on:e.position===Ue?(i.vAlign=Ue,i.al
6ign=Ue):e.position===ts?n?i.vAlign=o?Ve:yn:i.align=o?on:fn:e.position===es&&(n?l=o?new co(t.x1,t.y1-s.height(),t.x2,t.y1):new co(t.x1,t.y2,t.x2,t.y2+s.height()):(i.align=Ue,l=o?new co(t.x2,t.y1,t.x2+s.width(),t.y2):new co(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,n=e?wn:xn,o=n+"1",r=n+"2",i=this.children[0],s=this.parent.box;if(s[o]<t[o]||t[r]<s[r]){var a=i.paddingBox.clone();a[o]=Math.max(s[o],t[o]),a[r]=Math.min(s[r],t[r]),this.reflow(a)}},e}(vo);T(Os,{position:es,margin:m(3),padding:m(4),color:He,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:Dr,delay:jr},zIndex:2});var Cs=6,Ts=function(t){function e(e,n){t.call(this),this.options=n,this.color=n.color||bn,this.aboveAxis=so(this.options.aboveAxis,!0),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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,o=this.pointData(),r=b(e);n=r?r(o):this.formatValue(e.format),this.label=new Os(n,f({vertical:t.vertical},e),o),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){var e=this;this.render();var n=this.label;if(this.box=t,n&&(n.options.aboveAxis=this.aboveAxis,n.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(var o=0;o<this.errorBars.length;o++)e.errorBars[o].reflow(t)},e.prototype.createVisual=function(){var e=this,n=this,o=n.box,r=n.options,i=r.visual;if(this.visible!==!1)if(t.prototype.createVisual.call(this),i){var s=this.rectVisual=i({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:o.toRect(),createVisual:function(){var t=new ze.drawing.Group;return e.createRect(t),t},options:r});s&&this.visual.append(s)}else o.width()>0&&o.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,n=e.border,o=Yn(n.opacity)?n.opacity:e.opacity,r=this.box.toRect();r.size.width=Math.round(r.size.width);var i=this.rectVisual=ze.drawing.Path.fromRect(r,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:n.width,opacity:o,dashType:n.dashType}}),a=this.box.width(),l=this.box.height(),c=e.vertical?a:l;if(c>Cs&&(s(i),(a<1||l<1)&&(i.options.stroke.lineJoin="round")),t.append(i),jt(e)){var u=this.createGradientOverlay(i,{baseColor:this.color},f({end:e.vertical?void 0:[0,1]},e.overlay));t.append(u)}},e.prototype.createHighlight=function(t){var e=ze.drawing.Path.fromRect(this.box.toRect(),t);return s(e)},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||Rr,o=e.color;return Yn(o)||(o=new ze.Color(t).brightness(n).toHex()),o},e.prototype.tooltipAnchor=function(){var t,e,n=this,o=n.options,r=n.box,i=n.aboveAxis,s=this.owner.pane.clipBox()||r,a=on,l=yn;if(o.vertical)t=Math.min(r.x2,s.x2)+Ir,i?e=Math.max(r.y1,s.y1):(e=Math.min(r.y2,s.y2),l=Ve);else{var c=Math.max(r.x1,s.x1),u=Math.min(r.x2,s.x2);o.isStacked?(l=Ve,i?(a=fn,t=u):t=c,e=Math.max(r.y1,s.y1)-Ir):(i?t=u+Ir:(t=c-Ir,a=fn),e=Math.max(r.y1,s.y1))}return{point:new lo(t,e),align:{horizontal:a,vertical:l}}},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}(vo);f(Ts.prototype,cs),f(Ts.prototype,us),Ts.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Es=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Rt:Dt}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,n=e.vertical,o=e.gap,r=e.spacing,i=this.children,s=i.length,a=n?wn:xn,l=s+o+r*(s-1),c=(n?t.height():t.width())/l,u=t[a+1]+c*(o/2);
6this.forEach(i,function(e,n){var o=(e.box||t).clone();o[a+1]=u,o[a+2]=u+c,e.reflow(o),n<s-1&&(u+=c*r),u+=c})},e}(vo);T(Es,{vertical:!1,gap:0,spacing:0});var As=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this,n=this.options.vertical?xn:wn,o=this.children,r=o.length,i=this.box=new co,s=0;s<r;s++){var a=o[s];if(a.visible!==!1){var l=a.box.clone();l.snapTo(t,n),0===s&&(i=e.box=l.clone()),a.reflow(l),i.wrap(l)}}},e}(vo);T(As,{vertical:!0});var Ms=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Ts},e.prototype.clusterType=function(){return Es},e.prototype.stackType=function(){return As},e.prototype.stackLimits=function(e,n){var o=t.prototype.stackLimits.call(this,e,n);return o},e.prototype.createPoint=function(t,e){var n=e.categoryIx,o=e.category,r=e.series,i=e.seriesIx,s=this,a=s.options,l=s.children,c=a.isStacked,u=this.pointValue(t),h=this.pointOptions(r,i),f=h.labels;c&&f.position===es&&(f.position=Qi),h.isStacked=c;var d=t.fields.color||r.color;u<0&&h.negativeColor&&(d=h.negativeColor),h=this.evalPointOptions(h,u,o,n,r,i),p(r.color)&&(d=h.color);var v=this.pointType(),y=new v(u,h);y.color=d;var g=l[n];if(!g){var m=this.clusterType();g=new m({vertical:a.invertAxes,gap:a.gap,spacing:a.spacing,rtl:!a.invertAxes&&(this.chartService||{}).rtl}),this.append(g)}if(c){var b=this.getStackWrap(r,g);b.append(y)}else g.append(y);return y},e.prototype.getStackWrap=function(t,e){var n,o=t.stack,r=o?o.group||o:o,i=e.children;if(typeof r===vn){for(var s=0;s<i.length;s++)if(i[s]._stackGroup===r){n=i[s];break}}else n=i[0];if(!n){var a=this.stackType();n=new a({vertical:!this.options.invertAxes}),n._stackGroup=r,e.append(n)}return n},e.prototype.categorySlot=function t(e,n,o){var r=this.options,t=e.getSlot(n),i=o.startValue();if(r.isStacked){var s=o.getSlot(i,i,!0),a=r.invertAxes?xn:wn;t[a+1]=t[a+2]=s[a+1]}return t},e.prototype.reflowCategories=function(t){for(var e=this.children,n=e.length,o=0;o<n;o++)e[o].reflow(t[o])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),Pt(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this,e=this.points,n=0;n<e.length;n++){var o=e[n],r=o.visual;r&&Yn(r.options.zIndex)&&(o.options.animation=t.options.animation,o.createAnimation())}},e.prototype._setAnimationOptions=function(){var t,e=this.options,n=e.animation||{};if(e.isStacked){var o=this.seriesValueAxis(e.series[0]);t=o.getSlot(o.startValue())}else t=this.categoryAxis.getSlot(0);n.origin=new ze.geometry.Point(t.x1,t.y1),n.vertical=!e.invertAxes},e}(ls);T(Ms,{animation:{type:Jr}});var Ps=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),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this,n=e.options,o=e.value,r=e.owner,i=r.seriesValueAxis(n),s=i.getSlot(o.open,o.close),a=i.getSlot(o.low,o.high);s.x1=a.x1=t.x1,s.x2=a.x2=t.x2,this.realBody=s;var l=a.center().x,c=[];c.push([[l,a.y1],[l,s.y1]]),c.push([[l,s.y2],[l,a.y2]]),this.lines=c,this.box=a.clone().wrap(s),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 ze.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var n=ze.drawing.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:so(e.border.opacity,e.opacity)}),s(n),t.append(n),jt(e)&&t.append(this.createGradientOverlay(n,{baseColor:this.color},f({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,o){if(n)for(var r={stroke:{color:o.color||this.color,opacity:so(o.opacity,e.opacity),width:o.width,dashType:o.dashType,lineCap:"butt"}},i=0;i<n.length;i++){var a=ze.drawing.Path.fromPoints(n[i],r);s(a),t.append(a)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return Yn(e)||(e=new ze.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=ze.drawing.Path.fromRect(this.box.toRect(),{fill:{color:bn,opacity:0}
6,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(f({},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 lo(t.x2+Ir,Math.max(t.y1,e.y1)+Ir),align:{horizontal:on,vertical:yn}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(vo);T(Ps,{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:{}}}),f(Ps.prototype,cs),f(Ps.prototype,us);var js=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,n=e.length,o=0;o<n;o++)e[o].reflow(t[o])},e.prototype.addValue=function(t,e){var n,o=e.categoryIx,r=e.category,i=e.series,s=e.seriesIx,a=this,l=a.children,c=a.options,u=t.valueFields,p=this.splitValue(u),h=It(p),f=i.data[o],d=this.categoryPoints[o];d||(this.categoryPoints[o]=d=[]),h&&(n=this.createPoint(t,e));var v=l[o];v||(v=new Es({vertical:c.invertAxes,gap:c.gap,spacing:c.spacing,rtl:!c.invertAxes&&(this.chartService||{}).rtl}),this.append(v)),n&&(this.updateRange(u,e),v.append(n),n.categoryIx=o,n.category=r,n.series=i,n.seriesIx=s,n.owner=this,n.dataItem=f,n.noteText=t.fields.noteText),this.points.push(n),d.push(n)},e.prototype.pointType=function(){return Ps},e.prototype.createPoint=function(t,e){var n=e.categoryIx,o=e.category,r=e.series,i=e.seriesIx,s=this.pointType(),a=t.valueFields,l=f({},r),c=t.fields.color||r.color;l=this.evalPointOptions(l,a,o,n,r,i),r.type===ni&&a.open>a.close&&(c=t.fields.downColor||r.downColor||r.color),p(r.color)&&(c=l.color),l.vertical=!this.options.invertAxes;var u=new s(a,l);return u.color=c,u},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,o=this.splitValue(t),r=this.valueAxisRanges[n];r=this.valueAxisRanges[n]=r||{min:rn,max:sn},r=this.valueAxisRanges[n]={min:Math.min.apply(Math,o.concat([r.min])),max:Math.max.apply(Math,o.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}(ls);f(js.prototype,ms);var Ds=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),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,n,o=this,r=o.options,i=o.value,s=o.owner,a=s.seriesValueAxis(r);this.boxSlot=n=a.getSlot(i.q1,i.q3),this.realBody=n,this.reflowBoxSlot(t),this.whiskerSlot=e=a.getSlot(i.lower,i.upper),this.reflowWhiskerSlot(t);var l=a.getSlot(i.median);if(i.mean){var c=a.getSlot(i.mean);this.meanPoints=this.calcMeanPoints(t,c)}this.whiskerPoints=this.calcWhiskerPoints(n,e),this.medianPoints=this.calcMedianPoints(t,l),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,n=this.value,o=n.outliers||[],r=3*Math.abs(n.q3-n.q1),i=[],s=t.markers||{},a=0;a<o.length;a++){var l=o[a];s=l<n.q3+r&&l>n.q1-r?t.outliers:t.extremes;var c=f({},s.border);Yn(c.color)||(Yn(e.color)?c.color=e.color:c.color=new ze.Color(s.background).brightness(Rr).to
vendor: 7,011 bytes, line 6
6Hex());var u=new go({type:s.type,width:s.size,height:s.size,rotation:s.rotation,background:s.background,border:c,opacity:s.opacity});u.value=l,i.push(u)}return this.reflowOutliers(i),i},e.prototype.reflowOutliers=function(t){for(var e=this,n=this.owner.seriesValueAxis(this.options),o=this.box.center(),r=0;r<t.length;r++){var i=t[r].value,s=n.getSlot(i);e.options.vertical?s.move(o.x):s.move(void 0,o.y),e.box=e.box.wrap(s),t[r].reflow(s)}},e.prototype.mainVisual=function(e){for(var n=t.prototype.mainVisual.call(this,e),o=this.renderOutliers(e),r=0;r<o.length;r++){var i=o[r].getElement();i&&n.append(i)}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}(Ps);T(Ds,{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:Ur,type:Ke,background:bn,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:Ur,type:Ge,background:bn,border:{width:2,opacity:1},opacity:0}}),f(Ds.prototype,cs);var Rs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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}(Ds),Is=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e){var n,o=e.categoryIx,r=e.category,i=e.series,s=e.seriesIx,a=this,l=a.children,c=a.options,u=t.valueFields,p=this.splitValue(u),h=It(p),f=i.data[o],d=this.categoryPoints[o];d||(this.categoryPoints[o]=d=[]),h&&(n=this.createPoint(t,e));var v=l[o];v||(v=new Es({vertical:c.invertAxes,gap:c.gap,spacing:c.spacing,rtl:!c.invertAxes&&(this.chartService||{}).rtl}),this.append(v)),n&&(this.updateRange(u,e),v.append(n),n.categoryIx=o,n.category=r,n.series=i,n.seriesIx=s,n.owner=this,n.dataItem=f),this.points.push(n),d.push(n)},e.prototype.pointType=function(){return this.options.invertAxes?Rs:Ds},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,o=this.valueAxisRanges[n],r=this.splitValue(t).concat(this.filterOutliers(t.outliers));Yn(t.mean)&&(r=r.concat(t.mean)),o=this.valueAxisRanges[n]=o||{min:rn,max:sn},o=this.valueAxisRanges[n]={min:Math.min.apply(Math,r.concat([o.min])),max:Math.max.apply(Math,r.concat([o.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=[],o=0;o<e;o++){var r=t[o];Yn(r)&&null!==r&&n.push(r)}return n},e}(js),Fs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){var t=this.chart.seriesAxes(this.series),e=this.isVertical?t.y:t.x;return e},e}(is),Ls=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),e.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 o=t.value[e],r=e+"Value",i=e+"ErrorLow",s=e+"ErrorHigh",a=n.seriesIx,c=n.series,u=t.options.errorBars,p=n[i],h=n[s];if(l(o)){var f;l(p)&&l(h)&&(f={low:p,high:h}),u&&Yn(u[r])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][a]=this.seriesErrorRanges[e][a]||new Mr(u[r],c,e),f=this.seriesErrorRanges[e][a].getErrorRange(o,u[r])),f&&this.addPointErrorBar(f,t,e)}},e.prototype.addPointErrorBar=function(t,e,n){var o=t.low,r=t.high,i=e.series,s=e.options.errorBars,a=n===wn,l={};e[n+"Low"]=o,e[n+"High"]=r,e.errorBars=e.errorBars||[];var c=new Fs(o,r,a,this,i,s);e.errorBars.push(c),e.append(c),l[n]=o,this.updateRange(l,i),l[n]=r,this.updateRange(l,i)},e.prototype.addValue=function(t,e){var n=t.x,o=t.y,r=e.seriesIx,i=this.options.series[r],s=this.seriesMissingValues(i),a=this.seriesPoints[r],l=t;Ft(n)&&Ft(o)||(l=this.createMissingValue(l,s));var c;l&&(c=this.createPoint(l,e),c&&(Object.assign(c,e),this.addErrorBar(c,xn,e),this.addErrorBar(c,wn,e)),this.updateRange(l,e.series)),this.points.push(c),a.push(c)},e.prototype.seriesMissingValues=function(t){return t.missingValues},e.prototype.createMissingValue=function(){},e.prototype.updateRange=function(t,e){var n=this.chartService.intl,o=e.xAxis,r=e.yAxis,i=t.x,s=t.y,a=this.xAxisRanges[o],l=this.yAxisRanges[r];Ft(i)&&(a=this.xAxisRanges[o]=a||{min:rn,max:sn},c(i)&&(i=Q(n,i)),a.min=Math.min(a.min,i),a.max=Math.max(a.max,i)),Ft(s)&&(l=this.yAxisRanges[r]=l||{min:rn,max:sn},c(s)&&(s=Q(n,s)),l.min=Math.min(l.min,s),l.max=Math.max(l.max,s))},e.prototype.evalPointOptions=function(t,e,n){var o=n.series,r=n.seriesIx,i={defaults:o._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[r];Yn(s)||(this._evalSeries[r]=s=Et(t,{},i,!0));var a=t;return s&&(a=f({},t),Et(a,{value:e,series:o,dataItem:n.dataItem},i)),a},e.prototype.pointType=function(){return ps},e.prototype.pointOptions=function(t,e){var n=this.seriesOptions[e];if(!n){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=n=f({},o,{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,o=this.pointOptions(n,e.seriesIx),r=e.color||n.color;o=this.evalPointOptions(o,t,e),p(n.color)&&(r=o.color);var i=new ps(t,o);return i.color=r,this.append(i),i}
6,e.prototype.seriesAxes=function(t){var e=t.xAxis,n=t.yAxis,o=this.plotArea,r=e?o.namedXAxes[e]:o.axisX,i=n?o.namedYAxes[n]:o.axisY;if(!r)throw new Error("Unable to locate X axis with name "+e);if(!i)throw new Error("Unable to locate Y axis with name "+n);return{x:r,y:i}},e.prototype.reflow=function(t){var e=this,n=this.points,o=!this.options.clip,r=0;this.traverseDataPoints(function(t,i){var s=n[r++],a=e.seriesAxes(i.series),l=a.x.getSlot(t.x,t.x,o),c=a.y.getSlot(t.y,t.y,o);if(s)if(l&&c){var u=e.pointSlot(l,c);s.reflow(u)}else s.visible=!1}),this.box=t},e.prototype.pointSlot=function(t,e){return new co(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this,n=this,o=n.options.series,r=n.seriesPoints,i=0;i<o.length;i++){var s=o[i],a=r[i];a||(r[i]=[]);for(var l=0;l<s.data.length;l++){var c=e._bindPoint(s,i,l),u=c.valueFields,p=c.fields;t(u,f({pointIx:l,series:s,seriesIx:i,dataItem:s.data[l],owner:e},p))}}},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}(vo);T(Ls,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),f(Ls.prototype,ms,{_bindPoint:ls.prototype._bindPoint});var zs=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),e.prototype.constructor=e,e.prototype.createHighlight=function(){var t=this.options.highlight,e=t.border,n=this.options.markers,o=this.box.center(),r=(n.size+n.border.width+e.width)/2,i=new ze.drawing.Group,s=new ze.drawing.Circle(new ze.geometry.Circle([o.x,o.y+r/5+e.width/2],r+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:n.background, 7stops:[{offset:0,color:n.background,opacity:.3},{offset:1,color:n.background,opacity:0}]})}),a=new ze.drawing.Circle(new ze.geometry.Circle([o.x,o.y],r),{stroke:{color:e.color||new ze.Color(n.background).brightness(Rr).toHex(),width:e.width,opacity:e.opacity},fill:{color:n.background,opacity:t.opacity}});return i.append(s,a),i},e}(ps);zs.prototype.defaults=f({},zs.prototype.defaults,{labels:{position:Ue},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),zs.prototype.defaults.highlight.zIndex=void 0;var Bs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this._maxSize=sn,t.prototype._initFields.call(this)}
7,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 zs},e.prototype.createPoint=function(t,e){var n=e.series,o=n.data.length,r=e.pointIx*(jr/o),i={delay:r,duration:jr-r,type:ti},s=e.color||n.color;t.size<0&&n.negativeValues.visible&&(s=so(n.negativeValues.color,s));var a=f({labels:{animation:{delay:r,duration:jr-r}}},this.pointOptions(n,e.seriesIx),{markers:{type:Ge,border:n.border,opacity:n.opacity,animation:i}});a=this.evalPointOptions(a,t,e),p(n.color)&&(s=a.color),a.markers.background=s;var l=new zs(t,a);return l.color=s,this.append(l),l},e.prototype.updateBubblesSize=function(t){for(var e=this,n=this,o=n.options.series,r=Math.min(t.width(),t.height()),i=0;i<o.length;i++)for(var s=o[i],a=e.seriesPoints[i],l=s.minSize||Math.max(.02*r,10),c=s.maxSize||.2*r,u=l/2,p=c/2,h=Math.PI*u*u,d=Math.PI*p*p,v=d-h,y=v/e._maxSize,g=0;g<a.length;g++){var m=a[g];if(m){var b=Math.abs(m.value.size)*y,_=Math.sqrt((h+b)/Math.PI),x=so(m.options.zIndex,0),w=x+(1-_/p);f(m.options,{zIndex:w,markers:{size:2*_,zIndex:w},labels:{zIndex:w+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}(Ls);T(Bs,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var Ns=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(go);f(Ns.prototype,cs);var Hs=function(t){function e(e,n){t.call(this,n),this.aboveAxis=this.options.aboveAxis,this.color=n.color||bn,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options;this._rendered||(this._rendered=!0,Yn(this.value.target)&&(this.target=new Ns({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:yn,align:fn}),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,n=e.options,o=e.target,r=e.owner,i=n.invertAxes,s=r.seriesValueAxis(this.options),a=r.categorySlot(r.categoryAxis,n.categoryIx,s),l=s.getSlot(this.value.target),c=i?l:a,u=i?a:l;if(o){var p=new co(c.x1,u.y1,c.x2,u.y2);o.options.height=i?p.height():n.target.line.width,o.options.width=i?n.target.line.width:p.width(),o.reflow(p)}this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,n=ze.drawing.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:so(e.border.opacity,e.opacity)}),this.bodyVisual=n,s(n),this.visual.append(n)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=ze.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return ze.drawing.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}(vo);Hs.prototype.tooltipAnchor=Ts.prototype.tooltipAnchor,T(Hs,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}<br />Target: {1}"}}),f(Hs.prototype,cs),f(Hs.prototype,us);var Vs=function(t){function e(e,n){Lt(n),t.call(this,e,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,n=e.length,o=0;o<n;o++)e[o].reflow(t[o])},e.prototype.plotRange=function(t){var e=t.series,n=this.seriesValueAxis(e),o=this.categoryAxisCrossingValue(n);return[o,t.value.current||o]},e.prototype.createPoint=function(t,e){var n=e.categoryIx,o=e.category,r=e.series,i=e.seriesIx,s=this,a=s.options,l=s.children,c=t.valueFields,u=f({vertical:!a.invertAxes,overlay:r.overlay,categoryIx:n,invertAxes:a.invertAxes},r),h=t.fields.color||r.color;u=this.evalPointOptions(u,c,o,n,r,i),p(r.color)&&(h=u.color);var d=new Hs(c,u);d.color=h;var v=l[n];return v||(v=new Es({vertical:a.invertAxes,gap:a.gap,spacing:a.spacing,rtl:!a.invertAxes&&(this.chartService||{}).rtl}),this.append(v)),v.append(d),d},e.prototype.updateRange=function(t,e){var n=t.current,o=t.target,r=e.series.axis,i=this.valueAxisRanges[r];Yn(n)&&!isNaN(n)&&Yn(o&&!isNaN(o))&&(i=this.valueAxisRanges[r]=i||{min:rn,max:sn},i.min=Math.min(i.min,n,o),i.max=Math.max(i.max,n,o))},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){var e=t.value.current;return e>0},e.prototype.createAnimation=function(){var t=this,e=this.points;this._setAnimationOptions();for(var n=0;n<e.length;n++){var o=e[n];o.options.animation=t.options.animation,o.createAnimation()}},e}(ls);Vs.prototype._setAnimationOptions=Ms.prototype._setAnimationOptions,T(Vs,{animation:{type:Jr}});var Us=function(t){function e(e,n){t.call(this),this.chartService=e,this.options=f({},this.options,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getStyle=function(t,e){var n=t.background,o=t.border.color;if(e){var r=e.color||e.options.color;n=so(n,r),o=so(o,r)}var i=m(t.padding||{},"auto");return{backgroundColor:n,borderColor:o,font:t.font,color:t.color,opacity:t.opacity,borderWidth:v(t.border.width),paddingTop:v(i.top),paddingBottom:v(i.bottom),paddingLeft:v(i.left),paddingRight:v(i.right)}},e.prototype.show=function(t,e,n){t.format=e.format;var o=this.getStyle(e,n);t.style=o,!Yn(e.color)&&new ze.Color(o.backgroundColor).percBrightness()>180&&(t.className="k-chart-tooltip-inverse"),this.chartService.n
7otify(Yi,t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify(Xi),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(ze.Class);T(Us,{border:{width:1},opacity:1});var Gs=function(t){function e(e,n,o){t.call(this,e,o),this.crosshair=n,this.formatService=e.format,this.initAxisName()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initAxisName=function(){var t,e=this.crosshair.axis,n=e.plotArea;t=n.categoryAxis?e.getCategory?"categoryAxis":"valueAxis":e.options.vertical?"yAxis":"xAxis",this.axisName=t},e.prototype.showAt=function(t){var e=this,n=e.crosshair.axis,o=e.options,r=n[o.stickyMode?"getCategory":"getValue"](t),i=r;o.format?i=this.formatService.auto(o.format,r):n.options.type===We&&(i=this.formatService.auto(n.options.labels.dateFormats[n.options.baseUnit],r)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:i,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},e.prototype.hide=function(){this.chartService.notify(Xi,{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,n,o=this,r=o.crosshair,i=o.options,s=i.position,a=i.padding,l=!r.axis.options.vertical,c=r.line.bbox();return l?(t=Ue,s===Ve?(e=yn,n=c.bottomLeft().translate(0,a)):(e=Ve,n=c.topLeft().translate(0,-a))):(e=Ue,s===on?(t=fn,n=c.topLeft().translate(-a,0)):(t=on,n=c.topRight().translate(a,0))),{point:n,align:{horizontal:t,vertical:e}}
7},e}(Us);T(Gs,{padding:10});var qs=function(t){function e(e,n,o){t.call(this,o),this.axis=n,this.stickyMode=n instanceof $o;var r=this.options.tooltip;r.visible&&(this.tooltip=new Gs(e,this,f({},r,{stickyMode:this.stickyMode})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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,n=e.axis,o=e.point,r=n.options.vertical,i=this.getBox(),s=r?wn:xn,a=new ze.geometry.Point(i.x1,i.y1);if(t=r?new ze.geometry.Point(i.x2,i.y1):new ze.geometry.Point(i.x1,i.y2),o)if(this.stickyMode){var l=n.getSlot(n.pointCategoryIndex(o));a[s]=t[s]=l.center()[s]}else a[s]=t[s]=o[s];this.box=i,this.line.moveTo(a).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,n=e.pane.axes,o=n.length,r=e.options.vertical,i=e.lineBox().clone(),s=r?xn:wn,a=0;a<o;a++){var l=n[a];l.options.vertical!==r&&(t?t.wrap(l.lineBox()):t=l.lineBox().clone())}return i[s+1]=t[s+1],i[s+2]=t[s+2],i},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new ze.drawing.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}(vo);T(qs,{color:He,width:2,zIndex:-1,tooltip:{visible:!1}});var Ks=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),e.prototype.constructor=e,e.prototype.shouldClip=function(){for(var t=this.children,e=t.length,n=0;n<e;n++)if(t[n].options.clip===!0)return!0;return!1},e.prototype._clipBox=function(){return this.pane.chartsBox()},e.prototype.createVisual=function(){if(this.visual=new ze.drawing.Group({zIndex:0}),this.shouldClip()){var t=this.clipBox=this._clipBox(),e=t.toRect(),n=ze.drawing.Path.fromRect(e);s(n),this.visual.clip(n),this.unclipLabels()}},e.prototype.stackRoot=function(){return this},e.prototype.unclipLabels=function(){for(var t=this,e=t.children,n=t.clipBox,o=0;o<e.length;o++)for(var r=e[o].points||{},i=r.length,s=0;s<i;s++){var a=r[s];if(a&&a.visible!==!1&&a.overlapsBox&&a.overlapsBox(n))if(a.unclipElements)a.unclipElements();else{var l=a.label,c=a.note;l&&l.options.visible&&(l.alignToClipBox&&l.alignToClipBox(n),l.options.noclip=!0),c&&c.options.visible&&(c.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(vo);Ks.prototype.isStackRoot=!0;var Ws=function(t){function e(e){t.call(this,e),this.id=zt(),this.createTitle(),this.content=new vo,this.chartContainer=new Ks({},this),this.append(this.content),this.axes=[],this.charts=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createTitle=function(){var t=this.options.title;d(t)&&(t=f({},t,{align:t.position,position:yn})),this.title=To.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,e=this.parent;if(e){for(var n=0;n<this.axes.length;n++)e.removeAxis(t.axes[n]);for(var o=0;o<this.charts.length;o++)e.removeChart(t.charts[o])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},e.prototype.reflow=function(e){var n;to(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=[],o=[],r=0;r<t.length;r++)for(var i=t[r],s=i.options.vertical,a=s?n:o,l=0;l<e.length;l++)if(0===a.length){var c=e[l];s!==c.options.vertical&&Kn(a,i.createGridLines(c))}},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 t(){for(var e=this.axes,n=e.length,t=new co,o=0;o<n;o++){var r=e[o],i=r.options.vertical?wn:xn,s=r.lineBox();
7t[i+1]=s[i+1],t[i+2]=s[i+2]}if(0===t.x2)for(var a=this.parent.axes,l=a.length,c=0;c<l;c++){var u=a[c];if(!u.options.vertical){var p=u.lineBox();t.x1=p.x1,t.x2=p.x2}}return t},e.prototype.clipBox=function(){return this.chartContainer.clipBox},e.prototype.notifyRender=function(){var t=this.getService();t&&t.notify(Zi,{pane:new wr(this),index:this.paneIndex,name:this.options.name})},e}(yo),Ys=1;Ws.prototype.isStackRoot=!0,T(Ws,{zIndex:-1,shrinkToFit:!0,title:{align:on},visible:!0});var Xs=/area/i,Zs=function(t){function e(e,n,o){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=o,this.originalOptions=n,this.createPanes(),this.render(),this.createCrosshairs()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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(){function t(t,e){c(t.title)&&(t.title={text:t.title}),t.title=f({},e.title,t.title)}for(var e=this,n={title:{color:(this.options.title||{}).color}},o=[],r=this.options.panes||[],i=Math.max(r.length,1),s=0;s<i;s++){var a=r[s]||{};t(a,n);var l=new Ws(a);l.paneIndex=s,o.push(l),e.append(l)}this.panes=o},e.prototype.createCrosshairs=function(t){var e=this;void 0===t&&(t=this.panes);for(var n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.axes.length;r++){var i=o.axes[r];if(i.options.crosshair&&i.options.crosshair.visible){var s=new qs(e.chartService,i,i.options.crosshair);e.crosshairs.push(s),o.content.append(s)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,n=t.axes,o=e.length-1;o>=0;o--)for(var r=0;r<n.length;r++)if(e[o].axis===n[r]){e.splice(o,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,o=0;o<n.length;o++)if(n[o].options.name===t){e=n[o];break}return e||n[0]},e.prototype.findPointPane=function(t){for(var e,n=this.panes,o=0;o<n.length;o++)if(n[o].box.containsPoint(t)){e=n[o];break}return e},e.prototype.appendAxis=function(t){var e=this.findPane(t.options.pane);e.appendAxis(t),this.axes.push(t),t.plotArea=this},e.prototype.removeAxis=function(t){for(var e=this,n=[],o=0;o<this.axes.length;o++){var r=e.axes[o];t!==r?n.push(r):r.destroy()}this.axes=n},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=this,n=[],o=0;o<this.charts.length;o++){var r=e.charts[o];r!==t?n.push(r):r.destroy()}this.charts=n},e.prototype.addToLegend=function(t){for(var e=t.length,n=this.options.legend,o=n.labels||{},r=n.inactiveItems||{},i=r.labels||{},s=[],a=0;a<e;a++){var l=t[a],c=l.visible!==!1;if(l.visibleInLegend!==!1){var u=l.name,h=c?b(o):b(i)||b(o);h&&(u=h({text:Ft(u)?u:"",series:l}));var f=l._defaults,d=l.color;p(d)&&f&&(d=f.color);var v=void 0,y=void 0;c?(v={},y=d):(v={color:i.color,font:i.font},y=r.markers.color),Ft(u)&&""!==u&&s.push({text:u,labels:v,markerColor:y,series:l,active:c})}}Kn(n.items,s)},e.prototype.groupAxes=function(t){for(var e=[],n=[],o=0;o<t.length;o++)for(var r=t[o].axes,i=0;i<r.length;i++){var s=r[i];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,e=this.series,n={},o=0;o<e.length;o++){var r=e[o],i=t.seriesPaneName(r);n[i]?n[i].push(r):n[i]=[r]}return n},e.prototype.filterVisibleSeries=function(t){for(var e=[],n=0;n<t.length;n++){var o=t[n];o.visible!==!1&&e.push(o)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,n=this.panes,o=m(e.margin);this.box=t.clone().unpad(o),this.reflowPanes(),this.detachLabels(),this.reflowAxes(n),this.reflowCharts(n)},e.prototype.redraw=function(t){var e=this,n=[].concat(t);this.initSeries();var o=this.getRoot();o&&o.cleanGradients();for(var r=0;r<n.length;r++)e.removeCrosshairs(n[r]),n[r].empty();this.render(n),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(n),this.createCrosshairs(n);for(var i=0;i<n.length;i++)n[i].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var n=t.options,o=[].concat(n.axisCrossingValues||n.axisCrossingValue),r=e.length-o.length,i=o[0]||0,s=0;s<r;s++)o.push(i);return o},e.prototype.alignAxisTo=function(t,e,n,o){var r=t.getSlot(n,n,!0),i=t.options.reverse?2:1,s=e.getSlot(o,o,!0),a=e.options.reverse?2:1,l=t.box.translate(s[xn+a]-r[xn+i],s[wn+a]-r[wn+i]);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=this,o=t[0],r=e[0],i=this.axisCrossingValues(o,e),s=this.axisCrossingValues(r,t),a={},l={},c={},u={},p=0;p<e.length;p++){var h=e[p],f=h.pane,d=f.id,v=h.options.visible!==!1,y=Qt(t,f)||o,g=i;y!==o&&(g=n.axisCrossingValues(y,e)),n.alignAxisTo(h,y,s[p],g[p]),h.options._overlap||(ro(h.lineBox().x1)===ro(y.lineBox().x1)&&(a[d]&&h.reflow(h.box.alignTo(a[d].box,on).translate(-h.options.margin,
70)),v&&(a[d]=h)),ro(h.lineBox().x2)===ro(y.lineBox().x2)&&(h._mirrored||(h.options.labels.mirror=!h.options.labels.mirror,h._mirrored=!0),n.alignAxisTo(h,y,s[p],g[p]),l[d]&&h.reflow(h.box.alignTo(l[d].box,fn).translate(h.options.margin,0)),v&&(l[d]=h)),0!==p&&r.pane===h.pane&&(h.alignTo(r),h.reflow(h.box)))}for(var m=0;m<t.length;m++){var b=t[m],_=b.pane,x=_.id,w=b.options.visible!==!1,k=Qt(e,_)||r,S=s;k!==r&&(S=n.axisCrossingValues(k,t)),n.alignAxisTo(b,k,i[m],S[m]),b.options._overlap||(ro(b.lineBox().y1)===ro(k.lineBox().y1)&&(b._mirrored||(b.options.labels.mirror=!b.options.labels.mirror,b._mirrored=!0),n.alignAxisTo(b,k,i[m],S[m]),c[x]&&b.reflow(b.box.alignTo(c[x].box,yn).translate(0,-b.options.margin)),w&&(c[x]=b)),ro(b.lineBox().y2,qe)===ro(k.lineBox().y2,qe)&&(u[x]&&b.reflow(b.box.alignTo(u[x].box,Ve).translate(0,b.options.margin)),w&&(u[x]=b)),0!==m&&(b.alignTo(o),b.reflow(b.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,n=Jt(e),o=0,r=0;r<t.length;r++){var i=t[r];i.axes.length>0&&(o=Math.max(o,n.width()-i.contentBox.width()))}if(0!==o)for(var s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.box.shrink(o,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,n=0;n<t.length;n++){var o=t[n],r=o.axes,i=Math.max(0,Jt(r).height()-o.contentBox.height());if(0!==i){for(var s=0;s<r.length;s++){var a=r[s];a.options.vertical&&a.reflow(a.box.shrink(0,i))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,n=0,o=0;o<t.length;o++){var r=t[o],i=r.axes,s=r.contentBox;if(i.length>0){var a=Jt(i),l=Math.max(s.y1-a.y1,s.y2-a.y2);n=Math.max(n,s.x1-a.x1);for(var c=0;c<i.length;c++){var u=i[c];u.reflow(u.box.translate(0,l))}}}for(var p=0;p<e.length;p++){var h=e[p];h.reflow(h.box.translate(n,0))}},e.prototype.reflowAxes=function(t){for(var e=this,n=this.groupAxes(t),o=0;o<t.length;o++)e.reflowPaneAxes(t[o]);n.x.length>0&&n.y.length>0&&(this.alignAxes(n.x,n.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(n),this.alignAxes(n.x,n.y),this.shrinkAxisWidth(t)&&this.alignAxes(n.x,n.y),this.shrinkAxisHeight(t),this.alignAxes(n.x,n.y),this.shrinkAxisHeight(t)&&this.alignAxes(n.x,n.y),this.fitAxes(t))},e.prototype.autoRotateAxisLabels=function(t){for(var e,n=this,o=this,r=o.panes,i=$s(r),s=0;s<i.length;s++){var a=i[s];a.autoRotateLabels()&&(e=!0)}if(e){for(var l=0;l<r.length;l++)n.reflowPaneAxes(r[l]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(r))}},e.prototype.reflowPaneAxes=function(t){var e=t.axes,n=e.length;if(n>0)for(var o=0;o<n;o++)e[o].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,n=e.length,o=this.box,r=0;r<n;r++){var i=e[r].pane;i&&!k(i,t)||e[r].reflow(o)}},e.prototype.reflowPanes=function(){for(var t=this,e=t.box,n=t.panes,o=n.length,r=e.height(),i=o,s=0,a=e.y1,l=0;l<o;l++){var c=n[l],u=c.options.height;if(c.options.width=e.width(),c.options.height){if(u.indexOf&&u.indexOf("%")){var p=parseInt(u,10)/100;c.options.height=p*e.height()}c.reflow(e.clone()),r-=c.options.height}else s++}for(var h=0;h<o;h++){var f=n[h];f.options.height||(f.options.height=r/s)}for(var d=0;d<o;d++){var v=n[d],y=e.clone().move(e.x1,a);v.reflow(y),i--,a+=v.options.height}},e.prototype.backgroundBox=function(){for(var t,e=this.axes,n=e.length,o=0;o<n;o++)for(var r=e[o],i=0;i<n;i++){var s=e[i];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},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),n=0;n<e.length;n++)t.paths.push(ze.drawing.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=this.options.plotArea,n=e.opacity,o=e.background,r=e.border;void 0===r&&(r={}),te(o)&&(o=bn,n=0);var i=this._bgVisual=new ze.drawing.MultiPath({fill:{color:o,opacity:n},stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType},zIndex:-1});
7this.addBackgroundPaths(i),this.appendVisual(i)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,n=[];if(null!==t)for(var o=0;o<e.length;o++){var r=e[o];if("_navigator"!==r.pane.options.name){var i=e[o].categoryPoints[t];if(i&&i.length)for(var s=0;s<i.length;s++){var a=i[s];a&&Yn(a.value)&&null!==a.value&&n.push(a)}}}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=[],o=0;o<e.length;o++)for(var r=e[o],i=r.points,s=0;s<i.length;s++){var a=i[s];a&&a.visible!==!1&&t(a)&&n.push(a)}return n},e.prototype.findPoint=function(t){for(var e=this.charts,n=0;n<e.length;n++)for(var o=e[n],r=o.points,i=0;i<r.length;i++){var s=r[i];if(s&&s.visible!==!1&&t(s))return s}},e.prototype.paneByPoint=function(t){for(var e=this.panes,n=0;n<e.length;n++){var o=e[n];if(o.box.containsPoint(t))return o}},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=this,o=0,r=0;r<t.length;r++){var i=t[r],s=i.pane,a=Qt(e,s)||e[0],l=r+o,c=n.createLabelAxis(i,l,a);if(c){o++;var u=s.axes.indexOf(i)+o;s.appendAxisAt(c,u)}}},e.prototype.createLabelAxis=function(t,e,n){var o=t.options.labels,r=o.position,i=r!==Je&&r!==dn,s=o.visible;if(i||s===!1)return null;var a=this.groupAxes(this.panes),l=n.options.vertical?a.x:a.y,c=this.axisCrossingValues(n,l),u=r===Je,p=n.range(),h=u?p.max:p.min,f=eo(c[e],p.min,p.max);if(f-h===0)return null;c.splice(e+1,0,h),n.options.axisCrossingValues=c;var d=t.clone();return t.clear(),d.options.name=void 0,d.options.line.visible=!1,d.options.crosshair=void 0,d.options.notes=void 0,d.options.plotBands=void 0,d},e}(vo),$s=function(t){return t.reduce(function(t,e){return t.concat(e.axes)},[])};T(Zs,{series:[],plotArea:{margin:{}},background:"",border:{color:He,width:0},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var Js={hover:function(t,e){this._dispatchEvent(t,e,Fi)},click:function(t,e){this._dispatchEvent(t,e,Ii)}},Qs=function(t){function e(e,n,o){t.call(this);var r=n.canonicalFields(e),i=n.valueFields(e),s=n.sourceFields(e,r),a=this._seriesFields=[],l=o.query(e.type),c=e.aggregate||l;this._series=e,this._binder=n;for(var u=0;u<r.length;u++){var h=r[u],f=void 0;if(d(c))f=c[h];else{if(0!==u&&!k(h,i))break;f=c}f&&a.push({canonicalName:h,name:s[u],transform:p(f)?f:Sr[f]})}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aggregatePoints=function(t,e){var n=this,r=this,i=r._series,s=r._seriesFields,a=this._bindPoints(t||[]),c=a.dataItems[0],u={};if(c&&!l(c)&&!o(c)){var p=function(){};p.prototype=c,u=new p}for(var h=0;h<s.length;h++){var f=s[h],v=n._bindField(a.values,f.canonicalName),y=f.transform(v,i,a.dataItems,e);if(!(null===y||!d(y)||Yn(y.length)||y instanceof Date)){u=y;break}Yn(y)&&ee(f.name,u,y)}return u},e.prototype._bindPoints=function(t){for(var e=this,n=e._binder,o=e._series,r=[],i=[],s=0;s<t.length;s++){var a=t[s];r.push(n.bindPoint(o,a)),i.push(o.data[a])}return{values:r,dataItems:i}},e.prototype._bindField=function(t,e){for(var n=[],o=t.length,r=0;r<o;r++){var i=t[r],s=i.valueFields,a=void 0;a=Yn(s[e])?s[e]:i.fields[e],n.push(a)}return n},e}(ze.Class),ta=function(t){function e(){t.call(this),this._defaults={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){for(var n=this,o=0;o<t.length;o++)n._defaults[t[o]]=e},e.prototype.query=function(t){return this._defaults[t]},e}(ze.Class);ta.current=new ta;var ea=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createLabel=function(){var t=this.options.labels,e=f({},t,t.from),n=f({},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=b(t),o=this.pointData();return e=n?n(o):this.formatValue(t.format),new Os(e,f({vertical:this.options.vertical},t),o)},e.prototype.reflow=function(t){this.render();var e=this,n=e.labelFrom,o=e.labelTo,r=e.value;this.box=t,n&&(n.options.aboveAxis=r.from>r.to,n.reflow(t)),o&&(o.options.aboveAxis=r.to>r.from,o.reflow(t)),this.note&&this.note.reflow(t)},e}(Ts);ea.prototype.defaults=f({},ea.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var na=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return ea},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,o=t.from,r=t.to,i=this.valueAxisRanges[n];null!==t&&l(o)&&l(r)&&(i=this.valueAxisRanges[n]=i||{min:rn,max:sn},i.min=Math.min(i.min,o),i.max=Math.max(i.max,o),i.min=Math.min(i.min,r),i.max=Math.max(i.max,r))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}(Ms);na.prototype.plotLimits=ls.prototype.plotLimits;var oa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aliasFor=function(){return this.parent},e}(ps),ra="auto",ia="{0}",sa="{1}",aa=function(t){function e(e,n){t.call(this),this.value=e,this.options=n,this.aboveAxis=so(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){if(!this._rendered){this._rendered=!0;var t=this.options,e=t.markers,n=t.labels,o=this.value,r=this.fromPoint=new oa(o,f({},this.options,{labels:n.from,markers:e.from})),i=this.toPoint=new oa(o,f({},this.options,{labels:n.to,markers:e.to}));this.copyFields(r),this.copyFields(i),this.append(r),this.append(i)}},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 ze.drawing.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(),e=!t||t.overlaps(this.box);if(e){var n,o,r,i=this.box,s=i.center(),a=on;return this.options.vertical?(n=s.x,o=i.y1-Ir,r=Ve):(n=i.x2+Ir,o=s.y,r=Ue),{point:new lo(n,o),align:{horizontal:a,vertical:r}}}},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:ia})),t.to&&t.to.format||(t.to=Object.assign({},t.to,{format:sa})))},e.prototype.positionLabels=function(t,e){var n=this.options,o=n.labels,r=n.vertical;if(o.position===ra){var i,s;r?e.y1<=t.y1?(s=Wr,i=Yr):(s=Yr,i=Wr):e.x1<=t.x1?(s=on,i=fn):(s=fn,i=on),o.from&&o.from.position||(this.fromPoint.options.labels.position=i),o.to&&o.to.position||(this.toPoint.options.labels.position=s)}},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}(vo);f(aa.prototype,cs),f(aa.prototype,us),aa.prototype.defaults={markers:{visible:!1,background:bn,size:Ur,type:Ge,border:{width:2},opacity:1},labels:{visible:!1,margin:m(3),padding:m(4),animation:{type:Dr,delay:jr},position:ra},notes:{label:{}},highlight:{markers:{border:{color:bn,width:2}},zIndex:en},tooltip:{format:"{0} - {1}"}};var la=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments; 8return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),t},e.prototype.createStroke=function(t){var e=new ze.drawing.Path(t),n=new ze.drawing.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}(_s),ca=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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){var e=new _r;return e.process(this.toGeometryPoints(t))},e}(la),ua=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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())),t.reverse()),t},e}(la);f(ua.prototype,fs);var pa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return aa},e.prototype.createPoint=function(t,e){var n=e.categoryIx,o=e.category,r=e.series,i=e.seriesIx,s=t.valueFields;if(!Ft(s.from)&&!Ft(s.to)){if(this.seriesMissingValues(r)!==Gr)return null;s={from:0,to:0}}var a=this.pointOptions(r,i);a=this.evalPointOptions(a,s,o,n,r,i);var l=t.fields.color||r.color;p(r.color)&&(l=a.color);var c=new aa(s,a);return c.color=l,this.append(c),c},e.prototype.createSegment=function(t,e,n){var o,r=(e.line||{}).style;return new(o="smooth"===r?ca:"step"===r?ua:la)(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),o=t.getSlot(e[1],e[1],!this.options.clip);if(n&&o)return{from:n,to:o}},e.prototype.pointSlot=function(t,e){var n,o,r=e.from,i=e.to;return this.options.invertAxes?(n=new co(r.x1,t.y1,r.x2,t.y2),o=new co(i.x1,t.y1,i.x2,t.y2)):(n=new co(t.x1,r.y1,t.x2,r.y2),o=new co(t.x1,i.y1,t.x2,i.y2)),{from:n,to:o}},e.prototype.addValue=function(e,n){var o=e.valueFields;l(o.from)||(o.from=o.to),l(o.to)||(o.to=o.from),t.prototype.addValue.call(this,e,n)},e.prototype.updateRange=function(t,e){if(null!==t&&l(t.from)&&l(t.to)){var n=e.series.axis,o=this.valueAxisRanges[n]=this.valueAxisRanges[n]||{min:rn,max:sn},r=t.from,i=t.to;o.min=Math.min(o.min,r,i),o.max=Math.max(o.max,r,i)}},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 o=t[n];o&&(e.push((o.fromPoint||{}).marker),e.push((o.toPoint||{}).marker))}return e.concat(this._segments)},e}(ls);f(pa.prototype,ys,ms);var ha=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this,n=e.options,o=e.value,r=e.owner,i=r.seriesValueAxis(n),s=[],a=[],l=[],c=i.getSlot(o.low,o.high),u=i.getSlot(o.open,o.open
8),p=i.getSlot(o.close,o.close);u.x1=p.x1=c.x1=t.x1,u.x2=p.x2=c.x2=t.x2;var h=c.center().x;s.push([u.x1,u.y1]),s.push([h,u.y1]),a.push([h,p.y1]),a.push([p.x2,p.y1]),l.push([h,c.y1]),l.push([h,c.y2]),this.lines=[s,a,l],this.box=c.clone().wrap(u.clone().wrap(p)),this.reflowNote()},e.prototype.createBody=function(){},e}(Ps),fa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return ha},e}(js),da=function(t){function e(e,n,o){t.call(this),this.from=e,this.to=n,this.series=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linePoints=function(){var t=this.from,e=this,n=e.from.box,o=e.to.box,r=[];if(t.isVertical){var i=t.aboveAxis?n.y1:n.y2;r.push([n.x1,i],[o.x2,i])}else{var s=t.aboveAxis?n.x2:n.x1;r.push([s,n.y1],[s,o.y2])}return r},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},n=ze.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});s(n),this.visual.append(n)},e}(vo);T(da,{animation:{type:Dr,delay:jr}});var va=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this,n=this.options.series,o=At(n),r=!this.options.invertAxes,i=0;i<n.length;i++)for(var s=n[i],a=0,c=0,u=0;u<o;u++){var p=Or.current.bindPoint(s,u),h=p.valueFields.value,f=p.fields.summary,d=a,v=void 0;f?"total"===f.toLowerCase()?(p.valueFields.value=a,d=0,v=a):(p.valueFields.value=c,v=d-c,c=0):l(h)&&(c+=h,a+=h,v=a),t(p,{category:e.categoryAxis.categoryAt(u),categoryIx:u,series:s,seriesIx:i,total:a,runningTotal:c,from:d,to:v,isVertical:r})}},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,e=this.options.series,n=this.seriesPoints,o=this.segments=[],r=0;r<e.length;r++){var i=e[r],s=n[r];if(s)for(var a=void 0,l=0;l<s.length;l++){var c=s[l];if(c&&a){var u=new da(a,c,i);o.push(u),t.append(u)}a=c}}},e}(Ms),ya=[$r,xi,yi,Oi],ga=[ai,Si].concat(ya),ma=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(t){var e=this;if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Ss,t.length>0){this.invertAxes=k(t[0].type,[Jr,ei,Si,xi,Oi,gi,si,wi]);for(var n=0;n<t.length;n++){var o=t[n].stack;if(o&&"100%"===o.type){e.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 $o?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,n=this.groupSeriesByPane(),o=0;o<t.length;o++){var r=t[o],i=n[r.options.name||"default"]||[];e.addToLegend(i);var s=e.filterVisibleSeries(i);if(s)for(var a=e.groupSeriesByCategoryAxis(s),l=0;l<a.length;l++)e.createChartGroup(a[l],r)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Ut(t,[$r,xi]),e),this.createRangeAreaChart(Ut(t,[yi,Oi]),e),this.createBarChart(Ut(t,[oi,Jr]),e),this.createRangeBarChart(Ut(t,[mi,gi]),e),this.createBulletChart(Ut(t,[ei,ki]),e),this.createCandlestickChart(Ut(t,ni),e),this.createBoxPlotChart(Ut(t,[Qr,wi]),e),this.createOHLCChart(Ut(t,li),e),this.createWaterfallChart(Ut(t,[Ci,si]),e),this.createLineChart(Ut(t,[ai,Si]),e)},e.prototype.aggregateCategories=function(t){var e=this,n=this.srcSeries||this.series,o=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var r=0;r<n.length;r++){var i=n[r],s=e.seriesCategoryAxis(i),a=e.findPane(s.options.pane),l=Vt(s.options.type,We);i=(l||i.categoryField)&&k(a,t)?e.aggregateSeries(i,s):e.filterSeries(i,s),o.push(i)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=n,this.series=o},e.prototype.filterSeries=function(t,e){var n=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,n),!l(e.options.min)&&!l(e.options.max))return t;var o=e.currentRangeIndices(),r=k(t.type,ga),i=f({},t);return i.data=(i.data||[]).slice(o.min,o.max+1),r&&Zt(i,o,n,function(n){return{item:t.data[n],category:e.categoryAt(n,!0),categoryIx:n-o.min}},function(e){return Yn(t.data[e])}),i},e.prototype.clearSeriesPointsCache=function(){this._seriesPointsCache={}},e.prototype.seriesSourcePoints=function(t,e){var n=this,o=t.index+";"+e.categoriesHash();if(this._seriesPointsCache[o])return this._currentPointsCache[o]=this._seriesPointsCache[o],this._seriesPointsCache[o];var r=e.options,i=r.srcCategories,s=Vt(r.type,We),a=t.data,l=s?Gt:Tt,c=[];s||e.mapCategories();for(var u=0;u<a.length;u++){var p=void 0;if(p=t.categoryField?l(t.categoryField,a[u],n.chartService.intl):i[u],Yn(p)&&null!==p){var h=e.totalIndex(p);c[h]=c[h]||{items:[],category:p},c[h].items.push(u)}}return this._currentPointsCache[o]=c,c},e.prototype.aggregateSeries=function(t,e){var n=t.data;if(!n.length)return t;for(var o=this.seriesSourcePoints(t,e),r=f({},t),i=new Qs(f({},t),Or.current,ta.current),s=r.data=[],a=e.options.dataItems||[],l=e.currentRangeIndices(),c=function(t){var n=t-l.min,r=o[t];if(r||(r=o[t]={}),r.categoryIx=n,!r.item){var s=e.categoryAt(t,!0);r.category=s,r.item=i.aggregatePoints(r.items,s)}return r},u=l.min;u<=l.max;u++){var p=c(u);s[p.categoryIx]=p.item,p.items&&p.items.length&&(a[p.categoryIx]=p.item)}return k(r.type,ga)&&Zt(r,l,e.totalCount(),c,function(t){return o[t]}),e.options.dataItems=a,r},e.prototype.appendChart=function(e,n){var o=e.options.series,r=this.seriesCategoryAxis(o[0]),i=r.options.categories,s=Math.max(0,At(o)-i.length);if(s>0)for(i=r.options.categories=r.options.categories.slice(0);s--;)i.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,o=[].concat(e.valueAxis),r=x(o,function(t){return t.name===n})[0],i=e.panes||[{}],s=(i[0]||{}).name||"default",a=(r||{}).pane||s;return a},e.prototype.seriesCategoryAxis=function(t){var e=t.categoryAxis,n=e?this.namedCategoryAxes[e]:this.categoryAxis;
8if(!n)throw new Error("Unable to locate category axis with name "+e);return n},e.prototype.stackableChartOptions=function(t,e){var n=t.stack,o=n&&"100%"===n.type,r=e.options.clip;return{isStacked:n,isStacked100:o,clip:r}},e.prototype.groupSeriesByCategoryAxis=function(t){for(var e=[],n={},o=0;o<t.length;o++){var r=t[o].categoryAxis||"$$default$$";n.hasOwnProperty(r)||(n[r]=!0,e.push(r))}for(var i=[],s=0;s<e.length;s++){var a=e[s],l=oe(t,a,s);0!==l.length&&i.push(l)}return i},e.prototype.createBarChart=function(t,e){if(0!==t.length){var n=t[0],o=new Ms(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:n.gap,spacing:n.spacing},this.stackableChartOptions(n,e)));this.appendChart(o,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var n=t[0],o=new na(this,{series:t,invertAxes:this.invertAxes,gap:n.gap,spacing:n.spacing});this.appendChart(o,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var n=t[0],o=new Vs(this,{series:t,invertAxes:this.invertAxes,gap:n.gap,spacing:n.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var n=t[0],o=new bs(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(n,e)));this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var n=t[0],o=new ks(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(n,e)));this.appendChart(o,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var n=new pa(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],o=new fa(this,{invertAxes:this.invertAxes,gap:n.gap,series:t,spacing:n.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var n=t[0],o=new js(this,{invertAxes:this.invertAxes,gap:n.gap,series:t,spacing:n.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var n=t[0],o=new Is(this,{invertAxes:this.invertAxes,gap:n.gap,series:t,spacing:n.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var n=t[0],o=new va(this,{series:t,invertAxes:this.invertAxes,gap:n.gap,spacing:n.spacing});this.appendChart(o,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var n=this,o=Ut(this.series,Ti),r=0;r<this.series.length;r++){var i=n.series[r];if(k(i.type,ya)){var s=i.line;s&&s.style===Zr&&o.push(i)}}for(var a=0;a<o.length;a++){var l=o[a].categoryAxis||"";if(l===t||!l&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var n=this.series,o=0;o<n.length;o++){var r=n[o].categoryAxis||"";if((r===t||!r&&0===e)&&n[o].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof $o&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this,n=this.invertAxes,o=[].concat(this.options.categoryAxis),r=[],i=0;i<o.length;i++){var s=o[i],a=e.findPane(s.pane);if(k(a,t)){var l=s.name,c=s.categories;void 0===c&&(c=[]),s=f({vertical:n,reverse:!n&&e.chartService.rtl,axisCrossingValue:n?rn:0},s),Yn(s.justified)||(s.justified=e.isJustified()),e.axisRequiresRounding(l,i)&&(s.justified=!1);var u=void 0;if(u=qt(s,c[0])?new sr(s,e.chartService):new $o(s,e.chartService),o[i].categories=u.options.srcCategories,l){if(e.namedCategoryAxes[l])throw new Error("Category axis with name "+l+" is already defined");e.namedCategoryAxes[l]=u}u.axisIndex=i,r.push(u),e.appendAxis(u)}}var p=this.categoryAxis||r[0];this.categoryAxis=p,n?this.axisY=p:this.axisX=p},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++){var n=t[e];if(!k(n.type,ya))return!1}return!0},e.prototype.createValueAxes=function(t){var e=this,n=this.valueAxisRangeTracker,o=n.query(),r=[].concat(this.options.valueAxis),i=this.invertAxes,s={vertical:!i,reverse:i&&this.chartService.rtl},a=[];this.stack100&&(s.roundToMajorUnit=!1,s.labels={format:"P0"});for(var l=0;l<r.length;l++){var c=r[l],u=e.findPane(c.pane);
8if(k(u,t)){var p=c.name,h=Vt(c.type,$i)?{min:.1,max:1}:{min:0,max:1},d=n.query(p)||o||h;0===l&&d&&o&&(d.min=Math.min(d.min,o.min),d.max=Math.max(d.max,o.max));var v=void 0;v=Vt(c.type,$i)?pr:lr;var y=new v(d.min,d.max,f({},s,c),e.chartService);if(p){if(e.namedValueAxes[p])throw new Error("Value axis with name "+p+" is already defined");e.namedValueAxes[p]=y}y.axisIndex=l,a.push(y),e.appendAxis(y)}}var g=this.valueAxis||a[0];this.valueAxis=g,i?this.axisX=g:this.axisY=g},e.prototype._dispatchEvent=function(t,e,n){var o=t._eventCoordinates(e),r=new lo(o.x,o.y),i=this.pointPane(r),s=[],a=[];if(i){for(var l=i.axes,c=0;c<l.length;c++){var u=l[c];u.getValue?Bt(a,u.getValue(r)):Bt(s,u.getCategory(r))}0===s.length&&Bt(s,this.categoryAxis.getCategory(r)),s.length>0&&a.length>0&&t.trigger(n,{element:Jn(e),originalEvent:e,category:Kt(s),value:Kt(a)})}},e.prototype.pointPane=function(t){for(var e=this.panes,n=0;n<e.length;n++){var o=e[n];if(o.contentBox.containsPoint(t))return o}},e.prototype.updateAxisOptions=function(t,e){ne(this.options,t,e),ne(this.originalOptions,t,e)},e}(Zs);T(ma,{categoryAxis:{},valueAxis:{}}),f(ma.prototype,Js);var ba=function(t){function e(){t.call(this),this._points=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._points=[]},e.prototype.show=function(t){var e=this,n=[].concat(t);this.hide();for(var o=0;o<n.length;o++){var r=n[o];r&&r.toggleHighlight&&r.hasHighlight()&&(e.togglePointHighlight(r,!0),e._points.push(r))}},e.prototype.togglePointHighlight=function(t,e){var n=(t.options.highlight||{}).toggle;if(n){var o={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:re,visual:t.highlightVisual(),show:e};n(o),o._defaultPrevented||t.toggleHighlight(e)}else t.toggleHighlight(e)},e.prototype.hide=function(){for(var t=this,e=this._points;e.length;)t.togglePointHighlight(e.pop(),!1)},e.prototype.isHighlighted=function(t){for(var e=this._points,n=0;n<e.length;n++){var o=e[n];if(t===o)return!0}return!1},e}(ze.Class),_a=function(t){function e(e,n){t.call(this),this.plotArea=e,this.options=f({},this.options,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.start=function(t){return this._active=ie(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,xn).concat(this._panAxes(t,wn));if(e.length)return this.axisRanges=e,se(e)}},e.prototype.end=function(){var t=this._active;return this._active=!1,t},e.prototype.pan=function(){var t=this,e=t.plotArea,n=t.axisRanges;if(n.length){for(var o=0;o<n.length;o++){var r=n[o];e.updateAxisOptions(r.axis,r.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var n=this.plotArea,o=-t[e].delta,r=(this.options.lock||"").toLowerCase(),i=[];if(0!==o&&(r||"").toLowerCase()!==e)for(var s=n.axes,a=0;a<s.length;a++){var l=s[a];if(e===xn&&!l.options.vertical||e===wn&&l.options.vertical){var c=l.pan(o);c&&(c.limitRange=!0,i.push({axis:l,range:c}))}}return i},e}(ze.Class);_a.prototype.options={key:"none",lock:"none"};var xa=function(t){function e(e,n){t.call(this),this.chart=e,this.options=f({},this.options,n),this.createElement()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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){g(this._marquee,t)},e.prototype.start=function(t){if(ie(t,this.options.key)){var e=this.chart,n=e._eventCoordinates(t),o=this._zoomPane=e._plotArea.paneByPoint(n),r=o?o.chartsBox().clone():null;if(o&&r){var i=this._elementOffset();return r.translate(i.left,i.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=g(t,["paddingLeft","paddingTop"]),n=e.paddingLeft,o=e.paddingTop,r=Zn(t);return{left:n+r.left,top:o+r.top}},e.prototype.move=function(t){var e=this._zoomPane;e&&this.setStyles(this._selectionPosition(t))},e.prototype.end=function t(e){var n=this._zoomPane;if(n){var o=this._elementOffset(),r=this._selectionPosition(e);r.left-=o.left,r.top-=o.top;var i={x:r.left,y:r.top}
8,t={x:r.left+r.width,y:r.top+r.height};return this._updateAxisRanges(i,t),this.removeElement(),delete this._zoomPane,se(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 o=t[n];e.updateAxisOptions(o.axis,o.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(),o=[],r=this._zoomPane.axes,i=0;i<r.length;i++){var s=r[i],a=s.options.vertical;if((n!==xn||a)&&(n!==wn||!a)&&Yn(s.axisIndex)){var l=s.pointsRange(t,e);l&&o.push({axis:s,range:l})}}this.axisRanges=o},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,n={x:t.x.startLocation,y:t.y.startLocation},o=t.x.location,r=t.y.location,i=(this.options.lock||"").toLowerCase(),s=Math.min(n.x,o),a=Math.min(n.y,r),l=Math.abs(n.x-o),c=Math.abs(n.y-r);return i===xn&&(s=e.x1,l=e.width()),i===wn&&(a=e.y1,c=e.height()),o>e.x2&&(l=e.x2-n.x),o<e.x1&&(l=n.x-e.x1),r>e.y2&&(c=e.y2-n.y),r<e.y1&&(c=n.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:l,height:c}},e}(ze.Class);xa.prototype.options={key:"shift",lock:"none"};var wa=function(t){function e(e,n){t.call(this),this.chart=e,this.options=f({},this.options,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t){for(var e=(this.options.lock||"").toLowerCase(),n=[],o=this.chart._plotArea.axes,r=0;r<o.length;r++){var i=o[r],s=i.options.vertical;if((e!==xn||s)&&(e!==wn||!s)&&i.zoomRange){var a=i.zoomRange(-t);a&&n.push({axis:i,range:a})}}return this.axisRanges=n,se(n)},e.prototype.zoom=function(){var t=this.axisRanges,e=this.chart._plotArea;if(t&&t.length&&e.updateAxisOptions){for(var n=0;n<t.length;n++){var o=t[n];e.updateAxisOptions(o.axis,o.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(ze.Class),ka=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),e.prototype.constructor=e,e.prototype.render=function(){var t=this,e=t.children,n=t.options,o=n.vertical;this.visual=new ze.drawing.Layout(null,{spacing:o?0:n.spacing,lineSpacing:o?n.spacing:0,orientation:o?"vertical":"horizontal",reverse:n.rtl,alignItems:o?"start":"center"});for(var r=0;r<e.length;r++){var i=e[r];i.reflow(new co),i.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();e?this.box=R(e):this.box=new co},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(vo),Sa=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),e.prototype.constructor=e,e.prototype.createContainer=function(){this.container=new wo({vertical:!1,wrap:!1,align:Ue,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new go(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return f({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=f({},t.labels);this.container.append(new Co(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},n=this._itemOverlay=ze.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:bn,opacity:0},stroke:null,cursor:e.style||e});this.appendVisual(n)},e.prototype.click=function(t,e){var n=this.eventArgs(e);!t.trigger(Ei,n)&&e&&"contextmenu"===e.type&&e.preventDefault()},e.prototype.over=function(t,e){var n=this.eventArgs(e);return t.trigger(Ai,n)||t._legendItemHover(n.seriesIndex,n.pointIndex),!0},e.prototype.out=function(t,e){t._unsetActivePoint(),t.trigger(Mi,this.eventArgs(e))},e.prototype.eventArgs=function(t){var e=this.options;return{element:Jn(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,n=this.options,o=n.visual;o?(this.visual=o({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}(yo),Oa="horizontal",Ca="pointer",Ta="custom",Ea=function(t){function e(e,n){void 0===n&&(n={}),t.call(this,e),this.chartService=n,k(this.options.position,[yn,fn,Ve,on,Ta])||(this.options.position=fn),this.createContainer(),this.createItems()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainer=function(){var t=this.options,e=t.position,n=t.align,o=e,r=Ue;e===Ta?o=on:k(e,[yn,Ve])?(o="start"===n?on:"end"===n?fn:Ue,r=e):n&&("start"===n?r=yn:"end"===n&&(r=Ve)),this.container=new yo({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:r,align:o,zIndex:t.zIndex,shrinkToFit:!0}),this.append(this.container)},e.prototype.createItems=function(){var t=this.getService(),e=this.options,n=this.isVertical(),o=new ka({vertical:n,spacing:e.spacing,rtl:t.rtl},t),r=e.items;e.reverse&&(r=r.slice(0).reverse());for(var i=r.length,s=0;s<i;s++){var a=r[s];o.append(new Sa(f({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,a)))}o.render(),this.container.append(o)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,n=t.position,o=n===Ta&&e!==Oa||(Yn(e)?e!==Oa:k(n,[on,fn]));return o},e.prototype.hasItems=function(){return this.container.children[0].children.length>0},e.prototype.reflow=function(t){var e=this.options,n=t.clone();return this.hasItems()?void(e.position===Ta?(this.containerCustomReflow(n),this.box=n):this.containerReflow(n)):void(this.box=n)},e.prototype.containerReflow=function(t){var e=this,n=e.options,o=e.container,r=n.position,i=n.width,s=n.height,a=r===yn||r===Ve?xn:wn,l=this.isVertical(),c=t.clone(),u=t.clone();r!==on&&r!==fn||(u.y1=c.y1=0),l&&s?(u.y2=u.y1+s,u.align(c,wn,o.options.vAlign)):!l&&i&&(u.x2=u.x1+i,u.align(c,xn,o.options.align)),o.reflow(u),u=o.box;var p=u.clone();(n.offsetX||n.offsetY)&&(u.translate(n.offsetX,n.offsetY),this.container.reflow(u)),p[a+1]=t[a+1],p[a+2]=t[a+2],this.box=p},e.prototype.containerCustomReflow=function(t){var e=this,n=e.options,o=e.container,r=n.offsetX,i=n.offsetY,s=n.width,a=n.height,l=this.isVertical(),c=t.clone();l&&a?c.y2=c.y1+a:!l&&s&&(c.x2=c.x1+s),o.reflow(c),c=o.box,o.reflow(new co(r,i,r+c.width(),i+c.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e}(vo);T(Ea,{position:fn,items:[],offsetX:0,offsetY:0,margin:m(5),padding:m(5),border:{color:He,width:0},item:{cursor:Ca,spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:on,vAlign:Ue}});var Aa=function(t){function e(){t.call(this),this._registry=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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 o,r=this._registry,i=r[0],s=0;s<r.length;s++){var a=r[s];if(o=Ut(t,a.seriesTypes),o.length>0){i=a;break}}return new i.type(o,e,n)},e}(ze.Class);
8Aa.current=new Aa;var Ma=3,Pa=.1,ja=function(t){function e(e,n,o,r){t.call(this);var i=e.element;this.options=f({},this.options,o),this.chart=e,this.observer=r,this.chartElement=i,this.categoryAxis=n,this._dateAxis=this.categoryAxis instanceof sr,this.initOptions(),this.visible=this.options.visible&&i.offsetHeight,this.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),e.prototype.constructor=e,e.prototype.onPane=function(t){return this.categoryAxis.pane===t},e.prototype.createElements=function(){var t=this.options,e=this.wrapper=ae("k-selector");g(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var n=this.selection=ae("k-selection");this.leftMask=ae("k-mask"),this.rightMask=ae("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(n),n.appendChild(ae("k-selection-bg"));var o=this.leftHandle=ae("k-handle k-left-handle"),r=this.rightHandle=ae("k-handle k-right-handle");o.appendChild(ae()),r.appendChild(ae()),n.appendChild(o),n.appendChild(r),this.chartElement.appendChild(e);var i=g(n,["borderLeftWidth","borderRightWidth","height"]),s=g(o,"height").height,a=g(r,"height").height;t.selection={border:{left:i.borderLeftWidth,right:i.borderRightWidth}},g(o,{top:(i.height-s)/2}),g(r,{top:(i.height-a)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){if(this.options.mousewheel!==!1){this._mousewheelHandler=this._mousewheel.bind(this);var t;Wn(this.wrapper,(t={},t[ns]=this._mousewheelHandler,t))}this._domEvents=Ln.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,e=t.options,n=t.categoryAxis,o=n.pane.chartsBox(),r=this.chart.chartService.intl;this._dateAxis&&f(e,{min:Q(r,e.min),max:Q(r,e.max),from:Q(r,e.from),to:Q(r,e.to)});var i=g(this.chartElement,["paddingLeft","paddingTop"]),s=i.paddingLeft,a=i.paddingTop;this.options=f({},{width:o.width(),height:o.height()+Pa,padding:{left:s,top:a},offset:{left:o.x1+s,top:o.y1+a},from:e.min,to:e.max},e)},e.prototype.destroy=function(){if(this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper){if(this._mousewheelHandler){var t;io(this.wrapper,(t={},t[ns]=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=Jn(t);if(!this._state&&n){this.chart._unsetActivePoint(),this._state={moveTarget:le(n)||n,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};var o=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger(Gi,o)&&(this._state=null)}},e.prototype._press=function(t){var e;e=this._state?this._state.moveTarget:le(Jn(t)),e&&r(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this,n=e._state,o=e.options,r=e.categoryAxis,i=n.range,s=n.moveTarget,a=r.options.reverse,l=this._index(o.from),c=this._index(o.to),u=this._index(o.min),p=this._index(o.max),h=n.startLocation-t.x.location,f={from:i.from,to:i.to},d=i.to-i.from,v=g(this.wrapper,"width").width/(r.categoriesCount()-1),y=Math.round(h/v)*(a?-1:1);if(s){var m=w(s,"k-left-handle"),b=w(s,"k-right-handle");w(s,"k-selection k-selection-bg")?(i.from=Math.min(Math.max(u,l-y),p-d),i.to=Math.min(i.from+d,p)):m&&!a||b&&a?(i.from=Math.min(Math.max(u,l-y),p-1),i.to=Math.max(i.from+1,i.to)):(m&&a||b&&!a)&&(i.to=Math.min(Math.max(u+1,c-y),p),i.from=Math.min(i.to-1,i.from)),i.from===f.from&&i.to===f.to||(this.move(i.from,i.to),this.trigger(qi,this._rangeEventArgs(i)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&i(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger(Ki,this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this,n=e.options,o=e.categoryAxis,r=this.chart._eventCoordinates(t),i=o.pointCategoryIndex(new lo(r.x,o.box.y1)),s=this._index(n.from),a=this._index(n.to),l=this._index(n.min),c=this._index(n.max),u=a-s,p=s+u/2,h={},f=3===t.event.which,d=Math.round(p-i);this._state||f||(this.chart._unsetActivePoint(),o.options.justified||d--,h.from=Math.min(Math.max(l,s-d),c-u),h.to=Math.min(h.from+u,c),this._start(t),this._state&&(this._state.range=h,this.trigger(qi,this._rangeEventArgs(h)),this._end()))},e.prototype._mousewheel=function(t){var e=this,n=C(t);if(this._start({target:this.selection 9}),this._state){var o=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(n)>1&&(n*=Ma),this.options.mousewheel.reverse&&(n*=-1),this.expand(n)&&this.trigger(qi,{axis:this.categoryAxis.options,delta:n,originalEvent:t,from:this._value(o.from),to:this._value(o.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(function(){e._end()},os)}},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(Gi,n)?this._state=null:t.preventDefault()},e.prototype._gestureend=function(){this._state&&(this.trigger(Ki,this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){var e=this,n=e.chart,o=e._state,r=e.options,i=e.categoryAxis,s=o.range,a=n._toModelCoordinates(t.touches[0].x.location).x,l=n._toModelCoordinates(t.touches[1].x.location).x,c=Math.min(a,l),u=Math.max(a,l);t.preventDefault(),s.from=i.pointCategoryIndex(new lo(c))||r.min,s.to=i.pointCategoryIndex(new lo(u))||r.max,this.move(s.from,s.to),this.trigger(qi,this._rangeEventArgs(s))},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),e>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,o=this.categoryAxis.options.reverse,r=n.offset,i=n.padding,s=n.selection.border,a=o?e:t,l=o?t:e,c="x"+(o?2:1),u=this._slot(a),p=ro(u[c]-r.left+i.left);g(this.leftMask,{width:p}),g(this.selection,{left:p}),u=this._slot(l);var h=ro(n.width-(u[c]-r.left+i.left));g(this.rightMask,{width:h});var f=n.width-h;f!==n.width&&(f+=s.right),g(this.rightMask,{left:f}),g(this.selection,{width:Math.max(n.width-(p+h)-s.right,0)})},e.prototype.set=function(t,e){var n=this.options,o=this._index(n.min),r=this._index(n.max),i=eo(this._index(t),o,r),s=eo(this._index(e),i+1,r);n.visible&&this.move(i,s),n.from=this._value(i),n.to=this._value(s)},e.prototype.expand=function(t){var e=this.options,n=this._index(e.min),o=this._index(e.max),r=e.mousewheel.zoom,i=this._index(e.from),s=this._index(e.to),a={from:i,to:s},l=f({},a);if(this._state&&(a=this._state.range),r!==fn&&(a.from=eo(eo(i-t,0,s-1),n,o)),r!==on&&(a.to=eo(eo(s+t,a.from+1,o),n,o)),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}(ze.Class);T(ja,{visible:!0,mousewheel:{zoom:"both"},min:sn,max:rn});var Da=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.show=function(e){if(e&&e.tooltipAnchor&&(!this._current||this._current!==e)){var n=f({},this.options,e.options.tooltip),o=e.tooltipAnchor();o?(this._current=e,t.prototype.show.call(this,{point:e,anchor:o},n,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(Us),Ra=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),e.prototype.constructor=e,e.prototype.showAt=function(t,e){var n=x(t,function(t){var e=t.series.tooltip,n=e&&e.visible===!1;return!n});if(n.length>0){var o=n[0],r=this.plotArea.categoryAxis.getSlot(o.categoryIx),i=e?this._slotAnchor(e,r):this._defaultAnchor(o,r);this.show({anchor:i,shared:!0,points:t,category:o.category,categoryText:this.formatService.auto(this.options.categoryFormat,o.category),series:this.plotArea.series},this.options)}},e.prototype._slotAnchor=function(t,e){var n=this.plotArea.categoryAxis,o={horizontal:"left",vertical:"center"};return n.options.vertical||(t.x=e.center().x),{point:t,align:o}},e.prototype._defaultAnchor=function(t,e){var n,o=t.owner.pane.chartsBox(),r=this.plotArea.categoryAxis.options.vertical,i=o.center(),s=e.center(),a={horizontal:"center",vertical:"center"};return n=r?new lo(i.x,s.y):new lo(s.x,i.y),{point:n,align:a}},e}(Us);T(Ra,{categoryFormat:"{0:d}"});var Ia=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this,e=t.element,n=t.options,o=e.bbox();if(o){this.origin=n.origin;var r=n.vertical?wn:xn,i=this.fromScale=new ze.geometry.Point(1,1);i[r]=Fr,e.transform(ze.geometry.transform().scale(i.x,i.y))}else this.abort()},e.prototype.step=function(t){var e=S(this.fromScale.x,1,t),n=S(this.fromScale.y,1,t);this.element.transform(ze.geometry.transform().scale(e,n,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(ze.drawing.Animation);
9T(Ia,{duration:jr}),ze.drawing.AnimationFactory.current.register(Jr,Ia);var Fa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(ze.geometry.transform().scale(Fr,Fr,t))},e.prototype.step=function(t){this.element.transform(ze.geometry.transform().scale(t,t,this.center))},e}(ze.drawing.Animation);T(Fa,{easing:"easeOutElastic"}),ze.drawing.AnimationFactory.current.register(ti,Fa);var La=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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}(ze.drawing.Animation);T(La,{duration:200,easing:"linear"}),ze.drawing.AnimationFactory.current.register(Dr,La);var za=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.element.transform(ze.geometry.transform().scale(Fr,Fr,this.options.center))},e.prototype.step=function(t){this.element.transform(ze.geometry.transform().scale(t,t,this.options.center))},e}(ze.drawing.Animation);T(za,{easing:"easeOutElastic",duration:jr}),ze.drawing.AnimationFactory.current.register(ci,za);var Ba=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,n){var o,r=e.style;return new(o=r===Xr?vs:hs)(t,e,n)},e.prototype.animationPoints=function(){var e=t.prototype.animationPoints.call(this);return e.concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===Gr){var n={x:t.x,y:t.y};return Ft(n.x)||(n.x=0),Ft(n.y)||(n.y=0),n}},e}(Ls);f(Ba.prototype,ys);var Na=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new Ss,this.yAxisRangeTracker=new Ss},e.prototype.render=function(t){var e=this;void 0===t&&(t=this.panes);for(var n=this.groupSeriesByPane(),o=0;o<t.length;o++){var r=t[o],i=n[r.options.name||"default"]||[];e.addToLegend(i);var s=e.filterVisibleSeries(i);s&&(e.createScatterChart(Ut(s,bi),r),e.createScatterLineChart(Ut(s,_i),r),e.createBubbleChart(Ut(s,ti),r))}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,o=[].concat(e.xAxis),r=x(o,function(t){return t.name===n})[0],i=t.yAxis,s=[].concat(e.yAxis),a=x(s,function(t){return t.name===i})[0],l=e.panes||[{}],c=l[0].name||"default",u=(r||{}).pane||(a||{}).pane||c;return u},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new Ls(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new Ba(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new Bs(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,n){for(var o=t.name,r=e?this.namedYAxes:this.namedXAxes,i=e?this.yAxisRangeTracker:this.xAxisRangeTracker,s=f({reverse:!e&&this.chartService.rtl},t,{vertical:e}),a=Vt(s.type,$i),l=i.query(),c=a?{min:.1,max:1}:{min:0,max:1},u=i.query(o)||l||c,p=[s.min,s.max],h=this.series,d=0;d<h.length;d++){var v=h[d],y=v[e?"yAxis":"xAxis"];if(y===s.name||0===n&&!y){var g=Or.current.bindPoint(v,0).valueFields;p.push(g[e?"y":"x"]);break}}0===n&&l&&(u.min=Math.min(u.min,l.min),u.max=Math.max(u.max,l.max));for(var m,b=0;b<p.length;b++)if(p[b]instanceof Date){m=!0;break}var _;_=Vt(s.type,We)||!s.type&&m?cr:a?pr:lr;var x=new _(u.min,u.max,s,this.chartService);if(x.axisIndex=n,o){if(r[o])throw new Error((e?"Y":"X")+" axis with
9name "+o+" is already defined");r[o]=x}return this.appendAxis(x),x},e.prototype.createAxes=function(t){for(var e=this,n=this.options,o=[].concat(n.xAxis),r=[],i=[].concat(n.yAxis),s=[],a=0;a<o.length;a++){var l=e.findPane(o[a].pane);k(l,t)&&r.push(e.createXYAxis(o[a],!1,a))}for(var c=0;c<i.length;c++){var u=e.findPane(i[c].pane);k(u,t)&&s.push(e.createXYAxis(i[c],!0,c))}this.axisX=this.axisX||r[0],this.axisY=this.axisY||s[0]},e.prototype._dispatchEvent=function(t,e,n){for(var o=t._eventCoordinates(e),r=new lo(o.x,o.y),i=this.axes,s=i.length,a=[],l=[],c=0;c<s;c++){var u=i[c],p=u.options.vertical?l:a,h=u.getValue(r);null!==h&&p.push(h)}a.length>0&&l.length>0&&t.trigger(n,{element:Jn(e),originalEvent:e,x:Kt(a),y:Kt(l)})},e.prototype.updateAxisOptions=function(t,e){var n=t.options.vertical,o=this.groupAxes(this.panes),r=(n?o.y:o.x).indexOf(t);ce(this.options,r,n,e),ce(this.originalOptions,r,n,e)},e}(Zs);T(Na,{xAxis:{},yAxis:{}}),f(Na.prototype,Js);var Ha=function(t){function e(e,n,o){t.call(this,o),this.value=e,this.sector=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options.labels,e=this.owner.chartService,n=this.value;if(!this._rendered&&this.visible!==!1){this._rendered=!0;var o=b(t),r=this.pointData();if(o?n=o(r):t.format&&(n=e.format.auto(t.format,n)),t.visible&&(n||0===n)){if(t.position===Ue||t.position===Qi){if(!t.color){var i=new ze.Color(this.options.color).percBrightness();i>180?t.color=He:t.color=bn}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 Co(n,f({},t,{align:Ue,vAlign:"",animation:{type:Dr,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,e=t.options.labels,n=t.label,o=this.sector.clone(),r=e.distance,i=o.middle();if(n){var s,a=n.box.height(),l=n.box.width();if(e.position===Ue)o.radius=Math.abs((o.radius-a)/2)+a,s=o.point(i),n.reflow(new co(s.x,s.y-a/2,s.x,s.y));else if(e.position===Qi)o.radius=o.radius-a/2,s=o.point(i),n.reflow(new co(s.x,s.y-a/2,s.x,s.y));else{var c;s=o.clone().expand(r).point(i),s.x>=o.center.x?(c=s.x+l,n.orientation=fn):(c=s.x-l,n.orientation=on),n.reflow(new co(c,s.y-a,s.x,s.y))}}},e.prototype.createVisual=function(){var e=this,n=this,o=n.sector,r=n.options;if(t.prototype.createVisual.call(this),this.value)if(r.visual){var i=(o.startAngle+180)%360,s=r.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new ze.geometry.Point(o.center.x,o.center.y),radius:o.radius,innerRadius:o.innerRadius,startAngle:i,endAngle:i+o.angle,options:r,sender:this.getSender(),createVisual:function(){var t=new ze.drawing.Group;return e.createSegmentVisual(t),t}});s&&this.visual.append(s)}else this.createSegmentVisual(this.visual)},e.prototype.createSegmentVisual=function(t){var e=this,n=e.sector,o=e.options,r=o.border||{},i=r.width>0?{stroke:{color:r.color,width:r.width,opacity:r.opacity,dashType:r.dashType}}:{},s=o.color,a={color:s,opacity:o.opacity},l=this.createSegment(n,f({fill:a,stroke:{opacity:o.opacity},zIndex:o.zIndex},i));t.append(l),jt(o)&&t.append(this.createGradientOverlay(l,{baseColor:s,fallbackFill:a},f({center:[n.center.x,n.center.y],innerRadius:n.innerRadius,radius:n.radius,userSpace:!0},o.overlay)))},e.prototype.createSegment=function(t,e){return e.singleSegment?new ze.drawing.Circle(new ze.geometry.Circle(new ze.geometry.Point(t.center.x,t.center.y),t.radius),e):fo.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this,n=e.options,o=e.sector.center;f(n,{animation:{center:[o.x,o.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,f({},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;
9return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new ze.geometry.Point(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},e.prototype.tooltipAnchor=function(){var t=this.sector.clone().expand(Ir),e=t.middle(),n=t.point(e);return{point:n,align:ue(e+180)}},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}(vo),Va=ro(oo(30),Ze),Ua=ro(oo(60),Ze);T(Ha,{color:bn,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:Ye,margin:m(.5),align:Ge,zIndex:1,position:es},animation:{type:ci},highlight:{visible:!0,border:{width:1}},visible:!0}),f(Ha.prototype,cs);var Ga={createLegendItem:function(t,e,n){var o=this.options.legend||{},r=o.labels||{},i=o.inactiveItems||{},s=i.labels||{};if(n&&n.visibleInLegend!==!1){var a=n.visible!==!1,l=a?b(r):b(s)||b(r),c=n.category;l&&(c=l({text:c,series:n.series,dataItem:n.dataItem,percentage:n.percentage,value:t}));var u,p;a?(u={},p=e.color):(u={color:s.color,font:s.font},p=(i.markers||{}).color),Ft(c)&&""!==c&&this.legendItems.push({active:a,pointIndex:n.index,text:c,series:n.series,markerColor:p,labels:u})}}},qa=70,Ka=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),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.traverseDataPoints=function(t){var e=this,n=this,o=n.options,r=n.plotArea.options.seriesColors;void 0===r&&(r=[]);for(var i=r.length,s=o.series,a=s.length,l=0;l<a;l++){var c=s[l],u=c.data,h=Ht(c),f=h.total,d=h.points,v=h.count,y=360/f,g=void 0;isFinite(y)||(g=360/v);var m=void 0;m=Yn(c.startAngle)?c.startAngle:o.startAngle,l!==a-1&&c.labels.position===es&&(c.labels.position=Ue);for(var b=0;b<d.length;b++){var _=d[b];if(_){var x=_.fields,w=_.value,k=_.visible,S=0!==w?g||w*y:0,O=1!==u.length&&Boolean(x.explode);p(c.color)||(c.color=x.color||r[b%i]),t(_.valueFields.value,new uo(null,0,0,m,S),{owner:e,category:Yn(x.category)?x.category:"",index:b,series:c,seriesIx:l,dataItem:u[b],percentage:0!==f?w/f:0,explode:O,visibleInLegend:x.visibleInLegend,visible:k,zIndex:a-l,animationDelay:e.animationDelay(b,l,a)}),k!==!1&&(m+=S)}}}},e.prototype.evalSegmentOptions=function(t,e,n){var o=n.series;Et(t,{value:e,series:o,dataItem:n.dataItem,category:n.category,percentage:n.percentage},{defaults:o._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,n){var o=f({},n.series,{index:n.index});if(this.evalSegmentOptions(o,t,n),this.createLegendItem(t,o,n),n.visible!==!1){var r=new Ha(t,e,o);Object.assign(r,n),this.append(r),this.points.push(r)}},e.prototype.reflow=function(t){var e=this,n=e.options,o=e.points,r=e.seriesConfigs;void 0===r&&(r=[]);var i=o.length,s=t.clone(),a=5,l=Math.min(s.width(),s.height()),c=l/2,u=l-.85*l,p=new co(s.x1,s.y1,s.x1+l,s.y1+l),h=p.center(),f=s.center(),d=n.series.length,v=[],y=[],g=so(n.padding,u);this.targetBox=t,g=g>c-a?c-a:g,p.translate(f.x-h.x,f.y-h.y);for(var m=c-g,b=new lo(m+p.x1+g,m+p.y1+g),_=0;_<i;_++){var x=o[_],w=x.sector,k=x.seriesIx;if(w.radius=m,w.center=b,r.length){var S=r[k];w.innerRadius=S.innerRadius,w.radius=S.radius}k===d-1&&x.explode&&(w.center=w.clone().setRadius(.15*w.radius).point(w.middle())),x.reflow(p);var O=x.label;O&&O.options.position===es&&k===d-1&&(O.orientation===fn?y.push(O):v.push(O))}v.length>0&&(v.sort(this.labelComparator(!0)),this.leftLabelsReflow(v)),y.length>0&&(y.sort(this.labelComparator(!1)),this.rightLabelsReflow(y)),this.box=p},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=to(this.points),n=e.sector,o=t.length-1,r=n.radius+e.options.labels.distance,i=[],s=t[0].box,a=ro(s.y1-(n.center.y-r-s.height()-s.height()/2));i.push(a);for(var l=0;l<o;l++){var c=t[l+1].box;s=t[l].box,a=ro(c.y1-s.y2),i.push(a)}
9return a=ro(n.center.y+r-t[o].box.y2-t[o].box.height()/2),i.push(a),i},e.prototype.distributeLabels=function(t,e){for(var n,o,r,i=this,s=t.length,a=0;a<s;a++)for(r=-t[a],n=o=a;r>0&&(n>=0||o<s);)r=i._takeDistance(t,a,--n,r),r=i._takeDistance(t,a,++o,r);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,n,o){var r=o;if(t[n]>0){var i=Math.min(t[n],r);r-=i,t[n]-=i,t[e]+=i}return r},e.prototype.reflowLabels=function(t,e){var n,o=this,r=to(this.points),i=r.sector,s=r.options.labels,a=e.length,l=s.distance,c=i.center.y-(i.radius+l)-e[0].box.height();t[0]+=2;for(var u=0;u<a;u++){var p=e[u],h=p.box;c+=t[u],n=o.hAlignLabel(h.x2,i.clone().expand(l),c,c+h.height(),p.orientation===fn),p.orientation===fn?(s.align!==Ge&&(n=i.radius+i.center.x+l),p.reflow(new co(n+h.width(),c,n,c))):(s.align!==Ge&&(n=i.center.x-i.radius-l),p.reflow(new co(n-h.width(),c,n,c))),c+=h.height()}},e.prototype.createVisual=function(){var e=this,n=this,o=n.options.connectors,r=n.points,i=r.length,s=4;t.prototype.createVisual.call(this),this._connectorLines=[];for(var a=0;a<i;a++){var l=r[a],c=l.sector,u=l.label,p=c.middle(),h=(l.options.connectors||{}).color||o.color;if(u){var f=new ze.drawing.Path({stroke:{color:h,width:o.width},animation:{type:Dr,delay:l.animationDelay}});if(u.options.position===es){var d=u.box,v=c.center,y=c.point(p),g=new lo(d.x1,d.center().y),m=void 0,b=void 0,_=void 0;y=c.clone().expand(o.padding).point(p),f.moveTo(y.x,y.y),u.orientation===fn?(b=new lo(d.x1-o.padding,d.center().y),_=pe(v,y,g,b),g=new lo(b.x-s,b.y),_=_||g,_.x=Math.min(_.x,g.x),e.pointInCircle(_,c.center,c.radius+s)||_.x<c.center.x?(m=c.center.x+c.radius+s,l.options.labels.align!==oi?m<g.x?f.lineTo(m,y.y):f.lineTo(y.x+2*s,y.y):f.lineTo(m,y.y),f.lineTo(g.x,b.y)):(_.y=b.y,f.lineTo(_.x,_.y))):(b=new lo(d.x2+o.padding,d.center().y),_=pe(v,y,g,b),g=new lo(b.x+s,b.y),_=_||g,_.x=Math.max(_.x,g.x),e.pointInCircle(_,c.center,c.radius+s)||_.x>c.center.x?(m=c.center.x-c.radius-s,l.options.labels.align!==oi?m>g.x?f.lineTo(m,y.y):f.lineTo(y.x-2*s,y.y):f.lineTo(m,y.y),f.lineTo(g.x,b.y)):(_.y=b.y,f.lineTo(_.x,_.y))),f.lineTo(b.x,b.y),e._connectorLines.push(f),e.visual.append(f)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),this.options.series.find(function(t){return t.autoFit})){var e=this.targetBox.toRect();ze.drawing.fit(this.visual,e);var n=this.visual.transform();if(n){ze.drawing.align([this.visual],e,"center");var o=this.box.toRect().transformCopy(n);n.matrix().f+=e.center().y-o.center().y}}},e.prototype.labelComparator=function(t){var e=t?-1:1;return function(t,n){var o=(t.parent.sector.middle()+270)%360,r=(n.parent.sector.middle()+270)%360;return(o-r)*e}},e.prototype.hAlignLabel=function(t,e,n,o,r){var i=e.radius,s=e.center,a=s.x,l=s.y,c=Math.min(Math.abs(l-n),Math.abs(l-o));return c>i?t:a+Math.sqrt(i*i-c*c)*(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 t*qa},e.prototype.stackRoot=function(){return this},e}(vo);T(Ka,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),f(Ka.prototype,Ga),Ka.prototype.isStackRoot=!0;var Wa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],n=new Ka(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),Kn(this.options.legend.items,e.legendItems)},e}(Zs),Ya=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowLabel=function(){var e=this,n=e.options.labels,o=e.label,r=this.sector.clone(),i=r.middle();if(o){var s=o.box.height();
9if(n.position===Ue){r.radius-=(r.radius-r.innerRadius)/2;var a=r.point(i);o.reflow(new co(a.x,a.y-s/2,a.x,a.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return fo.current.createRing(t,e)},e}(Ha);T(Ya,{overlay:{gradient:"roundedGlass"},labels:{position:Ue},animation:{type:ci}}),f(Ya.prototype,cs);var Xa=50,Za=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e,n){var o=f({},n.series,{index:n.index});if(this.evalSegmentOptions(o,t,n),this.createLegendItem(t,o,n),t&&n.visible!==!1){var r=new Ya(t,e,o);Object.assign(r,n),this.append(r),this.points.push(r)}},e.prototype.reflow=function(e){var n=this,o=this.options,r=e.clone(),i=5,s=Math.min(r.width(),r.height()),a=s/2,l=s-.85*s,c=o.series,u=c.length,p=so(o.padding,l);p=p>a-i?a-i:p;for(var h,f=a-p,d=0,v=0;v<u;v++){var y=c[v];0===v&&Yn(y.holeSize)&&(h=y.holeSize,f-=y.holeSize),Yn(y.size)?f-=y.size:d++,Yn(y.margin)&&v!==u-1&&(f-=y.margin)}if(!Yn(h)){var g=(a-p)/(u+.75);h=.75*g,f-=h}var m,b,_=h,x=0;this.seriesConfigs=[];for(var w=0;w<u;w++){var k=c[w];m=so(k.size,f/d),_+=x,b=_+m,n.seriesConfigs.push({innerRadius:_,radius:b}),x=k.margin||0,_=b}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,n){return t*Xa+jr*(e+1)/(n+1)},e}(Ka);T(Za,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var $a=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],n=new Za(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(n)},e}(Wa),Ja=.15,Qa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.valueAxisRangeTracker=new Ss},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.options.reverse?e.max:e.min,o=t.getSlot(n),r=this.polarAxis.getSlot(0).center,i=t.box.translate(r.x-o.x1,r.y-o.y1);t.reflow(i)},e.prototype.createValueAxis=function(){var t,e,n=this.valueAxisRangeTracker,o=n.query(),r=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});r.type===$i?(t=gr,e={min:.1,max:1}):(t=yr,e={min:0,max:1});var i=n.query(name)||o||e;i&&o&&(i.min=Math.min(i.min,o.min),i.max=Math.max(i.max,o.max));var s=new t(i.min,i.max,r,this.chartService);this.valueAxis=s,this.appendAxis(s)},e.prototype.reflowAxes=function(){var t=this,e=t.options.plotArea,n=t.valueAxis,o=t.polarAxis,r=t.box,i=Math.min(r.width(),r.height())*Ja,s=m(e.padding||{},i),a=r.clone().unpad(s),l=a.clone();l.y2=l.y1+Math.min(l.width(),l.height()),l.align(a,wn,Ue);var c=l.clone().shrink(0,l.height()/2);o.reflow(l),n.reflow(c);var u=n.lineBox().height()-n.box.height();n.reflow(n.box.unpad({top:u})),this.axisBox=l,this.alignAxes(l)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(Zs),tl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var n=t.center.y-e.y1,o=lo.onCircle(t.center,t.startAngle,n);return new co(o.x,o.y,o.x,o.y)},e}(Ls);T(tl,{clip:!1});var el=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ba);el.prototype.pointSlot=tl.prototype.pointSlot,T(el,{clip:!1});var nl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this._polarAxisCenter();t.lineTo(e.x,e.y)},e.prototype._polarAxisCenter=function(){var t=this.parent.plotArea.polarAxis,e=t.box.center();return e},e.prototype.strokeSegments=function(){var t=this._strokeSegments;if(!t){var e=this._polarAxisCenter(),n=new _r(!1),o=this.points();o.push(e),t=this._strokeSegments=n.process(o),t.pop()}return t},e}(ws),ol=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis,n=e.box.center(),o=new ze.geometry.Segment([n.x,n.y]);t.segments.unshift(o),t.segments.push(o)},e}(_s),rl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,n){var o,r=(e.line||{}).style;return o=r===Xr?new nl(t,e,n):new ol(t,e,n)},e.prototype.createMissingValue=function(t,e){var n;return Ft(t.x)&&e!==qr&&(n={x:t.x,y:t.y},e===Gr&&(n.y=0)),n},e.prototype.seriesMissingValues=function(t){return t.missingValues||Gr},e.prototype._hasMissingValuesGap=function(){for(var t=this,e=this.options.series,n=0;n<e.length;n++)if(t.seriesMissingValues(e[n])===Kr)return!0},e.prototype.sortPoints=function(t){var e=this;if(t.sort(he),this._hasMissingValuesGap())for(var n=0;n<t.length;n++){var o=t[n];if(o){var r=o.value;Ft(r.y)||e.seriesMissingValues(o.series)!==Kr||delete t[n]}}return t},e}(el),il=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new dr(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return f(t,{majorGridLines:{type:Be},minorGridLines:{type:Be}},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),Zs.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];
9this.createLineChart(Ut(t,[pi]),e),this.createScatterChart(Ut(t,[hi]),e),this.createAreaChart(Ut(t,[ui]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var n=new el(this,{series:t});this.appendChart(n,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var n=new tl(this,{series:t});this.appendChart(n,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var n=new rl(this,{series:t});this.appendChart(n,e)}},e.prototype._dispatchEvent=function(t,e,n){var o=t._eventCoordinates(e),r=new lo(o.x,o.y),i=this.axisX.getValue(r),s=this.axisY.getValue(r);null!==i&&null!==s&&t.trigger(n,{element:Jn(e),x:i,y:s})},e.prototype.createCrosshairs=function(){},e}(Qa);T(il,{xAxis:{},yAxis:{}}),f(il.prototype,Js);var sl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var n=t.center.y-e.y1,o=lo.onCircle(t.center,t.middle(),n);return new co(o.x,o.y,o.x,o.y)},e.prototype.createSegment=function(t,e,n){var o,r=e.style;o=r===Xr?vs:hs;var i=new o(t,e,n);return t.length===e.data.length&&(i.options.closed=!0),i},e}(bs);T(sl,{clip:!1,limitPoints:!1});var al=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(ws),ll=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(_s),cl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,n,o){var r,i,s,a=this.options.isStacked,l=(e.line||{}).style;return a&&n>0&&o&&(i=o.linePoints.slice(0),r=o),l===Xr?(s=new al(t,e,n,r,i),s.options.closed=!0):(t.push(t[0]),s=new ll(t,e,n,r,i)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||Gr},e}(sl),ul=function(t){function e(e,n){t.call(this,e,null,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ya);T(ul,{overlay:{gradient:"none"},labels:{distance:10}});var pl=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Rt:Dt}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this,n=e.options,o=e.children,r=n.gap,i=n.spacing,s=o.length,a=s+r+i*(s-1),l=t.angle/a,c=t.startAngle+l*(r/2);this.forEach(o,function(e){var n=t.clone();n.startAngle=c,n.angle=l,e.sector&&(n.radius=e.sector.radius),e.reflow(n),e.sector=n,c+=l+l*i})},e}(vo);T(pl,{gap:1,spacing:0});var hl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this,n=e.options.reverse,o=e.children,r=o.length,i=n?r-1:0,s=n?-1:1;this.box=new co;for(var a=i;a>=0&&a<r;a+=s){var l=o[a].sector;l.startAngle=t.startAngle,l.angle=t.angle}},e}(vo),fl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return ul},e.prototype.clusterType=function(){return pl},e.prototype.stackType=function(){return hl},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var n=t.clone(),o=t.center.y;return n.radius=o-e.y1,n.innerRadius=o-e.y2,n},e.prototype.reflowPoint=function(t,e){ 10t.sector=e,t.reflow()},e.prototype.createAnimation=function(){this.options.animation.center=this.box.toRect().center(),t.prototype.createAnimation.call(this)},e}(Ms);fl.prototype.reflow=ls.prototype.reflow,T(fl,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var dl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new fr(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&&f(t,{majorGridLines:{type:Be},minorGridLines:{type:Be}}),this._isStacked100&&f(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),f(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){ma.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){ma.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(Ut(t,[fi]),e),this.createLineChart(Ut(t,[vi]),e),this.createBarChart(Ut(t,[di]),e)},e.prototype.chartOptions=function(t){var e={series:t},n=t[0];if(n){var o=this.filterVisibleSeries(t),r=n.stack;e.isStacked=r&&o.length>1,e.isStacked100=r&&"100%"===r.type&&o.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var n=new cl(this,this.chartOptions(t));this.appendChart(n,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var n=new sl(this,this.chartOptions(t));this.appendChart(n,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var n=t[0],o=this.chartOptions(t);o.gap=n.gap,o.spacing=n.spacing;var r=new fl(this,o);this.appendChart(r,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,n){var o=t._eventCoordinates(e),r=new lo(o.x,o.y),i=this.categoryAxis.getCategory(r),s=this.valueAxis.getValue(r);null!==i&&null!==s&&t.trigger(n,{element:Jn(e),category:i,value:s})},e.prototype.createCrosshairs=function(){},e}(Qa);f(dl.prototype,Js,{appendChart:ma.prototype.appendChart,aggregateSeries:ma.prototype.aggregateSeries,seriesSourcePoints:ma.prototype.seriesSourcePoints}),T(dl,{categoryAxis:{categories:[]},valueAxis:{}});var vl=function(t){function e(e,n,o){t.call(this,n),this.value=e,this.options.index=o.index}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.points,n=this.children[0];this.box=new co(e[0].x,e[0].y,e[1].x,e[2].y),n&&n.reflow(new co(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,n=this,o=this.options;t.prototype.createVisual.call(this),e=o.visual?o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:o,sender:this.getSender(),createVisual:function(){return n.createPath()}}):this.createPath(),e&&this.visual.append(e)},e.prototype.createPath=function(){var t=this.options,e=t.border,n=ze.drawing.Path.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close();return n},e.prototype.createHighlight=function(t){return ze.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=ze.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;
10return{point:new lo(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){var e=this;return e.owner.formatPointValue(e,t)},e}(vo);T(vl,{color:bn,border:{width:1}}),f(vl.prototype,cs);var yl=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),e.prototype.constructor=e,e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.render=function(){var t=this,e=this,n=e.options,o=e.plotArea.options.seriesColors;void 0===o&&(o=[]);var r=n.series[0],i=r.data;if(i)for(var s=Ht(r),a=s.total,l=s.points,c=0;c<l.length;c++){var u=l[c];if(u){var h=u.fields;p(r.color)||(r.color=h.color||o[c%o.length]),h=f({index:c,owner:t,series:r,dataItem:i[c],percentage:u.value/a},h,{visible:u.visible});var d=u.valueFields.value,v=t.createSegment(d,h),y=t.createLabel(d,h);v&&y&&v.append(y)}}},e.prototype.evalSegmentOptions=function(t,e,n){var o=n.series;Et(t,{value:e,series:o,dataItem:n.dataItem,index:n.index},{defaults:o._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var n=f({},e.series);if(this.evalSegmentOptions(n,t,e),this.createLegendItem(t,n,e),e.visible!==!1){var o=new vl(t,n,e);return Object.assign(o,e),this.append(o),this.points.push(o),o}},e.prototype.createLabel=function(t,e){var n=e.series,o=e.dataItem,r=f({},this.options.labels,n.labels),i=t;if(r.visible){var s=b(r),a={dataItem:o,value:t,percentage:e.percentage,category:e.category,series:n};if(s?i=s(a):r.format&&(i=this.plotArea.chartService.format.auto(r.format,i)),!r.color){var l=new ze.Color(n.color).percBrightness();l>180?r.color=He:r.color=bn,r.background||(r.background=n.color)}this.evalSegmentOptions(r,t,e);var c=new Co(i,f({vAlign:r.position},r),a);return this.labels.push(c),c}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},n=0;n<t.length;n++){var o=t[n],r=o.options.align;if(r!==Ue){var i=t[n].box.width();r===on?e.left=Math.max(e.left,i):e.right=Math.max(e.right,i)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,n){for(var o=this,r=o.options,i=o.points,s=i.length,a=i[0],l=a,c=0;c<i.length;c++)i[c].percentage>l.percentage&&(l=i[c]);for(var u=a.percentage/l.percentage*e,p=(e-u)/2,h=0,f=0;f<s;f++){var d=i[f].percentage,v=i[f+1],y=v?v.percentage:d,g=i[f].points=[],m=r.dynamicHeight?n*d:n/s,b=void 0;b=d?(e-u*(y/d))/2:y?0:e/2,b=eo(b,0,e),g.push(new ze.geometry.Point(t.x1+p,t.y1+h)),g.push(new ze.geometry.Point(t.x1+e-p,t.y1+h)),g.push(new ze.geometry.Point(t.x1+e-b,t.y1+m+h)),g.push(new ze.geometry.Point(t.x1+b,t.y1+m+h)),p=b,h+=m+r.segmentSpacing,u=eo(e-2*b,0,e)}},e.prototype.constantSlopeReflow=function(t,e,n){for(var o=this,r=o.options,i=o.points,s=i.length,a=r.neckRatio<=1,l=a?r.neckRatio*e:e,c=a?0:(e-e/r.neckRatio)/2,u=a?e:e-2*c,p=(u-l)/2,h=0,f=0;f<s;f++){var d=i[f].points=[],v=i[f].percentage,y=r.dynamicHeight?p*v:p/s,g=r.dynamicHeight?n*v:n/s;d.push(new ze.geometry.Point(t.x1+c,t.y1+h)),d.push(new ze.geometry.Point(t.x1+e-c,t.y1+h)),d.push(new ze.geometry.Point(t.x1+e-c-y,t.y1+g+h)),d.push(new ze.geometry.Point(t.x1+c+y,t.y1+g+h)),c+=y,h+=g+r.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,n=e.length;if(n){var o=this.options,r=t.clone().unpad(this.labelPadding()),i=r.height()-o.segmentSpacing*(n-1),s=r.width();o.dynamicSlope?this.dynamicSlopeReflow(r,s,i):this.constantSlopeReflow(r,s,i);for(var a=0;a<n;a++)e[a].reflow(t)}},e}(vo);T(yl,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:Ue,position:Ue,zIndex:1}}),f(yl.prototype,Ga);var gl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],n=new yl(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),Kn(this.options.legend.items,e.legendItems)},e}(Zs),ml="color",bl="first",_l="from",xl="max",wl="min",kl="noteText",Sl="summary",Ol="to";Aa.current.register(ma,[Jr,oi,ai,Si,$r,xi,ni,li,ei,ki,Qr,wi,mi,gi,Ci,si,yi,Oi]),Aa.current.register(Na,[bi,_i,ti]),Aa.current.register(Wa,[ci]),Aa.current.register($a,[ri]),Aa.current.register(gl,[ii]),Aa.current.register(il,[ui,pi,hi]),Aa.current.register(dl,[fi,di,vi]),Or.current.register([Jr,oi,ai,Si,$r,xi],[mn],[Ji,ml,kl,Lr,zr]),Or.current.register([mi,gi,yi,Oi],[_l,Ol],[Ji,ml,kl]),Or.current.register([Ci,si],[mn],[Ji,ml,kl,Sl]),Or.current.register([ui,pi,hi],[xn,wn],[ml]),Or.current.register([fi,di,vi],[mn],[ml]),Or.current.register([ii],[mn],[Ji,ml,"visibleInLegend","visible"]),ta.current.register([Jr,oi,ai,Si,$r,xi,Ci,si],{value:xl,color:bl,noteText:bl,errorLow:wl,errorHigh:xl}),ta.current.register([mi,gi,yi,Oi],{from:wl,to:xl,color:bl,noteText:bl}),ta.current.register([fi,di,vi],{value:xl,color:bl}),Or.current.register([bi,_i,ti],[xn,wn],[ml,kl,Br,Nr,Hr,Vr]),Or.current.register([ti],[xn,wn,"size"],[ml,Ji,kl]),Or.current.register([ni,li],["open","high","low","close"],[Ji,ml,"downColor",kl]),ta.current.register([ni,li],{open:xl,high:xl,low:wl,close:xl,color:bl,downColor:bl,noteText:bl}),Or.current.register([Qr,wi],["lower","q1","median","q3","upper","mean","outliers"],[Ji,ml,kl]),ta.current.register([Qr,wi],{lower:xl,q1:xl,median:xl,q3:xl,upper:xl,mean:xl,outliers:bl,color:bl,noteText:bl}),Or.current.register([ei,ki],["current","target"],[Ji,ml,"visibleInLegend",kl]),ta.current.register([ei,ki],{current:xl,target:xl,color:bl,noteText:bl}),Or.current.register([ci,ri],[mn],[Ji,ml,"explode","visibleInLegend","visible"]);var Cl=[Ji,mn,xn,wn],Tl="mousemove",El="contextmenu",Al="mouseleave",Ml=20,Pl=function(t){function e(e,n,o,r){var i=this;void 0===r&&(r={}),t.call(this),this.observers=[],this.addObserver(r.observer),this.chartService=new Rn(this,r),this.chartService.theme=o,this._initElement(e);var s=f({},this.options,n);this._originalOptions=f({},s),this._theme=o,this._initTheme(s,o),this._initHandlers(),this._initSurface(),this.bindCategories(),ao.preloadFonts(n,function(){i.fontLo
10aded=!0,i._destroyed||(i.trigger("init"),i._redraw(),i._attachEvents())})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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},e.prototype._setElementClass=function(t){r(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var n=[],o=t.series||[],r=0;r<o.length;r++)n.push(Object.assign({},o[r]));t.series=n,fe(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=f({},e,t),this.applySeriesColors()},e.prototype.getSize=function(){var t=this.options.chartArea||{},e=t.width?parseInt(t.width,10):Math.floor(this.element.offsetWidth),n=t.height?parseInt(t.height,10):Math.floor(this.element.offsetHeight);return{width:e,height:n}},e.prototype.resize=function(t){var e=this.getSize(),n=this._size,o=e.width>0||e.height>0;t||o&&(!n||e.width!==n.width||e.height!==n.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):o&&this._selections&&this._selections.find(function(t){return!t.visible})&&(this._destroySelections(),this._setupSelection())},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 Ot(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;
10n++)if(e[n].options.name===t)return new wr(e[n])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new wr(e[t])},e.prototype.plotArea=function(){return new kr(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var n,o=this._plotArea,r=(o.srcSeries||o.series||[])[0];if(p(e))n=o.filterPoints(e);else{var i,s;d(e)?(i=e.series,s=e.category):i=s=e,n=r.type===ri?de(o.pointsBySeriesName(i),s):r.type===ci||r.type===ii?de((o.charts[0]||{}).points,s):o.pointsBySeriesName(i)}n&&this.togglePointsHighlight(t,n)},e.prototype.togglePointsHighlight=function(t,e){for(var n=this._highlight,o=0;o<e.length;o++)n.togglePointHighlight(e[o],t)},e.prototype.showTooltip=function(t){var e,n,o=this._sharedTooltip(),r=this,i=r._tooltip,s=r._plotArea;if(p(t)?(e=s.findPoint(t),e&&o&&(n=e.categoryIx)):o&&Yn(t)&&(n=s.categoryAxis.categoryIndex(t)),o){if(n>=0){var a=this._plotArea.pointsByCategoryIndex(n);i.showAt(a)}}else e&&i.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&&$n(e,{width:n.width}),n.height&&$n(e,{height:n.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=ze.drawing.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(),this.options.transitions!==!1&&t.traverse(function(t){t.animation&&t.animation.setup()}),this._initSurface(),this.surface.draw(t.visual),this.options.transitions!==!1&&t.traverse(function(t){t.animation&&t.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new ba,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger(Wi),ke(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,o=f({},t.options,{chartArea:{width:t.width,height:t.height}});we(this._originalOptions,o),this.options=f({},this._originalOptions,o),this._initTheme(this.options,this._theme),this.bindCategories();var r=this._getModel();r.renderVisual(),ke(r._plotArea.panes),e=r.visual,this.options=n}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof ma&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;t.pannable!==!1&&(this._pannable=new _a(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;t!==!1&&e!==!1&&(this._zoomSelection=new xa(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;t!==!1&&e!==!1&&(this._mousewheelZoom=new wa(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,n=(e||{}).selection,o=(e||{}).mousewheel,r=!(t||e!==!1&&n!==!1||this.requiresHandlers([Ni,zi,Bi])),i=(e===!1||o===!1)&&!this.requiresHandlers([Hi,Vi,Ui]),s=this.element;this._dragZoomEnabled&&r&&i?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||r&&i||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!r,!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,e=this,n=e.options.tooltip;return t=this._sharedTooltip()?this._createSharedTooltip(n):new Da(this.chartService,n)},e.prototype._createSharedTooltip=function(t){return new Ra(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){ve(t,e),ye(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,n=t.seriesColors||[],o=0;o<e.length;o++){var r=e[o],i=n[o%n.length],s=r._defaults;r.color=r.color||i,s&&(s.color=s.color||i)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),n=new xo(this._modelOptions());return n.chart=this,n._plotArea=e,To.buildTitle(t.title,n),t.legend&&t.legend.visible&&n.append(new Ea(e.options.legend,this.chartService)),n.append(e),n.reflow(),n},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return f({transitions:t.transitions,width:e.width||$e,height:e.height||Xe},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options,n=Aa.current.create(t?[]:e.series,e,this.chartService);return n},e.prototype._setupSelection=function(){for(var t=this,e=this,n=e._plotArea.axes,o=this._selections=[],r=0;r<n.length;r++){var i=n[r],s=i.options;if(i instanceof $o&&s.select&&!s.vertical){var a=i.range(),l=new ja(t,i,f({min:a.min,max:a.max},s.select));o.push(l)}}},e.prototype._selectStart=function(t){return this.trigger(Gi,t)},e.prototype._select=function(t){return this.trigger(qi,t)},e.prototype._selectEnd=function(t){return this.trigger(Ki,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=ze.throttle(this._mousemove.bind(this),Ml)},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={}),t===Yi&&(e.anchor.point=this._toDocumentCoordinates(e.anchor.point)),e.sender=this;for(var n=this.observers,o=!1,r=0;r<n.length;r++)n[r].trigger(t,e)&&(o=!0);return o},e.prototype._attachEvents=function(){var t=this.element;this._touchAction=t.style.touchAction;var e;if(Wn(t,(e={},e[El]=this._clickHandler,e[ns]=this._mousewheelHandler,e[Al]=this._mouseleaveHandler,e)),this._shouldAttachMouseMove()){var n;Wn(t,(n={},n[Tl]=this._mousemove,n))}this.domEvents=Ln.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(Li),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(Ui,{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var n=this._gestureDistance,o=-t.distance/n+1;if(Math.abs(o)>=.1){o=Math.round(10*o),this._gestureDistance=t.distance;var r={delta:o,axisRanges:me(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger(Hi,r)){this._zooming||(this._zooming=!0);var i=r.axisRanges=e.updateRanges(o);i&&!this.trigger(Vi,r)&&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([Ni,zi,Bi])&&this._startNavigation(t,e,Ni),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(Hi,{axisRanges:me(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this,n=e._navState,o=e._pannable;if(!this._stopChartHandlers(t)){if(o){var r=o.move(t);r&&!this.trigger(zi,{axisRanges:r,originalEvent:t})&&o.pan()}else if(n){for(var i={},s=n.axes,a=0;a<s.length;a++){var l=s[a],c=l.options.name;if(c){var u=l.options.vertical?t.y:t.x,p=u.startLocation-u.location;0!==p&&(i[l.options.name]=l.translateRange(p))}}n.axisRanges=i,this.trigger(zi,{axisRanges:i,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(Bi,{axisRanges:me(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,Bi),this._zoomSelection){var n=this._zoomSelection.end(t);n&&!this.trigger(Vi,{axisRanges:n,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger(Ui,{axisRanges:n,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var n=this._eventCoordinates(t),o=this._plotArea.paneByPoint(n);if(o)for(var r=0;r<e.length;r++)if(e[r].onPane(o))return!0},e.prototype._mousewheel=function(t){var e=this,n=C(t),o=this._mousewheelZoom,r=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(r))if(o){var i={delta:n,axisRanges:me(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger(Hi,i)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),i.axisRanges=o.updateRanges(n),i.axisRanges&&!this.trigger(Vi,i)&&o.zoom(),this._mwTimeout=setTimeout(function(){e.trigger(Ui,i),e._zooming=!1,e.surface&&e.surface.resumeTracking()},os))}else{var s=this._navState;if(!s){var a=this._startNavigation(t,r,Hi);a||(s=this._navState)}if(s){var l=s.totalDelta||n;s.totalDelta=l+n;for(var c=this._navState.axes,u={},p=0;p<c.length;p++){var h=c[p],f=h.options.name;f&&(u[f]=h.scaleRange(-l))}this.trigger(Vi,{delta:n,axisRanges:u,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(function(){e._endNavigation(t,Ui)},os)}}},e.prototype._startNavigation=function(t,e,n){var o=this._model._plotArea,r=o.findPointPane(e),i=o.axes.slice(0);if(r){var s=me(i),a=this.trigger(n,{axisRanges:s,originalEvent:t});a?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:r,axes:i})}},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 o,r=t;r&&!o;)o=r.chartElement,r=r.parent;if(o)return o.aliasFor&&(o=o.aliasFor(e,this._eventCoordinates(e))),n&&(o=o.closest(n),o&&o.aliasFor&&(o=o.aliasFor())),o},e.prototype._eventCoordinates=function(t){var e=Qn(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=g(this.element,["paddingLeft","paddingTop"]),e=t.paddingLeft,n=t.paddingTop;this._padding={top:n,left:e}}return this._padding},e.prototype._toDocumentCoordinates=function(t){var e=this._elementPadding(),n=Zn(this.element);return{left:ro(t.x+e.left+n.left),top:ro(t.y+e.top+n.top)}},e.prototype._toModelCoordinates=function(t,e){var n=this.element,o=Zn(n),r=this._elementPadding();return new lo(t-o.left-r.left,e-o.top-r.top)},e.prototype._tap=function(t){var e=this,n=this.surface.eventTarget(t),o=this._drawingChartElement(n,t),r=this._sharedTooltip();this._startHover(n,t)||r||this._unsetActivePoint(),r&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(o,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=this,o=t;o;)o.click&&o.click(n,e),o=o.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 Zs)}),o=this._activePoint,r=this._hoveredPoint;if(r&&r!==n&&(r.out(this,e),this._hoveredPoint=null),n&&r!==n&&n.over&&(this._hoveredPoint=n,n.over(this,e)),n&&o!==n&&n.hover&&(this._activePoint=n,!this._sharedTooltip()&&!n.hover(this,e))){var i=f({},this.options.tooltip,n.options.tooltip);i.visible&&this._tooltip.show(n),this._highlight.show(n)}return n},e.prototype._mouseover=function(t){var e=this._startHover(t.element,t.originalEvent);if(e&&e.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()){this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this);var n;Wn(document,(n={},n[Tl]=this._mouseMoveTrackHandler,n))}},e.prototype._mouseMoveTracking=function(t){var e=this,n=e.options,o=e._tooltip,r=e._highlight,i=e._activePoint,s=this._eventCoordinates(t);
10if(this._plotArea.box.containsPoint(s)){if(i&&i.tooltipTracking&&i.series&&i.parent.getNearestPoint){var a=i.parent.getNearestPoint(s.x,s.y,i.seriesIx);if(a&&a!==i&&(this._activePoint=a,!a.hover(this,t))){var l=f({},n.tooltip,a.options.tooltip);l.visible&&o.show(a),r.show(a)}}}else{var c;io(document,(c={},c[Tl]=this._mouseMoveTrackHandler,c)),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 o=n.backgroundContainsPoint(e);o?(n.hovered=!0,this._plotArea.hover(this,t)):n.hovered&&!o&&(this.trigger(Li),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 o=e[n];o.box.containsPoint(t)?o.showAt(t):o.hide()}},e.prototype._trackSharedTooltip=function(t,e,n){if(!this._suppressHover){var o=this,r=o.options.tooltip,i=o._plotArea,s=o._plotArea.categoryAxis,a=o._tooltip,l=o._highlight;if(i.backgroundContainsPoint(t)){var c=s.pointCategoryIndex(t);if(c!==this._tooltipCategoryIx||!this._sharedHighlight&&n){var u=i.pointsByCategoryIndex(c),p=u.map(function(t){return t.eventArgs(e)}),h=p[0]||{};h.categoryPoints=p,u.length>0&&!this.trigger(ji,h)?(r.visible&&a.showAt(u,t),l.show(u),this._sharedHighlight=!0):a.hide(),this._tooltipCategoryIx=c}else n&&this._sharedHighlight&&(l.hide(),a.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(l.hide(),a.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,e=t._tooltip,n=t._highlight;this._activePoint=null,this._hoveredPoint=null,e&&e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,n&&n.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=this,e=this.options,n=[].concat(e.categoryAxis),o=0;o<n.length;o++){var r=n[o];r.autoBind!==!1&&t.bindCategoryAxisFromSeries(r,o)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var n,o=this,r=this.options.series,i=r.length,s=new Vn,a=[],l=!1,c=0;c<i;c++){var u=r[c],p=u.categoryAxis===t.name||!u.categoryAxis&&0===e,h=u.data,f=h.length,d=u.categoryField&&p;if(l=d||l,d&&f>0){n=qt(t,Tt(u.categoryField,h[0]));for(var v=n?Gt:Tt,y=0;y<f;y++){var g=h[y],m=v(u.categoryField,g,o.chartService.intl);!n&&s.get(m)||(a.push([m,g]),n||s.set(m,!0))}}}if(a.length>0){n&&(a=_e(a,function(t,e){return K(t[0],e[0])}));var b=xe(a);t.categories=b[0]}else l&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Or.current.valueFields(t),n=!0,o=0;o<e.length;o++){var r=e[o];if(r===mn?r="field":r+="Field",!Yn(t[r])){n=!1;break}}return n},e.prototype._noTransitionsRedraw=function(){var t,e=this.options;e.transitions!==!1&&(e.transitions=!1,t=!0),this._redraw(),t&&(e.transitions=!0)},e.prototype._legendItemHover=function(t,e){var n,o=this,r=o._plotArea,i=o._highlight,s=(r.srcSeries||r.series)[t];n=k(s.type,[ci,ri,ii])?r.findPoint(function(n){return n.series.index===t&&n.index===e}):r.pointsBySeriesIndex(t),i.show(n)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([Fi,Li])},e.prototype.updateMouseMoveHandler=function(){var t;if(io(this.element,(t={},t[Tl]=this._mousemove,t)),this._shouldAttachMouseMove()){var e;Wn(this.element,(e={},e[Tl]=this._mousemove,e))}},e.prototype.applyOptions=function(t,e){we(this._originalOptions,t),this._originalOptions=f(this._originalOptions,t),this.options=f({},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(){this._destroyed=!0;var t;if(io(this.element,(t={},t[El]=this._clickHandler,t[ns]=this._mousewheelHandler,t[Tl]=this._mousemove,t[Al]=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler){var e;io(document,(e={},e[Tl]=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._destroySelections=function(){var t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()},e.prototype._destroyView=function(){var t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),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}(ze.Class),jl=["data","categories"];T(Pl,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:oi,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 Dl=-2,Rl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._slotAnchor=function(t,e){var n,o=this.plotArea.categoryAxis,r=o.options.vertical,i=r?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return n=r?new lo(this.plotArea.box.x2,e.center().y):new lo(e.center().x,Dl),{point:n,align:i}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Ra),Il=150,Fl=150,Ll=[Jr,ei],zl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e, 11e.prototype._setElementClass=function(t){r(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor($n(e).width)},e.prototype._resize=function(){var e=this.element,n=Se(e.childNodes);
11this._initialWidth=Math.floor($n(e).width),Oe(e.childNodes,n),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),n=Se(e.childNodes),o=document.createElement("span");o.innerHTML=" ",e.appendChild(o);var r=f({width:this._autoWidth,height:$n(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return $n(e,{width:r.width,height:r.height}),e.removeChild(o),Oe(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=m(e.chartArea.margin),o=t.charts,r=this._surfaceWrap(),i=0,s=0;s<o.length;s++){var a=o[s],l=(a.options.series||[])[0];if(l){if(l.type===Jr)return Il;if(l.type===ei)return Fl;if(l.type===ci)return $n(r).height;var c=a.categoryAxis;if(c){var u=c.categoriesCount()*(!a.options.isStacked&&k(l.type,[oi,ki])?a.seriesOptions.length:1);i=Math.max(i,u)}}}var p=i*e.pointWidth;return p>0&&(p+=n.left+n.right),p},e.prototype._createSharedTooltip=function(t){return new Rl(this._plotArea,t)},e.normalizeOptions=function(t){var e=Ce(t);return e=o(e)?{seriesDefaults:{data:e}}:f({},e),e.series||(e.series=[{data:Ce(e.data)}]),f(e,{seriesDefaults:{type:e.type}}),(k(e.series[0].type,Ll)||k(e.seriesDefaults.type,Ll))&&(e=f({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(Pl);T(zl,{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 Bl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._initialOpacity=parseFloat(g(this.element,"opacity").opacity)},e.prototype.step=function(t){g(this.element,{opacity:String(S(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),g(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),g(this.element,{opacity:String(this._initialOpacity)})},e}(ze.drawing.Animation),Nl=function(t){function e(e,n,o){t.call(this),this.options=f({},this.options,o),this.container=e,this.chartService=n;var r=g(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),e.prototype.constructor=e,e.prototype.createElements=function(){var t=this.element=Te("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=Te("k-tooltip k-chart-tooltip"),n=this.scroll=Te("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(n)},e.prototype.show=function(t,e,n){var o=this,r=o.element,i=o.options,s=o.scroll,a=o.tooltip,l=B(Y(t)+Y(e-t)/2),c=.4*n.width(),u=n.center().x-c,p=n.center().x,h=p-u,f=i.max-i.min,d=h/f,v=l-i.min,y=this.chartService.intl.format(i.format,t,e),m=b(i);this.clearHideTimeout(),this._visible||(g(r,{visibility:"hidden",display:"block"}),this._visible=!0),m&&(y=m({from:t,to:e})),a.innerHTML=y,g(a,{left:n.center().x-a.offsetWidth/2,top:n.y1});var _=g(a,["marginTop","borderTopWidth","height"]);g(s,{width:c,left:u+v*d,top:n.y1+_.marginTop+_.borderTopWidth+_.height/2}),g(r,{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 Bl(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}(ze.Class);T(Nl,{format:"{0:d} - {1:d}",hideDelay:500});var Hl="_navigator",Vl=Hl,Ul=Object.freeze({NAVIGATOR_AXIS:Vl,NAVIGATOR_PANE:Hl}),Gl=3,ql=function(t){function e(e){t.call(this),this.chart=e;var n=this.options=f({},this.options,e.options.navigator),o=n.select;o&&(o.from=this.parseDate(o.from),o.to=this.parseDate(o.to)),Yn(n.hint.visible)||(n.hint.visible=n.visible);var r;this.chartObserver=new Gn(this,(r={},r[zi]="_drag",r[Bi]="_dragEnd",r[Vi]="_zoom",r[Ui]="_zoomEnd",r)),e.addObserver(this.chartObserver)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parseDate=function(t){return Q(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,e=t.chart,n=t.options,o=this.mainAxis(),r=o.roundedRange(),i=r.min,s=r.max,a=n.select,l=a.from,c=a.to,u=a.mousewheel,p=Ae(o);0!==o.categoriesCount()&&(this.clean(),p.box=o.box,this.selection=new ja(e,p,{min:i,max:s,from:l||i,to:c||s,mousewheel:so(u,{zoom:"left"}),visible:n.visible},new Gn(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),n.hint.visible&&(this.hint=new Nl(e.element,e.chartService,{min:i,max:s,template:b(n.hint),format:n.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0),e=t.namedCategoryAxes[Vl],n=e.roundedRange(),o=n.min,r=n.max,i=this.options.select||{},s=i.from||o;s<o&&(s=o);var a=i.to||r;a>r&&(a=r),this.options.select=f({},i,{from:s,to:a}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(to(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,o=n.chart,r=n.selection,i=o._eventCoordinates(t.originalEvent),s=this.mainAxis(),a=s.roundedRange(),l=s.pane.box.containsPoint(i),c=o._plotArea.categoryAxis,u=t.axisRanges[c.options.name],p=this.options.select;
vendor: 7,629 bytes, line 11
11if(u&&!l&&r){e=p.from&&p.to?Y(p.to)-Y(p.from):Y(r.options.to)-Y(r.options.from);var h=B(eo(Y(u.min),a.min,Y(a.max)-e)),f=B(eo(Y(h)+e,Y(a.min)+e,a.max));this.options.select={from:h,to:f},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),r.set(h,f),this.showHint(h,f)}},e.prototype._dragEnd=function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()},e.prototype.readSelection=function(){var t=this,e=t.selection.options,n=e.from,o=e.to,r=t.options.select;r.from=n,r.to=o},e.prototype.filterAxes=function(){var t=this,e=t.options.select;void 0===e&&(e={});for(var n=t.chart,o=n.options.categoryAxis,r=e.from,i=e.to,s=0;s<o.length;s++){var a=o[s];a.pane!==Hl&&(a.min=r,a.max=i)}},e.prototype.filter=function(){var t=this,e=t.chart,n=t.options.select;if(e.requiresHandlers(["navigatorFilter"])){var o=this.mainAxis(),r={from:n.from,to:n.to};if("category"!==o.options.type){var i=new sr(f({baseUnit:"fit"},e.options.categoryAxis[0],{categories:[n.from,n.to]}),e.chartService).options;r.from=U(i.min,-i.baseUnitStep,i.baseUnit),r.to=U(i.max,i.baseUnitStep,i.baseUnit)}this.chart.trigger("navigatorFilter",r)}},e.prototype._zoom=function(t){var e=this,n=e.chart._plotArea.categoryAxis,o=e.selection,r=e.options,i=r.select,s=r.liveDrag,a=this.mainAxis(),l=t.delta;if(o){var c=a.categoryIndex(o.options.from),u=a.categoryIndex(o.options.to);t.originalEvent.preventDefault(),Math.abs(l)>1&&(l*=Gl),u-c>1?(o.expand(l),this.readSelection()):(n.options.min=i.from,i.from=n.scaleRange(-t.delta).min),s&&(this.filterAxes(),this.redrawSlaves()),o.set(i.from,i.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){var n=this.chart._plotArea;this.hint&&this.hint.show(t,e,n.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[Vl]},e.prototype.select=function t(e,n){var t=this.options.select;return e&&n&&(t.from=this.parseDate(e),t.to=this.parseDate(n),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(e,n)),{from:t.from,to:t.to}},e.setup=function(t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),!t.__navi){t.__navi=!0;var o=f({},n.navigator,t.navigator),r=t.panes=[].concat(t.panes),i=f({},o.pane,{name:Hl});o.visible||(i.visible=!1,i.height=.1),r.push(i),e.attachAxes(t,o),e.attachSeries(t,o,n)}},e.attachAxes=function(t,e){var n=e.series||[],o=t.categoryAxis=[].concat(t.categoryAxis),r=t.valueAxis=[].concat(t.valueAxis),i=Ut(n,Ti),s=0===i.length,a=f({type:"date",pane:Hl,roundToBaseUnit:!s,justified:s,_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]}}),l=e.categoryAxis;o.push(f({},a,{maxDateGroups:200},l,{name:Vl,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),f({},a,l,{name:Vl+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),f({},a,l,{name:Vl+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),r.push(f({name:Vl,pane:Hl,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,n){for(var o=t.series=t.series||[],r=[].concat(e.series||[]),i=n.seriesColors,s=e.seriesDefaults,a=0;a<r.length;a++)o.push(f({color:i[a%i.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,r[a],{axis:Vl,categoryAxis:Vl,autoBind:e.autoBindElements}))},e}(ze.Class),Kl=28,Wl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyDefaults=function(e,n){var o=$n(this.element).width||$e,r=n,i={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(o/Kl)}}};r&&(r=f({},r,i)),ql.setup(e,r),t.prototype.applyDefaults.call(this,e,r)},e.prototype._setElementClass=function(t){r(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=[].concat(t.series,t.navigator.series),n=x(e,function(t){return t&&t.visible}).length,o=this._seriesCount!==n;return this._seriesCount=n,o},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new ql(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,o=n.paneByPoint(e);o&&o.options.name===Hl?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 o=e[n];o.name===Vl?t=o.categories:t&&o.pane===Hl&&(o.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),o=this._plotArea.paneByPoint(n);return t.prototype._stopChartHandlers.call(this,e)||o&&o.options.name===Hl},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(Pl);T(Wl,{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 Yl=150,Xl=250,Zl="arrow",$l="arrowPointer",Jl="barPointer",Ql=200,tc=.5,ec=200,nc=Math.PI/180,oc="inside",rc="linear",ic="outside",sc="radialPointer",ac="radialRangePointer",lc=ze.drawing.Group,cc=ze.drawing.Path,uc=ze.drawing.Text,pc=5,hc=ze.drawing.Path,fc=ze.drawing.Surface,dc=function(t){function e(e,n,o,r){void 0===r&&(r={}),t.call(this),this.element=e,this.theme=o,this.contextService=new Rn(this,r),this._originalOptions=f({},this.options,n),this.options=f({},this._originalOptions),this._initTheme(o),this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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];return 0===arguments.length?e.value():(e.value(t),void this._setValueOptions(t))},e.prototype._draw=function(){var t=this.surface;t.clear(),t.draw(this._visuals)}
11,e.prototype.exportVisual=function(){return this._visuals},e.prototype.allValues=function t(e){var n=this.pointers,t=[];if(0===arguments.length){for(var r=0;r<n.length;r++)t.push(n[r].value());return t}if(o(e))for(var i=0;i<e.length;i++)l(e[i])&&n[i].value(e[i]);this._setValueOptions(e)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),n=[].concat(t),o=0;o<n.length;o++)e[o].value=n[o]},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 ze.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var n=De(e.bbox(),this._gaugeAreaMargin);this.reflow(n)},e.prototype.setOptions=function(t,e){this._originalOptions=f(this._originalOptions,t),this.options=f({},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=f({},e,this.options);var n=this.options,r=n.pointer;if(o(r)){for(var i=[],s=0;s<r.length;s++)i.push(f({},e.pointer,r[s]));n.pointer=i}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),n=t.border||{},o=new ze.geometry.Rect([0,0],[e.width,e.height]);this._gaugeAreaMargin=t.margin||pc,n.width>0&&(o=De(o,n.width));var r=hc.fromRect(o,{stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}});return r},e.prototype._initSurface=function(){var t=this,e=t.options,n=t.surface,o=this._surfaceElement(),r=this._surfaceSize();$n(o,r),n&&n.options.type===e.renderAs?(this.surface.clear(),this.surface.resize()):(n&&n.destroy(),this.surface=fc.create(o,{type:e.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&f(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,o=t.offsetHeight;return n||(n=e.width),o||(o=e.height),{width:n,height:o}},e.prototype._defaultSize=function(){return{width:ec,height:Ql}},e.prototype._toggleTransitions=function(t){var e=this;this.options.transitions=t;for(var n=0;n<this.pointers.length;n++)e.pointers[n].options.animation.transitions=t},e}(ze.Class);T(dc,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var vc=ze.drawing.Path,yc=ze.drawing.Group,gc=ze.geometry.Point,mc=function(t){function e(e,n){var o=e||{};!Yn(o.reverse)&&o.vertical===!1&&(n||{}).rtl&&(o=Object.assign({},o,{reverse:!0})),t.call(this,0,1,o,n),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=f({},this.options,t);return e=f({},e,{labels:{mirror:e.mirror}}),e.majorUnit=e.majorUnit||A(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new yc,e=this.renderLabels(),n=this.renderLine(),o=this.renderTicks(),r=this.renderRanges();return t.append(n,e,o,r),t},e.prototype.renderRanges=function(){for(var t=this,e=this.options,n=e.min,o=e.max,r=e.vertical,i=e.labels.mirror,s=e.ranges||[],a=new yc,l=s.length,c=e.rangeSize||e.minorTicks.size/2,u=0;u<l;u++){var p=je(s[u],n,o),h=t.getSlot(p.from,p.to),f=r?t.lineBox():h,d=r?h:t.lineBox();r?f.x1-=c*(i?-1:1):d.y2+=c*(i?-1:1),a.append(vc.fromRect(new ze.geometry.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,e=t.labels,n=t.o
vendor: 5,134 bytes, line 11
11ptions,o=new yc,r=0;r<e.length;r++)o.append(Pe(e[r],n.labels));return o},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),n=new yc;if(t.width>0&&t.visible){var o=new vc({stroke:{color:t.color,dashType:t.dashType,width:t.width}});o.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),n.append(o)}return n},e.prototype.renderTicks=function(){var t=new yc,e=this.options,n=e.majorTicks.visible?e.majorUnit:0,o={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Ie(t,this.getMajorTickPositions(),o,e.majorTicks),Ie(t,this.getMinorTickPositions(),o,f({},{skipUnit:n/e.minorUnit},e.minorTicks)),t},e}(lr);T(mc,{min:0,max:50,majorTicks:{size:15,align:oc,color:He,width:tc,visible:!0},minorTicks:{size:10,align:oc,color:He,width:tc,visible:!0},line:{width:tc},labels:{position:oc,padding:2},mirror:!1,_alignLines:!1});var bc=function(t){function e(e,n){t.call(this);var o=e.options,r=o.min,i=o.max,s=this.options=f({},this.options,n);s.fill=s.color,this.scale=e,Yn(s.value)?s.value=eo(s.value,r,i):s.value=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function t(e){var n=this.options,t=n.value;if(0===arguments.length)return t;var o=this.scale.options,r=o.min,i=o.max;n._oldValue=Yn(n._oldValue)?n.value:r,n.value=eo(e,r,i),this.elements&&this.repaint()},e}(ze.Class);T(bc,{color:He});var _c=function(t){function e(e,n){t.call(this,e,n),this.options=f({track:{visible:Yn(n.track)}},this.options)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t,e,n,o=this,r=o.options,i=o.scale,s=i.options,a=s.mirror,l=s.vertical,c=i.lineBox(),u=r.track.size||r.size,p=r.size/2,h=m(r.margin),f=l?h[a?"left":"right"]:h[a?"bottom":"top"];f=a?-f:f,l?(n=new co(c.x1+f,c.y1,c.x1+f,c.y2),a?n.x1-=u:n.x2+=u,r.shape!==Jl&&(e=new co(c.x2+f,c.y1-p,c.x2+f,c.y2+p),t=e)):(n=new co(c.x1,c.y1-f,c.x2,c.y1-f),a?n.y2+=u:n.y1-=u,r.shape!==Jl&&(e=new co(c.x1-p,c.y1-f,c.x2+p,c.y1-f),t=e)),this.trackBox=n,this.pointerRangeBox=e,this.box=t||n.clone().pad(r.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:Yn(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,e=t.scale,n=t.options,o=e.options,r=o.mirror,i=o.vertical,s=m(n.margin),a=i?s[r?"left":"right"]:s[r?"bottom":"top"];return a},e}(bc);T(_c,{shape:Jl,track:{border:{width:1}},color:He,border:{width:1},opacity:1,margin:m(3),animation:{type:Jl},visible:!0});var xc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=t.margin,n=t.from,o=t.to,r=t.vertical,i=r?"x1":"y1";t.mirror===r?(n[i]-=e,o[i]-=e):(n[i]+=e,o[i]+=e);var s=this.fromScale=new ze.geometry.Point(n.x1,n.y1),a=this.toScale=new ze.geometry.Point(o.x1,o.y1);0!==t.duration&&(t.duration=Math.max(s.distanceTo(a)/t.duration*1e3,1))},e.prototype.step=function(t){var e=S(this.fromScale.x,this.toScale.x,t),n=S(this.fromScale.y,this.toScale.y,t);this.element.transform(ze.geometry.transform().translate(e,n))},e}(ze.drawing.Animation);T(xc,{easing:rc,duration:Xl}),ze.drawing.AnimationFactory.current.register($l,xc);var wc=ze.geometry.Point,kc=ze.drawing.Path,Sc=function(t){function e(e,n){t.call(this,e,n),Yn(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(){var t,e=this,n=e.scale,o=e.options.size,r=o/2,i=n.options.mirror?-1:1;return t=n.options.vertical?[new wc(0,0-r),new wc(0-i*o,0),new wc(0,0+r)]:[new wc(0-r,0),new wc(0,0+i*o),new wc(0+r,0)]},e.prototype.repaint=function(){var t=this,e=t.scale,n=t.options,o=new xc(this.elements,f(n.animation,{vertical:e.options.vertical,mirror:e.options.mirror,margin:this._margin(n.margin),from:e.getSlot(n._oldValue),to:e.getSlot(n.value)}));n.animation.transitions===!1&&(o.options.duration=0),o.setup(),o.play()},e.prototype.render=function(){var t=this,e=t.scale,n=t.options,o=this.getElementOptions(),r=this.pointerShape(n.value);n.animation.type=$l;var i=new kc({stroke:o.stroke,fill:o.fill}).moveTo(r[0]).lineTo(r[1]).lineTo(r[2]).close(),s=e.getSlot(n.value);return i.transform(ze.geometry.transform().translate(s.x1,s.y1)),this.elements=i,i},e}(_c),Oc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=this.axis=t.vertical?wn:xn,n=this.to=t.newPoints[0][e],o=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(n-o)/t.speed*1e3,1)),this._set(o)},e.prototype.step=function(t){var e=S(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}(ze.drawing.Animation);
11T(Oc,{easing:rc,speed:Xl}),ze.drawing.AnimationFactory.current.register(Jl,Oc);var Cc=ze.drawing.Group,Tc=ze.drawing.Path,Ec=function(t){function e(e,n){t.call(this,e,n),Yn(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(t){var e=this,n=e.scale,o=e.options,r=n.options,i=r.mirror,s=r.vertical,a=i===s?-1:1,l=o.size*a,c=n.getSlot(n.options.min),u=n.getSlot(t),p=s?wn:xn,h=s?xn:wn,f=this._margin()*a,d=new ze.geometry.Point;d[p]=c[p+"1"],d[h]=c[h+"1"];var v=new ze.geometry.Point;v[p]=u[p+"1"],v[h]=u[h+"1"],s?(d.translate(f,0),v.translate(f,0)):(d.translate(0,f),v.translate(0,f));var y=v.clone(),g=d.clone();return s?(y.translate(l,0),g.translate(l,0)):(y.translate(0,l),g.translate(0,l)),[d,v,y,g]},e.prototype.repaint=function(){var t=this,e=t.scale,n=t.options,o=this.pointerShape(n.value),r=this.pointerPath,i=this.pointerShape(n._oldValue);r.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close();var s=new Oc(r,f(n.animation,{reverse:e.options.reverse,vertical:e.options.vertical,oldPoints:[i[1],i[2]],newPoints:[o[1],o[2]]}));n.animation.transitions===!1&&(s.options.duration=0),s.setup(),s.play()},e.prototype.render=function(){var t=new Cc,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var n=this.pointerPath=new Tc({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 Tc.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}(_c),Ac=60,Mc=60,Pc=ze.drawing.Group,jc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers,n=t.origin.x,o=t.origin.y,r=new co(n,o,n+t.width(),o+t.height());this.scale.reflow(r),this._shrinkScaleWidth(r);for(var i=0;i<e.length;i++)e[i].reflow();this.bbox=this._getBox(r),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new Pc,e=this.scale.render(),n=this.pointers;t.append(this.gaugeArea),t.append(e);for(var o=0;o<n.length;o++){var r=n[o];t.append(r.render()),r.value(r.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this,e=this.options,n=this.scale=new mc(e.scale,this.contextService);this.pointers=[];var r=e.pointer;r=o(r)?r:[r];for(var i=0;i<r.length;i++){var s=f({},r[i],{animation:{transitions:e.transitions}}),a=s.shape===Zl?Sc:Ec;t.pointers.push(new a(n,s))}},e.prototype._defaultSize=function(){var t=this.options.scale.vertical;return{width:t?Ac:ec,height:t?Ql:Mc}},e.prototype._getBox=function(t){for(var e=this,n=e.scale,o=e.pointers,r=t.center(),i=o[0].box.clone().wrap(n.box),s=0;s<o.length;s++)i.wrap(o[s].box.clone());var a;return n.options.vertical?(a=i.width()/2,i=new co(r.x-a,t.y1,r.x+a,t.y2)):(a=i.height()/2,i=new co(t.x1,r.y-a,t.x2,r.y+a)),i},e.prototype._alignElements=function(){for(var t=this,e=this,n=e.scale,o=e.pointers,r=n.box,i=o[0].box.clone().wrap(n.box),s=this.bbox,a=0;a<o.length;a++)i.wrap(o[a].box.clone());var l;n.options.vertical?(l=s.center().x-i.center().x,n.reflow(new co(r.x1+l,s.y1,r.x2+l,s.y2))):(l=s.center().y-i.center().y,n.reflow(new co(r.x1,r.y1+l,r.x2,r.y2+l)));for(var c=0;c<o.length;c++)o[c].reflow(t.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this,n=e.scale;if(!n.options.vertical){var o=n.contentBox().width()-t.width();o>0&&(n.box.shrink(o,0),n.box.alignTo(t,"center"),n.reflow(n.box))}},e.prototype._shrinkElements=function(){for(var t=this,e=this,n=e.scale,o=e.pointers,r=n.box.clone(),i=n.options.vertical?"y":"x",s=o[0].box,a=0;a<o.length;a++)s.wrap(o[a].box.clone());r[i+1]+=Math.max(r[i+1]-s[i+1],0),r[i+2]-=Math.max(s[i+2]-r[i+2],0),n.reflow(r);for(var l=0;l<o.length;l++)o[l].reflow(t.bbox)},e}(dc);T(jc,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var Dc=180,Rc=ze.drawing.Arc,Ic=ze.drawing.Path,Fc=ze.drawing.Group,Lc=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),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=f({},this.options,t);return e.majorUnit=e.majorUnit||A(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;return Yn(this.bbox)?(this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels(),void 0):this.render(e,n)},e.prototype.slotAngle=function(t){var e,n=this.options,o=n.min,r=n.max,i=n.reverse,s=n.startAngle,a=n.endAngle,l=a-s;return e=i?a-(t-o)/(r-o)*l:(t-o)/(r-o)*l+s,e+Dc},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,o=0;return e.visible&&(o=e.size),n.visible&&(o=Math.max(n.size,o)),o},e.prototype.renderLabels=function(){var t=this,e=this.options,n=this.arc.clone(),o=n.getRadiusX(),r=this.tickAngles(n,e.majorUnit),i=e.rangeSize=e.rangeSize||.1*o,s=new Fc,a=.05*o;Yn(e.rangeDistance)?a=e.rangeDistance:e.rangeDistance=a;var l=e.labels,c=l.position===oc,u=Yn(this.labelElements);c&&(o-=this.ticksSize(),this.hasRanges()&&!u&&(o-=i+a),n.setRadiusX(o).setRadiusY(o));for(var p=this.labels,h=p.length,f=l.padding,d=0;d<h;d++){var v=p[d],y=v.box.width()/2,g=v.box.height()/2,m=r[d],b=(m-Dc)*nc,_=n.pointAt(m),x=_.x+Math.cos(b)*(y+f)*(c?1:-1),w=_.y+Math.sin(b)*(g+f)*(c?1:-1);v.reflow(new co(x-y,w-g,x+y,w+g));var k=new ze.geometry.Point(v.box.x1,v.box.y1),S=void 0;if(u){S=t.labelElements.children[d];var O=S.bbox().origin,C=S.transform()||ze.geometry.transform();C.translate(k.x-O.x,k.y-O.y),S.transform(C)}else S=Pe(v,e.labels),s.append(S);t.bbox=ze.geometry.Rect.union(t.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,o=e.rangeSize,r=this.getRangeRadius();this.options.labels.position===oc&&(r+=o+n);
11for(var i=r+o/2,s=0;s<t.length;s++)t[s]._geometry.setRadiusX(i).setRadiusY(i);this.bbox=ze.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this,e=this.rangeSegments(),n=e.length,o=new Fc;if(n){var r=this.options,i=r.rangeSize,s=r.reverse,a=r.rangeDistance,l=this.getRangeRadius();this.radius(this.radius()-i-a);for(var c=0;c<n;c++){var u=e[c],p=t.slotAngle(u[s?"to":"from"]),h=t.slotAngle(u[s?"from":"to"]);h-p!==0&&o.append(t.createRange(p,h,l,u))}}return o},e.prototype.createRange=function(t,e,n,o){var r=this.options.rangeSize,i=new ze.geometry.Arc(this.arc.center,{radiusX:n+r/2,radiusY:n+r/2,startAngle:t,endAngle:e});return new Rc(i,{stroke:{width:r,color:o.color,opacity:o.opacity,lineCap:o.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],n=e.length,o=[];if(n){var r=t.min,i=t.max,s=t.rangePlaceholderColor;o.push(Le(r,i,s));for(var a=0;a<n;a++)for(var l=je(e[a],r,i),c=o.length,u=0;u<c;u++){var p=o[u];if(p.from<=l.from&&l.from<=p.to){o.push(Le(l.from,l.to,l.color,l.opacity)),p.from<=l.to&&l.to<=p.to&&o.push(Le(l.to,p.to,s,l.opacity)),p.to=l.from;break}}}return o},e.prototype.getRangeRadius=function(){var t,e=this,n=e.arc,o=e.options,r=o.rangeSize,i=o.rangeDistance,s=o.majorTicks.size;return t=o.labels.position===ic?n.getRadiusX()-s-i-r:n.getRadiusX()-r},e.prototype.renderArc=function(t,e){var n=this.options,o=this.arc=new ze.geometry.Arc(t,{ 12radiusX:e,radiusY:e,startAngle:n.startAngle+Dc,endAngle:n.endAngle+Dc});return o},e.prototype.renderTicks=function(){var t=this,e=t.arc,n=t.options,o=e.clone();this.majorTickAngles=this.tickAngles(e,n.majorUnit),this.majorTicks=Fe(o,this.majorTickAngles,n.majorUnit,n.majorTicks);var r=new Fc;r.append(this.majorTicks);var i=n.majorTicks.size,s=n.minorTicks.size;if(this._tickDifference=i-s,n.labels.position===ic){var a=o.getRadiusX();o.setRadiusX(a-i+s).setRadiusY(a-i+s)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(e,n.minorUnit)),this.minorTicks=Fe(o,this.minorTickAngles,n.minorUnit,n.minorTicks),r.append(this.minorTicks),r},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,n=e.majorUnit/e.minorUnit,o=t.length-1;o>=0;o--)o%n===0&&t.splice(o,1);return t},e.prototype.tickAngles=function(t,e){var n=this.options,o=n.reverse,r=n.max-n.min,i=t.endAngle-t.startAngle,s=r/e,a=t.startAngle,l=i/s;o&&(a+=i,l=-l);for(var c=[],u=0;u<s;u++)c.push(ro(a,qe)),a+=l;return ro(a)<=t.endAngle&&c.push(a),c},e.prototype.radius=function(t){return t?(this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0),void 0):this.arc.getRadiusX()},e.prototype.repositionTicks=function(t,e,n){var o=n?this._tickDifference||0:0,r=this.arc,i=r.getRadiusX();n&&this.options.labels.position===ic&&0!==o&&(r=this.arc.clone(),r.setRadiusX(i-o).setRadiusY(i-o));for(var s=0;s<t.length;s++){var a=r.pointAt(e[s]),l=t[s].segments,c=a.x-l[0].anchor().x,u=a.y-l[0].anchor().y;t[s].transform((new ze.geometry.transform).translate(c,u))}},e}(lr);T(Lc,{min:0,max:100,majorTicks:{size:15,align:oc,color:He,width:tc,visible:!0},minorTicks:{size:10,align:oc,color:He,width:tc,visible:!0},startAngle:-30,endAngle:210,labels:{position:oc,padding:2}});var zc=function(t){function e(e,n){t.call(this,e,n);var o=this.options;o.duration=Math.max(Math.abs(o.newAngle-o.oldAngle)/o.duration*1e3,1)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,n=S(e.oldAngle,e.newAngle,t);this.element.transform(ze.geometry.transform().rotate(n,e.center))},e}(ze.drawing.Animation);T(zc,{easing:rc,duration:Yl}),ze.drawing.AnimationFactory.current.register(sc,zc);var Bc=.05,Nc=ze.drawing.Circle,Hc=ze.drawing.Group,Vc=ze.drawing.Path,Uc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setAngle=function(t){this.elements.transform(ze.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this,e=t.scale,n=t.options,o=e.slotAngle(n._oldValue),r=e.slotAngle(n.value);n.animation.transitions===!1?this.setAngle(r):new zc(this.elements,f(n.animation,{oldAngle:o,newAngle:r})).play()},e.prototype.render=function(){var t=this,e=t.scale,n=t.options,o=new Hc;return n.animation!==!1&&f(n.animation,{startAngle:0,center:e.arc.center,reverse:e.options.reverse}),o.append(this._renderNeedle(),this._renderCap()),this.elements=o,this.setAngle(nc),o},e.prototype.reflow=function(t){var e=this.center=t.center,n=eo(this.options.length||1,.1,1.5),o=this.radius=t.getRadiusX()*n,r=this.capSize=Math.round(o*this.options.cap.size);this.bbox=ze.geometry.Rect.fromPoints(new ze.geometry.Point(e.x-r,e.y-r),new ze.geometry.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,o=new Vc({fill:{color:n},stroke:{color:n,width:tc}});return o.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(),o},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,n=new ze.geometry.Circle(this.center,this.capSize),o=new Nc(n,{fill:{color:e},stroke:{color:e}});return o},e}(bc);T(Uc,{cap:{size:Bc},arrow:{width:16,height:14},animation:{type:sc,duration:Yl}});var Gc=ze.drawing.Group,qc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this,n=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var o=0;o<n.length;o++)n[o].reflow(e.scale.arc),e._initialPlotArea=ze.geometry.Rect.union(e._initialPlotArea,n[o].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,n,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,n){var o=this._visuals=new Gc;o.append(t),o.append(n.ticks),o.append(n.ranges),this._buildPointers(e),o.append(n.labelElements)},e.prototype._buildPointers=function(t){for(var e=this,n=0;n<t.length;n++){var o=t[n];
12o.render(),e._visuals.append(o.elements),o.value(o.options.value)}},e.prototype.fitScale=function(t){for(var e,n,o,r,i,s=this,a=this.scale.arc,l=this._initialPlotArea,c=Math.abs(this.getDiff(l,t)),u=ro(c,qe),p=ro(-c,qe),h=0,f=0;!(!(f++<100)||(h=i===o?h+1:0,h>5)||u!==r&&(e=s.getPlotBox(u,t,a),0<=e&&e<=2)||p!==r&&(o=s.getPlotBox(p,t,a),0<=o&&o<=2)||(r=e>0&&o>0?2*u:e<0&&o<0?2*p:ro((u+p)/2||1,qe),n=s.getPlotBox(r,t,a),0<=n&&n<=2));)i=o,n>0?(p=r,o=n):(u=r,e=n)},e.prototype.getPlotBox=function(t,e,n){var o=this,r=this.scale,i=this.pointers,s=n.getRadiusX(),a=n.clone();a.setRadiusX(s+t).setRadiusY(s+t),r.arc=a,r.reflow(e),this.plotBbox=r.bbox;for(var l=0;l<i.length;l++)i[l].reflow(a),o.plotBbox=ze.geometry.Rect.union(o.plotBbox,i[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,n=this.plotBbox.center(),o=t.center(),r=n.x-o.x,i=n.y-o.y,s=this,a=s.scale,l=s.pointers;a.arc.center.x-=r,a.arc.center.y-=i,a.reflow(t);for(var c=0;c<l.length;c++)l[c].reflow(a.arc),e.plotBbox=ze.geometry.Rect.union(a.bbox,l[c].bbox)},e.prototype._createModel=function(){var t=this,e=this.options,n=e.pointer,r=this.scale=new Lc(e.scale,this.contextService);this.pointers=[];for(var i=o(n)?n:[n],s=0;s<i.length;s++){var a=new Uc(r,f({},i[s],{animation:{transitions:e.transitions}}));t.pointers.push(a)}},e}(dc);T(qc,{transitions:!0,gaugeArea:{background:""}});var Kc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rangeSegments=function(){var t=this.options,e=t.min,n=t.max,o=t.rangePlaceholderColor,r=t.rangeLineCap;return[{from:e,to:n,color:o,lineCap:r}]},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 o=this.options.reverse,r=this.slotAngle(o?e:t),i=this.slotAngle(o?t:e),s=this.createRange(r,i,this.getRangeRadius(),n);return this.ranges.append(s),s},e}(Lc);T(Kc,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var Wc=800,Yc=function(t){function e(e,n){t.call(this,e,n);var o=this.options,r=Math.abs(o.newAngle-o.oldAngle)/o.duration*1e3;o.duration=eo(r,Yl,Wc);var i=e.elements.options.get("stroke.color"),s=e.currentColor();i!==s&&(this.startColor=new ze.Color(i),this.color=new ze.Color(s))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this,n=e.options,o=e.startColor,r=e.color,i=S(n.oldAngle,n.newAngle,t);if(this.element.angle(i),r){var s=ro(S(o.r,r.r,t)),a=ro(S(o.g,r.g,t)),l=ro(S(o.b,r.b,t));this.element.stroke(new ze.Color(s,a,l).toHex())}},e}(ze.drawing.Animation);T(Yc,{easing:rc,duration:Yl}),ze.drawing.AnimationFactory.current.register(ac,Yc);var Xc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.repaint=function(){var t=this,e=t.scale,n=t.options,o=e.slotAngle(n._oldValue),r=e.slotAngle(n.value);this.animation&&this.animation.abort(),n.animation.transitions===!1?(this.angle(r),this.stroke(this.currentColor())):(this.animation=new Yc(this,f(n.animation,{oldAngle:o,newAngle:r})),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,e=t.scale,n=t.options;n.animation!==!1&&f(n.animation,{startAngle:0,center:e.arc.center,reverse:e.options.reverse}),this.elements=e.addRange(e.options.min,this.options.value,{color:this.currentColor(),opacity:n.opacity,lineCap:e.options.rangeLineCap})}},e.prototype.currentColor=function(){var t=this.scale.options,e=t.min,n=t.max,o=this.options,r=o.colors,i=o.color,s=o.value,a=l(s)?s:e;if(r)for(var c=0;c<r.length;c++){var u=r[c],p=u.color,h=u.from;void 0===h&&(h=e);var f=u.to;if(void 0===f&&(f=n),h<=a&&a<=f)return p}return i},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(bc);T(Xc,{animation:{type:ac,duration:Yl}});var Zc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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 Kc(t.scale,this.contextService),n=new Xc(e,f({},{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(),o=this.scale.arc.center,r=o.x-t/2,i=o.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,c=i+e;i=Math.max(i,a.origin.y),c>l&&(i-=c-l)}return{left:r,top:i}},e}(qc),$c=1.5,Jc=.4,Qc="#000",tu="Arial, Helvetica, sans-serif",eu="11px "+tu,nu="12px "+tu,ou="16
12px "+tu,ru="transparent",iu="#fff",su=function(){return{icon:{border:{width:1}},label:{font:nu,padding:3},line:{length:10,width:2},visible:!0}},au=function(){return{labels:{font:nu},notes:su(),title:{font:ou,margin:5}}},lu=function(){return{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4}},cu=function(){return{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4}},uu=function(){return{gap:$c,spacing:Jc}},pu=function(){return{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:iu,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}}},hu=function(){return{border:{width:0},labels:{background:ru},opacity:.6}},fu=function(){return{gap:$c,spacing:Jc,target:{color:"#ff0000"}}},du=function(){return{border:{_brightness:.8,width:1},downColor:iu,gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:Qc,width:1},spacing:.3}},vu=function(){return{gap:$c,spacing:Jc}},yu=function(){return{margin:1}},gu=function(){return{width:2}},mu=function(){return{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3}},bu=function(){return{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5}},_u=function(){return{markers:{visible:!1},width:2}},xu=function(){return{gap:$c,spacing:Jc}},wu=function(){return{gap:$c,spacing:Jc}},ku=function(){return{width:1}},Su=function(){return{gap:.5,line:{color:Qc,width:1},spacing:Jc}},Ou=function(){return{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}}},Cu=function(){return{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}}},Tu=function(t){return{visible:!0,labels:{font:eu},overlay:t.gradients?{}:{gradient:"none"},area:lu(),rangeArea:cu(),verticalRangeArea:cu(),bar:uu(),boxPlot:pu(),bubble:hu(),bullet:fu(),candlestick:du(),column:vu(),pie:Ou(),donut:yu(),funnel:Cu(),horizontalWaterfall:Su(),line:gu(),notes:su(),ohlc:mu(),radarArea:bu(),radarLine:_u(),polarArea:bu(),polarLine:_u(),rangeBar:xu(),rangeColumn:wu(),scatterLine:ku(),verticalArea:lu(),verticalBoxPlot:pu(),verticalBullet:fu(),verticalLine:gu(),waterfall:Su()}},Eu=function(){return{font:ou}},Au=function(){return{labels:{font:nu}}},Mu=function(t){return void 0===t&&(t={}),{axisDefaults:au(),categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:Tu(t),title:Eu(),legend:Au()}};e.chartBaseTheme=Mu,e.autoMajorUnit=A,e.Point=lo,e.Box=co,e.Ring=uo,e.Sector=po,e.ShapeBuilder=fo,e.ShapeElement=go,e.ChartElement=vo,e.BoxElement=yo,e.RootElement=xo,e.FloatElement=wo,e.Text=So,e.TextBox=Co,e.Title=To,e.AxisLabel=Eo,e.Axis=jo,e.Note=Po,e.CategoryAxis=$o,e.DateCategoryAxis=sr,e.DateValueAxis=cr,e.NumericAxis=lr,e.LogarithmicAxis=pr,e.PolarAxis=dr,e.RadarCategoryAxis=fr,e.RadarNumericAxis=yr,e.RadarLogarithmicAxis=gr,e.CurveProcessor=_r,e.Gradients=_o,e.rectToBox=R,e.Aggregates=Sr,e.AreaChart=ks,e.AreaSegment=_s,e.AxisGroupRangeTracker=Ss,e.Bar=Ts,e.BarChart=Ms,e.BarLabel=Os,e.BoxPlotChart=Is,e.BoxPlot=Ds,e.BubbleChart=Bs,e.Bullet=Hs,e.BulletChart=Vs,e.CandlestickChart=js,e.Candlestick=Ps,e.CategoricalChart=ls,e.CategoricalErrorBar=ss,e.CategoricalPlotArea=ma,e.Chart=Pl,e.ChartContainer=Ks,e.ClipAnimation=gs,e.ClusterLayout=Es,e.Crosshair=qs,e.CrosshairTooltip=Gs,e.DefaultAggregates=ta,e.DonutChart=Za,e.DonutPlotArea=$a,e.DonutSegment=Ya,e.ErrorBarBase=is,e.ErrorRangeCalculator=Mr,e.Highlight=ba,e.SharedTooltip=Ra,e.Legend=Ea,e.LegendItem=Sa,e.LegendLayout=ka,e.LineChart=bs,e.LinePoint=ps,e.LineSegment=hs,e.Pane=Ws,e.PieAnimation=za,e.PieChart=Ka,e.PieChartMixin=Ga,e.PiePlotArea=Wa,e.PieSegment=Ha,e.PlotAreaBase=Zs,e.PlotAreaEventsMixin=Js,e.PlotAreaFactory=Aa,e.PointEventsMixin=cs,e.RangeBar=ea,e.RangeBarChart=na,e.RangeAreaPoint=aa,e.RangeAreaChart=pa,e.ScatterChart=Ls,e.ScatterErrorBar=Fs,e.ScatterLineChart=Ba,e.Selection=ja,e.SeriesAggregator=Qs,e.SeriesBinder=Or,e.SplineSegment=vs,e.SplineAreaSegment=ws,e.StackWrap=As,e.Tooltip=Da,e.OHLCChart=fa,e.OHLCPoint=ha,e.WaterfallChart=va,e.WaterfallSegment=da,e.XYPlotArea=Na,e.MousewheelZoom=wa,e.ZoomSelection=xa,e.Pannable=_a,e.ChartAxis=xr,e.ChartPane=wr,e.ChartPlotArea=kr,e.findAxisByName=Ot,e.anyHasZIndex=Pt,e.appendIfNotNull=Bt,e.areNumbers=It,e.bindSegments=Ht,e.categoriesCount=At,e.countNumbers=Ct,e.equalsIgnoreCase=Vt,e.evalOptions=Et,e.filterSeriesByType=Ut,e.getDateField=Gt,e.getField=Tt,e.hasGradientOverlay=jt,e.hasValue=Ft,e.isDateAxis=qt,e.segmentVisible=Nt,e.singleItemOrArray=Kt,e.createOutOfRangePoints=Zt,e.ChartService=Rn,e.DomEventsBuilder=Ln,e.FormatService=jn,e.IntlService=An,e.TemplateService=Bn,e.Sparkline=zl,e.constants=Ul,e.Navigator=ql,e.NavigatorHint=Nl,e.StockChart=Wl,e.Gauge=dc,e.LinearGauge=jc,e.LinearPointer=_c,e.ArrowLinearPointer=Sc,e.BarLinearPointer=Ec,e.LinearScale=mc,e.RadialGauge=qc,e.RadialPointer=Uc,e.RadialScale=Lc,e.ArcGauge=Zc,e.RangePointer=Xc,e.ArcScale=Kc,e.addClass=r,e.removeClass=i,e.alignPathToPixel=s,e.clockwise=a,e.convertableToNumber=u,e.deepExtend=f,e.elementStyles=g,e.getSpacing=m,e.getTemplate=b,e.getter=_,e.grep=x,e.hasClasses=w,e.HashMap=Vn,e.inArray=k,e.interpolateValue=S,e.InstanceObserver=Gn,e.isArray=o,e.isFunction=p,e.isNumber=l,e.isObject=d,e.
12isString=c,e.map=O,e.mousewheelDelta=C,e.FontLoader=ao,e.setDefaultOptions=T,e.sparseArrayLimits=E,e.styleValue=v,e.append=Kn,e.bindEvents=Wn,e.Class=ze.Class,e.defined=Yn,e.deg=Xn,e.elementOffset=Zn,e.elementSize=$n,e.eventElement=Jn,e.eventCoordinates=Qn,e.last=to,e.limitValue=eo,e.logToConsole=ze.logToConsole,e.objectKey=no,e.rad=oo,e.round=ro,e.unbindEvents=io,e.valueOrDefault=so},function(t,e,n){"use strict";function o(t){zo.call(Lo,t)}function r(t){return String(t).replace(No,"&").replace(Ho,"<").replace(Go,">").replace(Vo,""").replace(Uo,"'")}function i(t){var e=window.console;"undefined"!=typeof e&&e.log&&e.log(t)}function s(t){return"function"==typeof t}function a(t){return"string"==typeof t?[t]:t}function l(){this._defaultPrevented=!0}function c(){return this._defaultPrevented===!0}function u(t){var e=t.dataURI,n=t.fileName,o=e;if("string"==typeof o&&window.Blob){for(var r=o.split(";base64,"),i=r[0],s=atob(r[1]),a=new Uint8Array(s.length),l=0;l<s.length;l++)a[l]=s.charCodeAt(l);o=new Blob([a.buffer],{type:i})}if(navigator.msSaveBlob)navigator.msSaveBlob(o,n);else{var c=document.createElement("a");c.download=n,o=c.href=URL.createObjectURL(o);var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(u),setTimeout(function(){URL.revokeObjectURL(o)})}}function p(){throw new Error("String template not yet supported. Pass a function and use your preferred template engine.")}function h(){return(new Date).getTime()}function f(t,e){var n,o=0;if(!e||e<=0)return t;var r=function(){var r=h()-o,i=arguments,s=function(){t.apply(null,i),o=h()};return o?(n&&clearTimeout(n),void(r>e?s():n=setTimeout(s,e-r))):s()};return r.cancel=function(){clearTimeout(n)},r}function d(t,e,n){void 0===n&&(n="0");for(var o=t.toString(16);e>o.length;)o=n+o;return o}function v(t,e,n){var o=n;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+6*(e-t)*o:o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function y(t,e){var n,o;if(null==t||"none"===t)return null;if(t instanceof Zo)return t;var r=t.toLowerCase();if(n=Xo(r))return r="transparent"===n[1]?new $o(1,1,1,0):y(Wo[n[1]],e),r.match=[n[1]],r;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(r))?o=new Jo(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))?o=new Jo(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))?o=new Jo(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))?o=new Jo(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))?o=new $o(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))&&(o=new $o(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),o)o.match=n;else if(!e)throw new Error("Cannot parse color: "+r);return o}function g(t,e){return t.push.apply(t,e),t}function m(t){for(var e=[1e3,900,800,700,600,500,400,300,200,100,9
120,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+=rr[e[0]],t-=e[0]);return n}function b(){var t,e,n=new Promise(function(o,r){t=function(t){return n._state="resolved",o(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}function _(t){return typeof t!==ir}function x(){return"kdef"+sr++}function w(t){return t/ar}function k(t){for(var e="",n=0;n<t.length;n++){var o=t.charCodeAt(n);o<128?e+=pr(o):o<2048?(e+=pr(192|o>>>6),e+=pr(128|63&o)):o<65536&&(e+=pr(224|o>>>12),e+=pr(128|o>>>6&63),e+=pr(128|63&o))}return e}function S(t){for(var e="",n=0,o=k(t);n<o.length;){var r=o.charCodeAt(n++),i=o.charCodeAt(n++),s=o.charCodeAt(n++),a=r>>2,l=(3&r)<<4|i>>4,c=(15&i)<<2|s>>6,u=63&s;isNaN(i)?c=u=64:isNaN(s)&&(u=64),e=e+ur.charAt(a)+ur.charAt(l)+ur.charAt(c)+ur.charAt(u)}return e}function O(t){return _((t.x||{}).location)?{x:t.x.location,y:t.y.location}:{x:t.pageX||t.clientX||0,y:t.pageY||t.clientY||0}}function C(t){return void 0===t&&(t={}),t.touch?t.touch.initialTouch:t.target}function T(t){return""===t||null===t||"none"===t||"transparent"===t||!_(t)}function E(t){if(t)return t[t.length-1]}function A(t,e,n){return Math.max(Math.min(t,n),e)}function M(t,e){function n(t,n){for(var o=[],r=0,i=0,s=0;r<t.length&&i<n.length;)e(t[r],n[i])<=0?o[s++]=t[r++]:o[s++]=n[i++];return r<t.length&&o.push.apply(o,t.slice(r)),i<n.length&&o.push.apply(o,n.slice(i)),o}return t.length<2?t.slice():function t(e){if(e.length<=1)return e;var o=Math.floor(e.length/2),r=e.slice(0,o),i=e.slice(o);return r=t(r),i=t(i),n(r,i)}(t)}function P(t){return Promise.all(t)}function j(t){return t*ar}function D(t){return t?Math.pow(10,t):1}function R(t,e){var n=D(e);return Math.round(t*n)/n}function I(t,e){return _(t)?t:e}function F(t,e){for(var n in e)for(var o=n.trim().split(" "),r=0;r<o.length;r++)t.addEventListener(o[r],e[n],!1)}function L(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 z(t,e){for(var n={},o=window.getComputedStyle(t)||{},r=Array.isArray(e)?e:[e],i=0;i<r.length;i++){var s=r[i];n[s]=o[s]}return n}function B(t){return isNaN(t)?t:t+"px"}function N(t,e){if(!e){var n=z(t,["width","height"]);return{width:parseInt(n.width,10),height:parseInt(n.height,10)}}var o=e.width,r=e.height;_(o)&&(t.style.width=B(o)),_(r)&&(t.style.height=B(r))}function H(t,e){void 0===e&&(e={});for(var n in e)for(var o=n.trim().split(" "),r=0;r<o.length;r++)t.removeEventListener(o[r],e[n],!1)}function V(t){return String(t).replace(fr,dr)}function U(t){var e=[];for(var n in t)e.push(n+t[n]);return e.sort().join("")}function G(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}function q(){return{width:0,height:0,baseline:0}}function K(t,e,n){return yr.current.measure(t,e,n)}function W(t){return function(e){return this[t]!==e&&(this[t]=e,this.geometryChange()),this}}function Y(t){return function(){return this[t]}}function X(t,e){for(var n=0;n<e.length;n++){var o=e[n],r=o.charAt(0).toUpperCase()+o.substring(1,o.length);t["set"+r]=W(o),t["get"+r]=Y(o)}}function Z(t){return t&&"function"==typeof t.matrix?t.matrix():t}function $(t){return null===t?null:t instanceof Sr?t:new Sr(t)}function J(t,e,n,o){var r=0,i=0;return o&&(r=Math.atan2(o.c*n,o.a*e),0!==o.b&&(i=Math.atan2(o.d*n,o.b*e))),{x:r,y:i}}function Q(t){var e="_"+t;return function(t){return _(t)?(this._observerField(e,t),this.geometryChange(),this):this[e]}}function tt(t,e){for(var n=0;n<e.length;n++)t[e[n]]=Q(e[n])}function et(t,e,n){return void 0===n&&(n=Rr),0===R(Math.abs(t-e),n)}function nt(t,e,n){return t<e||et(t,e,n)}function ot(t,e,n,o){var r=e.x-t.x,i=o.x-n.x,s=e.y-t.y,a=o.y-n.y,l=t.x-n.x,c=t.y-n.y,u=r*a-i*s,p=(r*c-s*l)/u,h=(i*c-a*l)/u;if(p>=0&&p<=1&&h>=0&&h<=1)return new xr(t.x+h*r,t.y+h*s)}function rt(t,e,n,o,r,i){var s=R((r-t)/n,3),a=R((i-e)/o,3);return R(w(Math.atan2(a,s)))}function it(t){var e=t.x1,n=t.y1,o=t.x2,r=t.y2,i=t.rx,s=t.ry,a=t.largeArc,l=t.swipe,c=t.rotation;void 0===c&&(c=0);var u=j(c),p=Math.cos(u),h=Math.sin(u),f=p*(e-o)/2+h*(n-r)/2,d=-h*(e-o)/2+p*(n-r)/2,v=a!==l?1:-1,y=Math.pow(f,2),g=Math.pow(d,2),m=Math.pow(i,2),b=Math.pow(s,2),_=y/m+g/b;_>1&&(_=Math.sqrt(y/m+g/b),i*=_,m=Math.pow(i,2),s*=_,b=Math.pow(s,2));var x=v*Math.sqrt((m*b-m*g-b*y)/(m*g+b*y));isNaN(x)&&(x=0);var k=x*(i*d)/s,S=-x*(s*f)/i,O=p*k-h*S+(e+o)/2,C=h*k+p*S+(n+r)/2,T=(f-k)/i,E=(d-S)/s,A=-(f+k)/i,M=-(d+S)/s,P=(E>=0?1:-1)*w(Math.acos(T/Math.sqrt(T*T+E*E))),D=R((T*A+E*M)/(Math.sqrt(T*T+E*E)*Math.sqrt(A*A+M*M)),10),I=(T*M-E*A>=0?1:-1)*w(Math.acos(D));!l&&I>0&&(I-=360),l&&I<0&&(I+=360);var F=P+I,L=F>=0?1:-1;return F=Math.abs(F)%360*L,{center:new xr(O,C),startAngle:P,endAngle:F,radiusX:i,radiusY:s,xRotation:c}}function st(t,e){for(var n=t;n<e;)n+=90;return n}function at(t){var e="_"+t;return function(t){return _(t)?(this._observerField(e,xr.create(t)),this.geometryChange(),this):this[e]}}function lt(t,e){for(var n=0;n<e.length;n++)t[e[n]]=at(e[n])}function ct(t,e,n){var o=w(Math.atan2(e.y-t.y,e.x-t.x)),r=n.transformCopy($().rotate(-o,t));return r.x<t.x}function ut(t,e,n){var o=1-t;return Math.pow(o,3)*n[0][e]+3*Math.pow(o,2)*t*n[1][e]+3*Math.pow(t,2)*o*n[2][e]+Math.pow(t,3)*n[3][e]}function pt(t,e){return[-t[0][e]+3*t[1][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]]}function ht(t){return t<0?-1:1}function ft(t,e,n){var o=Math.sqrt(Math.pow(e,2)-4*t*n);return[(-e+o)/(2*t),(-e-o)/(2*t)]}function dt(t,e,n,o){if(0===t)return ft(e,n,o);var r,i,s,a,l,c,u,p=(3*t*n-Math.pow(e,2))/(3*Math.pow(t,2)),h=(2*Math.pow(e,3)-9*t*e*n+27*Math.pow(t,2)*o)/(27*Math.pow(t,3)),f=Math.pow(p/3,3)+Math.pow(h/2,2),d=new Kr(0,1),v=-e/(3*t);f<0?(r=new Kr(-h/2,Math.sqrt(-f)).nthRoot(3),i=new Kr(-h/2,-Math.sqrt(-f)).nthRoot(3)):(r=-h/2+Math.sqrt(f),r=new Kr(ht(r)*Math.pow(Math.abs(r),1/3)),i=-h/2-Math.sqrt(f),i=new Kr(ht(i)*Math.pow(Math.abs(i),1/3))),s=r.add(i),c=r.add(i).multiplyConstant(-.5),u=r.add(i.negate()).multiplyConstant(Math.sqrt(3)/2),a=c.add(d.multiply(u)),l=c.add(d.negate().multiply(u));var y=[];return s.isReal()&&y.push(R(s.real+v,Rr)),a.isReal()&&y.push(R(a.real+v,Rr)),l.isReal()&&y.push(R(l.real+v,Rr)),y}function vt(t,e,n,o,r){for(var i,s=pt(t,o),a=dt(s[0],s[1],s[2],s[3]-e[o]),l=0;l<a.length;l++)if(0<=a[l]&&a[l]<=1&&(i=ut(a[l],n,t),Math.abs(i-e[n])<=r))return!0}function yt(t,e,n){for(var o,r,i=pt(t,"x"),s=dt(i[0],i[1],i[2],i[3]-e.x),a=0,l=0;l<s.length;l++)o=ut(s[l],"y",t),r=et(o,e.y)||o>e.y,r&&((0===s[l]||1===s[l])&&n.bottomRight().x>e.x||0<s[l]&&s[l]<1)&&a++;return a}function gt(t,e,n){var o;if(t.x!==e.x){var r=Math.min(t.x,e.x),i=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<i;o=s===a?n.y<=s&&l:l&&(a-s)*((t.x-e.x)*(t.y-e.y)>0?n.x-r:i-n.x)/(i-r)+s-n.y>=0}return o?1:0}function mt(t){for(var e=t.length,n=lr,o=cr,r=0;r<e;r++)o=Math.max(o,t[r]),n=Math.min(n,t[r]);return{min:n,max:o}}function bt(t,e,n){for(var o,r=0;r<t.length;r++){var i=t[r];
12if(i.visible()){var s=e?i.bbox(n):i.rawBBox();s&&(o=o?kr.union(o,s):s)}}return o}function _t(t,e){for(var n,o=0;o<t.length;o++){var r=t[o];if(r.visible()){var i=r.clippedBBox(e);i&&(n=n?kr.union(n,i):i)}}return n}function xt(t,e,n){for(var o=e?0:1,r=0;r<t.length;r+=2)t.splice(r+o,0,n)}function wt(t,e){if(t&&e)return e.scaleCopy(2).translate(-t.x,-t.y)}function kt(t,e,n){var o=e.clone().scale(2/3);return{controlOut:o.clone().translateWith(t.scaleCopy(Zr)),controlIn:o.translateWith(n.scaleCopy(Zr))}}function St(t){var e=[];return t.replace(Jr,function(t,n){e.push(parseFloat(n))}),e}function Ot(t,e,n){var o=n.transform()||$(),r=o.matrix();r.e+=t.x-e.origin.x,r.f+=t.y-e.origin.y,o.matrix(r),n.transform(o)}function Ct(t,e,n,o,r){var i;return i="start"===n?e.origin[o]:"end"===n?e.origin[o]+e.size[r]-t:e.origin[o]+(e.size[r]-t)/2}function Tt(t,e,n,o,r){var i;return i="start"===n?e.origin[o]+e.size[r]-t:"end"===n?e.origin[o]:e.origin[o]+(e.size[r]-t)/2}function Et(t,e,n,o,r){for(var i=0;i<t.length;i++){var s=t[i].clippedBBox();if(s){var a=s.origin.clone();a[o]=Ct(s.size[r],e,n||"start",o,r),Ot(a,s,t[i])}}}function At(t,e,n){Et(t,e,n,"x","width")}function Mt(t,e,n){Et(t,e,n,"y","height")}function Pt(t,e,n,o){if(t.length>1)for(var r=new xr,i=t[0].bbox,s=1;s<t.length;s++){var a=t[s].element,l=t[s].bbox;r[e]=i.origin[e]+i.size[o],r[n]=l.origin[n],Ot(r,l,a),l.origin[e]=r[e],i=l}}function jt(t){for(var e=[],n=0;n<t.length;n++){var o=t[n],r=o.clippedBBox();r&&e.push({element:o,bbox:r})}return e}function Dt(t){Pt(jt(t),"x","y","width")}function Rt(t){Pt(jt(t),"y","x","height")}function It(t,e,n){for(var o,r,i=e.size[n],s=[],a=[],l=0,c=function(){a.push({element:o,bbox:r})},u=0;u<t.length;u++)if(o=t[u],r=o.clippedBBox()){var p=r.size[n];l+p>i?a.length?(s.push(a),a=[],c(),l=p):(c(),s.push(a),a=[],l=0):(c(),l+=p)}return a.length&&s.push(a),s}function Ft(t,e,n,o,r){for(var i=It(t,e,r),s=e.origin.clone(),a=[],l=0;l<i.length;l++){var c=i[l],u=c[0];s[o]=u.bbox.origin[o],Ot(s,u.bbox,u.element),u.bbox.origin[n]=s[n],Pt(c,n,o,r),a.push([]);for(var p=0;p<c.length;p++)a[l].push(c[p].element)}return a}function Lt(t,e){return Ft(t,e,"x","y","width")}function zt(t,e){return Ft(t,e,"y","x","height")}function Bt(t,e){var n=t.clippedBBox();if(n){var o=n.size,r=e.size;if(r.width<o.width||r.height<o.height){var i=Math.min(r.width/o.width,r.height/o.height),s=t.transform()||$();s.scale(i,i),t.transform(s)}}}function Nt(t){return function(e){return _(e)?(this.options.set(t,e),this):this.options.get(t)}}function Ht(t,e){for(var n=0;n<e.length;n++)t[e[n]]=Nt(e[n])}function Vt(t){return.5-Math.cos(t*Math.PI)/2}function Ut(t){return t}function Gt(t,e,n,o){var r=1.70158,i=0,s=o;return 0===t?n:1===t?n+o:(i||(i=.5),s<Math.abs(o)?(s=o,r=i/4):r=i/(2*Math.PI)*Math.asin(o/s),s*Math.pow(2,-10*t)*Math.sin((Number(t)-r)*(1.1*Math.PI)/i)+o+n)}function qt(t,e){return _(e)&&null!==e?" "+t+'="'+e+'" ':""}function Kt(t){for(var e="",n=0;n<t.length;n++)e+=qt(t[n][0],t[n][1]);return e}function Wt(t){for(var e="",n=0;n<t.length;n++){var o=t[n][1];_(o)&&(e+=t[n][0]+":"+o+";")}if(""!==e)return e}function Yt(t,e){return"clip"===t||"fill"===t&&(!e||"Gradient"===e.nodeType)}function Xt(){var t=document.getElementsByTagName("base")[0],e=document.location.href,n="";if(t&&!(Ko.browser||{}).msie){var o=e.indexOf("#");o!==-1&&(e=e.substring(0,o)),n=e}return n}function Zt(t){var e;try{e=t.getScreenCTM?t.getScreenCTM():null}catch(t){}if(e){var n=-e.e%1,o=-e.f%1,r=t.style;0===n&&0===o||(r.left=n+"px",r.top=o+"px")}}function $t(t){if(!t||"string"!=typeof t||!ss.test(t))return t;var e=$t._element;return ss.lastIndex=0,t.replace(ss,function(t){return e.innerHTML=t,e.textContent||e.innerText})}function Jt(t){var e=new Ki({skipBaseHref:!0}),n=t.clippedBBox(),o=t;if(n){var r=n.getOrigin(),i=new ui;i.transform($().translate(-r.x,-r.y)),i.children.push(t),o=i}e.load([o]);var s="<?xml version='1.0' ?><svg xmlns='"+Mi+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+e.render()+"</svg>";return e.destroy(),s}function Qt(t,e){var n=e.segments;if(0!==n.length){var o=n[0],r=o.anchor();t.moveTo(r.x,r.y);for(var i=1;i<n.length;i++){o=n[i],r=o.anchor();var s=n[i-1],a=s.controlOut(),l=o.controlIn();a&&l?t.bezierCurveTo(a.x,a.y,l.x,l.y,r.x,r.y):t.lineTo(r.x,r.y)}e.options.closed&&t.closePath()}}function te(t,e){return t._zIndex<e._zIndex?1:t._zIndex>e._zIndex?-1:0}function ee(t,e){for(var n=0;n<e.length;n++){var o=e[n],r=y(o.color());r.a*=o.opacity(),t.addColorStop(o.offset(),r.toCssRgba())}}function ne(t,e){var n={width:"800px",height:"600px",cors:"Anonymous"},o=t,r=t.clippedBBox();if(r){var i=r.getOrigin();o=new ui,o.transform($().translate(-i.x,-i.y)),o.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"),c=l.style;c.display="none",c.width=a.width,c.height=a.height,document.body.appendChild(l);var u=new ks(l,a);u.suspendTracking(),u.draw(o);var p=u.image(),h=function(){u.destroy(),document.body.removeChild(l)};return p.then(h,h),p}function oe(t,e){var n=Jt(t);return e&&e.raw||(n="data:image/svg+xml;base64,"+S(n)),b().resolve(n)}function re(t){function e(){return _>=x}function n(){return _<x?t[_++]:0}function o(e){w(_),t[_++]=255&e,_>x&&(x=_)}function r(){return n()<<8|n()}function i(t){o(t>>8),o(t)}function s(){var t=r();return t>=32768?t-65536:t}function a(t){i(t<0?t+65536:t)}
12function l(){return 65536*r()+r()}function c(t){i(t>>>16&65535),i(65535&t)}function u(){var t=l();return t>=2147483648?t-4294967296:t}function p(t){c(t<0?t+4294967296:t)}function h(){return l()/65536}function f(t){c(Math.round(65536*t))}function d(){return u()/65536}function v(t){p(Math.round(65536*t))}function y(t){return b(t,n)}function g(t){return String.fromCharCode.apply(String,y(t))}function m(t){for(var e=0;e<t.length;++e)o(t.charCodeAt(e))}function b(t,e){ 13for(var n=new Array(t),o=0;o<t;++o)n[o]=e();return n}var _=0,x=0;null==t?t=Ds?new Uint8Array(256):[]:x=t.length;var w=Ds?function(e){if(e>=t.length){var n=new Uint8Array(Math.max(e+256,2*t.length));n.set(t,0),t=n}}:function(){},k=Ds?function(){return new Uint8Array(t.buffer,0,x)}:function(){return t},S=Ds?function(e){if("string"==typeof e)return m(e);var n=e.length;w(_+n),t.set(e,_),_+=n,_>x&&(x=_)}:function(t){if("string"==typeof t)return m(t);for(var e=0;e<t.length;++e)o(t[e])},O=Ds?function(e,n){if(t.buffer.slice)return new Uint8Array(t.buffer.slice(e,e+n));var o=new Uint8Array(n);return o.set(new Uint8Array(t.buffer,e,n)),o}:function(e,n){return t.slice(e,e+n)},C={eof:e,readByte:n,writeByte:o,readShort:r,writeShort:i,readLong:l,writeLong:c,readFixed:h,writeFixed:f,readShort_:s,writeShort_:a,readLong_:u,writeLong_:p,readFixed_:d,writeFixed_:v,read:y,write:S,readString:g,writeString:m,times:b,get:k,slice:O,offset:function(t){return null!=t?(_=t,C):_},skip:function(t){_+=t},toString:function(){throw new Error("FIX CALLER. BinaryStream is no longer convertible to string!")},length:function(){return x},saveExcursion:function(t){var e=_;try{return t()}finally{_=e}},writeBase64:function(t){window.atob?m(window.atob(t)):S(Rs.decode(t))},base64:function(){return Rs.encode(k())}};return C}function ie(t){for(var e,n,o=[],r=0,i=t.length;r<i;)e=t.charCodeAt(r++),e>=55296&&e<=56319&&r<i?(n=t.charCodeAt(r++),56320==(64512&n)?o.push(((1023&e)<<10)+(1023&n)+65536):(o.push(e),r--)):o.push(e);return o}function se(t){return t.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("")}function ae(t){for(var e=window.atob(t),n=new Uint8Array(e.length),o=0;o<e.length;o++)n[o]=e.charCodeAt(o);return n}function le(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t[n];return e}function ce(t){return window.atob?ae(t):le(Rs.decode(t))}function ue(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function pe(t){return Object.keys(t).sort(function(t,e){return t-e}).map(parseFloat)}function he(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 o={tag:t.readString(4),checksum:t.readLong(),offset:t.readLong(),length:t.readLong()};e[o.tag]=o}}function fe(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)}e.prototype.raw=function(){return this.rawData.slice(this.offset,this.length)};for(var n in t)ue(t,n)&&(e[n]=e.prototype[n]=t[n]);return e}function de(){for(var t="",e=String(qs),n=0;n<e.length;++n)t+=String.fromCharCode(e.charCodeAt(n)-48+65);return++qs,t}function ve(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=de()+"+"+this.font.psName}function ye(t,e){var n=this,o=n.contents=re(t);if("ttcf"==o.readString(4)){var r,i=function(){o.offset(r),n.parse()};
13if(!e)throw new Error("Must specify a name for TTC files");o.readLong();for(var s=o.readLong(),a=0;a<s;++a)if(r=o.readLong(),o.saveExcursion(i),n.psName==e)return;throw new Error("Font "+e+" not found in collection")}o.offset(0),n.parse()}function ge(){return!0}function me(){function t(){for(var e=arguments,o=0;o<arguments.length;++o){var r=e[o];if(void 0===r)throw new Error("Cannot output undefined to PDF");if(r instanceof Le)r.beforeRender(t),r.render(t);else if(ea(r))Pe(r,t);else if(Me(r))je(r,t);else if("number"==typeof r){if(isNaN(r))throw new Error("Cannot output NaN to PDF");var i=r.toFixed(7);i.indexOf(".")>=0&&(i=i.replace(/\.?0+$/,"")),"-0"==i&&(i="0"),n.writeString(i)}else/string|boolean/.test(typeof r)?n.writeString(String(r)):"function"==typeof r.get?n.write(r.get()):"object"==typeof r&&(r?t(new sa(r)):n.writeString("null"))}}var e=0,n=re();return t.writeData=function(t){n.write(t)},t.withIndent=function(n){++e,n(t),--e},t.indent=function(){t(Ys,Te("",2*e," ")),t.apply(null,arguments)},t.offset=function(){return n.offset()},t.toString=function(){throw new Error("FIX CALLER")},t.get=function(){return n.get()},t.stream=function(){return n},t}function be(t,e){var n=t.beforeRender,o=t.render;t.beforeRender=function(){},t.render=function(t){t(e," 0 R")},t.renderFull=function(r){t._offset=r.offset(),r(e," 0 obj "),n.call(t,r),o.call(t,r),r(" endobj")}}function _e(t){if("function"!=typeof t){var e=t;t=function(t,n){return t in e?e[t]:n}}var n=t("paperSize",Zs.a4);if(!n)return{};if("string"==typeof n&&(n=Zs[n.toLowerCase()],null==n))throw new Error("Unknown paper size");n[0]=Fe(n[0]),n[1]=Fe(n[1]),t("landscape",!1)&&(n=[Math.max(n[0],n[1]),Math.min(n[0],n[1])]);var o=t("margin");return o&&("string"==typeof o||"number"==typeof o?(o=Fe(o,0),o={left:o,top:o,right:o,bottom:o}):o={left:Fe(o.left,0),top:Fe(o.top,0),right:Fe(o.right,0),bottom:Fe(o.bottom,0)},t("addMargin")&&(n[0]+=o.left+o.right,n[1]+=o.top+o.bottom)),{paperSize:n,margin:o}}function xe(t){function e(e,n){return t&&null!=t[e]?t[e]:n}var n=this,o=me(),r=0,i=[];n.getOption=e,n.attach=function(t){return i.indexOf(t)<0&&(be(t,++r),i.push(t)),t},n.pages=[],n.FONTS={},n.IMAGES={},n.GRAD_COL_FUNCTIONS={},n.GRAD_OPC_FUNCTIONS={},n.GRAD_COL={},n.GRAD_OPC={};var s=n.attach(new la),a=n.attach(new ca);if(e("autoPrint")){var l={};l.JavaScript=new sa({Names:[new na("JS"),n.attach(new sa({S:Be("JavaScript"),JS:new na("print(true);")}))]}),s.props.Names=new sa(l)}s.setPages(a);var c=n.attach(new sa({Producer:new na(e("producer","Kendo UI PDF Generator")),Title:new na(e("title","")),Author:new na(e("author","")),Subject:new na(e("subject","")),Keywords:new na(e("keywords","")),Creator:new na(e("creator","Kendo UI PDF Generator")),CreationDate:e("date",new Date)}));n.addPage=function(t){var e=_e(function(e,n){return t&&null!=t[e]?t[e]:n}),o=e.paperSize,r=e.margin,i=o[0],s=o[1];r&&(i-=r.left+r.right,s-=r.top+r.bottom);var l=new aa(me(),null,!0),c={Contents:n.attach(l),Parent:a,MediaBox:[0,0,o[0],o[1]]},u=new da(n,c);return u._content=l,a.addPage(n.attach(u)),u.transform(1,0,0,-1,0,o[1]),r&&(u.translate(r.left,r.top),u.rect(0,0,i,s),u.clip()),n.pages.push(u),u},n.render=function(){var t;for(o("%PDF-1.4",Ys,"%ÃÃÃÃÃ",Ys,Ys),t=0;t<i.length;++t)i[t].renderFull(o),o(Ys,Ys);var e=o.offset();for(o("xref",Ys,0," ",i.length+1,Ys),o("0000000000 65535 f ",Ys),t=0;t<i.length;++t)o(Ee(i[t]._offset,10)," 00000 n ",Ys);return o(Ys),o("trailer",Ys),o(new sa({Size:i.length+1,Root:s,Info:c}),Ys,Ys),o("startxref",Ys,e,Ys),o("%%EOF",Ys),o.stream().offset(0)}}function we(t,e){function n(){window.console&&(window.console.error?window.console.error("Cannot load URL: %s",t):window.console.log("Cannot load URL: %s",t)),e(null)}var o;if(Ws.msie&&(o=/^data:.*?;base64,/i.exec(t)))return void e(ce(t.substr(o[0].length)));var r=new XMLHttpRequest;r.open("GET",t,!0),Ds&&(r.responseType="arraybuffer"),r.onload=function(){200==r.status||304==r.status?e(Ds?new Uint8Array(r.response):new window.VBArray(r.responseBody).toArray()):n()},r.onerror=n,r.send(null)}function ke(t,e){var n=$s[t];n?e(n):we(t,function(n){if(null==n)throw new Error("Cannot load font from "+t);var o=new ye(n);
13$s[t]=o,e(o)})}function Se(){Js={}}function Oe(t,e,n){function o(t){c.src=t,c.complete&&!Ws.msie?s():(c.onload=s,c.onerror=i)}function r(){e||(e={width:c.width,height:c.height});var o=document.createElement("canvas");o.width=e.width,o.height=e.height;var r=o.getContext("2d");r.drawImage(c,0,0,e.width,e.height);var s;try{s=r.getImageData(0,0,e.width,e.height)}catch(t){return void i()}finally{a&&URL.revokeObjectURL(a)}for(var l=!1,u=re(),p=re(),h=s.data,f=0;f<h.length;){u.writeByte(h[f++]),u.writeByte(h[f++]),u.writeByte(h[f++]);var d=h[f++];d<255&&(l=!0),p.writeByte(d)}if(l)c=new He(e.width,e.height,u,p);else{var v=o.toDataURL("image/jpeg");v=v.substr(v.indexOf(";base64,")+8);var y=re();y.writeBase64(v),c=new Ne(y)}n(Js[t]=c)}function i(){n(Js[t]="ERROR")}function s(){if(e&&(e.width>=c.width||e.height>=c.height)&&(e=null),!e&&l&&/^image\/jpe?g$/i.test(l.type)){var o=new FileReader;o.onload=function(){try{var e=new Ne(re(new Uint8Array(this.result)));URL.revokeObjectURL(a),n(Js[t]=e)}catch(t){r()}},o.readAsArrayBuffer(l)}else r()}var a,l,c=Js[t];if(c)n(c);else if(c=new Image,/^data:/i.test(t)||(c.crossOrigin="Anonymous"),Ds&&!/^data:/i.test(t)){var u=new XMLHttpRequest;u.onload=function(){l=u.response,a=URL.createObjectURL(l),o(a)},u.onerror=i,u.open("GET",t,!0),u.responseType="blob",u.send()}else o(t)}function Ce(t){return function(e,n){function o(){0===--r&&n()}var r=e.length,i=r;if(0===r)return n();for(;i-- >0;)t(e[i],o)}}function Te(t,e,n){for(;t.length<e;)t=n+t;return t}function Ee(t,e){return Te(String(t),e,"0")}function Ae(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Me(t){return t instanceof Date}function Pe(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 je(t,e){e("(D:",Ee(t.getUTCFullYear(),4),Ee(t.getUTCMonth()+1,2),Ee(t.getUTCDate(),2),Ee(t.getUTCHours(),2),Ee(t.getUTCMinutes(),2),Ee(t.getUTCSeconds(),2),"Z)")}function De(t){return t*(72/25.4)}function Re(t){return De(10*t)}function Ie(t){return 72*t}function Fe(t,e){if("number"==typeof t)return t;if("string"==typeof t){var n;if(n=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(t)){var o=parseFloat(n[1]);if(!isNaN(o))return"pt"==n[2]?o:{mm:De,cm:Re,in:Ie}[n[2]](o)}}if(null!=e)return e;throw new Error("Can't parse unit: "+t)}function Le(){}function ze(t,e,n){n||(n=Le),t.prototype=new n;for(var o in e)Ae(e,o)&&(t.prototype[o]=e[o]);return t}function Be(t){return Ae(ia,t)?ia[t]:ia[t]=new ra(t)}function Ne(t){t.offset(0);var e,n,o,r,i=t.readShort();if(65496!=i)throw new Error("Invalid JPEG image");for(;!t.eof();){var s=t.readByte();if(255!=s)throw new Error("Invalid JPEG image");var a=t.readByte(),l=t.readShort();if(ua.indexOf(a)>=0){r=t.readByte(),n=t.readShort(),e=t.readShort(),o=t.readByte();break}t.skip(l-2)}if(null==o)throw new Error("Invalid JPEG image");var c={Type:Be("XObject"),Subtype:Be("Image"),Width:e,Height:n,BitsPerComponent:r,Filter:Be("DCTDecode")};
vendor: 5,212 bytes, line 13
13switch(o){case 1:c.ColorSpace=Be("DeviceGray");break;case 3:c.ColorSpace=Be("DeviceRGB");break;case 4:c.ColorSpace=Be("DeviceCMYK"),c.Decode=[1,0,1,0,1,0,1,0]}this.asStream=function(){t.offset(0);var e=new aa(t,c);return e._resourceName=Be("I"+ ++Xs),e}}function He(t,e,n,o){this.asStream=function(r){var i=new aa(o,{Type:Be("XObject"),Subtype:Be("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:Be("DeviceGray")},!0),s=new aa(n,{Type:Be("XObject"),Subtype:Be("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:Be("DeviceRGB"),SMask:r.attach(i)},!0);return s._resourceName=Be("I"+ ++Xs),s}}function Ve(t){return t.map(function(t){return ea(t)?Ve(t):"number"==typeof t?(Math.round(1e3*t)/1e3).toFixed(3):t}).join(" ")}function Ue(t,e,n,o,r,i,s){var a=Ve([e,n,o,r,i,s]),l=t.GRAD_COL_FUNCTIONS[a];return l||(l=t.GRAD_COL_FUNCTIONS[a]=t.attach(new sa({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[e,n,o],C1:[r,i,s]}))),l}function Ge(t,e,n){var o=Ve([e,n]),r=t.GRAD_OPC_FUNCTIONS[o];return r||(r=t.GRAD_OPC_FUNCTIONS[o]=t.attach(new sa({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[e],C1:[n]}))),r}function qe(t,e){function n(t){return 1==t.length?t[0]:{FunctionType:3,Functions:t,Domain:[0,1],Bounds:p,Encode:h}}var o,r,i,s,a,l=!1,c=[],u=[],p=[],h=[];for(o=1;o<e.length;++o)r=e[o-1],i=e[o],s=r.color,a=i.color,u.push(Ue(t,s.r,s.g,s.b,a.r,a.g,a.b)),(s.a<1||a.a<1)&&(l=!0),p.push(i.offset),h.push(0,1);if(l)for(o=1;o<e.length;++o)r=e[o-1],i=e[o],s=r.color,a=i.color,c.push(Ge(t,s.a,a.a));return p.pop(),{hasAlpha:l,colors:n(u),opacities:l?n(c):null}}function Ke(t,e,n,o,r,i){var s,a;if(!i){var l=[e].concat(o);n.forEach(function(t){l.push(t.offset,t.color.r,t.color.g,t.color.b)}),a=Ve(l),s=t.GRAD_COL[a]}return s||(s=new sa({Type:Be("Shading"),ShadingType:e?3:2,ColorSpace:Be("DeviceRGB"),Coords:o,Domain:[0,1],Function:r,Extend:[!0,!0]}),t.attach(s),s._resourceName="S"+ ++Xs,a&&(t.GRAD_COL[a]=s)),s}function We(t,e,n,o,r,i){var s,a;if(!i){var l=[e].concat(o);n.forEach(function(t){l.push(t.offset,t.color.a)}),a=Ve(l),s=t.GRAD_OPC[a]}return s||(s=new sa({Type:Be("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:Be("Mask"),S:Be("Luminosity"),G:t.attach(new aa("/a0 gs /s0 sh",{Type:Be("XObject"),Subtype:Be("Form"),FormType:1,BBox:i?[i.left,i.top+i.height,i.left+i.width,i.top]:[0,1,1,0],Group:{Type:Be("Group"),S:Be("Transparency"),CS:Be("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:Be("DeviceGray"),Coords:o,Domain:[0,1],ShadingType:e?3:2,Function:r,Extend:[!0,!0]}}}}))}}),t.attach(s),s._resourceName="O"+ ++Xs,a&&(t.GRAD_OPC[a]=s)),s}function Ye(t,e,n){var o="radial"==e.type,r=qe(t,e.stops),i=o?[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=Ke(t,o,e.stops,i,r.colors,e.userSpace&&n),a=r.hasAlpha?We(t,o,e.stops,i,r.opacities,e.userSpace&&n):null;return{hasAlpha:r.hasAlpha,shading:s,opacity:a}}function Xe(t){return t.replace(/^\s*(['"])(.*)\1\s*$/,"$2")}function Ze(t){var e=/^\s*((normal|italic)\s+)?((normal|small-caps)\s+)?((normal|bold|\d+)\s+)?(([0-9.]+)(px|pt))(\/(([0-9.]+)(px|pt)|normal))?\s+(.*?)\s*$/i,n=e.exec(t);if(!n)return{fontSize:12,fontFamily:"sans-serif"};var o=n[8]?parseInt(n[8],10):12;return{italic:n[2]&&"italic"==n[2].toLowerCase(),variant:n[4],bold:n[6]&&/bold|700/i.test(n[6]),fontSize:o,lineHeight:n[12]?"normal"==n[12]?o:parseInt(n[12],10):null,fontFamily:n[14].split(/\s*,\s*/g).map(Xe)}}function $e(t){function e(e){return t.bold&&(e+="|bold"),t.italic&&(e+="|italic"),e.toLowerCase()}var n,o,r=t.fontFamily;if(r instanceof Array)for(var i=0;i<r.length&&(n=e(r[i]),!(o=va[n]));++i);else o=va[r.toLowerCase()];for(;"function"==typeof o;)o=o();return o||(o="Times-Roman"),o}function Je(t,e){t=t.toLowerCase(),va[t]=function(){return va[e]},va[t+"|bold"]=function(){return va[e+"|bold"]},va[t+"|italic"]=function(){return va[e+"|italic"]},va[t+"|bold|italic"]=function(){return va[e+"|bold|italic"]}}function Qe(t,e){if(1==arguments.length)for(var n in t)Ae(t,n)&&Qe(n,t[n]);else switch(t=t.toLowerCase(),va[t]=e,t){case"dejavu sans":va["sans-serif"]=e;break;case"dejavu sans|bold":va["sans-serif|bold"]=e;break;case"dejavu sans|italic":va["sans-serif|italic"]=e;break;case"dejavu sans|bold|italic":va["sans-serif|bold|italic"]=e;break;case"dejavu serif":va.serif=e;break;case"dejavu serif|bold":va["serif|bold"]=e;break;case"dejavu serif|italic":va["serif|italic"]=e;break;case"dejavu serif|bold|italic":va["serif|bold|italic"]=e;break;case"dejavu mono":va.monospace=e;break;case"dejavu mono|bold":va["monospace|bold"]=e;break;case"dejavu mono|italic":va["monospace|italic"]=e;break;case"dejavu mono|bold|italic":va["monospace|bold|italic"]=e}}function tn(t,e){var n=t[0],o=t[1],r=t[2],i=t[3],s=t[4],a=t[5],l=e[0],c=e[1],u=e[2],p=e[3],h=e[4],f=e[5];return[n*l+o*u,n*c+o*p,r*l+i*u,r*c+i*p,s*l+a*u+h,s*c+a*p+f]}function en(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]}function nn(t,e){function n(t,e,n){return n||(n=s),n.pdf&&null!=n.pdf[t]?n.pdf[t]:e}function o(){function o(t){var e=t.options,o=Cn(t),i=o.bbox;t=o.root;var s=n("paperSize",n("paperSize","auto"),e),a=!1;if("auto"==s)if(i){var l=i.getSize();s=[l.width,l.height],a=!0;var c=i.getOrigin();
13o=new ui,o.transform(new _r(1,0,0,1,-c.x,-c.y)),o.append(t),t=o}else s="A4";var u;u=r.addPage({paperSize:s,margin:n("margin",n("margin"),e),addMargin:a,landscape:n("landscape",n("landscape",!1),e)}),ln(t,u,r)}if(!(--c>0)){var r=new xe({producer:n("producer"),title:n("title"),author:n("author"),subject:n("subject"),keywords:n("keywords"),creator:n("creator"),date:n("date"),autoPrint:n("autoPrint")});a?t.children.forEach(o):o(t),e(r.render(),r)}}var r=[],i={},s=t.options,a=n("multiPage"),l=n("imgDPI");l&&Se(),t.traverse(function(t){an({Image:function(t){var e=t.src();if(l){var n=t.bbox().size,o=i[e];n={width:Math.ceil(n.width*l/72),height:Math.ceil(n.height*l/72)},o&&(n.width=Math.max(o.width,n.width),n.height=Math.max(o.height,n.height)),i[e]=n}else i[e]=null},Text:function(t){var e=Ze(t.options.font),n=$e(e);r.indexOf(n)<0&&r.push(n)}},t)});var c=2;Qs(r,o),ta(i,o)}function on(t,e){nn(t,function(t){e("data:application/pdf;base64,"+t.base64())})}function rn(t,e){nn(t,function(t){e(new window.Blob([t.get()],{type:"application/pdf"}))})}function sn(t,e,n,o){window.Blob&&!Ko.browser.safari?rn(t,function(t){u({dataURI:t,fileName:e}),o&&o(t)}):on(t,function(t){u({dataURI:t,fileName:e,proxyURL:n}),o&&o(t)})}function an(t,e){var n=t[e.nodeType];return n?n.call.apply(n,arguments):e}function ln(t,e,n){t.options._pdfDebug&&e.comment("BEGIN: "+t.options._pdfDebug);var o=t.transform(),r=t.opacity();if(e.save(),null!=r&&r<1&&e.setOpacity(r),cn(t,e,n),un(t,e,n),o){var i=o.matrix();e.transform(i.a,i.b,i.c,i.d,i.e,i.f)}pn(t,e,n),an({Path:gn,MultiPath:mn,Circle:bn,Arc:_n,Text:xn,Image:kn,Group:wn,Rect:Sn},t,e,n),e.restore(),t.options._pdfDebug&&e.comment("END: "+t.options._pdfDebug)}function cn(t,e){var n=t.stroke&&t.stroke();if(n){var o=n.color;if(o){if(o=On(o),null==o)return;e.setStrokeColor(o.r,o.g,o.b),1!=o.a&&e.setStrokeOpacity(o.a)}var r=n.width;if(null!=r){if(0===r)return;e.setLineWidth(r)}var i=n.dashType;i&&e.setDashPattern(ma[i],0);var s=n.lineCap;s&&e.setLineCap(ba[s]);var a=n.lineJoin;a&&e.setLineJoin(_a[a]);var l=n.opacity;null!=l&&e.setStrokeOpacity(l)}}function un(t,e){var n=t.fill&&t.fill();if(n&&!(n instanceof mi)){var o=n.color;if(o){if(o=On(o),null==o)return;e.setFillColor(o.r,o.g,o.b),1!=o.a&&e.setFillOpacity(o.a)}var r=n.opacity;null!=r&&e.setFillOpacity(r)}}function pn(t,e,n){var o=t.clip();o&&(yn(o,e,n),e.clip())}function hn(t){return t&&(t instanceof mi||t.color&&!/^(none|transparent)$/i.test(t.color)&&(null==t.width||t.width>0)&&(null==t.opacity||t.opacity>0))}function fn(t,e,n,o){var r=t.fill();if(r instanceof mi){o?e.clipStroke():e.clip();var i,s,a=r instanceof _i;a?(i={x:r.center().x,y:r.center().y,r:0},s={x:r.center().x,y:r.center().y,r:r.radius()}):(i={x:r.start().x,y:r.start().y},s={x:r.end().x,y:r.end().y});var l=r.stops.elements().map(function(t){var e=t.offset();e=/%$/.test(e)?parseFloat(e)/100:parseFloat(e);var n=On(t.color());return n.a*=t.opacity(),{offset:e,color:n}});l.unshift(l[0]),l.push(l[l.length-1]);var c={userSpace:r.userSpace(),type:a?"radial":"linear",start:i,end:s,stops:l},u=t.rawBBox(),p=u.topLeft(),h=u.getSize();return u={left:p.x,top:p.y,width:h.width,height:h.height},e.gradient(c,u),!0}}function dn(t,e,n){hn(t.fill())&&hn(t.stroke())?fn(t,e,n,!0)||e.fillStroke():hn(t.fill())?fn(t,e,n,!1)||e.fill():hn(t.stroke())?e.stroke():e.nop()}function vn(t,e){var n=t.segments;if(4==n.length&&t.options.closed){for(var o=[],r=0;r<n.length;++r){if(n[r].controlIn())return!1;o[r]=n[r].anchor()}var i=o[0].y==o[1].y&&o[1].x==o[2].x&&o[2].y==o[3].y&&o[3].x==o[0].x||o[0].x==o[1].x&&o[1].y==o[2].y&&o[2].x==o[3].x&&o[3].y==o[0].y;if(i)return e.rect(o[0].x,o[0].y,o[2].x-o[0].x,o[2].y-o[0].y),!0}}function yn(t,e,n){var o=t.segments;if(0!==o.length&&!vn(t,e,n)){for(var r,i=0;i<o.length;++i){var s=o[i],a=s.anchor();if(r){var l=r.controlOut(),c=s.controlIn();l&&c?e.bezier(l.x,l.y,c.x,c.y,a.x,a.y):e.lineTo(a.x,a.y)}else e.moveTo(a.x,a.y);r=s}t.options.closed&&e.close()}}function gn(t,e,n){yn(t,e,n),dn(t,e,n)}function mn(t,e,n){for(var o=t.paths,r=0;r<o.length;++r)yn(o[r],e,n);dn(t,e,n)}function bn(t,e,n){var o=t.geometry();e.circle(o.center.x,o.center.y,o.radius),dn(t,e,n)}function _n(t,e,n){var o=t.geometry().curvePoints();e.moveTo(o[0].x,o[0].y);for(var r=1;r<o.length;)e.bezier(o[r].x,o[r++].y,o[r].x,o[r++].y,o[r].x,o[r++].y);dn(t,e,n)}function xn(t,e){var n,o=Ze(t.options.font),r=t._position;t.fill()&&t.stroke()?n=ga.fillAndStroke:t.fill()?n=ga.fill:t.stroke()&&(n=ga.stroke),e.transform(1,0,0,-1,r.x,r.y+o.fontSize),e.beginText(),e.setFont($e(o),o.fontSize),e.setTextRenderingMode(n),e.showText(t.content(),t._pdfRect?t._pdfRect.width():null),e.endText()}function wn(t,e,n){t._pdfLink&&e.addLink(t._pdfLink.url,t._pdfLink);for(var o=t.children,r=0;r<o.length;++r)ln(o[r],e,n)}function kn(t,e){var n=t.src();if(n){var o=t.rect(),r=o.getOrigin(),i=o.getSize();e.transform(i.width,0,0,-i.height,r.x,r.y+i.height),e.drawImage(n)}}function Sn(t,e,n){var o=t.geometry();e.rect(o.origin.x,o.origin.y,o.size.width,o.size.height),dn(t,e,n)}function On(t){var e=y(t,!0);return e?e.toRGB():null}function Cn(t){function e(t){return a=!0,t}function n(t){return t.visible()&&t.opacity()>0&&(hn(t.fill())||hn(t.stroke()))}function o(t){for(var e=[],n=0;n<t.length;++n){var o=s(t[n]);null!=o&&e.push(o)}return e}function r(t,e){var n=l,o=c;t.transform()&&(c=c.multiplyCopy(t.transform().matrix()));var r=t.clip();r&&(r=r.bbox(),r&&(r=r.bbox(c),l=l?kr.intersect(l,r):r));try{return e()}finally{l=n,c=o}}function i(t){if(null==l)return!1;var e=t.rawBBox().bbox(c);return l&&e&&(e=kr.intersect(e,l)),e}function s(s){return r(s,function(){if(!(s instanceof ui||s instanceof Yr)){var r=i(s);if(!r)return e(null);u=u?kr.union(u,r):r}return an({Path:function(t){return 0!==t.segments.length&&n(t)?t:e(null)},MultiPath:function(t){if(!n(t))return e(null);var r=new Yr(t.options);return r.paths=o(t.paths),0===r.paths.length?e(null):r},Circle:function(t){return n(t)?t:e(null)},Arc:function(t){return n(t)?t:e(null)},Text:function(t){return/\S/.test(t.content())&&n(t)?t:e(null)},Image:function(t){return t.visible()&&t.opacity()>0?t:e(null)},Group:function(n){if(!(n.visible()&&n.opacity()>0))return e(null);var r=new ui(n.options);return r.children=o(n.children),r._pdfLink=n._pdfLink,n===t||0!==r.children.length||n._pdfLink?r:e(null)},Rect:function(t){return n(t)?t:e(null)}},s)})}var a,l=!1,c=_r.unit(),u=null;do a=!1,t=s(t);while(t&&a);return{root:t,bbox:u}}function Tn(t,e){var n=b();for(var o in e)"margin"==o&&t.options.pdf&&t.options.pdf._ignoreMargin||t.options.set("pdf."+o,e[o]);return on(t,n.resolve),n}function En(t){return Array.prototype.slice.call(t)}function An(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function Mn(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(" ")}function Pn(t,e){Object.keys(e).forEach(function(n){t.style[n]=e[n]})}function jn(t,e){if(t.closest)return t.closest(e);for(;t&&!/^\[object (?:HTML)?Document\]$/.test(String(t));){if(1==t.nodeType&&Aa(t,e))return t;t=t.parentNode}}function Dn(t){return"number"==typeof t?{x:t,y:t}:Array.isArray(t)?{x:t[0],y:t[1]}:{x:t.x,y:t.y}}function Rn(t,e){function n(t){var n=new ui,o=t.getBoundingClientRect();return co(n,[s.x,0,0,s.y,-o.left*s.x,-o.top*s.y]),Oa._clipbox=!1,Oa._matrix=_r.unit(),Oa._stackingContext={element:t,group:n},e.avoidLinks===!0?Oa._avoidLinks="a":Oa._avoidLinks=e.avoidLinks,An(t,"k-pdf-export"),Do(t,n),Mn(t,"k-pdf-export"),n}function o(t){if(null!=t)return"string"==typeof t&&(t=p(t.replace(/^\s+|\s+$/g,""))),"function"==typeof t?function(e){var n=t(e);if(n&&"string"==typeof n){var o=document.createElement("div");o.innerHTML=n,n=o.firstElementChild}return n}:function(){return t.cloneNode(!0)}}function r(t,e,n,r,i,s,a){function l(){("-"!=n||i)&&u(_);var e=f();
13_.parentNode.insertBefore(e,_),e.appendChild(_),g&&b.forEach(function(t,e){var n=g({element:t,pageNum:e+1,totalPages:b.length});n&&t.appendChild(n)}),qn(b,function(){Gn(b,function(){t({pages:b,container:x})})})}function c(t){if(a.keepTogether&&Aa(t,a.keepTogether)&&t.offsetHeight<=i-w)return!0;var e=t.tagName;return!(/^h[1-6]$/i.test(e)&&t.offsetHeight>=i-w)&&(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 u(t){if("TABLE"==t.tagName&&Pn(t,{tableLayout:"fixed"}),!c(t)){var e=Jn(t),o=parseFloat(Qn(e,"padding-bottom")),r=parseFloat(Qn(e,"border-bottom-width")),s=w;w+=o+r;for(var a=!0,l=t.firstChild;l;l=l.nextSibling)if(1==l.nodeType){if(a=!1,Aa(l,n)){h(l);continue}if(!i){u(l);continue}if(!/^(?:static|relative)$/.test(Qn(Jn(l),"position")))continue;var p=d(l);1==p?h(l):p&&c(l)?h(l):u(l)}else 3==l.nodeType&&i&&(v(l,a),a=!1);w=s}}function p(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}function h(t){if(1==t.nodeType&&t!==_&&p(t))return h(t.parentNode);var e,n,o,r,i;e=jn(t,"table"),n=e&&e.querySelector("colgroup"),a.repeatHeaders&&(o=e&&e.querySelector("thead"),r=jn(t,".k-grid.k-widget"),r&&r.querySelector(".k-auto-scrollable")&&(i=r.querySelector(".k-grid-header")));var s=f(),l=m.createRange();l.setStartBefore(_),l.setEndBefore(t),s.appendChild(l.extractContents()),_.parentNode.insertBefore(s,_),y(t.parentNode),e&&(e=jn(t,"table"),a.repeatHeaders&&o&&e.insertBefore(o.cloneNode(!0),e.firstChild),n&&e.insertBefore(n.cloneNode(!0),e.firstChild)),a.repeatHeaders&&i&&(r=jn(t,".k-grid.k-widget"),r.insertBefore(i.cloneNode(!0),r.firstChild))}function f(){var t=m.createElement("KENDO-PDF-PAGE");return Pn(t,{display:"block",boxSizing:"content-box",width:r?r+"px":"auto",padding:s.top+"px "+s.right+"px "+s.bottom+"px "+s.left+"px",position:"relative",height:i?i+"px":"auto",overflow:i||r?"hidden":"visible",clear:"both"}),a&&a.pageClassName&&(t.className=a.pageClassName),b.push(t),t}function d(t){var e=t.getBoundingClientRect();if(0===e.width||0===e.height)return 0;var n=_.getBoundingClientRect().top,o=i-w;return e.height>o?3:e.top-n>o?1:e.bottom-n>o?2:0}function v(t,e){if(/\S/.test(t.data)){var n=t.data.length,o=m.createRange();o.selectNodeContents(t);var r=d(o);if(r){var i=t;if(1==r)h(e?t.parentNode:t);else if(function e(n,r,i){return o.setEnd(t,r),n==r||r==i?r:d(o)?e(n,n+r>>1,r):e(r,r+i>>1,i)}(0,n>>1,n),!/\S/.test(o.toString())&&e)h(t.parentNode);else{i=t.splitText(o.endOffset);var s=f();o.setStartBefore(_),s.appendChild(o.extractContents()),_.parentNode.insertBefore(s,_),y(i.parentNode)}v(i)}}}function y(t){var e=jn(t,"li");e&&(e.setAttribute("kendo-no-bullet","1"),y(e.parentNode))}var g=o(a.template),m=e.ownerDocument,b=[],_=a._destructive?e:Ma(e),x=m.createElement("KENDO-PDF-DOCUMENT"),w=0;
13En(_.querySelectorAll("tfoot")).forEach(function(t){t.parentNode.appendChild(t)}),En(_.querySelectorAll("ol")).forEach(function(t){En(t.children).forEach(function(t,e){t.setAttribute("kendo-split-index",e)})}),Pn(x,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),r&&(Pn(x,{width:r+"px",paddingLeft:s.left+"px",paddingRight:s.right+"px"}),Pn(_,{overflow:"hidden"})),e.parentNode.insertBefore(x,e),x.appendChild(_),a.beforePageBreak?setTimeout(function(){a.beforePageBreak(x,l)},15):setTimeout(l,15)}e||(e={});var i=b();if(!t)return i.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+.");Qe(In(t.ownerDocument));var s=Dn(e.scale||1);return qn(t,function(){var o=e&&e.forcePageBreak,a=e&&e.paperSize&&"auto"!=e.paperSize,l=_e(function(t,n){return"paperSize"==t?a?e[t]:"A4":t in e?e[t]:n}),c=a&&l.paperSize[0],u=a&&l.paperSize[1],p=e.margin&&l.margin,h=Boolean(p);if(o||u){p||(p={left:0,top:0,right:0,bottom:0}),c&&(c/=s.x),u&&(u/=s.y),p.left/=s.x,p.right/=s.x,p.top/=s.y,p.bottom/=s.y;var f=new ui({pdf:{multiPage:!0,paperSize:a?l.paperSize:"auto",_ignoreMargin:h}});r(function(t){if(e.progress){var o=!1,r=0;!function s(){if(r<t.pages.length){var a=n(t.pages[r]);f.append(a),e.progress({page:a,pageNum:++r,totalPages:t.pages.length,cancel:function(){o=!0}}),o?t.container.parentNode.removeChild(t.container):setTimeout(s)}else t.container.parentNode.removeChild(t.container),i.resolve(f)}()}else t.pages.forEach(function(t){f.append(n(t))}),t.container.parentNode.removeChild(t.container),i.resolve(f)},t,o,c?c-p.left-p.right:null,u?u-p.top-p.bottom:null,p,e)}else i.resolve(n(t))}),i}function In(t){function e(t){if(t){var e=null;try{e=t.cssRules}catch(t){}e&&o(t,e)}}function n(t){var e=Qn(t.style,"src");if(e)return ja(e).reduce(function(t,e){var n=Da(e);return n&&t.push(n),t},[]);var n=Da(t.cssText);return n?[n]:[]}function o(t,o){for(var i=0;i<o.length;++i){var s=o[i];switch(s.type){case 3:e(s.styleSheet);break;case 5:var a=s.style,l=ja(Qn(a,"font-family")),c=/^([56789]00|bold)$/i.test(Qn(a,"font-weight")),u="italic"==Qn(a,"font-style"),p=n(s);p.length>0&&r(t,l,c,u,p[0])}}}function r(t,e,n,o,r){/^data:/i.test(r)||/^[^\/:]+:\/\//.test(r)||/^\//.test(r)||(r=String(t.href).replace(/[^\/]*$/,"")+r),e.forEach(function(t){t=t.replace(/^(['"]?)(.*?)\1$/,"$2"),n&&(t+="|bold"),o&&(t+="|italic"),i[t]=r})}null==t&&(t=document);for(var i={},s=0;s<t.styleSheets.length;++s)e(t.styleSheets[s]);return i}function Fn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ln(t){return t="_counter_"+t,Oa[t]}function zn(t){var e=[],n=Oa;for(t="_counter_"+t;n;)Fn(n,t)&&e.push(n[t]),n=Object.getPrototypeOf(n);return e.reverse()}function Bn(t,e){var n=Oa;for(t="_counter_"+t;n&&!Fn(n,t);)n=Object.getPrototypeOf(n);
13n||(n=Oa._root),n[t]=(n[t]||0)+(null==e?1:e)}function Nn(t,e){t="_counter_"+t,Oa[t]=null==e?0:e}function Hn(t,e,n){for(var o=0;o<t.length;){var r=t[o++],i=parseFloat(t[o]);isNaN(i)?e(r,n):(e(r,i),++o)}}function Vn(t){var e=Qn(t,"counter-reset");e&&Hn(ja(e,/^\s+/),Nn,0);var n=Qn(t,"counter-increment");n&&Hn(ja(n,/^\s+/),Bn,1)}function Un(t,e){var n=y(t,!0);return n&&(n=n.toRGB(),e?n=n.toCssRgba():0===n.a&&(n=null)),n}function Gn(t,e){function n(){--o<=0&&e()}var o=0;t.forEach(function(t){for(var e=t.querySelectorAll("img"),r=0;r<e.length;++r){var i=e[r];i.complete||(o++,i.onload=i.onerror=n)}}),o||n()}function qn(t,e){function n(t){Sa[t]||(Sa[t]=!0,i.push(t))}function o(t){/^img$/i.test(t.tagName)&&n(t.src),Pa(Qn(Jn(t),"background-image")).forEach(function(t){"url"==t.type&&n(t.url)}),t.children&&En(t.children).forEach(o)}function r(){--s<=0&&e()}var i=[];Array.isArray(t)?t.forEach(o):o(t);var s=i.length;0===s&&r(),i.forEach(function(t){var e=Sa[t]=new window.Image;/^data:/i.test(t)||(e.crossOrigin="Anonymous"),e.src=t,e.complete?r():(e.onload=r,e.onerror=function(){Sa[t]=null,r()})})}function Kn(t){var e="";do{var n=t%26;e=String.fromCharCode(97+n)+e,t=Math.floor(t/26)}while(t>0);return e}function Wn(t,e,n){Oa=Object.create(Oa),Oa[t.tagName.toLowerCase()]={element:t,style:e};var o=Qn(e,"text-decoration");if(o&&"none"!=o){var r=Qn(e,"color");o.split(/\s+/g).forEach(function(t){Oa[t]||(Oa[t]=r)})}$n(e)&&(Oa._stackingContext={element:t,group:n})}function Yn(){Oa=Object.getPrototypeOf(Oa)}function Xn(t){if(null!=Oa._clipbox){var e=t.bbox(Oa._matrix);Oa._clipbox?Oa._clipbox=kr.intersect(Oa._clipbox,e):Oa._clipbox=e}}function Zn(){var t=Oa._clipbox;return null==t||(t?0===t.width()||0===t.height():void 0)}function $n(t){function e(e){return Qn(t,e)}if("none"!=e("transform")||"static"!=e("position")||"auto"!=e("z-index")||e("opacity")<1)return!0}function Jn(t,e){return window.getComputedStyle(t,e||null)}function Qn(t,e,n){var o=t.getPropertyValue(e);return null!=o&&""!==o||(wa.webkit?o=t.getPropertyValue("-webkit-"+e):wa.mozilla?o=t.getPropertyValue("-moz-"+e):wa.opera?o=t.getPropertyValue("-o-"+e):Ta&&(o=t.getPropertyValue("-ms-"+e))),arguments.length>2&&(null==o||""===o)?n:o}function to(t,e,n,o){t.setProperty(e,n,o),wa.webkit?t.setProperty("-webkit-"+e,n,o):wa.mozilla?t.setProperty("-moz-"+e,n,o):wa.opera?t.setProperty("-o-"+e,n,o):Ta&&(t.setProperty("-ms-"+e,n,o),e="ms"+e.replace(/(^|-)([a-z])/g,function(t,e,n){return e+n.toUpperCase()}),t[e]=n)}function eo(t,e){return e="border-"+e,{width:parseFloat(Qn(t,e+"-width")),style:Qn(t,e+"-style"),color:Un(Qn(t,e+"-color"),!0)}}function no(t,e){var n=t.style.cssText,o=e();return t.style.cssText=n,o}function oo(t,e){var n=Qn(t,"border-"+e+"-radius").split(/\s+/g).map(parseFloat); 14return 1==n.length&&n.push(n[0]),ho({x:n[0],y:n[1]})}function ro(t){var e=t.getBoundingClientRect();return e=io(e,"border-*-width",t),e=io(e,"padding-*",t)}function io(t,e,n){var o,r,i,s,a;return"string"==typeof e?(o=Jn(n),r=parseFloat(Qn(o,e.replace("*","top"))),i=parseFloat(Qn(o,e.replace("*","right"))),s=parseFloat(Qn(o,e.replace("*","bottom"))),a=parseFloat(Qn(o,e.replace("*","left")))):"number"==typeof e&&(r=i=s=a=e),{top:t.top+r,right:t.right-i,bottom:t.bottom-s,left:t.left+a,width:t.right-t.left-i-a,height:t.bottom-t.top-s-r}}function so(t){var e=Qn(t,"transform");if("none"==e)return null;var n=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(e);if(n){var o=Qn(t,"transform-origin");return n=n[1].split(/\s*,\s*/g).map(parseFloat),o=o.split(/\s+/g).map(parseFloat),{matrix:n,origin:o}}}function ao(t){return 180*t/Math.PI%360}function lo(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}function co(t,e){return e=new _r(e[0],e[1],e[2],e[3],e[4],e[5]),t.transform(e),e}function uo(t,e){t.clip(e)}function po(t,e,n,o){for(var r=new Lr([e,n],o).curvePoints(),i=1;i<r.length;)t.curveTo(r[i++],r[i++],r[i++])}function ho(t){return(t.x<=0||t.y<=0)&&(t.x=t.y=0),t}function fo(t,e,n,o,r){var i=Math.max(0,e.x),s=Math.max(0,e.y),a=Math.max(0,n.x),l=Math.max(0,n.y),c=Math.max(0,o.x),u=Math.max(0,o.y),p=Math.max(0,r.x),h=Math.max(0,r.y),f=Math.min(t.width/(i+a),t.height/(l+u),t.width/(c+p),t.height/(h+s));return f<1&&(i*=f,s*=f,a*=f,l*=f,c*=f,u*=f,p*=f,h*=f),{tl:{x:i,y:s},tr:{x:a,y:l},br:{x:c,y:u},bl:{x:p,y:h}}}function vo(t,e,n){var o=Jn(t),r=oo(o,"top-left"),i=oo(o,"top-right"),s=oo(o,"bottom-left"),a=oo(o,"bottom-right");if("padding"==n||"content"==n){var l=eo(o,"top"),c=eo(o,"right"),u=eo(o,"bottom"),p=eo(o,"left");if(r.x-=p.width,r.y-=l.width,i.x-=c.width,i.y-=l.width,a.x-=c.width,a.y-=u.width,s.x-=p.width,s.y-=u.width,"content"==n){var h=parseFloat(Qn(o,"padding-top")),f=parseFloat(Qn(o,"padding-right")),d=parseFloat(Qn(o,"padding-bottom")),v=parseFloat(Qn(o,"padding-left"));r.x-=v,r.y-=h,i.x-=f,i.y-=h,a.x-=f,a.y-=d,s.x-=v,s.y-=d}}return"number"==typeof n&&(r.x-=n,r.y-=n,i.x-=n,i.y-=n,a.x-=n,a.y-=n,s.x-=n,s.y-=n),yo(e,r,i,a,s)}function yo(t,e,n,o,r){var i=fo(t,e,n,o,r),s=i.tl,a=i.tr,l=i.br,c=i.bl,u=new ni({fill:null,stroke:null});return u.moveTo(t.left,t.top+s.y),s.x&&po(u,t.left+s.x,t.top+s.y,{startAngle:-180,endAngle:-90,radiusX:s.x,radiusY:s.y}),u.lineTo(t.right-a.x,t.top),a.x&&po(u,t.right-a.x,t.top+a.y,{startAngle:-90,endAngle:0,radiusX:a.x,radiusY:a.y}),u.lineTo(t.right,t.bottom-l.y),l.x&&po(u,t.right-l.x,t.bottom-l.y,{startAngle:0,endAngle:90,radiusX:l.x,radiusY:l.y}),u.lineTo(t.left+c.x,t.bottom),c.x&&po(u,t.left+c.x,t.bottom-c.y,{startAngle:90,endAngle:180,radiusX:c.x,radiusY:c.y}),u.close()}function go(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 m(t).toLowerCase();case"upper-roman":return m(t).toUpperCase();case"lower-latin":case"lower-alpha":return Kn(t-1);case"upper-latin":case"upper-alpha":return Kn(t-1).toUpperCase();default:return n}}function mo(t,e){function n(t,e,n){return n?(n=n.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),zn(t).map(function(t){return go(t,e)}).join(n)):go(Ln(t)||0,e)}var o,r=ja(e,/^\s+/),i=[];return r.forEach(function(e){var r;(o=/^\s*(["'])(.*)\1\s*$/.exec(e))?i.push(o[2].replace(/\\([0-9a-f]{4})/gi,function(t,e){return String.fromCharCode(parseInt(e,16))})):(o=/^\s*counter\((.*?)\)\s*$/.exec(e))?(r=ja(o[1]),i.push(n(r[0],r[1]))):(o=/^\s*counters\((.*?)\)\s*$/.exec(e))?(r=ja(o[1]),i.push(n(r[0],r[2],r[1]))):(o=/^\s*
14attr\((.*?)\)\s*$/.exec(e))?i.push(t.getAttribute(o[1])||""):i.push(e)}),i.join("")}function bo(t){if(t.cssText)return t.cssText;for(var e=[],n=0;n<t.length;++n)e.push(t[n]+": "+Qn(t,t[n]));return e.join(";\n")}function _o(t,e){function n(e,n){var r=Jn(t,e),i=r.content;if(Vn(r),i&&"normal"!=i&&"none"!=i&&"0px"!=r.width){var s=t.ownerDocument.createElement(ka);s.style.cssText=bo(r),s.textContent=mo(t,i),t.insertBefore(s,n),o.push(s)}}if(t.tagName==ka)return void xo(t,e);var o=[];if(n(":before",t.firstChild),n(":after",null),o.length>0){var r=t.className;t.className+=" kendo-pdf-hide-pseudo-elements",xo(t,e),t.className=r,o.forEach(function(e){t.removeChild(e)})}else xo(t,e)}function xo(t,e){function n(e){if(/^td$/i.test(t.tagName)){var n=Oa.table;if(n&&"collapse"==Qn(n.style,"border-collapse")){var o=eo(n.style,"left").width,r=eo(n.style,"top").width;if(0===o&&0===r)return e;var i=n.element.getBoundingClientRect(),s=n.element.rows[0].cells[0],a=s.getBoundingClientRect();if(a.top==i.top||a.left==i.left)return En(e).map(function(t){return{left:t.left+o,top:t.top+r,right:t.right+o,bottom:t.bottom+r,height:t.height,width:t.width}})}}return e}function o(t,n,o,r,i,s,a,l){function c(e,n,r){var i=Math.PI/2*e/(e+o),s={x:n.x-e,y:n.y-o},a=new ni({fill:{color:t},stroke:null}).moveTo(0,0);co(a,r),po(a,0,n.y,{startAngle:-90,endAngle:-ao(i),radiusX:n.x,radiusY:n.y}),s.x>0&&s.y>0?(a.lineTo(s.x*Math.cos(i),n.y-s.y*Math.sin(i)),po(a,0,n.y,{startAngle:-ao(i),endAngle:-90,radiusX:s.x,radiusY:s.y,anticlockwise:!0})):s.x>0?a.lineTo(s.x,o).lineTo(0,o):a.lineTo(s.x,o).lineTo(s.x,0),p.append(a.close())}if(!(o<=0)){var u,p=new ui;co(p,l),e.append(p),ho(s),ho(a),u=new ni({fill:{color:t},stroke:null}),p.append(u),u.moveTo(s.x?Math.max(s.x,r):0,0).lineTo(n-(a.x?Math.max(a.x,i):0),0).lineTo(n-Math.max(a.x,i),o).lineTo(Math.max(s.x,r),o).close(),s.x&&c(r,s,[-1,0,0,1,s.x,0]),a.x&&c(i,a,[1,0,0,1,n-a.x,0])}}function r(t){var n=new ui;if(uo(n,yo(t,f,d,y,v)),e.append(n),b){var o=new ni({fill:{color:b.toCssRgba()},stroke:null});o.moveTo(t.left,t.top).lineTo(t.right,t.top).lineTo(t.right,t.bottom).lineTo(t.left,t.bottom).close(),n.append(o)}for(var r=w.length;--r>=0;)i(n,t,w[r],k[r%k.length],S[r%S.length],O[r%O.length],C[r%C.length])}function i(e,n,o,r,i,s,a){function l(e,n,o,l,c){function u(){for(;m.origin.x>n.left;)m.origin.x-=o}function p(){for(;m.origin.y>n.top;)m.origin.y-=l}function h(){for(;m.origin.x<n.right;)c(e,m.clone()),m.origin.x+=o}var f,d=o/l,v=n;if("content-box"==s?(v=io(v,"border-*-width",t),v=io(v,"padding-*",t)):"padding-box"==s&&(v=io(v,"border-*-width",t)),!/^\s*auto(\s+auto)?\s*$/.test(a))if("contain"==a)f=Math.min(v.width/o,v.height/l),o*=f,l*=f;else if("cover"==a)f=Math.max(v.width/o,v.height/l),o*=f,l*=f;else{var y=a.split(/\s+/g);o=/%$/.test(y[0])?v.width*parseFloat(y[0])/100:parseFloat(y[0]),l=1==y.length||"auto"==y[1]?o/d:/%$/.test(y[1])?v.height*parseFloat(y[1])/100:parseFloat(y[1])}var g=String(i);switch(g){case"bottom":g="50% 100%";break;case"top":g="50% 0";break;case"left":g="0 50%";break;case"right":g="100% 50%";break;case"center":g="50% 50%"}g=g.split(/\s+/),1==g.length&&(g[1]="50%"),/%$/.test(g[0])?g[0]=parseFloat(g[0])/100*(v.width-o):g[0]=parseFloat(g[0]),/%$/.test(g[1])?g[1]=parseFloat(g[1])/100*(v.height-l):g[1]=parseFloat(g[1]);var m=new kr([v.left+g[0],v.top+g[1]],[o,l]);if("no-repeat"==r)c(e,m);else if("repeat-x"==r)u(),h();else if("repeat-y"==r)for(p();m.origin.y<n.bottom;)c(e,m.clone()),m.origin.y+=l;else if("repeat"==r){u(),p();for(var b=m.origin.clone();m.origin.y<n.bottom;)m.origin.x=b.x,h(),m.origin.y+=l}}if(o&&"none"!=o)if("url"==o.type){if(/^url\(\"data:image\/svg/i.test(o.url))return;var c=Sa[o.url];c&&c.width>0&&c.height>0&&l(e,n,c.width,c.height,function(t,e){t.append(new li(o.url,e))})}else{if("linear"!=o.type)return;l(e,n,n.width,n.height,wo(o))}}function s(){function n(n){no(t,function(){t.style.position="relative";var o=t.ownerDocument.createElement(ka);o.style.position="absolute",o.style.boxSizing="border-box","outside"==i?(o.style.width="6em",o.style.left="-6.8em",o.style.textAlign="right"):o.style.left="0px",n(o),t.insertBefore(o,t.firstChild),Do(o,e),t.removeChild(o)})}function o(e){var n=t.parentNode.children,o=t.getAttribute("kendo-split-index");if(null!=o)return e(0|o,n.length);for(var r=0;r<n.length;++r)if(n[r]===t)return e(r,n.length)}
14var r=Qn(l,"list-style-type");if("none"!=r){var i=Qn(l,"list-style-position");switch(r){case"circle":case"disc":case"square":n(function(t){t.style.fontSize="60%",t.style.lineHeight="200%",t.style.paddingRight="0.5em",t.style.fontFamily="DejaVu Serif",t.innerHTML={disc:"â",circle:"â¯",square:"â "}[r]});break;case"decimal":case"decimal-leading-zero":n(function(t){o(function(e){++e,"decimal-leading-zero"==r&&e<10&&(e="0"+e),t.innerHTML=e+"."})});break;case"lower-roman":case"upper-roman":n(function(t){o(function(e){e=m(e+1),"upper-roman"==r&&(e=e.toUpperCase()),t.innerHTML=e+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":n(function(t){o(function(e){e=Kn(e),/^upper/i.test(r)&&(e=e.toUpperCase()),t.innerHTML=e+"."})})}}}function a(n,i,s){function a(t){return{x:t.y,y:t.x}}if(0!==n.width&&0!==n.height){r(n);var l=h.width>0&&(i&&"ltr"==g||s&&"rtl"==g),m=u.width>0&&(s&&"ltr"==g||i&&"rtl"==g);if(0!==c.width||0!==h.width||0!==u.width||0!==p.width){if(c.color==u.color&&c.color==p.color&&c.color==h.color&&c.width==u.width&&c.width==p.width&&c.width==h.width&&l&&m){n=io(n,c.width/2);var b=vo(t,n,c.width/2);return b.options.stroke={color:c.color,width:c.width},void e.append(b)}if(0===f.x&&0===d.x&&0===y.x&&0===v.x&&c.width<2&&h.width<2&&u.width<2&&p.width<2)return c.width>0&&e.append(new ni({stroke:{width:c.width,color:c.color}}).moveTo(n.left,n.top+c.width/2).lineTo(n.right,n.top+c.width/2)),p.width>0&&e.append(new ni({stroke:{width:p.width,color:p.color}}).moveTo(n.left,n.bottom-p.width/2).lineTo(n.right,n.bottom-p.width/2)),l&&e.append(new ni({stroke:{width:h.width,color:h.color}}).moveTo(n.left+h.width/2,n.top).lineTo(n.left+h.width/2,n.bottom)),void(m&&e.append(new ni({stroke:{width:u.width,color:u.color}}).moveTo(n.right-u.width/2,n.top).lineTo(n.right-u.width/2,n.bottom)));var _=fo(n,f,d,y,v),x=_.tl,w=_.tr,k=_.br,S=_.bl;o(c.color,n.width,c.width,h.width,u.width,x,w,[1,0,0,1,n.left,n.top]),o(p.color,n.width,p.width,u.width,h.width,k,S,[-1,0,0,-1,n.right,n.bottom]),o(h.color,n.height,h.width,p.width,c.width,a(S),a(x),[0,-1,1,0,n.left,n.bottom]),o(u.color,n.height,u.width,c.width,p.width,a(w),a(k),[0,1,-1,0,n.right,n.top])}}}var l=Jn(t),c=eo(l,"top"),u=eo(l,"right"),p=eo(l,"bottom"),h=eo(l,"left"),f=oo(l,"top-left"),d=oo(l,"top-right"),v=oo(l,"bottom-left"),y=oo(l,"bottom-right"),g=Qn(l,"direction"),b=Qn(l,"background-color");b=Un(b);var _,x,w=Pa(Qn(l,"background-image")),k=ja(Qn(l,"background-repeat")),S=ja(Qn(l,"background-position")),O=ja(Qn(l,"background-origin")),C=ja(Qn(l,"background-size"));Ta&&(_=l.textOverflow,"ellipsis"==_&&(x=t.style.textOverflow,t.style.textOverflow="clip")),wa.msie&&wa.version<10&&(S=ja(t.currentStyle.backgroundPosition));var T=io(t.getBoundingClientRect(),"border-*-width",t);!function(){var t=Qn(l,"clip"),n=/^\s*rect\((.*)\)\s*$/.exec(t);if(n){var o=n[1].split(/[ ,]+/g),r="auto"==o[0]?T.top:parseFloat(o[0])+T.top,i="auto"==o[1]?T.right:parseFloat(o[1])+T.left,s="auto"==o[2]?T.bottom:parseFloat(o[2])+T.top,a="auto"==o[3]?T.left:parseFloat(o[3])+T.left,c=new ui,u=(new ni).moveTo(a,r).lineTo(i,r).lineTo(i,s).lineTo(a,s).close();uo(c,u),e.append(c),e=c,Xn(u)}}();var E,A,M,P=Qn(l,"display");if("table-row"==P)for(E=[],A=0,M=t.children;A<M.length;++A)E.push(M[A].getBoundingClientRect());else E=t.getClientRects(),1==E.length&&(E=[t.getBoundingClientRect()]);for(E=n(E),A=0;A<E.length;++A)a(E[A],0===A,A==E.length-1);if("A"==t.tagName&&t.href&&!/^#?$/.test(t.getAttribute("href"))&&(!Oa._avoidLinks||!Aa(t,Oa._avoidLinks))){var j=document.createRange();j.selectNodeContents(t),En(j.getClientRects()).forEach(function(n){var o=new ui;o._pdfLink={url:t.href,top:n.top,right:n.right,bottom:n.bottom,left:n.left},e.append(o)})}return E.length>0&&"list-item"==P&&!t.getAttribute("kendo-no-bullet")&&s(E[0]),function(){function n(){var n=vo(t,T,"padding"),o=new ui;uo(o,n),e.append(o),e=o,Xn(n)}Co(t)?n():/^(hidden|auto|scroll)/.test(Qn(l,"overflow"))?n():/^(hidden|auto|scroll)/.test(Qn(l,"overflow-x"))?n():/^(hidden|auto|scroll)/.test(Qn(l,"overflow-y"))&&n()}(),ko(t,e)||Mo(t,e),Ta&&"ellipsis"==_&&(t.style.textOverflow=x),e}function wo(t){return function(e,n){var o=n.width(),r=n.height();switch(t.type){case"linear":var i=null!=t.angle?t.angle:Math.PI;switch(t.to){case"top":i=0;break;case"left":i=-Math.PI/2;break;case"bottom":i=Math.PI;break;case"right":i=Math.PI/2;break;
14case"top left":case"left top":i=-Math.atan2(r,o);break;case"top right":case"right top":i=Math.atan2(r,o);break;case"bottom left":case"left bottom":i=Math.PI+Math.atan2(r,o);break;case"bottom right":case"right bottom":i=Math.PI-Math.atan2(r,o)}t.reverse&&(i-=Math.PI),i%=2*Math.PI,i<0&&(i+=2*Math.PI);var s=Math.abs(o*Math.sin(i))+Math.abs(r*Math.cos(i)),a=Math.atan(o*Math.tan(i)/r),l=Math.sin(a),c=Math.cos(a),u=Math.abs(l)+Math.abs(c),p=u/2*l,h=u/2*c;i>Math.PI/2&&i<=3*Math.PI/2&&(p=-p,h=-h);var f=[],d=0,v=t.stops.map(function(e,n){var o=e.percent;o?o=parseFloat(o)/100:e.length?o=parseFloat(e.length)/s:0===n?o=0:n==t.stops.length-1&&(o=1);var r={color:e.color.toCssRgba(),offset:o};return null!=o?(d=o,f.forEach(function(t,e){var n=t.stop;n.offset=t.left+(d-t.left)*(e+1)/(f.length+1)}),f=[]):f.push({left:d,stop:r}),r}),y=[.5-p,.5+h],g=[.5+p,.5-h];e.append(ni.fromRect(n).stroke(null).fill(new bi({start:y,end:g,stops:v,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}}function ko(t,e){var n;if(t._kendoExportVisual)n=t._kendoExportVisual();else if(window.kendo&&window.kendo.jQuery&&t.getAttribute(window.kendo.attr("role"))){var o=window.kendo.widgetInstance(window.kendo.jQuery(t));o&&(o.exportDOMVisual||o.exportVisual)&&(n=o.exportDOMVisual?o.exportDOMVisual():o.exportVisual())}if(!n)return!1;var r=new ui;r.children.push(n);var i=t.getBoundingClientRect();return r.transform($().translate(i.left,i.top)),e.append(r),!0}function So(t,e,n){var o=ro(t),r=new kr([o.left,o.top],[o.width,o.height]),i=new li(e,r);uo(i,vo(t,o,"content")),n.append(i)}function Oo(t,e){var n=Jn(t),o=Jn(e),r=parseFloat(Qn(n,"z-index")),i=parseFloat(Qn(o,"z-index")),s=Qn(n,"position"),a=Qn(o,"position");return isNaN(r)&&isNaN(i)?/static|absolute/.test(s)&&/static|absolute/.test(a)?0:"static"==s?-1:"static"==a?1:0:isNaN(r)?0===i?0:i>0?-1:1:isNaN(i)?0===r?0:r>0?1:-1:parseFloat(r)-parseFloat(i)}function Co(t){return/^(?:textarea|select|input)$/i.test(t.tagName)}function To(t){return t.selectedOptions&&t.selectedOptions.length>0?t.selectedOptions[0]:t.options[t.selectedIndex]}function Eo(t,e){var n=Jn(t),o=Qn(n,"color"),r=t.getBoundingClientRect();"checkbox"==t.type?(e.append(ni.fromRect(new kr([r.left+1,r.top+1],[r.width-2,r.height-2])).stroke(o,1)),t.checked&&e.append((new ni).stroke(o,1.2).moveTo(r.left+.22*r.width,r.top+.55*r.height).lineTo(r.left+.45*r.width,r.top+.75*r.height).lineTo(r.left+.78*r.width,r.top+.22*r.width))):(e.append(new Dr(new Tr([(r.left+r.right)/2,(r.top+r.bottom)/2],Math.min(r.width-2,r.height-2)/2)).stroke(o,1)),t.checked&&e.append(new Dr(new Tr([(r.left+r.right)/2,(r.top+r.bottom)/2],Math.min(r.width-8,r.height-8)/2)).fill(o).stroke(null)))}function Ao(t,e){var n=t.tagName.toLowerCase();if("input"==n&&("checkbox"==t.type||"radio"==t.type))return Eo(t,e);var o,r=t.parentNode,i=t.ownerDocument,s=i.createElement(ka);if(s.style.cssText=bo(Jn(t)),"input"==n&&(s.style.whiteSpace="pre"),"select"!=n&&"textarea"!=n||(s.style.overflow="auto"),"select"==n)if(t.multiple)for(var a=0;a<t.options.length;++a)o=i.createElement(ka),o.style.cssText=bo(Jn(t.options[a])),o.style.display="block",o.textContent=t.options[a].textContent,s.appendChild(o);else o=To(t),o&&(s.textContent=o.textContent);else s.textContent=t.value;r.insertBefore(s,t),s.scrollLeft=t.scrollLeft,s.scrollTop=t.scrollTop,t.style.display="none",Mo(s,e),t.style.display="",r.removeChild(s)}function Mo(t,e){switch(Oa._stackingContext.element===t&&(Oa._stackingContext.group=e),t.tagName.toLowerCase()){case"img":So(t,t.src,e);break;case"canvas":try{So(t,t.toDataURL("image/png"),e)}catch(t){}break;case"textarea":case"input":case"select":Ao(t,e);break;default:for(var n=[],o=[],r=[],i=t.firstChild;i;i=i.nextSibling)switch(i.nodeType){case 3:/\S/.test(i.data)&&Po(t,i,e);break;case 1:var s=Jn(i),a=Qn(s,"float"),l=Qn(s,"position");"static"!=l?r.push(i):"none"!=a?o.push(i):n.push(i)}M(n,Oo).forEach(function(t){Do(t,e)}),M(o,Oo).forEach(function(t){Do(t,e)}
14),M(r,Oo).forEach(function(t){Do(t,e)})}}function Po(t,e,n){function o(t){if(Ta||wa.chrome){for(var e=t.getClientRects(),n={top:1/0,right:-(1/0),bottom:-(1/0),left:1/0},o=!1,r=0;r<e.length;++r){var i=e[r];i.width<=1||i.bottom===w||(n.left=Math.min(i.left,n.left),n.top=Math.min(i.top,n.top),n.right=Math.max(i.right,n.right),n.bottom=Math.max(i.bottom,n.bottom),o=!0)}return o?(n.width=n.right-n.left,n.height=n.bottom-n.top,n):t.getBoundingClientRect()}return t.getBoundingClientRect()}function r(){var t,n=c,r=l.substr(c).search(/\S/);if(c+=r,r<0||c>=u)return!0;v.setStart(e,c),v.setEnd(e,c+1),t=o(v);var s=!1;if((g||m>1)&&(r=l.substr(c).search(/\s/),r>=0)){v.setEnd(e,c+r);var a=o(v);a.bottom==t.bottom&&(t=a,s=!0,c+=r)}if(!s){if(r=function n(r,i,s){v.setEnd(e,i);var a=o(v);return a.bottom!=t.bottom&&r<i?n(r,r+i>>1,i):a.right!=t.right?(t=a,i<s?n(i,i+s>>1,s):i):i}(c,Math.min(u,c+x),u),r==c)return!0;if(c=r,r=v.toString().search(/\s+$/),0===r)return!1;r>0&&(v.setEnd(e,v.startOffset+r),t=o(v))}Ta&&(t=v.getClientRects()[0]);var p=v.toString();if(/^(?:pre|pre-wrap)$/i.test(b)){if(/\t/.test(p)){var h=0;for(r=n;r<v.startOffset;++r){var f=l.charCodeAt(r);9==f?h+=8-h%8:10==f||13==f?h=0:h++}for(;(r=p.search("\t"))>=0;){var d=" ".substr(0,8-(h+r)%8);p=p.substr(0,r)+d+p.substr(r+1)}}}else p=p.replace(/\s+/g," ");s||(w=t.bottom),i(p,t)}function i(t,e){if(Ta&&!isNaN(h)){var o=Ra(f),r=(e.top+e.bottom-o)/2;e={top:r,right:e.right,bottom:r+o,left:e.left,height:o,width:e.right-e.left}}switch(_){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 i=new Ea(t,new kr([e.left,e.top],[e.width,e.height]),{font:f,fill:{color:d}});n.append(i)}function s(t){function e(e,o){if(e){var r=p/12,i=new ni({stroke:{width:r,color:e}});o-=r,i.moveTo(t.left,o).lineTo(t.right,o),n.append(i)}}e(k,t.bottom),e(S,t.bottom-t.height/2.7),e(O,t.top)}if(!Zn()){var a=Jn(t);if(!(parseFloat(Qn(a,"text-indent"))<-500)){var l=e.data,c=0,u=l.search(/\S\s*$/)+1;if(u){var p=Qn(a,"font-size"),h=Qn(a,"line-height"),f=[Qn(a,"font-style"),Qn(a,"font-variant"),Qn(a,"font-weight"),p,Qn(a,"font-family")].join(" ");if(p=parseFloat(p),h=parseFloat(h),0!==p){var d=Qn(a,"color"),v=t.ownerDocument.createRange(),y=Qn(a,"text-align"),g="justify"==y,m=Qn(a,"column-count",1),b=Qn(a,"white-space"),_=Qn(a,"text-transform"),x=t.getBoundingClientRect().width/p*5;0===x&&(x=500);for(var w=null,k=Oa.underline,S=Oa["line-through"],O=Oa.overline,C=k||S||O;!r(););C&&(v.selectNode(e),En(v.getClientRects()).forEach(s))}}}}}function jo(t,e,n){var o;"auto"!=n?(o=Oa._stackingContext.group,n=parseFloat(n)):(o=e,n=0);for(var r=o.children,i=0;i<r.length&&!(null!=r[i]._dom_zIndex&&r[i]._dom_zIndex>n);++i);var s=new ui;if(o.insert(i,s),s._dom_zIndex=n,o!==e&&Oa._clipbox){var a=Oa._matrix.invert(),l=Oa._clipbox.transformCopy(a);uo(s,ni.fromRect(l))}return s}function Do(t,e){var n=Jn(t);if(Vn(n),!/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(t.tagName)&&null!=Oa._clipbox){var o=parseFloat(Qn(n,"opacity")),r=Qn(n,"visibility"),i=Qn(n,"dis
14play");if(0!==o&&"hidden"!=r&&"none"!=i){var s,a=so(n),l=Qn(n,"z-index");(a||o<1)&&"auto"==l&&(l=0),s=jo(t,e,l),o<1&&s.opacity(o*s.opacity()),Wn(t,n,s),a?no(t,function(){to(t.style,"transform","none","important"),to(t.style,"transition","none","important"),"static"==Qn(n,"position")&&to(t.style,"position","relative","important");var e=t.getBoundingClientRect(),o=e.left+a.origin[0],r=e.top+a.origin[1],i=[1,0,0,1,-o,-r];i=Ro(i,a.matrix),i=Ro(i,[1,0,0,1,o,r]),i=co(s,i),Oa._matrix=Oa._matrix.multiplyCopy(i),_o(t,s)}):_o(t,s),Yn()}}}function Ro(t,e){var n=t[0],o=t[1],r=t[2],i=t[3],s=t[4],a=t[5],l=e[0],c=e[1],u=e[2],p=e[3],h=e[4],f=e[5];return[n*l+o*u,n*c+o*p,r*l+i*u,r*c+i*p,s*l+a*u+h,s*c+a*p+f]}Object.defineProperty(e,"__esModule",{value:!0});var Io=n(21),Fo={extend:function(t){var e=this;for(var n in this)"extend"!==n&&(t[n]=e[n])},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 n!==-1&&e.splice(n,1),this},trigger:function(t,e){var n=this._observers;if(n&&!this._suspended)for(var o=0;o<n.length;o++){var r=n[o];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)}},Lo="undefined"!=typeof window?window:{},zo=Lo.requestAnimationFrame||Lo.webkitRequestAnimationFrame||Lo.mozRequestAnimationFrame||Lo.oRequestAnimationFrame||Lo.msRequestAnimationFrame||function(t){setTimeout(t,1e3/60)},Bo=function(){},No=/&/g,Ho=/</g,Vo=/"/g,Uo=/'/g,Go=/>/g,qo=function(t){function e(){t.call(this),this._events={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bind=function(t,e,n){var o=arguments,r=this,i=a(t),l=s(e),c=i.length;if(void 0===e){for(var u in t)r.bind(u,t[u]);return this}for(var p=function(t){var s=i[t],a=l?e:e[s];if(a){if(n){var c=a;a=function(){r.unbind(s,a),c.apply(r,o)},a.original=c}var u=r._events[s]=r._events[s]||[];u.push(a)}},h=0;h<c;h++)p(h);return this},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){for(var n=this,o=a(t),r=s(e),i=0,l=o.length;i<l;i++){var c=o[i],u=r?e:e[c];if(u){var p=n._events[c]=n._events[c]||[];p.unshift(u)}}return this},e.prototype.trigger=function(t,e){var n=this;void 0===e&&(e={});var o=this._events[t];if(o){var r=o.length;e.sender=this,e._defaultPrevented=!1,e.preventDefault=l,e.isDefaultPrevented=c,o=o.slice();for(var i=0;i<r;i++)o[i].call(n,e);return e._defaultPrevented===!0}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 o=n.length-1;o>=0;o--)n[o]!==e&&n[o].original!==e||n.splice(o,1);else this._events[t]=[];return this},e}(Bo),Ko={};"undefined"!=typeof window&&(Ko.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 o in n)if(n.hasOwnProperty(o)){var r=t.match(n[o]);if(r){e={},e[o]=!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 Wo={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
140",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"},Yo=Ko.browser,Xo=function(t){var e=Object.keys(Wo);e.push("transparent");var n=new RegExp("^("+e.join("|")+")(\\W|$)","i");return Xo=function(t){return n.exec(t)},n.exec(t)},Zo=function(t){function e(){t.call(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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 Yo.msie&&Yo.version<9?this.toCss():this.toCssRgba()},e.prototype.equals=function(t){return t===this||null!==t&&this.toCssRgba()===y(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 Jo(t.r,t.g,t.b,t.a)),t},e}(Bo),$o=function(t){function e(e,n,o,r){t.call(this),this.r=e,this.g=n,this.b=o,this.a=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toHSV=function(){var t,e,n=this,o=n.r,r=n.g,i=n.b,s=Math.min(o,r,i),a=Math.max(o,r,i),l=a-s,c=a;return 0===l?new Qo(0,0,c,this.a):(0!==a?(e=l/a,t=o===a?(r-i)/l:r===a?2+(i-o)/l:4+(o-r)/l,t*=60,t<0&&(t+=360)):(e=0,t=-1),new Qo(t,e,c,this.a))},e.prototype.toHSL=function(){var t,e,n=this,o=n.r,r=n.g,i=n.b,s=Math.max(o,r,i),a=Math.min(o,r,i),l=(s+a)/2;if(s===a)t=e=0;else{var c=s-a;switch(e=l>.5?c/(2-s-a):c/(s+a),s){case o:t=(r-i)/c+(r<i?6:0);break;case r:t=(i-o)/c+2;break;case i:t=(o-r)/c+4}}return new tr(60*t,100*e,100*l,this.a)},e.prototype.toBytes=function(){return new Jo(255*this.r,255*this.g,255*this.b,this.a)},e}(Zo),Jo=function(t){function e(e,n,o,r){t.call(this,Math.round(e),Math.round(n),Math.round(o),r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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 d(this.r,2)+d(this.g,2)+d(this.b,2)},e.prototype.toBytes=function(){return this},e}($o),Qo=function(t){function e(e,n,o,r){t.call(this),this.h=e,this.s=n,this.v=o,this.a=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toRGB=function(){var t,e,n,o=this,r=o.h,i=o.s,s=o.v;if(0===i)t=e=n=s;else{r/=60;var a=Math.floor(r),l=r-a,c=s*(1-i),u=s*(1-i*l),p=s*(1-i*(1-l));switch(a){case 0:t=s,e=p,n=c;break;case 1:t=u,e=s,n=c;break;case 2:t=c,e=s,n=p;break;case 3:t=c,e=u,n=s;break;case 4:t=p,e=c,n=s;break;default:t=s,e=c,n=u}}return new $o(t,e,n,this.a)},e.prototype.toHSL=function(){return this.toRGB().toHSL()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}(Zo),tr=function(t){function e(e,n,o,r){t.call(this),this.h=e,this.s=n,this.l=o,this.a=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toRGB=function(){var t,e,n,o=this.h/360,r=this.s/100,i=this.l/100;if(0===r)t=e=n=i;else{var s=i<.5?i*(1+r):i+r-i*r,a=2*i-s;t=v(a,s,o+1/3),e=v(a,s,o),n=v(a,s,o-1/3)}return new $o(t,e,n,this.a)},e.prototype.toHSV=function(){return this.toRGB().toHSV()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}(Zo),er=180,nr=function(t){function e(n){var o=this;if(t.call(this),1===arguments.length)for(var r=e.formats,i=this.resolveColor(n),s=0;s<r.length;s++){var a=r[s].re,l=r[s].process,c=a.exec(i);if(c){var u=l(c);o.r=u[0],o.g=u[1],o.b=u[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),e.prototype.constructor=e,e.prototype.toHex=function(){var t=this.padDigit,e=this.r.toString(16),n=this.g.toString(16),o=this.b.toString(16);return"#"+t(e)+t(n)+t(o)}
14,e.prototype.resolveColor=function(t){var n=t||"black";return"#"===n.charAt(0)&&(n=n.substr(1,6)),n=n.replace(/ /g,""),n=n.toLowerCase(),n=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.prototype.isDark=function(){return this.percBrightness()<er},e.fromBytes=function(t,e,n,o){return new Jo(t,e,n,null!=o?o:1)},e.fromRGB=function(t,e,n,o){return new $o(t,e,n,null!=o?o:1)},e.fromHSV=function(t,e,n,o){return new Qo(t,e,n,null!=o?o:1)},e.fromHSL=function(t,e,n,o){return new tr(t,e,n,null!=o?o:1)},e}(Bo);nr.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)]}}],nr.namedColors=Wo;var or,rr={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",1e3:"m"},ir="undefined",sr=1,ar=Math.PI/180,lr=Number.MAX_VALUE,cr=-Number.MAX_VALUE,ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",pr=String.fromCharCode,hr=function(t){ 15function 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),e.prototype.constructor=e,e.prototype.put=function(t,e){var n=this._map,o={key:t,value:e};n[t]=o,this._head?(this._tail.newer=o,o.older=this._tail,this._tail=o):this._head=this._tail=o,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}(Bo),fr=/\r?\n|\r|\t/g,dr=" ",vr={baselineMarkerSize:1};"undefined"!=typeof document&&(or=document.createElement("div"),or.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 yr=function(t){function e(e){t.call(this),this._cache=new hr(1e3),this.options=Object.assign({},vr,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.measure=function(t,e,n){if(void 0===n&&(n={}),!t)return q();var o=U(e),r=G(t+o),i=this._cache.get(r);if(i)return i;var s=q(),a=n.box||or,l=this._baselineMarker().cloneNode(!1);for(var c in e){var u=e[c];"undefined"!=typeof u&&(a.style[c]=u)}var p=n.normalizeText!==!1?V(t):String(t);return a.textContent=p,a.appendChild(l),document.body.appendChild(a),p.length&&(s.width=a.offsetWidth-this.options.baselineMarkerSize,s.height=a.offsetHeight,s.baseline=l.offsetTop+this.options.baselineMarkerSize),s.width>0&&s.height>0&&this._cache.put(r,s),a.parentNode.removeChild(a),s},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}(Bo);yr.current=new yr;var gr=Object.freeze({append:g,arabicToRoman:m,createPromise:b,defined:_,definitionId:x,deg:w,encodeBase64:S,eventCoordinates:O,eventElement:C,isTransparent:T,last:E,limitValue:A,mergeSort:M,promiseAll:P,rad:j,round:R,valueOrDefault:I,bindEvents:F,elementOffset:L,elementSize:N,elementStyles:z,unbindEvents:H,DEG_TO_RAD:ar,MAX_NUM:lr,MIN_NUM:cr,LRUCache:hr,TextMetrics:yr,measureText:K,objectKey:U,hashKey:G,normalizeText:V}),mr={}.toString,br=function(t){function e(e,n){var o=this;void 0===n&&(n=""),t.call(this),this.prefix=n;for(var r in e){var i=e[r];i=o._wrap(i,r),o[r]=i}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){for(var e=t.split("."),n=this;e.length&&n;){var o=e.shift();n=n[o]}return n},e.prototype.set=function(t,e){var n=this.get(t);n!==e&&(this._set(t,this._wrap(e,t)),this.optionsChange({field:this.prefix+t,value:e}))},e.prototype._set=function(t,n){var o=this,r=t.indexOf(".")>=0,i=this,s=t;if(r){for(var a=s.split("."),l=this.prefix;a.length>1;){s=a.shift(),l+=s+".";var c=i[s];c||(c=new e({},l),c.addObserver(o),i[s]=c),i=c}s=a[0]}i._clear(s),i[s]=n},e.prototype._clear=function(t){var e=this[t];e&&e.removeObserver&&e.removeObserver(this)},e.prototype._wrap=function(n,o){var r=mr.call(n),i=n;return null!==i&&_(i)&&"[object Object]"===r&&(n instanceof e||n instanceof t||(i=new e(i,this.prefix+o+".")),i.addObserver(this)),i},e}(Bo);Fo.extend(br.prototype);var _r=function(t){function e(e,n,o,r,i,s){void 0===e&&(e=0),void 0===n&&(n=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===i&&(i=0),void 0===s&&(s=0),t.call(this),this.a=e,this.b=n,this.c=o,this.d=r,this.e=i,this.f=s}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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,n=t.a,o=t.b,r=t.c,i=t.d,s=t.e,a=t.f,l=n*i-o*r;return 0===l?null:new e(i/l,-o/l,-r/l,n/l,(r*a-i*s)/l,(o*s-n*a)/l)},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=R(this.a,t),this.b=R(this.b,t),this.c=R(this.c,t),this.d=R(this.d,t),this.e=R(this.e,t),this.f=R(this.f,t),this},e.prototype.toArray=function(t){var e=[this.a,this.b,this.c,this.d,this.e,this.f];if(_(t))for(var n=0;n<e.length;n++)e[n]=R(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,o){var r=new e;return r.a=Math.cos(j(t)),r.b=Math.sin(j(t)),r.c=-r.b,r.d=r.a,r.e=n-n*r.a+o*r.b||0,r.f=o-o*r.a-n*r.b||0,r},e.scale=function(t,n){return new e(t,0,0,n,0,0)},e}(Bo);_r.IDENTITY=_r.unit();var xr=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),e.prototype.constructor=e;var n={ZERO:{}};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 o=e.create(n)||e.ZERO;return this.transform(_r.rotate(t,o.x,o.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=Z(t),n=this,o=n.x,r=n.y;return this.x=e.a*o+e.c*r+e.e,this.y=e.b*o+e.d*r+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=R(this.x,t),this.y=R(this.y,t),this.geometryChange(),this},e.prototype.toArray=function(t){var e=_(t),n=e?R(this.x,t):this.x,o=e?R(this.y,t):this.y;return[n,o]},e.prototype.toString=function(t,e){void 0===e&&(e=" ");var n=this,o=n.x,r=n.y;return _(t)&&(o=R(o,t),r=R(r,t)),o+e+r},e.create=function(t,n){if(_(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=lr,o=lr,r=0;r<arguments.length;r++){var i=t[r];n=Math.min(i.x,n),o=Math.min(i.y,o)}return new e(n,o)},e.max=function(){for(var t=arguments,n=cr,o=cr,r=0;r<arguments.length;r++){var i=t[r];n=Math.max(i.x,n),o=Math.max(i.y,o)}return new e(n,o)},e.minPoint=function(){return new e(cr,cr)},e.maxPoint=function(){return new e(lr,lr)},n.ZERO.get=function(){return new e(0,0)},Object.defineProperties(e,n),e}(Bo);X(xr.prototype,["x","y"]),Fo.extend(xr.prototype);var wr=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),e.prototype.constructor=e;var n={ZERO:{}};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=_(t),n=e?R(this.width,t):this.width,o=e?R(this.height,t):this.height;return[n,o]},e.create=function(t,n){if(_(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}(Bo);X(wr.prototype,["width","height"]),Fo.extend(wr.prototype);var kr=function(t){function e(e,n){void 0===e&&(e=new xr),void 0===n&&(n=new wr),t.call(this),this.setOrigin(e),this.setSize(n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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",xr.create(t)),this.geometryChange(),this},e.prototype.getOrigin=function(){return this.origin},e.prototype.setSize=function(t){return this._observerField("size",wr.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),o=this.topRight().transformCopy(t),r=this.bottomRight().transformCopy(t),i=this.bottomLeft().transformCopy(t);return e.fromPoints(n,o,r,i)},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),o=this.expandCopy(-e,-e);return n.containsPoint(t)&&!o.containsPoint(t)},e.fromPoints=function(){var t=xr.min.apply(null,arguments),n=xr.max.apply(null,arguments),o=new wr(n.x-t.x,n.y-t.y);return new e(t,o)},e.union=function(t,n){return e.fromPoints(xr.min(t.topLeft(),n.topLeft()),xr.max(t.bottomRight(),n.bottomRight()))},e.intersect=function(t,n){var o={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(o.left<=r.right&&r.left<=o.right&&o.top<=r.bottom&&r.top<=o.bottom)return e.fromPoints(new xr(Math.max(o.left,r.left),Math.max(o.top,r.top)),new xr(Math.min(o.right,r.right),Math.min(o.bottom,r.bottom)))},e}(Bo);Fo.extend(kr.prototype);var Sr=function(t){function e(e){void 0===e&&(e=_r.unit()),t.call(this),this._matrix=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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(_r.translate(t,e)),this._optionsChange(),this},e.prototype.scale=function(t,e,n){void 0===e&&(e=t),void 0===n&&(n=null);var o=n;return o&&(o=xr.create(o),this._matrix=this._matrix.multiplyCopy(_r.translate(o.x,o.y))),this._matrix=this._matrix.multiplyCopy(_r.scale(t,e)),o&&(this._matrix=this._matrix.multiplyCopy(_r.translate(-o.x,-o.y))),this._optionsChange(),this},e.prototype.rotate=function(t,e){var n=xr.create(e)||xr.ZERO;return this._matrix=this._matrix.multiplyCopy(_r.rotate(t,n.x,n.y)),this._optionsChange(),this},e.prototype.multiply=function(t){var e=Z(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}(Bo);Fo.extend(Sr.prototype);var Or=function(t){function e(e){t.call(this),this._initOptions(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){void 0===t&&(t={});var e=t.clip,n=t.transform;
15n&&(t.transform=$(n)),e&&!e.id&&(e.id=x()),this.options=new br(t),this.options.addObserver(this)},e.prototype.transform=function(t){return _(t)?void this.options.set("transform",$(t)):this.options.get("transform")},e.prototype.parentTransform=function(){for(var t,e=this;e.parent;){e=e.parent;var n=e.transform();n&&(t=n.matrix().multiplyCopy(t||_r.unit()))}if(t)return $(t)},e.prototype.currentTransform=function(t){void 0===t&&(t=this.parentTransform());var e,n=this.transform(),o=Z(n),r=Z(t);if(e=o&&r?r.multiplyCopy(o):o||r)return $(e)},e.prototype.visible=function(t){return _(t)?(this.options.set("visible",t),this):this.options.get("visible")!==!1},e.prototype.clip=function(t){var e=this.options;return _(t)?(t&&!t.id&&(t.id=x()),e.set("clip",t),this):e.get("clip")},e.prototype.opacity=function(t){return _(t)?(this.options.set("opacity",t),this):I(this.options.get("opacity"),1)},e.prototype.clippedBBox=function(t){var e=this._clippedBBox(t);if(e){var n=this.clip();return n?kr.intersect(e,n.bbox(t)):e}},e.prototype.containsPoint=function(t,e){if(this.visible()){var n=this.currentTransform(e),o=t;return n&&(o=t.transformCopy(n.matrix().invert())),this._hasFill()&&this._containsPoint(o)||this._isOnPath&&this._hasStroke()&&this._isOnPath(o)}return!1},e.prototype._hasFill=function(){var t=this.options.fill;return t&&!T(t.color)},e.prototype._hasStroke=function(){var t=this.options.stroke;return t&&t.width>0&&!T(t.color)},e.prototype._clippedBBox=function(t){return this.bbox(t)},e}(Bo);Or.prototype.nodeType="Element",Fo.extend(Or.prototype);var Cr=Math.PI/2,Tr=function(t){function e(e,n){void 0===e&&(e=new xr),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),e.prototype.constructor=e,e.prototype.setCenter=function(t){return this._observerField("center",xr.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(j(t))},e.prototype.bbox=function(t){for(var e=this,n=J(this.center,this.radius,this.radius,t),o=xr.maxPoint(),r=xr.minPoint(),i=0;i<4;i++){var s=e._pointAt(n.x+i*Cr).transformCopy(t),a=e._pointAt(n.y+i*Cr).transformCopy(t),l=new xr(s.x,a.y);o=xr.min(o,l),r=xr.max(r,l)}return kr.fromPoints(o,r)},e.prototype._pointAt=function(t){var e=this,n=e.center,o=e.radius;return new xr(n.x+o*Math.cos(t),n.y+o*Math.sin(t))},e.prototype.containsPoint=function(t){var e=this,n=e.center,o=e.radius,r=Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)<=Math.pow(o,2);return r},e.prototype._isOnPath=function(t,e){var n=this,o=n.center,r=n.radius,i=o.distanceTo(t);return r-e<=i&&i<=r+e},e}(Bo);X(Tr.prototype,["radius"]),Fo.extend(Tr.prototype);var Er="Gradient",Ar={extend:function(t){t.fill=this.fill,t.stroke=this.stroke},fill:function(t,e){var n=this.options;if(_(t)){if(t&&t.nodeType!==Er){var o={color:t};_(e)&&(o.opacity=e),n.set("fill",o)}else n.set("fill",t);return this}return n.get("fill")},stroke:function(t,e,n){return _(t)?(this.options.set("stroke.color",t),_(e)&&this.options.set("stroke.width",e),_(n)&&this.options.set("stroke.opacity",n),this):this.options.get("stroke")}},Mr=_r.IDENTITY.toString(),Pr={extend:function(t){t.bbox=this.bbox,t.geometryChange=this.geometryChange},bbox:function(t){var e,n=Z(this.currentTransform(t)),o=n?n.toString():Mr;this._bboxCache&&this._matrixHash===o?e=this._bboxCache.clone():(e=this._bbox(n),this._bboxCache=e?e.clone():null,this._matrixHash=o);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})}},jr="#000",Dr=function(t){function e(e,n){void 0===e&&(e=new Tr),void 0===n&&(n={}),t.call(this,n),this.geometry(e),_(this.options.stroke)||this.stroke(jr)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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}(Or);Dr.prototype.nodeType="Circle",Ar.extend(Dr.prototype),Pr.extend(Dr.prototype),tt(Dr.prototype,["geometry"]);var Rr=10,Ir=45,Fr=Math.pow,Lr=function(t){function e(e,n){void 0===e&&(e=new xr),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),e.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",xr.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.pointAt=function(t){var e=this.center,n=j(t);return new xr(e.x+this.radiusX*Math.cos(n),e.y+this.radiusY*Math.sin(n))},e.prototype.curvePoints=function t(){var e,n=this,o=this.startAngle,r=this.anticlockwise?-1:1,t=[this.pointAt(o)],i=this._arcInterval(),s=i.endAngle-i.startAngle,a=Math.ceil(s/Ir),l=s/a,c=o;this.xRotation&&(e=$().rotate(this.xRotation,this.center));for(var u=1;u<=a;u++){var p=c+r*l,h=n._intervalCurvePoints(c,p,e);t.push(h.cp1,h.cp2,h.p2),c=p}return t},e.prototype.bbox=function(t){for(var e=this,n=this._arcInterval(),o=n.startAngle,r=n.endAngle,i=J(this.center,this.radiusX,this.radiusY,t),s=w(i.x),a=w(i.y),l=this.pointAt(r).transformCopy(t),c=st(s,o),u=st(a,o),p=this.pointAt(o).transformCopy(t),h=xr.min(p,l),f=xr.max(p,l);c<r||u<r;){var d=void 0;c<r&&(d=e.pointAt(c).transformCopy(t),c+=90);var v=void 0;u<r&&(v=e.pointAt(u).transformCopy(t),u+=90),p=new xr(d.x,v.y),h=xr.min(h,p),f=xr.max(f,p)}return kr.fromPoints(h,f)},e.prototype._arcInterval=function(){var t=this,e=t.startAngle,n=t.endAngle,o=t.anticlockwise;if(o){var r=e;e=n,n=r}return(e>n||o&&e===n)&&(n+=360),{startAngle:e,endAngle:n}},e.prototype._intervalCurvePoints=function(t,e,n){var o=this.pointAt(t),r=this.pointAt(e),i=this._derivativeAt(t),s=this._derivativeAt(e),a=(j(e)-j(t))/3,l=new xr(o.x+a*i.x,o.y+a*i.y),c=new xr(r.x-a*s.x,r.y-a*s.y);return n&&(o.transform(n),r.transform(n),l.transform(n),c.transform(n)),{p1:o,cp1:l,cp2:c,p2:r}},e.prototype._derivativeAt=function(t){var e=j(t);return new xr(-this.radiusX*Math.sin(e),this.radiusY*Math.cos(e))},e.prototype.containsPoint=function t(e){var t,n=this._arcInterval(),o=n.endAngle-n.startAngle,r=this,i=r.center,s=r.radiusX,a=r.radiusY,l=i.distanceTo(e),c=Math.atan2(e.y-i.y,e.x-i.x),u=s*a/Math.sqrt(Fr(s,2)*Fr(Math.sin(c),2)+Fr(a,2)*Fr(Math.cos(c),2)),p=this.pointAt(this.startAngle).round(Rr),h=this.pointAt(this.endAngle).round(Rr),f=ot(i,e.round(Rr),p,h);if(o<180)t=f&&nt(i.distanceTo(f),l)&&nt(l,u);else{var d=rt(i.x,i.y,s,a,e.x,e.y);360!==d&&(d=(360+d)%360);var v=n.startAngle<=d&&d<=n.endAngle;t=v&&nt(l,u)||!v&&(!f||f.equals(e))}return t},e.prototype._isOnPath=function(t,e){var n=this._arcInterval(),o=this.center,r=rt(o.x,o.y,this.radiusX,this.radiusY,t.x,t.y);360!==r&&(r=(360+r)%360);var i=n.startAngle<=r&&r<=n.endAngle;return i&&this.pointAt(r).distanceTo(t)<=e},e.fromPoints=function(t,n,o,r,i,s,a){var l=it({x1:t.x,y1:t.y,x2:n.x,y2:n.y,rx:o,ry:r,largeArc:i,swipe:s,rotation:a});return new e(l.center,{startAngle:l.startAngle,endAngle:l.endAngle,radiusX:l.radiusX,radiusY:l.radiu
15sY,xRotation:l.xRotation,anticlockwise:0===s})},e}(Bo);X(Lr.prototype,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]),Fo.extend(Lr.prototype);var zr=[].push,Br=[].pop,Nr=[].splice,Hr=[].shift,Vr=[].slice,Ur=[].unshift,Gr=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),e.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=zr.apply(this,t);return this._add(t),e},e.prototype.slice=function(){return Vr.call(this)},e.prototype.pop=function(){var t=this.length,e=Br.apply(this);return t&&this._remove([e]),e},e.prototype.splice=function(t,e){var n=Vr.call(arguments,2),o=this._splice(t,e,n);return this._change(),o},e.prototype.shift=function(){var t=this.length,e=Hr.apply(this);return t&&this._remove([e]),e},e.prototype.unshift=function(){var t=arguments,e=Ur.apply(this,t);return this._add(t),e},e.prototype.indexOf=function(t){for(var e=this,n=this.length,o=0;o<n;o++)if(e[o]===t)return o;return-1},e.prototype._splice=function(t,e,n){var o=Nr.apply(this,[t,e].concat(n));return this._clearObserver(o),this._setObserver(n),o},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=this,n=0;n<t.length;n++)t[n].addObserver(e)},e.prototype._clearObserver=function(t){for(var e=this,n=0;n<t.length;n++)t[n].removeObserver(e)},e.prototype._change=function(){},e}(Bo);Fo.extend(Gr.prototype);var qr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._change=function(){this.geometryChange()},e}(Gr),Kr=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),e.prototype.constructor=e,e.prototype.add=function(t){return new e(R(this.real+t.real,Rr),R(this.img+t.img,Rr))},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),o=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),r=Math.pow(o,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}(Bo),Wr=function(t){function e(e,n,o){t.call(this),this.anchor(e||new xr),this.controlIn(n),this.controlOut(o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bboxTo=function(t,e){var n,o=this.anchor().transformCopy(e),r=t.anchor().transformCopy(e);return n=this.controlOut()&&t.controlIn()?this._curveBoundingBox(o,this.controlOut().transformCopy(e),t.controlIn().transformCopy(e),r):this._lineBoundingBox(o,r)},e.prototype._lineBoundingBox=function(t,e){return kr.fromPoints(t,e)},e.prototype._curveBoundingBox=function(t,e,n,o){var r=[t,e,n,o],i=this._curveExtremesFor(r,"x"),s=this._curveExtremesFor(r,"y"),a=mt([i.min,i.max,t.x,o.x]),l=mt([s.min,s.max,t.y,o.y]);return kr.fromPoints(new xr(a.min,l.min),new xr(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:ut(n.min,e,t),max:ut(n.max,e,t)}},e.prototype._curveExtremes=function(t,e,n,o){var r=t-3*e+3*n-o,i=-2*(t-2*e+n),s=t-e,a=Math.sqrt(i*i-4*r*s),l=0,c=1;0===r?0!==i&&(l=c=-s/i):isNaN(a)||(l=(-i+a)/(2*r),c=(-i-a)/(2*r));var u=Math.max(Math.min(l,c),0);(u<0||u>1)&&(u=0);var p=Math.min(Math.max(l,c),1);return(p>1||p<0)&&(p=1),{min:u,max:p}},e.prototype._intersectionsTo=function(t,e){var n;return n=this.controlOut()&&t.controlIn()?yt([this.anchor(),this.controlOut(),t.controlIn(),t.anchor(
15)],e,this.bboxTo(t)):gt(this.anchor(),t.anchor(),e)},e.prototype._isOnCurveTo=function(t,e,n,o){var r=this.bboxTo(t).expand(n,n);if(r.containsPoint(e)){var i=this.anchor(),s=this.controlOut(),a=t.controlIn(),l=t.anchor();if("start"===o&&i.distanceTo(e)<=n)return!ct(i,s,e);if("end"===o&&l.distanceTo(e)<=n)return!ct(l,a,e);var c=[i,s,a,l];if(vt(c,e,"x","y",n)||vt(c,e,"y","x",n))return!0;var u=$().rotate(45,e),p=[i.transformCopy(u),s.transformCopy(u),a.transformCopy(u),l.transformCopy(u)];return vt(p,e,"x","y",n)||vt(p,e,"y","x",n)}},e.prototype._isOnLineTo=function(t,e,n){var o=this.anchor(),r=t.anchor(),i=w(Math.atan2(r.y-o.y,r.x-o.x)),s=new kr([o.x,o.y-n/2],[o.distanceTo(r),n]);return s.containsPoint(e.transformCopy($().rotate(-i,o)))},e.prototype._isOnPathTo=function(t,e,n,o){var r;return r=this.controlOut()&&t.controlIn()?this._isOnCurveTo(t,e,n/2,o):this._isOnLineTo(t,e,n)},e}(Bo);lt(Wr.prototype,["anchor","controlIn","controlOut"]),Fo.extend(Wr.prototype);var Yr=function(t){function e(e){t.call(this,e),this.paths=new qr,this.paths.addObserver(this),_(this.options.stroke)||this.stroke("#000")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.moveTo=function(t,e){var n=new ni;return n.moveTo(t,e),this.paths.push(n),this},e.prototype.lineTo=function(t,e){return this.paths.length>0&&E(this.paths).lineTo(t,e),this},e.prototype.curveTo=function(t,e,n){return this.paths.length>0&&E(this.paths).curveTo(t,e,n),this},e.prototype.arc=function(t,e,n,o,r){return this.paths.length>0&&E(this.paths).arc(t,e,n,o,r),this},e.prototype.arcTo=function(t,e,n,o,r,i){return this.paths.length>0&&E(this.paths).arcTo(t,e,n,o,r,i),this},e.prototype.close=function(){return this.paths.length>0&&E(this.paths).close(),this},e.prototype._bbox=function(t){return bt(this.paths,!0,t)},e.prototype.rawBBox=function(){return bt(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,o=0;o<e.length;o++)if(e[o]._isOnPath(t,n))return!0;return!1},e.prototype._clippedBBox=function(t){return _t(this.paths,this.currentTransform(t))},e}(Or);Yr.prototype.nodeType="MultiPath",Ar.extend(Yr.prototype),Pr.extend(Yr.prototype);var Xr={l:function(t,e){for(var n=e.parameters,o=e.position,r=0;r<n.length;r+=2){var i=new xr(n[r],n[r+1]);e.isRelative&&i.translateWith(o),t.lineTo(i.x,i.y),o.x=i.x,o.y=i.y}},c:function(t,e){for(var n=e.parameters,o=e.position,r=0;r<n.length;r+=6){var i=new xr(n[r],n[r+1]),s=new xr(n[r+2],n[r+3]),a=new xr(n[r+4],n[r+5]);e.isRelative&&(s.translateWith(o),i.translateWith(o),a.translateWith(o)),t.curveTo(i,s,a),o.x=a.x,o.y=a.y}},v:function(t,e){var n=e.isRelative?0:e.position.x;xt(e.parameters,!0,n),this.l(t,e)},h:function(t,e){var n=e.isRelative?0:e.position.y;xt(e.parameters,!1,n),this.l(t,e)},a:function(t,e){for(var n=e.parameters,o=e.position,r=0;r<n.length;r+=7){var i=n[r],s=n[r+1],a=n[r+2],l=n[r+3],c=n[r+4],u=new xr(n[r+5],n[r+6]);e.isRelative&&u.translateWith(o),o.x===u.x&&o.y===u.y||(t.arcTo(u,i,s,l,c,a),o.x=u.x,o.y=u.y)}},s:function(t,e){var n,o=e.parameters,r=e.position,i=e.previousCommand;"s"!==i&&"c"!==i||(n=E(E(t.paths).segments).controlIn());for(var s=0;s<o.length;s+=4){var a=new xr(o[s],o[s+1]),l=new xr(o[s+2],o[s+3]),c=void 0;e.isRelative&&(a.translateWith(r),l.translateWith(r)),c=n?wt(n,r):r.clone(),n=a,t.curveTo(c,a,l),r.x=l.x,r.y=l.y}},q:function(t,e){for(var n=e.parameters,o=e.position,r=0;r<n.length;r+=4){var i=new xr(n[r],n[r+1]),s=new xr(n[r+2],n[r+3]);e.isRelative&&(i.translateWith(o),s.translateWith(o));var a=kt(o,i,s);t.curveTo(a.controlOut,a.controlIn,s),o.x=s.x,o.y=s.y}},t:function(t,e){var n,o=e.parameters,r=e.position,i=e.previousCommand;if("q"===i||"t"===i){var s=E(E(t.paths).segments);n=s.controlIn().clone().translateWith(r.scaleCopy(-1/3)).scale(1.5)}for(var a=0;a<o.length;a+=2){var l=new xr(o[a],o[a+1]);e.isRelative&&l.translateWith(r),n=n?wt(n,r):r.clone();var c=kt(r,n,l);t.curveTo(c.controlOut,c.controlIn,l),r.x=l.x,r.y=l.y}}},Zr=1/3,$r=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,Jr=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g,Qr="m",ti="z",ei=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t,e){var n,o=new Yr(e),r=new xr;
15return t.replace($r,function(t,e,i,s){var a=e.toLowerCase(),l=a===e,c=St(i.trim());if(a===Qr&&(l?(r.x+=c[0],r.y+=c[1]):(r.x=c[0],r.y=c[1]),o.moveTo(r.x,r.y),c.length>2&&(a="l",c.splice(0,2))),Xr[a])Xr[a](o,{parameters:c,position:r,isRelative:l,previousCommand:n}),s&&s.toLowerCase()===ti&&o.close();else if(a!==Qr)throw new Error("Error while parsing SVG path. Unsupported command: "+a);n=a}),o},e}(Bo);ei.current=new ei;var ni=function(t){function e(e){t.call(this,e),this.segments=new qr,this.segments.addObserver(this),_(this.options.stroke)||(this.stroke("#000"),_(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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=_(e)?new xr(t,e):t,o=new Wr(n);return this.segments.push(o),this},e.prototype.curveTo=function(t,e,n){if(this.segments.length>0){var o=E(this.segments),r=new Wr(n,e);this.suspend(),o.controlOut(t),this.resume(),this.segments.push(r)}return this},e.prototype.arc=function t(e,n,o,r,i){if(this.segments.length>0){var s=E(this.segments),a=s.anchor(),l=j(e),c=new xr(a.x-o*Math.cos(l),a.y-r*Math.sin(l)),t=new Lr(c,{startAngle:e,endAngle:n,radiusX:o,radiusY:r,anticlockwise:i});this._addArcSegments(t)}return this},e.prototype.arcTo=function(t,e,n,o,r,i){if(this.segments.length>0){var s=E(this.segments),a=s.anchor(),l=Lr.fromPoints(a,t,e,n,o,r,i);this._addArcSegments(l)}return this},e.prototype._addArcSegments=function(t){var e=this;this.suspend();for(var n=t.curvePoints(),o=1;o<n.length;o+=3)e.curveTo(n[o],n[o+1],n[o+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,n,o=this.segments,r=o.length,i=0,s=1;s<r;s++)e=o[s-1],n=o[s],i+=e._intersectionsTo(n,t);return!this.options.closed&&o[0].anchor().equals(o[r-1].anchor())||(i+=gt(o[0].anchor(),o[r-1].anchor(),t)),i%2!==0},e.prototype._isOnPath=function(t,e){var n=this.segments,o=n.length,r=e||this.options.stroke.width;if(o>1){if(n[0]._isOnPathTo(n[1],t,r,"start"))return!0;for(var i=2;i<=o-2;i++)if(n[i-1]._isOnPathTo(n[i],t,r))return!0;if(n[o-2]._isOnPathTo(n[o-1],t,r,"end"))return!0}return!1},e.prototype._bbox=function(t){var e,n=this.segments,o=n.length;if(1===o){var r=n[0].anchor().transformCopy(t);e=new kr(r,wr.ZERO)}else if(o>0)for(var i=1;i<o;i++){var s=n[i-1].bboxTo(n[i],t);e=e?kr.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 o=new e(n),r=0;r<t.length;r++){var i=xr.create(t[r]);i&&(0===r?o.moveTo(i):o.lineTo(i))}return o}},e.fromArc=function(t,n){var o=new e(n),r=t.startAngle,i=t.pointAt(r);return o.moveTo(i.x,i.y),o.arc(r,t.endAngle,t.radiusX,t.radiusY,t.anticlockwise),o},e}(Or);ni.prototype.nodeType="Path",Ar.extend(ni.prototype),Pr.extend(ni.prototype),ni.parse=function(t,e){return ei.current.parse(t,e)};var oi="#000",ri=function(t){function e(e,n){ 16void 0===e&&(e=new Lr),void 0===n&&(n={}),t.call(this,n),this.geometry(e),_(this.options.stroke)||this.stroke(oi)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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 ni,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}(Or);ri.prototype.nodeType="Arc",Ar.extend(ri.prototype),Pr.extend(ri.prototype),tt(ri.prototype,["geometry"]);var ii="12px sans-serif",si="#000",ai=function(t){function e(e,n,o){void 0===n&&(n=new xr),void 0===o&&(o={}),t.call(this,o),this.content(e),this.position(n),this.options.font||(this.options.font=ii),_(this.options.fill)||this.fill(si)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.content=function(t){return _(t)?(this.options.set("content",t),this):this.options.get("content")},e.prototype.measure=function(){var t=K(this.content(),{font:this.options.get("font")});return t},e.prototype.rect=function(){var t=this.measure(),e=this.position().clone();return new kr(e,[t.width,t.height])},e.prototype.bbox=function(t){var e=Z(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}(Or);ai.prototype.nodeType="Text",Ar.extend(ai.prototype),lt(ai.prototype,["position"]);var li=function(t){function e(e,n,o){void 0===n&&(n=new kr),void 0===o&&(o={}),t.call(this,o),this.src(e),this.rect(n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.src=function(t){return _(t)?(this.options.set("src",t),this):this.options.get("src")},e.prototype.bbox=function(t){var e=Z(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}(Or);li.prototype.nodeType="Image",tt(li.prototype,["rect"]);var ci={extend:function(t,e){t.traverse=function(t){for(var n=this[e],o=0;o<n.length;o++){var r=n[o];r.traverse?r.traverse(t):t(r)}return this}}},ui=function(t){function e(e){t.call(this,e),this.children=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.childrenChange=function(t,e,n){this.trigger("childrenChange",{action:t,items:e,index:n})},e.prototype.append=function(){return g(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 bt(this.children,!0,this.currentTransform(t))},e.prototype.rawBBox=function(){return bt(this.children,!1)},e.prototype._clippedBBox=function(t){return _t(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,o=this.currentTransform(e),r=0;r<n.length;r++)if(n[r].containsPoint(t,o))return!0;return!1},e.prototype._reparent=function(t,e){for(var n=this,o=0;o<t.length;o++){var r=t[o],i=r.parent;i&&i!==n&&i.remove&&i.remove(r),r.parent=e}},e}(Or);ui.prototype.nodeType="Group",ci.extend(ui.prototype,"children");var pi={alignContent:"start",justifyContent:"start",alignItems:"start",spacing:0,orientation:"horizontal",lineSpacing:0,wrap:!0,revers:!1},hi=function(t,e){t.forEach(e)},fi=function(t,e){for(var n=t.length,o=n-1;o>=0;o--)e(t[o],o)},di=function(t){function e(e,n){t.call(this,Object.assign({},pi,n)),this._rect=e,this._fieldMap={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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=fi,this.justifyAlign=Tt):(this.forEach=hi,this.justifyAlign=Ct)},e.prototype.reflow=function(){var t=this;if(this._rect&&0!==this.children.length){this._initMap(),this.options.transform&&this.transform(null);for(var e,n,o,r=this.options,i=this._rect,s=this._initGroups(),a=s.groups,l=s.groupsSize,c=this._fieldMap,u=c.sizeField,p=c.groupsSizeField,h=c.groupAxis,f=c.groupsAxis,d=new xr,v=new xr,y=new wr,g=Ct(l,i,r.alignContent,f,p),m=function(t,i){var s=n.elements[i];v[h]=e,v[f]=Ct(t.size[p],o,r.alignItems,f,p),Ot(v,t,s),e+=t.size[u]+r.spacing},b=0;b<a.length;b++)n=a[b],d[h]=e=t.justifyAlign(n.size,i,r.justifyContent,h,u),d[f]=g,y[u]=n.size,y[p]=n.lineSize,o=new kr(d,y),t.forEach(n.bboxes,m),g+=n.lineSize+r.lineSpacing;if(!r.wrap&&n.size>i.size[u]){var _=i.size[u]/o.size[u],x=o.topLeft().scale(_,_),w=o.size[p]*_,k=Ct(w,i,r.alignContent,f,p),S=$();"x"===h?S.translate(i.origin.x-x.x,k-x.y):S.translate(k-x.x,i.origin.y-x.y),S.scale(_,_),this.transform(S)}}},e.prototype._initGroups=function(){for(var t=this,e=this,n=e.options,o=e.children,r=n.lineSpacing,i=n.wrap,s=n.spacing,a=this._fieldMap.sizeField,l=this._newGroup(),c=[],u=function(){c.push(l),p+=l.lineSize+r},p=-r,h=0;h<o.length;h++){var f=o[h],d=o[h].clippedBBox();f.visible()&&d&&(i&&l.size+d.size[a]+s>t._rect.size[a]?0===l.bboxes.length?(t._addToGroup(l,d,f),u(),l=t._newGroup()):(u(),l=t._newGroup(),t._addToGroup(l,d,f)):t._addToGroup(l,d,f))}return l.bboxes.length&&u(),{groups:c,groupsSize:p}},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}(ui),vi=function(t){function e(e,n){void 0===e&&(e=new kr),void 0===n&&(n={}),t.call(this,n),this.geometry(e),_(this.options.stroke)||this.stroke("#000")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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}(Or);vi.prototype.nodeType="Rect",Ar.extend(vi.prototype),Pr.extend(vi.prototype),tt(vi.prototype,["geometry"]);var yi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._change=function(){this.optionsChange({field:"stops"})},e}(Gr),gi=function(t){function e(e,n,o){t.call(this),this.options=new br({offset:e,color:n,opacity:_(o)?o:1}),this.options.addObserver(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.create=function(t){if(_(t)){var n;return n=t instanceof e?t:t.length>1?new e(t[0],t[1],t[2]):new e(t.offset,t.color,t.opacity)}},e}(Bo);Ht(gi.prototype,["offset","color","opacity"]),Fo.extend(gi.prototype);var mi=function(t){function e(e){void 0===e&&(e={}),t.call(this),this.stops=new yi(this._createStops(e.stops)),this.stops.addObserver(this),this._userSpace=e.userSpace,this.id=x()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.userSpace=function(t){return _(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(gi.create(t[n]));return e},e.prototype.addStop=function(t,e,n){this.stops.push(new gi(t,e,n))},e.prototype.removeStop=function(t){var e=this.stops.indexOf(t);e>=0&&this.stops.splice(e,1)},e}(Bo);mi.prototype.nodeType="Gradient",Fo.extend(mi.prototype),Object.assign(mi.prototype,{optionsChange:function(t){this.trigger("optionsChange",{field:"gradient"+(t?"."+t.field:""),value:this})},geometryChange:function(){this.optionsChange()}});var bi=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.start(e.start||new xr),this.end(e.end||new xr(1,0))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(mi);lt(bi.prototype,["start","end"]);var _i=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.center(e.center||new xr),this._radius=_(e.radiu
16s)?e.radius:1,this._fallbackFill=e.fallbackFill}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radius=function(t){return _(t)?(this._radius=t,this.geometryChange(),this):this._radius},e.prototype.fallbackFill=function(t){return _(t)?(this._fallbackFill=t,this.optionsChange(),this):this._fallbackFill},e}(mi);lt(_i.prototype,["center"]);var xi=Object.freeze({swing:Vt,linear:Ut,easeOutElastic:Gt}),wi=function(t){function e(){t.call(this),this._items=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){this._items.push({name:t,type:e})},e.prototype.create=function(t,e){var n,o=this._items;if(e&&e.type)for(var r=e.type.toLowerCase(),i=0;i<o.length;i++)if(o[i].name.toLowerCase()===r){n=o[i];break}if(n)return new n.type(t,e)},e}(Bo);wi.current=new wi;var ki=Date.now||function(){return(new Date).getTime()},Si=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),e.prototype.constructor=e,e.prototype.setup=function(){},e.prototype.step=function(){},e.prototype.play=function(){var t=this,e=this.options,n=e.duration,r=e.delay;void 0===r&&(r=0);var i=xi[e.easing],s=ki()+r,a=s+n;0===n?(this.step(1),this.abort()):setTimeout(function(){var e=function(){if(!t._stopped){var r=ki(),l=A(r-s,0,n),c=l/n,u=i(c,l,0,1,n);t.step(u),r<a?o(e):t.abort()}};e()},r)},e.prototype.abort=function(){this._stopped=!0},e.prototype.destroy=function(){this.abort()},e}(Bo);Si.prototype.options={duration:500,easing:"swing"},Si.create=function(t,e,n){return wi.current.create(t,e,n)};var Oi=function(t){function e(){t.call(this),this._items=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e,n){var o=this._items,r=o[0],i={name:t,type:e,order:n};!r||n<r.order?o.unshift(i):o.push(i)},e.prototype.create=function(t,e){var n=this._items,o=n[0];if(e&&e.type)for(var r=e.type.toLowerCase(),s=0;s<n.length;s++)if(n[s].name===r){o=n[s];break}return o?new o.type(t,e):void i("Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\n- The browser does not support SVG and Canvas. User agent: "+navigator.userAgent)},e}(Bo);Oi.current=new Oi;var Ci=["click","mouseenter","mouseleave","mousemove","resize"],Ti=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 ui,N(e,this.options),this.bind(Ci,this.options),this._enableTracking()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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=this,o=C(t);!e&&o&&(e=o._kendoNode,o!==n.element);)o=o.parentElement;if(e)return e.srcElement},e.prototype.exportVisual=function(){return this._visual},e.prototype.getSize=function(){return N(this.element)},e.prototype.currentSize=function(t){return t?void(this._size=t):this._size},e.prototype.setSize=function(t){N(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){return t?void this.setSize(t):this.getSize()},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 o=e.eventTarget(n);o&&!e._suspendedTracking&&e.trigger(t,{element:o,originalEvent:n,type:t})}},e.prototype._elementOffset=function(){var t=this.element,e=z(t,["paddingLeft","paddingTop"]),n=e.paddingLeft,o=e.paddingTop,r=L(t),i=r.left,s=r.top;
16return{left:i+parseInt(n,10),top:s+parseInt(o,10)}},e.prototype._surfacePoint=function(t){var e=this._elementOffset(),n=O(t),o=n.x-e.left,r=n.y-e.top;return new xr(o,r)},e}(qo);Ti.create=function(t,e){return Oi.current.create(t,e)},Ti.support={};var Ei=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),e.prototype.constructor=e,e.prototype.destroy=function(){var t=this;this.srcElement&&this.srcElement.removeObserver(this);for(var e=this.childNodes,n=0;n<e.length;n++)t.childNodes[n].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=this,o=t+e,r=t;r<o;r++)n.childNodes[r].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.invalidate()},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}(Bo),Ai={},Mi="http://www.w3.org/2000/svg",Pi="none",ji=function(t,e){t.innerHTML=e};if("undefined"!=typeof document){var Di="<svg xmlns='"+Mi+"'></svg>",Ri=document.createElement("div"),Ii="undefined"!=typeof DOMParser;Ri.innerHTML=Di,Ii&&Ri.firstChild.namespaceURI!==Mi&&(ji=function(t,e){var n=new DOMParser,o=n.parseFromString(e,"text/xml"),r=document.adoptNode(o.documentElement);t.innerHTML="",t.appendChild(r)})}var Fi=ji,Li="transform",zi={clip:"clip-path",fill:"fill"},Bi=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),e.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=this,o=0;o<t.length;o++){var r=t[o],i=r.children,s=new Ai[r.nodeType](r,n.options);_(e)?n.insertAt(s,e):n.append(s),s.createDefinitions(),i&&i.length>0&&s.load(i);var a=n.element;a&&s.attachTo(a,e)}},e.prototype.root=function t(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.attachTo=function(t,e){var n=document.createElement("div");Fi(n,"<svg xmlns='"+Mi+"' version='1.1'>"+this.render()+"</svg>");var o=n.firstChild.firstChild;o&&(_(e)?t.insertBefore(o,t.childNodes[e]||null):t.appendChild(o),this.setElement(o))},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++){var o=t.childNodes[n];e[n].setElement(o)}},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,o=e.value;"visible"===n?this.css("display",o?"":Pi):zi[n]&&Yt(n,o)?this.updateDefinition(n,o):"opacity"===n?this.attr("opacity",o):"cursor"===n?this.css("cursor",o):"id"===n&&(o?this.attr("id",o):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=this,n=0;n<t.length;n++)e.attr(t[n][0],t[n][1])},e.prototype.css=function(t,e){this.element&&(this.element.style[t]=e)},e.prototype.allCss=function(t){for(var e=this,n=0;n<t.length;n++)e.css(t[n][0],t[n][1])},e.prototype.removeAttr=function(t){this.element&&this.element.removeAttribute(t)},e.prototype.mapTransform=function(t){var e=[];return t&&e.push([Li,"matrix("+t.matrix().toString(6)+")"]),e},e.prototype.renderTransform=function(){return Kt(this.mapTransform(this.srcElement.transform()))},e.prototype.transformChange=function(t){t?this.allAttr(this.mapTransform(t)):this.removeAttr(Li)},e.prototype.mapStyle=function(){var t=this.srcElement.options,e=[["cursor",t.curs
16or]];return t.visible===!1&&e.push(["display",Pi]),e},e.prototype.renderStyle=function(){return qt("style",Wt(this.mapStyle(!0)))},e.prototype.renderOpacity=function(){return qt("opacity",this.srcElement.options.opacity)},e.prototype.renderId=function(){return qt("id",this.srcElement.options.id)},e.prototype.createDefinitions=function(){var t=this.srcElement,e=this.definitions;if(t){var n,o=t.options;for(var r in zi){var i=o.get(r);i&&Yt(r,i)&&(e[r]=i,n=!0)}n&&this.definitionChange({action:"add",definitions:e})}},e.prototype.definitionChange=function(t){this.parent&&this.parent.definitionChange(t)},e.prototype.updateDefinition=function(t,e){var n=this.definitions,o=n[t],r=zi[t],i={};o&&(i[t]=o,this.definitionChange({action:"remove",definitions:i}),delete n[t]),e?(i[t]=e,this.definitionChange({action:"add",definitions:i}),n[t]=e,this.attr(r,this.refUrl(e.id))):o&&this.removeAttr(r)},e.prototype.clearDefinitions=function(){var t=this.definitions;this.definitionChange({action:"remove",definitions:t}),this.definitions={}},e.prototype.renderDefinitions=function(){return Kt(this.mapDefinitions())},e.prototype.mapDefinitions=function(){var t=this,e=this.definitions,n=[];for(var o in e)n.push([zi[o],t.refUrl(e[o].id)]);return n},e.prototype.refUrl=function(t){var e=(this.options||{}).skipBaseHref,n=this.baseUrl().replace(/'/g,"\\'"),o=e?"":n;return"url("+o+"#"+t+")"},e.prototype.baseUrl=function(){return Xt()},e}(Ei),Ni=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.template=function(){return"<stop "+this.renderOffset()+" "+this.renderStyle()+" />"},e.prototype.renderOffset=function(){return qt("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}(Bi),Hi=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),e.prototype.constructor=e,e.prototype.loadStops=function(){for(var t=this,e=this.srcElement.stops,n=this.element,o=0;o<e.length;o++){var r=new Ni(e[o]);t.append(r),n&&r.attachTo(n)}},e.prototype.optionsChange=function(t){"gradient.stops"===t.field?(Ei.prototype.clear.call(this),this.loadStops()):"gradient"===t.field&&this.allAttr(this.mapCoordinates())},e.prototype.renderCoordinates=function(){return Kt(this.mapCoordinates())},e.prototype.mapSpace=function(){return["gradientUnits",this.srcElement.userSpace()?"userSpaceOnUse":"objectBoundingBox"]},e}(Bi),Vi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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(),o=[["x1",e.x],["y1",e.y],["x2",n.x],["y2",n.y],this.mapSpace()];return o},e}(Hi),Ui=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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(),o=[["cx",e.x],["cy",e.y],["r",n],this.mapSpace()];return o},e}(Hi),Gi=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),e.prototype.constructor=e,e.prototype.template=function(){return"<clipPath id='"+this.id+"'>"+this.renderChildren()+"</clipPath>"},e}(Bi),qi=function(t){function e(){t.call(this),this.definitionMap={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.attachTo=function(t){this.element=t},e.prototype.template=function(){return"<defs>
16"+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=Gi:"fill"===t&&(e instanceof bi?n=Vi:e instanceof _i&&(n=Ui)),new n(e)},e.prototype.addDefinitions=function(t){var e=this;for(var n in t)e.addDefinition(n,t[n])},e.prototype.addDefinition=function(t,e){var n=this,o=n.element,r=n.definitionMap,i=e.id,s=r[i];if(s)s.count++;else{var a=this.createDefinition(t,e);r[i]={element:a,count:1},this.append(a),o&&a.attachTo(this.element)}},e.prototype.removeDefinitions=function(t){var e=this;for(var n in t)e.removeDefinition(t[n])},e.prototype.removeDefinition=function(t){var e=this.definitionMap,n=t.id,o=e[n];o&&(o.count--,0===o.count&&(this.remove(this.childNodes.indexOf(o.element),1),delete e[n]))},e}(Bi),Ki=function(t){function e(e){t.call(this),this.options=e,this.defs=new qi}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.attachTo=function(t){this.element=t,this.defs.attachTo(t.firstElementChild)},e.prototype.clear=function(){Ei.prototype.clear.call(this)},e.prototype.template=function(){return this.defs.render()+this.renderChildren()},e.prototype.definitionChange=function(t){this.defs.definitionChange(t)},e}(Bi),Wi="rtl",Yi=function(t){function e(e,n){t.call(this,e,n),this._root=new Ki(Object.assign({rtl:z(e,"direction").direction===Wi},this.options)),Fi(this.element,this._template()),this._rootElement=this.element.firstElementChild,Zt(this._rootElement),this._root.attachTo(this._rootElement),F(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),e.prototype.constructor=e,e.prototype.destroy=function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,H(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,e=t._visual,n=t._offset;if(n){var o=new ui;o.children.push(e),o.transform($().translate(-n.x,-n.y)),e=o}return e},e.prototype._resize=function(){this._offset&&this.translate(this._offset)},e.prototype._template=function(){return"<svg style='width: 100%; height: 100%; overflow: hidden;' xmlns='"+Mi+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+this._root.render()+"</svg>"},e}(Ti);Yi.prototype.type="svg","undefined"!=typeof document&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(Ti.support.svg=!0,Oi.current.register("svg",Yi,10));var Xi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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}(Bi);Ai.Group=Xi;var Zi={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]},$i="solid",Ji="butt",Qi={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},ts=" ",es=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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=Qi[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=this,n=t.segments,o=n.length;if(o>0){for(var r,i,s=[],a=1;a<o;a++){var l=e.segmentType(n[a-1],n[a]);l!==i&&(i=l,s.push(l)),"L"===l?s.push(e.printPoints(n[a].anchor())):s.push(e.printPoints(n[a-1].controlOut(),n[a].controlIn(),n[a].anchor()))}return r="M"+this.printPoints(n[0].anchor())+ts+s.join(ts),t.options.closed&&(r+="Z"),r}},e.prototype.printPoints=function(){for(var t=arguments,e=t.length,n=[],o=0;o<e;o++)n.push(t[o].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&&!T(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]),_(t.opacity)&&e.push(["stroke-opacity",t.opacity]),_(t.dashType)&&e.push(["stroke-dasharray",this.renderDashType(t)])):e.push(["stroke",Pi]),e},e.prototype.renderStroke=function(){return Kt(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&&e!==$i){for(var o=Zi[e.toLowerCase()],r=[],i=0;i<o.length;i++)r.push(o[i]*n);return r.join(" ")}},e.prototype.renderLinecap=function(t){var e=t.dashType,n=t.lineCap;return e&&"solid"!==e?Ji:n},e.prototype.mapFill=function(t){var e=[];return t&&"Gradient"===t.nodeType||(t&&!T(t.color)?(e.push(["fill",t.color]),_(t.opacity)&&e.push(["fill-opacity",t.opacity])):e.push(["fill",Pi])),e},e.prototype.renderFill=function(){return Kt(this.mapFill(this.srcElement.options.fill))},e.prototype.template=function(){return"<path "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+" "+qt("d",this.renderData())+this.renderStroke()+this.renderFill()+this.renderDefinitions()+this.renderTransform()+"></path>"},e}(Bi);Ai.Path=es;var ns=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderData=function(){return this.printPath(this.srcElement.toPath())},e}(es);Ai.Arc=ns;var os=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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}
16,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}(es);Ai.Circle=os;var rs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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}(es);Ai.Rect=rs;var is=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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 Kt(this.mapPosition())},e.prototype.mapSource=function(t){var e=this.srcElement.src(); 17return t&&(e=r(e)),[["xlink:href",e]]},e.prototype.renderSource=function(){return Kt(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}(es);Ai.Image=is;var ss=/&(?:[a-zA-Z]+|#\d+);/g;"undefined"!=typeof document&&($t._element=document.createElement("span"));var as=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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",Wt(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),o=this.srcElement.options.font;return e&&(o=r(o)),n.push(["font",o],["white-space","pre"]),n},e.prototype.pos=function t(){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 t=$t(t),t=r(t),V(t)},e.prototype.renderTextAnchor=function(){var t;return!(this.options||{}).rtl||Ko.browser.msie||Ko.browser.edge||(t="end"),qt("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}(es);Ai.Text=as;var ls=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderData=function(){var t=this,e=this.srcElement.paths;if(e.length>0){for(var n=[],o=0;o<e.length;o++)n.push(t.printPath(e[o]));return n.join(" ")}},e}(es);Ai.MultiPath=ls;var cs=Object.freeze({Circle:Tr,Arc:Lr,Rect:kr,Point:xr,Segment:Wr,Matrix:_r,Size:wr,toMatrix:Z,Transformation:Sr,transform:$}),us=Object.freeze({Surface:Yi,RootNode:Ki,Node:Bi,GroupNode:Xi,ArcNode:ns,CircleNode:os,RectNode:rs,ImageNode:is,TextNode:as,PathNode:es,MultiPathNode:ls,DefinitionNode:qi,ClipNode:Gi,GradientStopNode:Ni,LinearGradientNode:Vi,RadialGradientNode:Ui,exportGroup:Jt}),ps={},hs=function(t){function e(e){t.call(this,e),e&&this.initClip()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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(),Qt(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 o=this,r=0;r<t.length;r++){var i=t[r],s=i.children,a=new ps[i.nodeType](i,n);s&&s.length>0&&a.load(s,e,n),_(e)?o.insertAt(a,e):o.append(a)}},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();_(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&&t.options.visible!==!1},e}(Ei),fs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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 o=e[n];o.visible()&&o.renderTo(t)}
17t.restore()}},e}(hs);ci.extend(fs.prototype,"childNodes"),ps.Group=fs;var ds=1e3/60,vs=function(t){function e(e,n){t.call(this),this.canvas=e,this.size=n,this.ctx=e.getContext("2d");var r=this._invalidate.bind(this);this.invalidate=f(function(){o(r)},ds)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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._rescale=function(){var t=this,e=t.canvas,n=t.size,o=1;"number"==typeof window.devicePixelRatio&&(o=window.devicePixelRatio),e.width=n.width*o,e.height=n.height*o,this.ctx.scale(o,o)},e.prototype._invalidate=function(){this.ctx&&(this._rescale(),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx))},e}(fs);ci.extend(vs.prototype,"childNodes");var ys=function(t){function e(){t.call(this),this.shapes=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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,o=[],r=0;r<n;r++)e[r].bbox.containsPoint(t)&&o.push(e[r].shape);return o},e.prototype.insert=function(t,e){this._add(t,e)},e.prototype.remove=function(t){for(var e=this.shapes,n=e.length,o=0;o<n;o++)if(e[o].shape===t){e.splice(o,1);break}},e}(Bo),gs=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),e.prototype.constructor=e,e.prototype.inBounds=function t(e){var n=this.rect,o=n.bottomRight(),r=e.bottomRight(),t=n.origin.x<=e.origin.x&&n.origin.y<=e.origin.y&&r.x<=o.x&&r.y<=o.y;return t},e.prototype.pointShapes=function(e){for(var n=this.children,o=n.length,r=t.prototype.pointShapes.call(this,e),i=0;i<o;i++)g(r,n[i].pointShapes(e));return r},e.prototype.insert=function(t,e){var n=this.children,o=!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)){o=!0;break}o||this._add(t,e)}o=!0}return o},e.prototype._initChildren=function(){var t=this,n=t.rect,o=t.children,r=n.center(),i=n.width()/2,s=n.height()/2;o.push(new e(new kr([n.origin.x,n.origin.y],[i,s])),new e(new kr([r.x,n.origin.y],[i,s])),new e(new kr([n.origin.x,r.y],[i,s])),new e(new kr([r.x,r.y],[i,s])))},e}(ys),ms=3e3,bs=1e4,_s=75,xs=function(t){function e(){t.call(this),this.initRoots()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initRoots=function(){this.rootMap={},this.root=new ys,this.rootElements=[]},e.prototype.clear=function(){for(var t=this,e=this.rootElements,n=0;n<e.length;n++)t.remove(e[n]);this.initRoots()},e.prototype.pointShape=function(t){var e=(this.rootMap[Math.floor(t.x/ms)]||{})[Math.floor(t.y/ms)],n=this.root.pointShapes(t);e&&(n=n.concat(e.pointShapes(t))),this.assignZindex(n),n.sort(te);for(var o=0;o<n.length;o++)if(n[o].containsPoint(t))return n[o]},e.prototype.assignZindex=function(t){for(var e=this,n=0;n<t.length;n++){for(var o=t[n],r=0,i=Math.pow(bs,_s),s=[];o;)s.push(o),o=o.parent;for(;s.length;)o=s.pop(),r+=((o.parent?o.parent.children:e.rootElements).indexOf(o)+1)*i,i/=bs;t[n]._zIndex=r}},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){var e=this;if("Group"===t.nodeType)for(var n=0;n<t.children.length;n++)e.bboxChange(t.children[n]);else t._quadNode&&t._quadNode.remove(t),this._insertShape(t)},e.prototype.add=function(t){var e=Array.isArray(t)?t.slice(0):[t];g(this.rootElements,e),this._insert(e)},e.prototype.childrenChange=function(t){var e=this;if("remove"===t.action)for(var n=0;n<t.items.length;n++)e.remove(t.items[n]);else this._insert(Array.prototype.slice.call(t.items,0))},e.prototype._insert=function(t){for(var e,n=this;t.length>0;
17)e=t.pop(),e.addObserver(n),"Group"===e.nodeType?g(t,e.children):n._insertShape(e)},e.prototype._insertShape=function(t){var e=t.bbox();if(e){var n=this.getSectors(e),o=n[0][0],r=n[1][0];if(this.inRoot(n))this.root.insert(t,e);else{var i=this.rootMap;i[o]||(i[o]={}),i[o][r]||(i[o][r]=new gs(new kr([o*ms,r*ms],[ms,ms]))),i[o][r].insert(t,e)}}},e.prototype.remove=function(t){var e=this;if(t.removeObserver(this),"Group"===t.nodeType)for(var n=t.children,o=0;o<n.length;o++)e.remove(n[o]);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/ms),o=Math.floor(e.y/ms),r=[[],[]],i=Math.floor(t.origin.x/ms);i<=n;i++)r[0].push(i);for(var s=Math.floor(t.origin.y/ms);s<=o;s++)r[1].push(s);return r},e}(Bo),ws=function(t){t.bind("mouseenter",this._mouseenter.bind(this)),t.bind("mouseleave",this._mouseleave.bind(this)),this.element=t.element};ws.prototype.clear=function(){this._resetCursor()},ws.prototype.destroy=function(){this._resetCursor(),delete this.element},ws.prototype._mouseenter=function(t){var e=this._shapeCursor(t);e?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(e)):this._resetCursor()},ws.prototype._mouseleave=function(){this._resetCursor()},ws.prototype._shapeCursor=function(t){for(var e=t.element;e&&!_(e.options.cursor);)e=e.parent;if(e)return e.options.cursor},ws.prototype._getCursor=function(){if(this.element)return this.element.style.cursor},ws.prototype._setCursor=function(t){this.element&&(this.element.style.cursor=t,this._current=t)},ws.prototype._resetCursor=function(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)};var ks=function(t){function e(e,n){t.call(this,e,n),this.element.innerHTML=this._template(this);var o=this.element.firstElementChild,r=N(e);o.width=r.width,o.height=r.height,this._rootElement=o,this._root=new vs(o,r),this._mouseTrackHandler=this._trackMouse.bind(this),F(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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),H(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),n=this._searchTree.pointShape(e);return n}},e.prototype.image=function(){var t=this,e=t._root,n=t._rootElement,o=[];e.traverse(function(t){t.loading&&o.push(t.loading)});var r=b(),i=function(){e._invalidate();try{var t=n.toDataURL();r.resolve(t)}catch(t){r.reject(t)}};return P(o).then(i,i),r},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 xs;for(var e=this._root.childNodes,n=[],o=0;o<e.length;o++)n.push(e[o].srcElement);this._searchTree.add(n)}},e.prototype._resize=function(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.size=this._size,this._root.invalidate()},e.prototype._template=function(){return"<canvas style='width: 100%; height: 100%;'></canvas>"},e.prototype._enableTracking=function(){this._searchTree=new xs,this._cursor=new ws(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}(Ti);ks.prototype.type="canvas","undefined"!=typeof document&&document.createElement("canvas").getContext&&(Ti.support.canvas=!0,Oi.current.register("canvas",ks,20));var Ss=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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(
17)},e.prototype.setFill=function(t){var e=this.srcElement.options.fill,n=!1;return e&&("Gradient"===e.nodeType?(this.setGradientFill(t,e),n=!0):T(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,o=this.srcElement.rawBBox();if(e instanceof bi){var r=e.start(),i=e.end();n=t.createLinearGradient(r.x,r.y,i.x,i.y)}else if(e instanceof _i){var s=e.center();n=t.createRadialGradient(s.x,s.y,0,s.x,s.y,e.radius())}ee(n,e.stops),t.save(),e.userSpace()||t.transform(o.width(),0,0,o.height(),o.origin.x,o.origin.y),t.fillStyle=n,t.fill(),t.restore()},e.prototype.setStroke=function(t){var e=this.srcElement.options.stroke;if(e&&!T(e.color)&&e.width>0)return t.strokeStyle=e.color,t.lineWidth=I(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&&e!==$i){var n=Zi[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&&e!==$i?t.lineCap=Ji: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){Qt(t,e)},e}(hs);ps.Path=Ss;var Os=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderPoints=function(t){var e=this.srcElement.toPath();Qt(t,e)},e}(Ss);ps.Arc=Os;var Cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderPoints=function(t){var e=this.srcElement.geometry(),n=e.center,o=e.radius;t.arc(n.x,n.y,o,0,2*Math.PI)},e}(Ss);ps.Circle=Cs;var Ts=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderPoints=function(t){var e=this.srcElement.geometry(),n=e.origin,o=e.size;t.rect(n.x,n.y,o.width,o.height)},e}(Ss);ps.Rect=Ts;var Es=function(t){function e(e,n){t.call(this,e),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=b();var o=this.img=new Image;n&&!/^data:/i.test(e.src())&&(o.crossOrigin=n),o.src=e.src(),o.complete?this.onLoad():(o.onload=this.onLoad,o.onerror=this.onError)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.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())},e.prototype.optionsChange=function(e){"src"===e.field?(this.loading=b(),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}(Ss);ps.Image=Es;var As=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderTo=function(t){var e=this.srcElement,n=e.position(),o=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+o.baseline),this.setStroke(t)&&(this.setLineDash(t),t.strokeText(e.content(),n.x,n.y+o.baseline)),t.restore()},e}(Ss);ps.Text=As;var Ms=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderPoints=function(t){for(var e=this.srcElement.paths,n=0;n<e.length;n++)Qt(t,e[n])},e}(Ss);ps.MultiPath=Ms;var Ps=Object.freeze({Surface:ks,RootNode:vs,Node:hs,GroupNode:fs,ArcNode:Os,CircleNode:Cs,RectNode:Ts,ImageNode:Es,TextNode:As,PathNode:Ss,MultiPathNode:Ms}),js=Object.freeze({svg:us,canvas:Ps,util:gr,PathParser:ei,Surface:Ti,BaseNode:Ei,SurfaceFactory:Oi,OptionsStore:br,exportImage:ne,exportSVG:oe,QuadNode:gs,ShapesQuadTree:xs,ObserversMixin:Fo,Element:Or,Circle:Dr,Arc:ri,Path:ni,MultiPath:Yr,Text:ai,Image:li,Group:ui,Layout:di,Rect:vi,align:At,vAlign:Mt,stack:Dt,vStack:Rt,wrap:Lt,vWrap:zt,fit:Bt,LinearGradient:bi,RadialGradient:_i,GradientStop:gi,Gradient:mi,Animation:Si,AnimationFactory:wi}),Ds="undefined"!=typeof Uint8Array&&Ko.browser&&(!Ko.browser.msie||Ko.browser.version>9),Rs=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
17+/=";return{decode:function(e){for(var n=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),o=0,r=n.length,i=[];o<r;){var s=t.indexOf(n.charAt(o++)),a=t.indexOf(n.charAt(o++)),l=t.indexOf(n.charAt(o++)),c=t.indexOf(n.charAt(o++)),u=s<<2|a>>>4,p=(15&a)<<4|l>>>2,h=(3&l)<<6|c;i.push(u),64!=l&&i.push(p),64!=c&&i.push(h)}return i},encode:function(e){for(var n=0,o=e.length,r="";n<o;){var i=e[n++],s=e[n++],a=e[n++],l=i>>>2,c=(3&i)<<4|s>>>4,u=(15&s)<<2|a>>>6,p=63&a;n-o==2?u=p=64:n-o==1&&(p=64),r+=t.charAt(l)+t.charAt(c)+t.charAt(u)+t.charAt(p)}return r}}}();he.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=this,n=Object.keys(t).length,o=Math.pow(2,Math.floor(Math.log(n)/Math.LN2)),r=16*o,i=Math.floor(Math.log(o)/Math.LN2),s=16*n-r,a=re();a.writeLong(this.scalerType),a.writeShort(n),a.writeShort(r),a.writeShort(i),a.writeShort(s);var l=16*n,c=a.offset()+l,u=null,p=re();for(var h in t)if(ue(t,h)){var f=t[h];for(a.writeString(h),a.writeLong(e.checksum(f)),a.writeLong(c),a.writeLong(f.length),p.write(f),"head"==h&&(u=c),c+=f.length;c%4;)p.writeByte(0),c++}a.write(p.get());var d=this.checksum(a.get()),v=2981146554-d;return a.offset(u+8),a.writeLong(v),a.get()},checksum:function(t){t=re(t);for(var e=0;!t.eof();)e+=t.readLong();return 4294967295&e}};var Is=fe({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=re();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),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort_(this.fontDirectionHint),e.writeShort_(t),e.writeShort_(this.glyphDataFormat),e.get()}}),Fs=fe({parse:function(t){t.offset(this.offset);var e=this.file.head.indexToLocFormat;0===e?this.offsets=t.times(this.length/2,function(){return 2*t.readShort()}):this.offsets=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=re(),n=t[t.length-1]>65535,o=0;o<t.length;++o)n?e.writeLong(t[o]):e.writeShort(t[o]/2);return{format:n?1:0,table:e.get()}}}),Ls=fe({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=re();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()}}),zs=fe({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.maxSizeOfInstru
17ctions=t.readShort(),this.maxComponentElements=t.readShort(),this.maxComponentDepth=t.readShort()},render:function(t){var e=re();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()}}),Bs=fe({parse:function(t){t.offset(this.offset);var e=this.file,n=e.hhea;this.metrics=t.times(n.numOfLongHorMetrics,function(){return{advance:t.readShort(),lsb:t.readShort_()}});var o=e.maxp.numGlyphs-e.hhea.numOfLongHorMetrics;this.leftSideBearings=t.times(o,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=this,n=re(),o=0;o<t.length;++o){var r=e.forGlyph(t[o]);n.writeShort(r.advance),n.writeShort_(r.lsb)}return n.get()}}),Ns=function(){function t(t){this.raw=t}function e(t){this.raw=t;for(var e=this.glyphIds=[],a=this.idOffsets=[];;){var l=t.readShort();if(a.push(t.offset()),e.push(t.readShort()),!(l&r))break;t.skip(l&n?4:2),l&s?t.skip(8):l&i?t.skip(4):l&o&&t.skip(2)}}t.prototype={compound:!1,render:function(){return this.raw.get()}};var n=1,o=8,r=32,i=64,s=128;return e.prototype={compound:!0,render:function(t){for(var e=this,n=re(this.raw.get()),o=0;o<this.glyphIds.length;++o){var r=e.glyphIds[o];n.offset(e.idOffsets[o]),n.writeShort(t[r])}return n.get()}},fe({parse:function(){this.cache={}},glyphFor:function(n){var o=this.cache;if(ue(o,n))return o[n];var r=this.file.loca,i=r.lengthOf(n);if(0===i)return o[n]=null;var s=this.rawData,a=this.offset+r.offsetOf(n),l=re(s.slice(a,i)),c=l.readShort_(),u=l.readShort_(),p=l.readShort_(),h=l.readShort_(),f=l.readShort_(),d=o[n]=c==-1?new e(l):new t(l);return d.numberOfContours=c,d.xMin=u,d.yMin=p,d.xMax=h,d.yMax=f,d},render:function(t,e,n){for(var o=re(),r=[],i=0;i<e.length;++i){var s=e[i],a=t[s];r.push(o.offset()),a&&o.write(a.render(n))}return r.push(o.offset()),{table:o.get(),offsets:r}}})}(),Hs=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 fe({parse:function(e){e.offset(this.offset),e.readShort();for(var n=e.readShort(),o=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()+o}}),i=this.strings={},s=0;s<r.length;++s){var a=r[s];e.offset(a.offset);var l=e.readString(a.length);i[a.nameID]||(i[a.nameID]=[]),i[a.nameID].push(new t(l,a))}this.postscriptEntry=i[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")},render:function(e){var n=this,o=this.strings,r=0;for(var i in o)ue(o,i)&&(r+=o[i].length);var s=re(),a=re();s.writeShort(0),s.writeShort(r),s.writeShort(6+12*r);for(i in o)if(ue(o,i))for(var l=6==i?[new t(e,n.postscriptEntry)]:o[i],c=0;c<l.length;++c){var u=l[c];s.writeShort(u.platformID),s.writeShort(u.platformSpecificID),s.writeShort(u.languageID),s.writeShort(u.nameID),s.writeShort(u.length),s.writeShort(a.offset()),a.writeString(u.text)}return s.write(a.get()),s.get()}})}(),Vs=function(){var t=".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 periodce
17ntered 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);return fe({parse:function(t){var e=this;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();var n;switch(this.format){case 65536:case 196608:break;case 131072:n=t.readShort(),this.glyphNameIndex=t.times(n,t.readShort),this.names=[];for(var o=this.offset+this.length;t.offset()<o;)e.names.push(t.readString(t.readByte()));break;case 151552:n=t.readShort(),this.offsets=t.read(n);break;case 262144:this.map=t.times(this.file.maxp.numGlyphs,t.readShort)}},glyphFor:function(e){switch(this.format){case 65536:return t[e]||".notdef";case 131072:var n=this.glyphNameIndex[e];return n<t.length?t[n]:this.names[n-t.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[e]||65535}},render:function(e){var n=this;if(196608==this.format)return this.raw();var o=re(this.rawData.slice(this.offset,32));o.writeLong(131072),o.offset(32);for(var r=[],i=[],s=0;s<e.length;++s){var a=e[s],l=n.glyphFor(a),c=t.indexOf(l);c>=0?r.push(c):(r.push(t.length+i.length),i.push(l))}for(o.writeShort(e.length),s=0;s<r.length;++s)o.writeShort(r[s]);for(s=0;s<i.length;++s)o.writeByte(i[s].length),o.writeString(i[s]);return o.get()}})}(),Us=function(){function t(t,e,n){var o=this;o.platformID=t.readShort(),o.platformSpecificID=t.readShort(),o.offset=e+t.readLong(),t.saveExcursion(function(){var e;switch(t.offset(o.offset),o.format=t.readShort(),o.format){case 0:o.length=t.readShort(),o.language=t.readShort();for(var r=0;r<256;++r)n[r]=t.readByte();break;case 4:o.length=t.readShort(),o.language=t.readShort();var i=t.readShort()/2;t.skip(6);var s=t.times(i,t.readShort);t.skip(2);var a=t.times(i,t.readShort),l=t.times(i,t.readShort_),c=t.times(i,t.readShort),u=(o.length+o.offset-t.offset())/2,p=t.times(u,t.readShort);for(r=0;r<i;++r){var h=a[r],f=s[r];for(e=h;e<=f;++e){var d;if(0===c[r])d=e+l[r];else{var v=c[r]/2-(i-r)+(e-h);d=p[v]||0,0!==d&&(d+=l[r])}n[e]=65535&d}}break;case 6:o.length=t.readShort(),o.language=t.readShort(),e=t.readShort();for(var y=t.readShort();y-- >0;)n[e++]=t.readShort();break;case 12:t.readShort(),o.length=t.readLong(),o.language=t.readLong();for(var g=t.readLong();g-- >0;){e=t.readLong();for(var m=t.readLong(),b=t.readLong();e<=m;)n[e++]=b++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+o.format)}})}function e(t,e){function n(n){return e[t[n]]}for(var o=pe(t),r=[],i=[],s=null,a=null,l=0;l<o.length;++l){var c=o[l],u=n(c),p=u-c;null!=s&&p===a||(s&&i.push(s),r.push(c),a=p),s=c}s&&i.push(s),i.push(65535),r.push(65535);var h=r.length,f=2*h,d=2*Math.pow(2,Math.floor(Math.log(h)/Math.LN2)),v=Math.log(d/2)/Math.LN2,y=f-d,g=[],m=[],b=[];for(l=0;l<h;++l){var _=r[l],x=i[l];if(65535==_){g.push(0),m.push(0);break}var w=n(_);if(_-w>=32768){g.push(0),m.push(2*(b.length+h-l));for(var k=_;k<=x;++k)b.push(n(k))}else g.push(w-_),m.push(0)}var S=re();return S.writeShort(3),S.writeShort(1),S.writeLong(12),S.writeShort(4),S.writeShort(16+8*h+2*b.length),S.writeShort(0),S.writeShort(f),S.writeShort(d),S.writeShort(v),S.writeShort(y),i.forEach(S.writeShort),S.writeShort(0),r.forEach(S.writeShort),g.forEach(S.writeShort_),m.forEach(S.writeShort),b.forEach(S.writeShort),S.get()}return fe({parse:function(e){var n=this,o=n.offset;e.offset(o),n.codeMap={},n.version=e.readShort();var r=e.readShort();n.tables=e.times(r,function(){return new t(e,o,n.codeMap)})},render:function(t,n){var o=re();return o.writeShort(0),o.writeShort(1),o.write(e(t,n)),o.get()}})}(),Gs=fe({parse:function(t){t.offset(this.offset),this.version=t.readShort(),this.averageCharWidth=t.readShort_(),this.weightClass=t.readShort(),this.widthClass=t.readShort(),
18this.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()}}),qs=1e5;ve.prototype={use:function(t){var e=this;if("string"==typeof t)return ie(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 o=e.font.cmap.codeMap[t];if(o&&(e.ncid2ogid[n]=o,null==e.ogid2ngid[o])){var r=e.nextGid++;e.ogid2ngid[o]=r,e.ngid2ogid[r]=o}}return n},encodeText:function(t){return this.use(t)},glyphIds:function(){return pe(this.ogid2ngid)},glyphsFor:function(t,e){var n=this;e||(e={});for(var o=0;o<t.length;++o){var r=t[o];if(!e[r]){var i=e[r]=n.font.glyf.glyphFor(r);i&&i.compound&&n.glyphsFor(i.glyphIds,e)}}return e},render:function(){var t=this,e=this.glyphsFor(this.glyphIds());for(var n in e)if(ue(e,n)&&(n=parseInt(n,10),null==t.ogid2ngid[n])){var o=t.nextGid++;t.ogid2ngid[n]=o,t.ngid2ogid[o]=n}var r=pe(this.ngid2ogid),i=r.map(function(t){return this.ngid2ogid[t]},this),s=this.font,a=s.glyf.render(e,i,this.ogid2ngid),l=s.loca.render(a.offsets);this.lastChar=this.next-1;var c={cmap:Us.render(this.ncid2ogid,this.ogid2ngid),glyf:a.table,loca:l.table,hmtx:s.hmtx.render(i),hhea:s.hhea.render(i),maxp:s.maxp.render(i),post:s.post.render(i),name:s.name.render(this.psName),head:s.head.render(l.format),"OS/2":s.os2.render()};return this.font.directory.render(c)},cidToGidMap:function(){for(var t=this,e=re(),n=0,o=this.firstChar;o<this.next;++o){for(;n<o;)e.writeShort(0),n++;var r=t.ncid2ogid[o];if(r){var i=t.ogid2ngid[r];e.writeShort(i)}else e.writeShort(0);n++}return e.get()}},ye.prototype={parse:function(){var t=this.directory=new he(this.contents);this.head=t.readTable("head",Is),this.loca=t.readTable("loca",Fs),this.hhea=t.readTable("hhea",Ls),this.maxp=t.readTable("maxp",zs),this.hmtx=t.readTable("hmtx",Bs),this.glyf=t.readTable("glyf",Ns),this.name=t.readTable("name",Hs),this.post=t.readTable("post",Vs),this.cmap=t.readTable("cmap",Us),this.os2=t.readTable("OS/2",Gs),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 ve(this)}};var Ks=Io.deflate,Ws=Ko.browser,Ys="\n",Xs=0,Zs={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]},$s={"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},Js={},Qs=Ce(ke),ta=function(t,e){function n(){0===--r&&e()}var o=Object.keys(t),r=o.length;return 0===r?e():void o.forEach(function(e){Oe(e,t[e],n)})};xe.prototype={loadFonts:Qs,loadImages:ta,getFont:function(t){var e=this.FONTS[t];if(!e){if(e=$s[t],!e)throw new Error("Font "+t+" has not been loaded");e=e===!0?this.attach(new pa(t)):this.attach(new ha(this,e)),this.FONTS[t]=e}return e},getImage:function(t){var e=this.IMAGES[t];if(!e){if(e=Js[t],!e)throw new Error("Image "+t+" has not been loaded");if("ERROR"===e)return null;e=this.IMAGES[t]=this.attach(e.asStream(this))}return e},getOpacityGS:function(t,e){var n=parseFloat(t).toFixed(3);t=parseFloat(n),n+=e?"S":"F";var o=this._opacityGSCache||(this._opacityGSCache={}),r=o[n];
18if(!r){var i={Type:Be("ExtGState")};e?i.CA=t:i.ca=t,r=this.attach(new sa(i)),r._resourceName=Be("GS"+ ++Xs),o[n]=r}return r},dict:function(t){return new sa(t)},name:function(t){return Be(t)},stream:function(t,e){return new aa(e,t)}};var ea=Array.isArray||function(t){return t instanceof Array};Le.prototype.beforeRender=function(){};var na=ze(function(t){this.value=t},{render:function(t){for(var e="",n=this.value,o=0;o<n.length;++o)e+=String.fromCharCode(255&n.charCodeAt(o));t("(",e.replace(/([\(\)\\])/g,"\\$1"),")")},toString:function(){return this.value}}),oa=ze(function(t){this.value=t},{render:function(t){var e=this;t("<");for(var n=0;n<this.value.length;++n)t(Ee(e.value.charCodeAt(n).toString(16),4));t(">")}},na),ra=ze(function(t){this.name=t},{render:function(t){t("/"+this.escape())},escape:function(){return this.name.replace(/[^\x21-\x7E]/g,function(t){return"#"+Ee(t.charCodeAt(0).toString(16),2)})},toString:function(){return this.name}}),ia={};ra.get=Be;var sa=ze(function(t){this.props=t},{render:function(t){var e=this.props,n=!0;t("<<"),t.withIndent(function(){for(var o in e)Ae(e,o)&&!/^_/.test(o)&&(n=!1,t.indent(Be(o)," ",e[o]))}),n||t.indent(),t(">>")}}),aa=ze(function(t,e,n){if("string"==typeof t){var o=re();o.write(t),t=o}this.data=t,this.props=e||{},this.compress=n},{render:function(t){var e=this.data.get(),n=this.props;this.compress&&ge()&&(n.Filter?n.Filter instanceof Array||(n.Filter=[n.Filter]):n.Filter=[],n.Filter.unshift(Be("FlateDecode")),e=Ks(e)),n.Length=e.length,t(new sa(n)," stream",Ys),t.writeData(e),t(Ys,"endstream")}}),la=ze(function(){this.props={Type:Be("Catalog")}},{setPages:function(t){this.props.Pages=t}},sa),ca=ze(function(){this.props={Type:Be("Pages"),Kids:[],Count:0}},{addPage:function(t){this.props.Kids.push(t),this.props.Count++}},sa),ua=[192,193,194,195,197,198,199,201,202,203,205,206,207],pa=ze(function(t){this.props={Type:Be("Font"),Subtype:Be("Type1"),BaseFont:Be(t)},this._resourceName=Be("F"+ ++Xs)},{encodeText:function(t){return new na(String(t))}},sa),ha=ze(function(t,e,n){n=this.props=n||{},n.Type=Be("Font"),n.Subtype=Be("Type0"),n.Encoding=Be("Identity-H"),this._pdf=t,this._font=e,this._sub=e.makeSubset(),this._resourceName=Be("F"+ ++Xs);var o=e.head;this.name=e.psName;var r=this.scale=e.scale;this.bbox=[o.xMin*r,o.yMin*r,o.xMax*r,o.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 oa(this._sub.encodeText(String(t)))},getTextWidth:function(t,e){for(var n=this,o=0,r=this._font.cmap.codeMap,i=0;i<e.length;++i){var s=r[e.charCodeAt(i)];o+=n._font.widthOfGlyph(s||0)}return o*t/1e3},beforeRender:function(){var t=this,e=t._sub,n=e.render(),o=new aa(re(n),{Length1:n.length},!0),r=t._pdf.attach(new sa({Type:Be("FontDescriptor"),FontName:Be(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(o)})),i=e.ncid2ogid,s=e.firstChar,a=e.lastChar,l=[];!function e(n,o){if(n<=a){var r=i[n];null==r?e(n+1):(o||l.push(n,o=[]),o.push(t._font.widthOfGlyph(r)),e(n+1,o))}}(s);var c=new sa({Type:Be("Font"),Subtype:Be("CIDFontType2"),BaseFont:Be(t._sub.psName),CIDSystemInfo:new sa({Registry:new na("Adobe"),Ordering:new na("Identity"),Supplement:0}),FontDescriptor:r,FirstChar:s,LastChar:a,DW:Math.round(t._font.widthOfGlyph(0)),W:l,CIDToGIDMap:t._pdf.attach(t._makeCidToGidMap())}),u=t.props;u.BaseFont=Be(t._sub.psName),u.DescendantFonts=[t._pdf.attach(c)];var p=new fa(s,a,e.subset),h=new aa(me(),null,!0);h.data(p),u.ToUnicode=t._pdf.attach(h)},_makeCidToGidMap:function(){return new aa(re(this._sub.cidToGidMap()),null,!0)}},sa),fa=ze(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;
18n<=e.lastChar;++n){var o=e.map[n],r=se([o]);t.indent("<",Ee(n.toString(16),4),">","<");for(var i=0;i<r.length;++i)t(Ee(r.charCodeAt(i).toString(16),4));t(">")}}),t.indent("endbfchar"),t.indent("endcmap"),t.indent("CMapName currentdict /CMap defineresource pop"),t.indent("end"),t.indent("end")}}),da=ze(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||{},e.Type=Be("Page"),e.ProcSet=[Be("PDF"),Be("Text"),Be("ImageB"),Be("ImageC"),Be("ImageI")],e.Resources=new sa({Font:new sa(this._fontResources),ExtGState:new sa(this._gsResources),XObject:new sa(this._xResources),Pattern:new sa(this._patResources),Shading:new sa(this._shResources)}),e.Annots=this._annotations},{_out:function(){this._content.data.apply(null,arguments)},transform:function(t,e,n,o,r,i){en(arguments)||(this._matrix=tn(arguments,this._matrix),this._out(t," ",e," ",n," ",o," ",r," ",i," cm"),this._out(Ys))},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",Ys)},endText:function(){this._textMode=!1,this._out("ET",Ys)},_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 ha||(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",Ys)},setTextLeading:function(t){this._requireTextMode(),this._out(t," TL",Ys)},setTextRenderingMode:function(t){this._requireTextMode(),this._out(t," Tr",Ys)},showText:function(t,e){if(this._requireFont(),t.length>1&&e&&this._font instanceof ha){var n=this._font.getTextWidth(this._fontSize,t),o=e/n*100;this._out(o," Tz ")}this._out(this._font.encodeText(t)," Tj",Ys)},showTextNL:function(t){this._requireFont(),this._out(this._font.encodeText(t)," '",Ys)},addLink:function(t,e){var n=this._toPage({x:e.left,y:e.bottom}),o=this._toPage({x:e.right,y:e.top});this._annotations.push(new sa({Type:Be("Annot"),Subtype:Be("Link"),Rect:[n.x,n.y,o.x,o.y],Border:[0,0,0],A:new sa({Type:Be("Action"),S:Be("URI"),URI:new na(t)})}))},setStrokeColor:function(t,e,n){this._out(t," ",e," ",n," RG",Ys)},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",Ys)}},setFillColor:function(t,e,n){this._out(t," ",e," ",n," rg",Ys)},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",Ys)}},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,o=Ye(this._pdf,t,e),r=o.shading._resourceName;this._shResources[r]=o.shading,o.hasAlpha&&(n=o.opacity._resourceName,this._gsResources[n]=o.opacity,this._out("/"+n+" gs ")),this._out("/"+r+" sh",Ys),this.restore()},setDashPattern:function(t,e){this._out(t," ",e," d",Ys)},setLineWidth:function(t){this._out(t," w",Ys)},setLineCap:function(t){this._out(t," J",Ys)},setLineJoin:function(t){this._out(t," j",Ys)},setMitterLimit:function(t){this._out(t," M",Ys)},save:function(){this._contextStack.push(this._context()),this._out("q",Ys)},restore:function(){this._out("Q",Ys),this._context(this._contextStack.pop())},moveTo:function(t,e){this._out(t," ",e," m",Ys)},lineTo:function(t,e){this._out(t," ",e," l",Ys)},bezier:function(t,e,n,o,r,i){this._out(t," ",e," ",n," ",o," ",r," ",i," c",Ys)},bezier1:function(t,e,n,o){this._out(t," ",e," ",n," ",o," y",Ys)},bezier2:function(t,e,n,o){this._out(t," ",e," ",n," ",o," v",Ys)},close:function(){this._out("h",Ys)},rect:function(t,e,n,o){this._out(t," ",e," ",n," ",o," re",Ys)},ellipse:function(t,e,n,o){function r(e){return t+e}function i(t){return e+t}var s=.5522847498307936;this.moveTo(r(0),i(o)),this.bezier(r(n*s),i(o),r(n),i(o*s),r(n),i(0)),this.bezier(r(n),i(-o*s),r(n*s),i(-o),r(0),i(-o)),this.bezier(r(-n*s),i(-o),r(-n),i(-o*s),r(-n),i(0)),this.bezier(r(-n),i(o*s),r(-n*s),i(o),r(0),i(o))},circle:function(t,e,n){this.ellipse(t,e,n,n)},stroke:function(){this._out("S",Ys)},nop:function(){this._out("n",Ys)},clip:function(){this._out("W n",Ys)},clipStroke:function(){this._out("W S",Ys)},closeStroke:function(){this._out("s",Ys)},fill:function(){this._out("f",Ys)},fillStroke:function(){this._out("B",Ys)},drawImage:function(t){var e=this._pdf.getImage(t);e&&(this._xResources[e._resourceName]=e,this._out(e._resourceName," Do",Ys))},comment:function(t){var e=this;t.split(/\r?\n/g).forEach(function(t){e._out("% ",t,Ys)})},_context:function(t){return null==t?{opacity:this._opacity,matrix:this._matrix}:(this._opacity=t.opacity,void(this._matrix=t.matrix))},_toPage:function(t){var e=this._matrix,n=e[0],o=e[1],r=e[2],i=e[3],s=e[4],a=e[5];return{x:n*t.x+r*t.y+s,y:o*t.x+i*t.y+a}}},sa),va={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"};Je("Times New Roman","serif"),Je("Courier New","monospace"),Je("Arial","sans-serif"),Je("Helvetica","sans-serif"),Je("Verdana","sans-serif"),Je("Tahoma","sans-serif"),Je("Georgia","sans-serif"),Je("Monaco","monospace"),Je("Andale Mono","monospace");var ya={fill:0,stroke:1,fillAndStroke:2,invisible:3,fillAndClip:4,strokeAndClip:5,fillStrokeClip:6,clip:7},ga=ya,ma={dash:[4],dashDot:[4,2,1,2],dot:[1,2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2],solid:[]},ba={butt:0,round:1,square:2},_a={miter:0,round:1,bevel:2},xa=Object.freeze({Document:xe,BinaryStream:re,defineFont:Qe,parseFontDef:Ze,getFontURL:$e,loadFonts:Qs,loadImages:ta,getPaperOptions:_e,clearImageCache:Se,TEXT_RENDERING_MODE:ya,exportPDF:Tn,saveAs:sn,toDataURL:on,toBlob:rn,render:nn}),wa=Ko.browser||{},ka="KENDO-PSEUDO-ELEMENT",Sa={},Oa={};Oa._root=Oa;var Ca="undefined"!=typeof window,Ta=!!Ca&&(wa.msie||wa.edge),Ea=function(t){function e(e,n,o){t.call(this,e,n.getOrigin(),o),this._pdfRect=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rect=function(){return this._pdfRect},e.prototype.rawBBox=function(){return this._pdfRect},e}(ai),Aa="undefined"!=typeof Element&&Element.prototype&&function(t){return t.matches?function(t,e){return t.matches(e)}:t.webkitMatchesSelector?function(t,e){return t.webkitMatchesSelector(e)}:t.mozMatchesSelector?function(t,e){return t.mozMatchesSelector(e)}:t.msMatchesSelector?function(t,e){return t.msMatchesSelector(e)}:function(t){return[].indexOf.call(document.querySelectorAll(t),this)!==-1}}(Element.prototype),Ma=function(t){return t?function e(n){var o=n.cloneNode(!1);if(1==n.nodeType){var r,i=t(n),s=t(o),a=i.data();for(r in a)s.data(r,a[r]);
18for(/^canvas$/i.test(n.tagName)?o.getContext("2d").drawImage(n,0,0):/^(?:input|select|textarea|option)$/i.test(n.tagName)&&(o.removeAttribute("id"),o.removeAttribute("name"),o.value=n.value,o.checked=n.checked,o.selected=n.selected),r=n.firstChild;r;r=r.nextSibling)o.appendChild(e(r))}return o}:function(t){var e=function t(e){var n=e.cloneNode(!1);e._kendoExportVisual&&(n._kendoExportVisual=e._kendoExportVisual);for(var o=e.firstChild;o;o=o.nextSibling)n.appendChild(t(o));return n}(t),n=t.querySelectorAll("canvas");n.length&&En(e.querySelectorAll("canvas")).forEach(function(t,e){t.getContext("2d").drawImage(n[e],0,0)});var o=t.querySelectorAll("input, select, textarea, option");return En(e.querySelectorAll("input, select, textarea, option")).forEach(function(t,e){t.removeAttribute("id"),t.removeAttribute("name"),t.value=o[e].value,t.checked=o[e].checked,t.selected=o[e].selected}),e}}("undefined"!=typeof window&&window.kendo&&window.kendo.jQuery);Rn.getFontFaces=In,Rn.drawText=function(t){var e=new ui;return Oa._clipbox=!1,Oa._matrix=_r.unit(),Oa._stackingContext={element:t,group:e},Wn(t,Jn(t),e),3==t.firstChild.nodeType?Po(t,t.firstChild,e):xo(t,e),Yn(),e};var Pa=function(){function t(t){function f(){var e=s.exec(t);e&&(t=t.substr(e[1].length))}function d(e){f();var n=e.exec(t);if(n)return t=t.substr(n[1].length),n[1]}function v(){var e,r,i=y(t,!0);if(i){var s=/^#[0-9a-f]+/i.exec(t)||/^rgba?\(.*?\)/i.exec(t)||/^..*?\b/.exec(t);return t=t.substr(s[0].length),i=i.toRGB(),(e=d(o))||(r=d(n)),{color:i,length:e,percent:r}}}function g(e){var o,s,u,p=[],h=!1;if(d(a)){if(o=d(i),"0"==o&&(o="0deg"),o?(o=lo(o),d(c)):(s=d(r),"to"==s?s=d(r):s&&/^-/.test(e)&&(h=!0),u=d(r),d(c)),/-moz-/.test(e)&&null==o&&null==s){var f=d(n),y=d(n);h=!0,"0%"==f?s="left":"100%"==f&&(s="right"),"0%"==y?u="top":"100%"==y&&(u="bottom"),d(c)}for(;t&&!d(l);){var g=v();if(!g)break;p.push(g),d(c)}return{type:"linear",angle:o,to:s&&u?s+" "+u:s?s:u?u:null,stops:p,reverse:h}}}function m(){if(d(a)){var t=d(p);return t=t.replace(/^['"]+|["']+$/g,""),d(l),{type:"url",url:t}}}var b=t;if(Fn(h,b))return h[b];var _;return(_=d(e))?_=g(_):(_=d(u))&&(_=m()),h[b]=_||{type:"none"}}var e=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,n=/^([-0-9.]+%)/,o=/^([-0-9.]+px)/,r=/^(left|right|top|bottom|to|center)\W/,i=/^([-0-9.]+(deg|grad|rad|turn)|0)/,s=/^(\s+)/,a=/^(\()/,l=/^(\))/,c=/^(,)/,u=/^(url)\(/,p=/^(.*?)\)/,h={},f={};return function(e){return Fn(f,e)?f[e]:f[e]=ja(e).map(t)}}(),ja=function(){var t={};return function(e,n){function o(t){return s=t.exec(e.substr(c))}function r(t){return t.replace(/^\s+|\s+$/g,"")}n||(n=/^\s*,\s*/);var i=e+n;if(Fn(t,i))return t[i];for(var s,a=[],l=0,c=0,u=0,p=!1;c<e.length;)!p&&o(/^[\(\[\{]/)?(u++,c++):!p&&o(/^[\)\]\}]/)?(u--,c++):!p&&o(/^[\"\']/)?(p=s[0],c++):"'"==p&&o(/^\\\'/)?c+=2:'"'==p&&o(/^\\\"/)?c+=2:"'"==p&&o(/^\'/)?(p=!1,c++):'"'==p&&o(/^\"/)?(p=!1,c++):o(n)?(!p&&!u&&c>l&&(a.push(r(e.substring(l,c))),l=c+s[0].length),c+=s[0].length):c++;return l<c&&a.push(r(e.substring(l,c))),t[i]=a}}(),Da=function(t){return function(e){var n=t[e];if(!n){var o;(o=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(e))?n=t[e]=o[2]:(o=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(e))&&(n=t[e]=o[2])}return n}}(Object.create(null)),Ra=function(t){return function(e){var n=t[e];return null==n&&(n=t[e]=K("Mapq",{font:e}).height),n}}(Object.create(null));e.drawing=js,e.geometry=cs,e.pdf=xa,e.exportPDF=Tn,e.exportImage=ne,e.exportSVG=oe,e.animationFrame=o,e.Class=Bo,e.Color=nr,e.htmlEncode=r,e.logToConsole=i,e.Observable=qo,e.saveAs=u,e.support=Ko,e.template=p,e.throttle=f,e.parseColor=y,e.namedColors=Wo,e.Animation=Si,e.AnimationFactory=wi,e.Arc=ri,e.BaseNode=Ei,e.Circle=Dr,e.Element=Or,e.Gradient=mi,e.GradientStop=gi,e.Group=ui,e.Image=li,e.Layout=di,e.LinearGradient=bi,e.MultiPath=Yr,e.ObserversMixin=Fo,e.OptionsStore=br,e.Path=ni,e.PathParser=ei,e.QuadNode=gs,e.RadialGradient=_i,e.Rect=vi,e.ShapesQuadTree=xs,e.Surface=Ti,e.SurfaceFactory=Oi,e.Text=ai,e.align=At,e.fit=Bt,e.stack=Dt,e.vAlign=Mt,e.vStack=Rt,e.vWrap=zt,e.wrap=Lt,e.drawDOM=Rn},function(t,e){!function(n){if("object"==typeof e&&"undefined"!=typeof t)t.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var o;o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,o.pako=n()}}(function(){return function(){function t(e,n,o){function r(s,a){if(!n[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}
vendor: 20,524 bytes, lines 18-19
18var u=n[s]={exports:{}};e[s][0].call(u.exports,function(t){var n=e[s][1][t];return r(n||t)},u,u.exports,t,e,n,o)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<o.length;s++)r(o[s]);return r}return t}()({1:[function(t,e,n){"use strict";function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;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 r in n)o(n,r)&&(t[r]=n[r])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,o,r){if(e.subarray&&t.subarray)return void t.set(e.subarray(n,n+o),r);for(var i=0;i<o;i++)t[r+i]=e[n+i]},flattenChunks:function(t){var e,n,o,r,i,s;for(o=0,e=0,n=t.length;e<n;e++)o+=t[e].length;for(s=new Uint8Array(o),r=0,e=0,n=t.length;e<n;e++)i=t[e],s.set(i,r),r+=i.length;return s}},s={arraySet:function(t,e,n,o,r){for(var i=0;i<o;i++)t[r+i]=e[n+i]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,s))},n.setTyped(r)},{}],2:[function(t,e,n){"use strict";function o(t,e){if(e<65534&&(t.subarray&&s||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",o=0;o<e;o++)n+=String.fromCharCode(t[o]);return n}var r=t("./common"),i=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){s=!1}for(var a=new r.Buf8(256),l=0;l<256;l++)a[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;a[254]=a[254]=1,n.string2buf=function(t){var e,n,o,i,s,a=t.length,l=0;for(i=0;i<a;i++)n=t.charCodeAt(i),55296===(64512&n)&&i+1<a&&(o=t.charCodeAt(i+1),56320===(64512&o)&&(n=65536+(n-55296<<10)+(o-56320),i++)),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(l),s=0,i=0;s<l;i++)n=t.charCodeAt(i),55296===(64512&n)&&i+1<a&&(o=t.charCodeAt(i+1),56320===(64512&o)&&(n=65536+(n-55296<<10)+(o-56320),i++)),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 o(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,o=e.length;n<o;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,r,i,s,l=e||t.length,c=new Array(2*l);for(r=0,n=0;n<l;)if(i=t[n++],i<128)c[r++]=i;else if(s=a[i],s>4)c[r++]=65533,n+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&n<l;)i=i<<6|63&t[n++],s--;s>1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return o(c,r)},n.utf8border=function(t,e){var n;for(e=e||t.length,e>t.length&&(e=t.length),n=e-1;n>=0&&128===(192&t[n]);)n--;return n<0?e:0===n?e:n+a[t[n]]>e?n:e}},{"./common":1}],3:[function(t,e,n){"use strict";function o(t,e,n,o){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==n;){s=n>2e3?2e3:n,n-=s;do r=r+e[o++]|0,i=i+r|0;while(--s);r%=65521,i%=65521}return r|i<<16|0}e.exports=o},{}],4:[function(t,e,n){"use strict";function o(){for(var t,e=[],n=0;n<256;n++){t=n;for(var o=0;o<8;o++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}function r(t,e,n,o){var r=i,s=o+n;t^=-1;for(var a=o;a<s;a++)t=t>>>8^r[255&(t^e[a])];return t^-1}var i=o();e.exports=r},{}],5:[function(t,e,n){"use strict";function o(t,e){return t.msg=R[e],e}function r(t){return(t<<1)-(t>4?9:0)}function i(t){for(var e=t.length;--e>=0;)t[e]=0}function s(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(M.arraySet(t.output,e.pending_buf,e.pending_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 a(t,e){P._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,s(t.strm)}function l(t,e){t.pending_buf[t.pending++]=e}function c(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function u(t,e,n,o){var r=t.avail_in;return r>o&&(r=o),0===r?0:(t.avail_in-=r,M.arraySet(e,t.input,t.next_in,r,n),1===t.state.wrap?t.adler=j(t.adler,e,r,n):2===t.state.wrap&&(t.adler=D(t.adler,e,r,n)),t.next_in+=r,t.total_in+=r,r)}function p(t,e){var n,o,r=t.max_chain_length,i=t.strstart,s=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-pt?t.strstart-(t.w_size-pt):0,c=t.window,u=t.w_mask,p=t.prev,h=t.strstart+ut,f=c[i+s-1],d=c[i+s];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do if(n=e,c[n+s]===d&&c[n+s-1]===f&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do;while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<h);if(o=ut-(h-i),i=h-ut,o>s){if(t.match_start=e,s=o,o>=a)break;f=c[i+s-1],d=c[i+s]}}while((e=p[e&u])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead}function h(t){var e,n,o,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-pt)){M.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,n=t.hash_size,e=n;do o=t.head[--e],t.head[e]=o>=s?o-s:0;while(--n);n=s,e=n;do o=t.prev[--e],t.prev[e]=o>=s?o-s:0;while(--n);r+=s}if(0===t.strm.avail_in)break;if(n=u(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=n,t.lookahead+t.insert>=ct)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+ct-1])&t.hash_mask,t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<ct)););}while(t.lookahead<pt&&0!==t.strm.avail_in)}function f(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(h(t),0===t.lookahead&&e===I)return _t;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var o=t.block_start+n;if((0===t.strstart||t.strstart>=o)&&(t.lookahead=t.strstart-o,t.strstart=o,a(t,!1),0===t.strm.avail_out))return _t;if(t.strstart-t.block_start>=t.w_size-pt&&(a(t,!1),0===t.strm.avail_out))return _t}return t.insert=0,e===z?(a(t,!0),0===t.strm.avail_out?wt:kt):t.strstart>t.block_start&&(a(t,!1),0===t.strm.avail_out)?_t:_t}function d(t,e){for(var n,o;;){if(t.lookahead<pt){if(h(t),t.lookahead<pt&&e===I)return _t;if(0===t.lookahead)break}if(n=0,t.lookahead>=ct&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ct-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-pt&&(t.match_length=p(t,n)),t.match_length>=ct)if(o=P._tr_tally(t,t.strstart-t.match_start,t.match_length-ct),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=ct){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ct-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 o=P._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(o&&(a(t,!1),0===t.strm.avail_out))return _t}return t.insert=t.strstart<ct-1?t.strstart:ct-1,e===z?(a(t,!0),0===t.strm.avail_out?wt:kt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?_t:xt}function v(t,e){for(var n,o,r;;){if(t.lookahead<pt){if(h(t),t.lookahead<pt&&e===I)return _t;if(0===t.lookahead)break}if(n=0,t.lookahead>=ct&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ct-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=ct-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-pt&&(t.match_length=p(t,n),t.match_length<=5&&(t.strategy===K||t.match_length===ct&&t.strstart-t.match_start>4096)&&(t.match_length=ct-1)),t.prev_length>=ct&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-ct,o=P._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-ct),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+ct-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=ct-1,t.strstart++,o&&(a(t,!1),0===t.strm.avail_out))return _t}else if(t.match_available){if(o=P._tr_tally(t,0,t.window[t.strstart-1]),o&&a(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return _t}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(o=P._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<ct-1?t.strstart:ct-1,e===z?(a(t,!0),0===t.strm.avail_out?wt:kt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?_t:xt}function y(t,e){for(var n,o,r,i,s=t.window;;){if(t.lookahead<=ut){if(h(t),t.lookahead<=ut&&e===I)return _t;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=ct&&t.strstart>0&&(r=t.strstart-1,o=s[r],o===s[++r]&&o===s[++r]&&o===s[++r])){i=t.strstart+ut;do;while(o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&r<i);t.match_length=ut-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=ct?(n=P._tr_tally(t,1,t.match_length-ct),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=P._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(a(t,!1),0===t.strm.avail_out))return _t}return t.insert=0,e===z?(a(t,!0),0===t.strm.avail_out?wt:kt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?_t:xt}function g(t,e){for(var n;;){if(0===t.lookahead&&(h(t),0===t.lookahead)){if(e===I)return _t;break}if(t.match_length=0,n=P._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++, 19n&&(a(t,!1),0===t.strm.avail_out))return _t}return t.insert=0,e===z?(a(t,!0),0===t.strm.avail_out?wt:kt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?_t:xt}function m(t,e,n,o,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=o,this.func=r}function b(t){t.window_size=2*t.w_size,i(t.head),t.max_lazy_match=A[t.level].max_lazy,t.good_match=A[t.level].good_length,t.nice_match=A[t.level].nice_length,t.max_chain_length=A[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=ct-1,t.match_available=0,t.ins_h=0}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=J,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 M.Buf16(2*at),this.dyn_dtree=new M.Buf16(2*(2*it+1)),this.bl_tree=new M.Buf16(2*(2*st+1)),i(this.dyn_ltree),i(this.dyn_dtree),i(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new M.Buf16(lt+1),this.heap=new M.Buf16(2*rt+1),i(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new M.Buf16(2*rt+1),i(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}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=$,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?ft:mt,t.adler=2===e.wrap?0:1,e.last_flush=I,P._tr_init(e),N):o(t,V)}function w(t){var e=x(t);return e===N&&b(t.state),e}function k(t,e){return t&&t.state?2!==t.state.wrap?V:(t.state.gzhead=e,N):V}function S(t,e,n,r,i,s){if(!t)return V;var a=1;if(e===q&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>Q||n!==J||r<8||r>15||e<0||e>9||s<0||s>X)return o(t,V);8===r&&(r=9);var l=new _;return t.state=l,l.strm=t,l.wrap=a,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+ct-1)/ct),l.window=new M.Buf8(2*l.w_size),l.head=new M.Buf16(l.hash_size),l.prev=new M.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new M.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,w(t)}function O(t,e){return S(t,e,J,tt,et,Z)}function C(t,e){var n,a,u,p;if(!t||!t.state||e>B||e<0)return t?o(t,V):V;if(a=t.state,!t.output||!t.input&&0!==t.avail_in||a.status===bt&&e!==z)return o(t,0===t.avail_out?G:V);if(a.strm=t,n=a.last_flush,a.last_flush=e,a.status===ft)if(2===a.wrap)t.adler=0,l(a,31),l(a,139),l(a,8),a.gzhead?(l(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),l(a,255&a.gzhead.time),l(a,a.gzhead.time>>8&255),l(a,a.gzhead.time>>16&255),l(a,a.gzhead.time>>24&255),l(a,9===a.level?2:a.strategy>=W||a.level<2?4:0),l(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(l(a,255&a.gzhead.extra.length),l(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=D(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=dt):(l(a,0),l(a,0),l(a,0),l(a,0),l(a,0),l(a,9===a.level?2:a.strategy>=W||a.level<2?4:0),l(a,St),a.status=mt);else{var h=J+(a.w_bits-8<<4)<<8,f=-1;f=a.strategy>=W||a.level<2?0:a.level<6?1:6===a.level?2:3,h|=f<<6,0!==a.strstart&&(h|=ht),h+=31-h%31,a.status=mt,c(a,h),0!==a.strstart&&(c(a,t.adler>>>16),c(a,65535&t.adler)),t.adler=1}if(a.status===dt)if(a.gzhead.extra){for(u=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>u&&(t.adler=D(t.adler,a.pending_buf,a.pending-u,u)),s(t),u=a.pending,a.pending!==a.pending_buf_size));)l(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>u&&(t.adler=D(t.adler,a.pending_buf,a.pending-u,u)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=vt)}else a.status=vt;if(a.status===vt)if(a.gzhead.name){u=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>u&&(t.adler=D(t.adler,a.pending_buf,a.pending-u,u)),s(t),u=a.pending,a.pending===a.pending_buf_size)){p=1;break}p=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,l(a,p)}while(0!==p);a.gzhead.hcrc&&a.pending>u&&(t.adler=D(t.adler,a.pending_buf,a.pending-u,u)),0===p&&(a.gzindex=0,a.status=yt)}else a.status=yt;if(a.status===yt)if(a.gzhead.comment){u=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>u&&(t.adler=D(t.adler,a.pending_buf,a.pending-u,u)),s(t),u=a.pending,a.pending===a.pending_buf_size)){p=1;break}p=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,l(a,p)}while(0!==p);a.gzhead.hcrc&&a.pending>u&&(t.adler=D(t.adler,a.pending_buf,a.pending-u,u)),0===p&&(a.status=gt)}else a.status=gt;if(a.status===gt&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&s(t),a.pending+2<=a.pending_buf_size&&(l(a,255&t.adler),l(a,t.adler>>8&255),t.adler=0,a.status=mt)):a.status=mt),0!==a.pending){if(s(t),0===t.avail_out)return a.last_flush=-1,N}else if(0===t.avail_in&&r(e)<=r(n)&&e!==z)return o(t,G);if(a.status===bt&&0!==t.avail_in)return o(t,G);if(0!==t.avail_in||0!==a.lookahead||e!==I&&a.status!==bt){var d=a.strategy===W?g(a,e):a.strategy===Y?y(a,e):A[a.level].func(a,e);if(d!==wt&&d!==kt||(a.status=bt),d===_t||d===wt)return 0===t.avail_out&&(a.last_flush=-1),N;if(d===xt&&(e===F?P._tr_align(a):e!==B&&(P._tr_stored_block(a,0,0,!1),e===L&&(i(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),s(t),0===t.avail_out))return a.last_flush=-1,N}return e!==z?N:a.wrap<=0?H:(2===a.wrap?(l(a,255&t.adler),l(a,t.adler>>8&255),l(a,t.adler>>16&255),l(a,t.adler>>24&255),l(a,255&t.total_in),l(a,t.total_in>>8&255),l(a,t.total_in>>16&255),l(a,t.total_in>>24&255)):(c(a,t.adler>>>16),c(a,65535&t.adler)),s(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?N:H)}function T(t){var e;return t&&t.state?(e=t.state.status,e!==ft&&e!==dt&&e!==vt&&e!==yt&&e!==gt&&e!==mt&&e!==bt?o(t,V):(t.state=null,e===mt?o(t,U):N)):V}function E(t,e){var n,o,r,s,a,l,c,u,p=e.length;if(!t||!t.state)return V;if(n=t.state,s=n.wrap,2===s||1===s&&n.status!==ft||n.lookahead)return V;for(1===s&&(t.adler=j(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(i(n.head),n.strstart=0,n.block_start=0,n.insert=0),u=new M.Buf8(n.w_size),M.arraySet(u,e,p-n.w_size,n.w_size,0),e=u,p=n.w_size),a=t.avail_in,l=t.next_in,c=t.input,t.avail_in=p,t.next_in=0,t.input=e,h(n);n.lookahead>=ct;){o=n.strstart,r=n.lookahead-(ct-1);do n.ins_h=(n.ins_h<<n.hash_shift^n.window[o+ct-1])&n.hash_mask,n.prev[o&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=o,o++;while(--r);n.strstart=o,n.lookahead=ct-1,h(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=ct-1,n.match_available=0,t.next_in=l,t.input=c,t.avail_in=a,n.wrap=s,N}var A,M=t("../utils/common"),P=t("./trees"),j=t("./adler32"),D=t("./crc32"),R=t("./messages"),I=0,F=1,L=3,z=4,B=5,N=0,H=1,V=-2,U=-3,G=-5,q=-1,K=1,W=2,Y=3,X=4,Z=0,$=2,J=8,Q=9,tt=15,et=8,nt=29,ot=256,rt=ot+1+nt,it=30,st=19,at=2*rt+1,lt=15,ct=3,ut=258,pt=ut+ct+1,ht=32,ft=42,dt=69,vt=73,yt=91,gt=103,mt=113,bt=666,_t=1,xt=2,wt=3,kt=4,St=3;A=[new m(0,0,0,0,f),new m(4,4,8,4,d),new m(4,5,16,8,d),new m(4,6,32,32,d),new m(4,4,16,16,v),new m(8,16,32,32,v),new m(8,16,128,128,v),new m(8,32,128,256,v),new m(32,128,258,1024,v),new m(32,258,258,4096,v)],n.deflateInit=O,n.deflateInit2=S,n.deflateReset=w,n.deflateResetKeep=x,n.deflateSetHeader=k,n.deflate=C,n.deflateEnd=T,n.deflateSetDictionary=E,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";function o(t){for(var e=t.length;--e>=0;)t[e]=0}function r(t,e,n,o,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=o,this.max_length=r,this.has_stree=t&&t.length}function i(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function s(t){return t<256?lt[t]:lt[256+(t>>>7)]}function a(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function l(t,e,n){t.bi_valid>X-n?(t.bi_buf|=e<<t.bi_valid&65535,a(t,t.bi_buf),t.bi_buf=e>>X-t.bi_valid,t.bi_valid+=n-X):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function c(t,e,n){l(t,n[2*e],n[2*e+1])}function u(t,e){var n=0;do n|=1&t,t>>>=1,n<<=1;while(--e>0);return n>>>1}function p(t){16===t.bi_valid?(a(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)}function h(t,e){var n,o,r,i,s,a,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,p=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,d=e.stat_desc.max_length,v=0;for(i=0;i<=Y;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<W;n++)o=t.heap[n],i=l[2*l[2*o+1]+1]+1,i>d&&(i=d,v++),l[2*o+1]=i,o>c||(t.bl_count[i]++,s=0,o>=f&&(s=h[o-f]),a=l[2*o],t.opt_len+=a*(i+s),p&&(t.static_len+=a*(u[2*o+1]+s)));if(0!==v){do{for(i=d-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[d]--,v-=2}while(v>0);for(i=d;0!==i;i--)for(o=t.bl_count[i];0!==o;)r=t.heap[--n],r>c||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),o--)}}function f(t,e,n){var o,r,i=new Array(Y+1),s=0;for(o=1;o<=Y;o++)i[o]=s=s+n[o-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=u(i[a]++,a))}}function d(){var t,e,n,o,i,s=new Array(Y+1);for(n=0,o=0;o<V-1;o++)for(ut[o]=n,t=0;t<1<<et[o];t++)ct[n++]=o;for(ct[n-1]=o,i=0,o=0;o<16;o++)for(pt[o]=i,t=0;t<1<<nt[o];t++)lt[i++]=o;for(i>>=7;o<q;o++)for(pt[o]=i<<7,t=0;t<1<<nt[o]-7;t++)lt[256+i++]=o;for(e=0;e<=Y;e++)s[e]=0;for(t=0;t<=143;)st[2*t+1]=8,t++,s[8]++;for(;t<=255;)st[2*t+1]=9,t++,s[9]++;for(;t<=279;)st[2*t+1]=7,t++,s[7]++;for(;t<=287;)st[2*t+1]=8,t++,s[8]++;for(f(st,G+1,s),t=0;t<q;t++)at[2*t+1]=5,at[2*t]=u(t,5);ht=new r(st,et,U+1,G,Y),ft=new r(at,nt,0,q,Y),dt=new r(new Array(0),ot,0,K,Z)}function v(t){var e;
vendor: 6,036 bytes, line 19
19for(e=0;e<G;e++)t.dyn_ltree[2*e]=0;for(e=0;e<q;e++)t.dyn_dtree[2*e]=0;for(e=0;e<K;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*$]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function y(t){t.bi_valid>8?a(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 g(t,e,n,o){y(t),o&&(a(t,n),a(t,~n)),j.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}function m(t,e,n,o){var r=2*e,i=2*n;return t[r]<t[i]||t[r]===t[i]&&o[e]<=o[n]}function b(t,e,n){for(var o=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&m(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!m(e,o,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=o}function _(t,e,n){var o,r,i,a,u=0;if(0!==t.last_lit)do o=t.pending_buf[t.d_buf+2*u]<<8|t.pending_buf[t.d_buf+2*u+1],r=t.pending_buf[t.l_buf+u],u++,0===o?c(t,r,e):(i=ct[r],c(t,i+U+1,e),a=et[i],0!==a&&(r-=ut[i],l(t,r,a)),o--,i=s(o),c(t,i,n),a=nt[i],0!==a&&(o-=pt[i],l(t,o,a)));while(u<t.last_lit);c(t,$,e)}function x(t,e){var n,o,r,i=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,l=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=W,n=0;n<l;n++)0!==i[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):i[2*n+1]=0;for(;t.heap_len<2;)r=t.heap[++t.heap_len]=c<2?++c:0,i[2*r]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=s[2*r+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)b(t,i,n);r=l;do n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],b(t,i,1),o=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=o,i[2*r]=i[2*n]+i[2*o],t.depth[r]=(t.depth[n]>=t.depth[o]?t.depth[n]:t.depth[o])+1,i[2*n+1]=i[2*o+1]=r,t.heap[1]=r++,b(t,i,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],h(t,e),f(i,c,t.bl_count)}function w(t,e,n){var o,r,i=-1,s=e[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),e[2*(n+1)+1]=65535,o=0;o<=n;o++)r=s,s=e[2*(o+1)+1],++a<l&&r===s||(a<c?t.bl_tree[2*r]+=a:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[2*J]++):a<=10?t.bl_tree[2*Q]++:t.bl_tree[2*tt]++,a=0,i=r,0===s?(l=138,c=3):r===s?(l=6,c=3):(l=7,c=4))}function k(t,e,n){var o,r,i=-1,s=e[1],a=0,u=7,p=4;for(0===s&&(u=138,p=3),o=0;o<=n;o++)if(r=s,s=e[2*(o+1)+1],!(++a<u&&r===s)){if(a<p){do c(t,r,t.bl_tree);while(0!==--a)}else 0!==r?(r!==i&&(c(t,r,t.bl_tree),a--),c(t,J,t.bl_tree),l(t,a-3,2)):a<=10?(c(t,Q,t.bl_tree),l(t,a-3,3)):(c(t,tt,t.bl_tree),l(t,a-11,7));a=0,i=r,0===s?(u=138,p=3):r===s?(u=6,p=3):(u=7,p=4)}}function S(t){var e;for(w(t,t.dyn_ltree,t.l_desc.max_code),w(t,t.dyn_dtree,t.d_desc.max_code),x(t,t.bl_desc),e=K-1;e>=3&&0===t.bl_tree[2*rt[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}function O(t,e,n,o){var r;for(l(t,e-257,5),l(t,n-1,5),l(t,o-4,4),r=0;r<o;r++)l(t,t.bl_tree[2*rt[r]+1],3);k(t,t.dyn_ltree,e-1),k(t,t.dyn_dtree,n-1)}function C(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return R;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return I;for(e=32;e<U;e++)if(0!==t.dyn_ltree[2*e])return I;return R}function T(t){vt||(d(),vt=!0),t.l_desc=new i(t.dyn_ltree,ht),t.d_desc=new i(t.dyn_dtree,ft),t.bl_desc=new i(t.bl_tree,dt),t.bi_buf=0,t.bi_valid=0,v(t)}function E(t,e,n,o){l(t,(L<<1)+(o?1:0),3),g(t,e,n,!0)}function A(t){l(t,z<<1,3),c(t,$,st),p(t)}function M(t,e,n,o){var r,i,s=0;t.level>0?(t.strm.data_type===F&&(t.strm.data_type=C(t)),x(t,t.l_desc),x(t,t.d_desc),s=S(t),r=t.opt_len+3+7>>>3,i=t.static_len+3+7>>>3,i<=r&&(r=i)):r=i=n+5,n+4<=r&&e!==-1?E(t,e,n,o):t.strategy===D||i===r?(l(t,(z<<1)+(o?1:0),3),_(t,st,at)):(l(t,(B<<1)+(o?1:0),3),O(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),_(t,t.dyn_ltree,t.dyn_dtree)),v(t),o&&y(t)}function P(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*(ct[n]+U+1)]++,t.dyn_dtree[2*s(e)]++),t.last_lit===t.lit_bufsize-1}var j=t("../utils/common"),D=4,R=0,I=1,F=2,L=0,z=1,B=2,N=3,H=258,V=29,U=256,G=U+1+V,q=30,K=19,W=2*G+1,Y=15,X=16,Z=7,$=256,J=16,Q=17,tt=18,et=[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],nt=[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],ot=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],it=512,st=new Array(2*(G+2));o(st);var at=new Array(2*q);o(at);var lt=new Array(it);o(lt);var ct=new Array(H-N+1);o(ct);var ut=new Array(V);o(ut);var pt=new Array(q);o(pt);var ht,ft,dt,vt=!1;n._tr_init=T,n._tr_stored_block=E,n._tr_flush_block=M,n._tr_tally=P,n._tr_align=A},{"../utils/common":1}],8:[function(t,e,n){"use strict";function o(){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}e.exports=o},{}],"/lib/deflate.js":[function(t,e,n){"use strict";function o(t){if(!(this instanceof o))return new o(t);this.options=l.assign({level:m,method:_,chunkSize:16384,windowBits:15,memLevel:8,strategy:b,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 p,this.strm.avail_out=0;var n=a.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==v)throw new Error(u[n]);if(e.header&&a.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r="string"==typeof e.dictionary?c.string2buf(e.dictionary):"[object ArrayBuffer]"===h.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,n=a.deflateSetDictionary(this.strm,r),n!==v)throw new Error(u[n]);this._dict_set=!0}}function r(t,e){var n=new o(e);if(n.push(t,!0),n.err)throw n.msg||u[n.err];return n.result}function i(t,e){return e=e||{},e.raw=!0,r(t,e)}function s(t,e){return e=e||{},e.gzip=!0,r(t,e)}var a=t("./zlib/deflate"),l=t("./utils/common"),c=t("./utils/strings"),u=t("./zlib/messages"),p=t("./zlib/zstream"),h=Object.prototype.toString,f=0,d=4,v=0,y=1,g=2,m=-1,b=0,_=8;o.prototype.push=function(t,e){var n,o,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;
19o=e===~~e?e:e===!0?d:f,"string"==typeof t?r.input=c.string2buf(t):"[object ArrayBuffer]"===h.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new l.Buf8(i),r.next_out=0,r.avail_out=i),n=a.deflate(r,o),n!==y&&n!==v)return this.onEnd(n),this.ended=!0,!1;0!==r.avail_out&&(0!==r.avail_in||o!==d&&o!==g)||("string"===this.options.to?this.onData(c.buf2binstring(l.shrinkBuf(r.output,r.next_out))):this.onData(l.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||0===r.avail_out)&&n!==y);return o===d?(n=a.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===v):o!==g||(this.onEnd(v),r.avail_out=0,!0)},o.prototype.onData=function(t){this.chunks.push(t)},o.prototype.onEnd=function(t){t===v&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=o,n.deflate=r,n.deflateRaw=i,n.gzip=s},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")})},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ChartInstanceObserver=void 0;var s=n(19);e.ChartInstanceObserver=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.handlerMap={showTooltip:"onObserverShowTooltip",hideTooltip:"onObserverHideTooltip",seriesClick:"onObserverSeriesClick"},i}return i(e,t),e}(s.InstanceObserver)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.DomEventsBuilder=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}();n(24);var i=n(25);e.DomEventsBuilder=function(){function t(){o(this,t)}return r(t,null,[{key:"create",value:function(t,e){var n=window.Hammer,o=new n(t,{recognizers:[[n.Tap]]});return new i.DomEvents(o,e)}}]),t}()},function(t,e,n){var o;/*! Hammer.JS - v2.0.7 - 2016-04-22 20 * http://hammerjs.github.io/ 21 * 22 * Copyright (c) 2016 Jorik Tangelder; 23 * Licensed under the MIT license */ 24!function(r,i,s,a){"use strict";function l(t,e,n){return setTimeout(f(t,n),e)}function c(t,e,n){return!!Array.isArray(t)&&(u(t,n[e],n),!0)}function u(t,e,n){var o;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(o=0;o<t.length;)e.call(n,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function p(t,e,n){var o="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=r.console&&(r.console.warn||r.console.log);return i&&i.call(r.console,o,n),t.apply(this,arguments)}}function h(t,e,n){var o,r=e.prototype;o=t.prototype=Object.create(r),o.constructor=t,o._super=r,n&&vt(o,n)}function f(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==mt?t.apply(e?e[0]||a:a,e):t}function v(t,e){return t===a?e:t}function y(t,e,n){u(_(e),function(e){t.addEventListener(e,n,!1)})}function g(t,e,n){u(_(e),function(e){t.removeEventListener(e,n,!1)})}function m(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function b(t,e){return t.indexOf(e)>-1}function _(t){return t.trim().split(/\s+/g)}
vendor: 3,596 bytes, line 24
24function x(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var o=0;o<t.length;){if(n&&t[o][n]==e||!n&&t[o]===e)return o;o++}return-1}function w(t){return Array.prototype.slice.call(t,0)}function k(t,e,n){for(var o=[],r=[],i=0;i<t.length;){var s=e?t[i][e]:t[i];x(r,s)<0&&o.push(t[i]),r[i]=s,i++}return n&&(o=e?o.sort(function(t,n){return t[e]>n[e]}):o.sort()),o}function S(t,e){for(var n,o,r=e[0].toUpperCase()+e.slice(1),i=0;i<yt.length;){if(n=yt[i],o=n?n+r:e,o in t)return o;i++}return a}function O(){return St++}function C(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function T(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&n.handler(e)},this.init()}function E(t){var e,n=t.options.inputClass;return new(e=n?n:Tt?V:Et?q:Ct?W:H)(t,A)}function A(t,e,n){var o=n.pointers.length,r=n.changedPointers.length,i=e&Rt&&o-r===0,s=e&(Ft|Lt)&&o-r===0;n.isFirst=!!i,n.isFinal=!!s,i&&(t.session={}),n.eventType=e,M(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function M(t,e){var n=t.session,o=e.pointers,r=o.length;n.firstInput||(n.firstInput=D(e)),r>1&&!n.firstMultiple?n.firstMultiple=D(e):1===r&&(n.firstMultiple=!1);var i=n.firstInput,s=n.firstMultiple,a=s?s.center:i.center,l=e.center=R(o);e.timeStamp=xt(),e.deltaTime=e.timeStamp-i.timeStamp,e.angle=z(a,l),e.distance=L(a,l),P(n,e),e.offsetDirection=F(e.deltaX,e.deltaY);var c=I(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=_t(c.x)>_t(c.y)?c.x:c.y,e.scale=s?N(s.pointers,o):1,e.rotation=s?B(s.pointers,o):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,j(n,e);var u=t.element;m(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function P(t,e){var n=e.center,o=t.offsetDelta||{},r=t.prevDelta||{},i=t.prevInput||{};e.eventType!==Rt&&i.eventType!==Ft||(r=t.prevDelta={x:i.deltaX||0,y:i.deltaY||0},o=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-o.x),e.deltaY=r.y+(n.y-o.y)}function j(t,e){var n,o,r,i,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=Lt&&(l>Dt||s.velocity===a)){var c=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,p=I(l,c,u);o=p.x,r=p.y,n=_t(p.x)>_t(p.y)?p.x:p.y,i=F(c,u),t.lastInterval=e}else n=s.velocity,o=s.velocityX,r=s.velocityY,i=s.direction;e.velocity=n,e.velocityX=o,e.velocityY=r,e.direction=i}function D(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:bt(t.pointers[n].clientX),clientY:bt(t.pointers[n].clientY)},n++;return{timeStamp:xt(),pointers:e,center:R(e),deltaX:t.deltaX,deltaY:t.deltaY}}function R(t){var e=t.length;if(1===e)return{x:bt(t[0].clientX),y:bt(t[0].clientY)};for(var n=0,o=0,r=0;r<e;)n+=t[r].clientX,o+=t[r].clientY,r++;return{x:bt(n/e),y:bt(o/e)}}function I(t,e,n){return{x:e/t||0,y:n/t||0}}function F(t,e){return t===e?zt:_t(t)>=_t(e)?t<0?Bt:Nt:e<0?Ht:Vt}function L(t,e,n){n||(n=Kt);var o=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(o*o+r*r)}function z(t,e,n){n||(n=Kt);var o=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,o)/Math.PI}function B(t,e){return z(e[1],e[0],Wt)+z(t[1],t[0],Wt)}function N(t,e){return L(e[0],e[1],Wt)/L(t[0],t[1],Wt)}function H(){this.evEl=Xt,this.evWin=Zt,this.pressed=!1,T.apply(this,arguments)}function V(){this.evEl=Qt,this.evWin=te,T.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function U(){this.evTarget=ne,this.evWin=oe,this.started=!1,T.apply(this,arguments)}function G(t,e){var n=w(t.touches),o=w(t.changedTouches);
vendor: 4,818 bytes, line 24
24return e&(Ft|Lt)&&(n=k(n.concat(o),"identifier",!0)),[n,o]}function q(){this.evTarget=ie,this.targetIds={},T.apply(this,arguments)}function K(t,e){var n=w(t.touches),o=this.targetIds;if(e&(Rt|It)&&1===n.length)return o[n[0].identifier]=!0,[n,n];var r,i,s=w(t.changedTouches),a=[],l=this.target;if(i=n.filter(function(t){return m(t.target,l)}),e===Rt)for(r=0;r<i.length;)o[i[r].identifier]=!0,r++;for(r=0;r<s.length;)o[s[r].identifier]&&a.push(s[r]),e&(Ft|Lt)&&delete o[s[r].identifier],r++;return a.length?[k(i.concat(a),"identifier",!0),a]:void 0}function W(){T.apply(this,arguments);var t=f(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new H(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Y(t,e){t&Rt?(this.primaryTouch=e.changedPointers[0].identifier,X.call(this,e)):t&(Ft|Lt)&&X.call(this,e)}function X(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var o=this.lastTouches,r=function(){var t=o.indexOf(n);t>-1&&o.splice(t,1)};setTimeout(r,se)}}function Z(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,o=0;o<this.lastTouches.length;o++){var r=this.lastTouches[o],i=Math.abs(e-r.x),s=Math.abs(n-r.y);if(i<=ae&&s<=ae)return!0}return!1}function $(t,e){this.manager=t,this.set(e)}function J(t){if(b(t,fe))return fe;var e=b(t,de),n=b(t,ve);return e&&n?fe:e||n?e?de:ve:b(t,he)?he:pe}function Q(){if(!ce)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||r.CSS.supports("touch-action",n)}),t}function tt(t){this.options=vt({},this.defaults,t||{}),this.id=O(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=ge,this.simultaneous={},this.requireFail=[]}function et(t){return t&we?"cancel":t&_e?"end":t&be?"move":t&me?"start":""}function nt(t){return t==Vt?"down":t==Ht?"up":t==Bt?"left":t==Nt?"right":""}function ot(t,e){var n=e.manager;return n?n.get(t):t}function rt(){tt.apply(this,arguments)}function it(){rt.apply(this,arguments),this.pX=null,this.pY=null}function st(){rt.apply(this,arguments)}function at(){tt.apply(this,arguments),this._timer=null,this._input=null}function lt(){rt.apply(this,arguments)}function ct(){rt.apply(this,arguments)}function ut(){tt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function pt(t,e){return e=e||{},e.recognizers=v(e.recognizers,pt.defaults.preset),new ht(t,e)}function ht(t,e){this.options=vt({},pt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=E(this),this.touchAction=new $(this,this.options.touchAction),ft(this,!0),u(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function ft(t,e){var n=t.element;if(n.style){var o;u(t.options.cssProps,function(r,i){o=S(n.style,i),e?(t.oldCssProps[o]=n.style[o],n.style[o]=r):n.style[o]=t.oldCssProps[o]||""}),e||(t.oldCssProps={})}}function dt(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var vt,yt=["","webkit","Moz","MS","ms","o"],gt=i.createElement("div"),mt="function",bt=Math.round,_t=Math.abs,xt=Date.now;vt="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(o!==a&&null!==o)for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r])}return e}:Object.assign;var wt=p(function(t,e,n){for(var o=Object.keys(e),r=0;r<o.length;)(!n||n&&t[o[r]]===a)&&(t[o[r]]=e[o[r]]),r++;return t},"extend","Use `assign`."),kt=p(function(t,e){return wt(t,e,!0)},"merge","Use `assign`."),St=1,Ot=/mobile|tablet|ip(ad|hone|od)|android/i,Ct="ontouchstart"in r,Tt=S(r,"PointerEvent")!==a,Et=Ct&&Ot.test(navigator.userAgent),At="touch",Mt="pen",Pt="mouse",jt="kinect",Dt=25,Rt=1,It=2,Ft=4,Lt=8,zt=1,Bt=2,Nt=4,Ht=8,Vt=16,Ut=Bt|Nt,Gt=Ht|Vt,qt=Ut|Gt,Kt=["x","y"],Wt=["clientX","clientY"];T.prototype={handler:function(){},init:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(C(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(C(this.element),this.evWin,this.domHandler)}};var Yt={mousedown:Rt,mousemove:It,mouseup:Ft},Xt="mousedown",Zt="mousemove mouseup";h(H,T,{handler:function(t){var e=Yt[t.type];e&Rt&&0===t.button&&(this.pressed=!0),e&It&&1!==t.which&&(e=Ft),this.pressed&&(e&Ft&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],
vendor: 9,673 bytes, line 24
24changedPointers:[t],pointerType:Pt,srcEvent:t}))}});var $t={pointerdown:Rt,pointermove:It,pointerup:Ft,pointercancel:Lt,pointerout:Lt},Jt={2:At,3:Mt,4:Pt,5:jt},Qt="pointerdown",te="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Qt="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),h(V,T,{handler:function(t){var e=this.store,n=!1,o=t.type.toLowerCase().replace("ms",""),r=$t[o],i=Jt[t.pointerType]||t.pointerType,s=i==At,a=x(e,t.pointerId,"pointerId");r&Rt&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(Ft|Lt)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:i,srcEvent:t}),n&&e.splice(a,1))}});var ee={touchstart:Rt,touchmove:It,touchend:Ft,touchcancel:Lt},ne="touchstart",oe="touchstart touchmove touchend touchcancel";h(U,T,{handler:function(t){var e=ee[t.type];if(e===Rt&&(this.started=!0),this.started){var n=G.call(this,t,e);e&(Ft|Lt)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:At,srcEvent:t})}}});var re={touchstart:Rt,touchmove:It,touchend:Ft,touchcancel:Lt},ie="touchstart touchmove touchend touchcancel";h(q,T,{handler:function(t){var e=re[t.type],n=K.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:At,srcEvent:t})}});var se=2500,ae=25;h(W,T,{handler:function(t,e,n){var o=n.pointerType==At,r=n.pointerType==Pt;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(o)Y.call(this,e,n);else if(r&&Z.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var le=S(gt.style,"touchAction"),ce=le!==a,ue="compute",pe="auto",he="manipulation",fe="none",de="pan-x",ve="pan-y",ye=Q();$.prototype={set:function(t){t==ue&&(t=this.compute()),ce&&this.manager.element.style&&ye[t]&&(this.manager.element.style[le]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return u(this.manager.recognizers,function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),J(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var o=this.actions,r=b(o,fe)&&!ye[fe],i=b(o,ve)&&!ye[ve],s=b(o,de)&&!ye[de];if(r){var a=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(a&&l&&c)return}return s&&i?void 0:r||i&&n&Ut||s&&n&Gt?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ge=1,me=2,be=4,_e=8,xe=_e,we=16,ke=32;tt.prototype={defaults:{},set:function(t){return vt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(c(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=ot(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return c(t,"dropRecognizeWith",this)?this:(t=ot(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(c(t,"requireFailure",this))return this;var e=this.requireFail;return t=ot(t,this),x(e,t)===-1&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(c(t,"dropRequireFailure",this))return this;t=ot(t,this);var e=x(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,o=this.state;o<_e&&e(n.options.event+et(o)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),o>=_e&&e(n.options.event+et(o))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=ke)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(ke|ge)))return!1;t++}return!0},recognize:function(t){var e=vt({},t);return d(this.options.enable,[this,e])?(this.state&(xe|we|ke)&&(this.state=ge),this.state=this.process(e),void(this.state&(me|be|_e|we)&&this.tryEmit(e))):(this.reset(),void(this.state=ke))},process:function(t){},getTouchAction:function(){},reset:function(){}},h(rt,tt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,o=e&(me|be),r=this.attrTest(t);return o&&(n&Lt||!r)?e|we:o||r?n&Ft?e|_e:e&me?e|be:me:ke}}),h(it,rt,{defaults:{event:"pan",threshold:10,pointers:1,direction:qt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Ut&&e.push(ve),t&Gt&&e.push(de),e},directionTest:function(t){var e=this.options,n=!0,o=t.distance,r=t.direction,i=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&Ut?(r=0===i?zt:i<0?Bt:Nt,n=i!=this.pX,o=Math.abs(t.deltaX)):(r=0===s?zt:s<0?Ht:Vt,n=s!=this.pY,o=Math.abs(t.deltaY))),t.direction=r,n&&o>e.threshold&&r&e.direction},attrTest:function(t){return rt.prototype.attrTest.call(this,t)&&(this.state&me||!(this.state&me)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=nt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),h(st,rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[fe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&me)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),h(at,tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[pe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,o=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!o||!n||t.eventType&(Ft|Lt)&&!r)this.reset();else if(t.eventType&Rt)this.reset(),this._timer=l(function(){this.state=xe,this.tryEmit()},e.time,this);else if(t.eventType&Ft)return xe;return ke},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===xe&&(t&&t.eventType&Ft?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=xt(),this.manager.emit(this.options.event,this._input)))}}),h(lt,rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[fe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&me)}}),h(ct,rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ut|Gt,pointers:1},getTouchAction:function(){return it.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Ut|Gt)?e=t.overallVelocity:n&Ut?e=t.overallVelocityX:n&Gt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&_t(e)>this.options.velocity&&t.eventType&Ft},emit:function(t){var e=nt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),h(ut,tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[he]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,o=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&Rt&&0===this.count)return this.failTimeout();if(o&&r&&n){if(t.eventType!=Ft)return this.failTimeout();var i=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||L(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&i?this.count+=1:this.count=1,this._input=t;var a=this.count%e.taps;if(0===a)return this.hasRequireFailures()?(this._timer=l(function(){this.state=xe,this.tryEmit()},e.interval,this),me):xe}return ke},failTimeout:function(){return this._timer=l(function(){this.state=ke},this.options.interval,this),ke},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==xe&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),pt.VERSION="2.0.7",pt.defaults={domEvents:!1,touchAction:ue,enable:!0,inputTarget:null,inputClass:null,preset:[[lt,{enable:!1}],[st,{enable:!1},["rotate"]],[ct,{direction:Ut}],[it,{direction:Ut},["swipe"]],[ut],[ut,{event:"doubletap",taps:2},["tap"]],[at]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Se=1,Oe=2;ht.prototype={set:function(t){return vt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?Oe:Se},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,o=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&xe)&&(r=e.curRecognizer=null);for(var i=0;i<o.length;)n=o[i],e.stopped===Oe||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(me|be|_e)&&(r=e.curRecognizer=n),i++}},get:function(t){if(t instanceof tt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(c(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(c(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=x(e,t);n!==-1&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return u(_(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==a){var n=this.handlers;
24return u(_(t),function(t){e?n[t]&&n[t].splice(x(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&dt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var o=0;o<n.length;)n[o](e),o++}},destroy:function(){this.element&&ft(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},vt(pt,{INPUT_START:Rt,INPUT_MOVE:It,INPUT_END:Ft,INPUT_CANCEL:Lt,STATE_POSSIBLE:ge,STATE_BEGAN:me,STATE_CHANGED:be,STATE_ENDED:_e,STATE_RECOGNIZED:xe,STATE_CANCELLED:we,STATE_FAILED:ke,DIRECTION_NONE:zt,DIRECTION_LEFT:Bt,DIRECTION_RIGHT:Nt,DIRECTION_UP:Ht,DIRECTION_DOWN:Vt,DIRECTION_HORIZONTAL:Ut,DIRECTION_VERTICAL:Gt,DIRECTION_ALL:qt,Manager:ht,Input:T,TouchAction:$,TouchInput:q,MouseInput:H,PointerEventInput:V,TouchMouseInput:W,SingleTouchInput:U,Recognizer:tt,AttrRecognizer:rt,Tap:ut,Pan:it,Swipe:ct,Pinch:st,Rotate:lt,Press:at,on:y,off:g,each:u,merge:kt,extend:wt,assign:vt,inherit:h,bindFn:f,prefixed:S});var Ce="undefined"!=typeof r?r:"undefined"!=typeof self?self:{};Ce.Hammer=pt,o=function(){return pt}.call(e,n,e,t),!(o!==a&&(t.exports=o))}(window,document,"Hammer")},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<t.length;n++)if(e[t[n]])return!0;return!1}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=function(t){var e={x:{location:t.pageX},y:{location:t.pageY}};return e},s=function(t,e){var n=t.pointers,o=n[0],r=o.pageX,s=o.pageY,a=0;if(n.length>1){var l=n[0],c=n[1];a=Math.sqrt(Math.pow(l.pageX-c.pageX,2)+Math.pow(l.pageY-c.pageY,2))}return{distance:a,event:t.srcEvent,preventDefault:function(){t.preventDefault()},target:t.target,touches:n.map(i),type:t.type,x:{delta:e?r-e.x.location:0,initialDelta:t.deltaX,location:r,startLocation:r-t.deltaX},y:{delta:e?s-e.y.location:0,initialDelta:t.deltaY,location:s,startLocation:s-t.deltaY}}},a=[{tap:"tap"}];e.DomEvents=function(){function t(e,o){n(this,t),this.hammerInstance=e,this.eventHandlers={},this.tap=this.tap.bind(this),o&&this.bind(o)}return r(t,[{key:"tap",value:function(t){this.trigger("tap",t)}},{key:"trigger",value:function(t,e){var n=s(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](n),n}},{key:"bind",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.unbind(),this.eventHandlers=t;for(var e=0;e<a.length;e++){var n=a[e],r=Object.keys(n);if(o(r,t))for(var i=0;i<r.length;i++){var s=n[r[i]];this.hammerInstance.on(s,this[s])}}}},{key:"unbind",value:function(){this.hammerInstance&&this.hammerInstance.off(),this.eventHandlers={}}},{key:"destroy",value:function(){this.hammerInstance&&(this.hammerInstance.destroy(),delete this.hammerInstance),delete this.eventHandlers}},{key:"toggle",value:function(t,e){if(this.hammerInstance){var n=this.hammerInstance.get(t);n.set({enable:e})}}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(27);Object.defineProperty(e,"IntlService",{enumerable:!0,get:function(){return o.IntlService}});var r=n(29);Object.defineProperty(e,"TemplateService",{enumerable:!0,get:function(){return r.TemplateService}});var i=n(31);Object.defineProperty(e,"ThemeService",{enumerable:!0,get:function(){return i.ThemeService}})},function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.IntlService=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),s=n(28),a=o(s),l=n(1),c=function(){function t(){r(this,t)}return i(t,null,[{key:"setLocale",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,l.deepExtend)({},a.localeInfo("en"),t);a.setData(e),this.localeId=t.name}},{key:"format",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return a.format(t,n,this.localeId)}},{key:"toString",value:function(t,e,n){var o=new RegExp("^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z)?$"),r=t;return o.test(t)&&(r=new Date(t)),a.toString(r,e,this.localeId||n)}},{key:"parseDate",value:function(t,e,n){return a.parseDate(t,e,this.localeId||n)}}]),t}();e.IntlService=c},function(t,e){"use strict";function n(t){return"string"==typeof t}function o(t,e){var n=t.split("-"),o=n[0],r=n[1],i=n[2];return pe[t]||e.indexOf(i)!==-1&&pe[o+"-"+i]||e.indexOf(r)!==-1&&pe[o+"-"+r]||pe[o]}function r(t,e){for(var n=pe.supplemental.likelySubtags,o=0;o<e.length;o++){var r=n[t+"-"+e[o]];if(r)return r}if(n[t])return n[t]}function i(t){var e;return e=n(t)?s(t):t}function s(t){if(pe[t])return pe[t];var e=pe.supplemental.likelySubtags;if(e){var n=t.split("-"),i=n[0],s=n.slice(1),a=r(i,s),l=a?o(a,s):null;if(l)return l}throw ue.NoLocale.error(t)}function a(t){return Te.lastIndex=0,t.replace(Ee,ge).replace(Te,be).split(_e)}function l(t){Te.lastIndex=0;var e=Te.exec(t.split(_e)[0])[0].split(we),n=e[0],o=n.split(xe).slice(1).map(function(t){return t.length}).reverse();return o}function c(t,e){for(var n in e)n.startsWith("unitPattern")&&(t[n]=e[n].replace("{0}",be).replace("{1}",ge))}function u(t,e){var n=pe[t],o=n.numbers=n.numbers||{};o.symbols=o.symbols||{};for(var r in e)if(r===Ce)Object.assign(o.symbols,e[r]);else if(r.includes(Oe)){var i=r.substr(0,r.indexOf(Oe)),s=e[r].standard;o[i]={patterns:a(s)},i===fe?(o[i].groupSize=l((e[he+Oe]||e[r]).standard),c(o[i],e[r]),o[de]={patterns:a(e[r][de]),groupSize:o[i].groupSize}):o[i].groupSize=l(s)}else"currencies"===r&&(o.currencies=e[r])}function p(t){for(var e=[],n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var r=t[n[o]];e.push(r)}return e}function h(t,e){var n={};for(var o in t){var r=n[o]={};for(var i in t[o]){var s=t[o][i];r[i]=e?s:p(s)}}return n}function f(t){var e={},n=e.format={},o={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(var r in t){var i=o[r];n[i]=t[r]}return e}function d(t,e){var n=pe[t].calendar;n.days=h(e.days),n.months=h(e.months),n.quarters=h(e.quarters),n.dayPeriods=h(e.dayPeriods,!0),n.eras=f(e.eras)}function v(t,e){var n=pe[t].calendar,o={};for(var r in e){var i=r.split("-"),s=i[0],a=i[1];void 0===a&&(a="wide");var l=o[s]||{},c=e[r].displayName;c&&(l[a]=c,o[s]=l)}n.dateFields=o}function y(t,e){for(var n=[],o=0;o<t.length;o++){for(var r=t[o],i=e,s=0;s<r.length;s++)i=i[r[s]];n.push(i)}return n.join(" ")}function g(t,e){var n=pe[t].calendar,o=n.patterns={};o.d=y(Pe,e).replace(Me,"y");for(var r in je)o[r]=y(je[r],e);for(var i in Ae)o[i]=Ae[i];var s=e.dateTimeFormats;n.dateTimeFormats={full:s.full,long:s.long,medium:s.medium,short:s.short,availableFormats:s.availableFormats},n.timeFormats=e.timeFormats,n.dateFormats=e.dateFormats}function m(t,e){var n=pe[t].calendar=pe[t].calendar||{};for(var o in e)"timeZoneNames"===o?(n.gmtFormat=e[o].gmtFormat,n.gmtZeroFormat=e[o].gmtZeroFormat):"calendars"===o&&e[o].gregorian?(g(t,e[o].gregorian),d(t,e[o].gregorian)):"fields"===o&&v(t,e.fields)}function b(t,e){var n=pe.supplemental.likelySubtags,o=t.split("-");if(n){var r=n[t]||n[o[0]];r&&(o=r.split("-"))}if(e)for(var i=o.length-1;i>=1;i--){var s=o[i];s!==e.variant&&s!==e.script||o.splice(i,1)}var a=o.length;if(a>1){var l=o[a-1];return l.toUpperCase()}}function _(t){if(t.territory)return t.territory;var e,n=t.name,o=t.identity;return e=o&&o.territory?o.territory:b(n,o),t.territory=e,e}function x(t,e){for(var n in e)"numbers"===n?u(t,e[n]):"dates"===n&&m(t,e[n])}function w(){for(var t=arguments,e=arguments.length,n=0;n<e;n++){var o=t[n];if(o.main){var r=Object.keys(o.main)[0],i=o.main[r],s=pe[r]=pe[r]||{};s.name=s.name||r,s.identity=s.identity||i.identity,_(s),x(r,i)}else o.supplemental&&(o.supplemental.weekData?pe.supplemental.weekData={firstDay:o.supplemental.weekData.firstDay,weekendStart:o.supplemental.weekData.weekendStart,weekendEnd:o.supplemental.weekData.weekendEnd}:Object.assign(pe.supplemental,o.supplemental))}}function k(t){var e=t.name,n=pe[e]=pe[e]||{};if(t.likelySubtags){var o=pe.supplemental=pe.supplemental||{};o.likelySubtags=Object.assign(o.likelySubtags||{},t.likelySubtags)}var r=n.numbers;Object.assign(n,t),r&&t.numbers&&(n.numbers=Object.assign({},r,t.numbers))}function S(t,e){void 0===e&&(e=Se);var n=s(e),o=n.calendar.dateFields;if(!o)throw ue.NoDateFieldNames.error();var r=o[t.type]||{};return r[t.nameType]||r.wide}function O(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].toLowerCase());return e}function C(t){var e={};for(var n in t)e[n]=t[n].toLowerCase();return e}function T(t){var e=Array.isArray(t)?O(t):C(t);return e}function E(t,e){var n=e.type,o=e.nameType,r=e.standAlone,s=e.lower,a=i(t),l=r?"stand-alone"
24:"format",c=(s?"lower-":ke)+o,u=a.calendar[n][l],p=u[c];return!p&&s&&(p=u[c]=T(u[o])),p}function A(t){var e=t.split("-"),n=parseInt(e[0],10),o=parseInt(e[1],10)-1,r=parseInt(e[2],10);return new Date(n,o,r)}function M(t,e,n){var o=i(t),r=o.numbers.currencies;if(r){var s=r[e];if(s)return s;if(n)throw Re.error()}else if(n)throw De.error()}function P(t,e){return e.length-t.length}function j(t){for(var e,n,o,r,i=0;i<t.length;i++){var s=t[i],a=Object.keys(s)[0],l=s[a];if(a!==Ne&&"false"!==l._tender&&l._from)if(l._to){if(!o){var c=A(l._from),u=A(l._to);(!n||n.to<u||n.from<c)&&(e=a,n={from:c,to:u})}}else{var p=A(l._from);(!r||r<p)&&(o=a,r=p)}}return o||e}function D(t,e,n){void 0===n&&(n=!0);var o=M(t,e,n);if(o){if(!o.displays){var r=[e];for(var i in o)r.push(o[i]);r.sort(P),o.displays=r}return o.displays}}function R(t,e){var n=e.value,o=e.currency,r=e.currencyDisplay;if(void 0===r&&(r=Be),"code"===r)return o;var i,s=M(t,o,!0);return i=r===Be?s["symbol-alt-narrow"]||s[Be]:void 0===typeof n||1!==n?s["displayName-count-other"]:s["displayName-count-one"]}function I(t){var e=ze,n=ze,o=((pe.supplemental.currencyData||{}).fractions||{})[t];return o&&o._digits&&(n=e=parseInt(o._digits,10)),{minimumFractionDigits:e,maximumFractionDigits:n}}function F(t,e){if(void 0===e&&(e=!0),He[t])return He[t];var n=pe.supplemental.currencyData;if(n){var o=n.region[t];if(o){var r=j(o);return r}if(e)throw Fe.error(t)}else if(e)throw Ie.error()}function L(t,e){var n=i(t),o=n.numbers;if(!o.localeCurrency){var r=F(_(n),e);if(!r&&e)throw Le.error(n.name);o.localeCurrency=r}return o.localeCurrency}function z(t){var e=i(t);if(!isNaN(e.firstDay))return e.firstDay;var n=pe.supplemental.weekData;if(!n)throw Ge.error();var o=n.firstDay[_(e)]||n.firstDay[Ue];if(!o)throw qe.error();return e.firstDay=Ve.indexOf(o),e.firstDay}function B(t){var e=i(t);if(e.weekendRange)return e.weekendRange;var n=pe.supplemental.weekData;if(!n)throw Ke.error();var o=_(e),r=n.weekendStart[o]||n.weekendStart[Ue],s=n.weekendEnd[o]||n.weekendEnd[Ue];return e.weekendRange={start:Ve.indexOf(r),end:Ve.indexOf(s)},e.weekendRange}function N(t){var e=i(t);return e.numbers.symbols}function H(t,e){void 0===e&&(e={}),e.currency||(e.currency=L(t,!0));var n=R(t,e);return n}function V(t,e,n,o,r){var i=r.numbers.symbols,s=t.indexOf(i.decimal),a=o.groupSize.slice(),l=a.shift(),c=s!==-1?s:n+1,u=t.substring(e,c),p=t,h=u.length;if(h>=l){for(var f=h,d=[];f>-1;){var v=u.substring(f-l,f);v&&d.push(v),f-=l;var y=a.shift();if(l=void 0!==y?y:l,0===l){v=u.substring(0,f),v&&d.push(v);break}}u=d.reverse().join(i.group),p=t.substring(0,e)+u+t.substring(c)}return p}function U(t){return t===fe||t===de}function G(t,e,n){void 0===e&&(e=2),void 0===n&&(n=!1);var o=e-String(t).length,r=t;if(o>0){var i=new Array(o+1).join("0");r=n?t+i:i+t}return r}function q(t,e){var n=t,o=e||0;return n=n.toString().split("e"),n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+o:o))),n=n.toString().split("e"),n=Number(n[0]+"e"+(n[1]?Number(n[1])-o:-o)),n.toFixed(Math.min(o,We))}function K(t){var e,n=t.minimumFractionDigits,o=t.maximumFractionDigits,r=t.style,i=U(r);return i&&(e=I(t.currency)),void 0===n&&(n=i?e.minimumFractionDigits:0),void 0===o&&(o=r===ve?Math.max(n,Xe):i?Math.max(n,e.maximumFractionDigits):Math.max(n,Ye)),{minimumFractionDigits:n,maximumFractionDigits:o}}function W(t,e,n){ 25for(var o=ke,r=0,i=e.length;r<i;r++){var s=e.charAt(r);o+=s===be?t:s===ge||s===me?n:s}return o}function Y(t,e){var n=t.numbers.currency,o=1!==e?n["unitPattern-count-other"]:n["unitPattern-count-one"];return e<0&&(o=o.replace(be,"-"+be)),o}function X(t,e,n){var o=n.numbers.symbols,r=e.style,i=U(r);if(r===ye){var s=void 0!==e.minimumFractionDigits?t.toExponential(e.minimumFractionDigits):t.toExponential();return s.replace(we,o.decimal)}var a,l=t;i&&(e.value=l,a=H(n,e)),r===ve&&(l*=100,a=o.percentSign);var c=K(e),u=c.minimumFractionDigits,p=c.maximumFractionDigits;l=q(l,p);var h=l<0,f=l.split(we),d=f[0],v=G(f[1]?f[1].replace(Ze,ke):ke,u,!0);h&&(d=d.substring(1)),e.minimumIntegerDigits&&(d=G(d,e.minimumIntegerDigits));var y=e.useGrouping!==!1?V(d,0,d.length,e,n):d;v&&(y+=o.decimal+v);var g;if(i&&"name"===e.currencyDisplay)g=Y(n,t);else{var m=e.patterns;g=h?m[1]||"-"+m[0]:m[0]}if(g===be&&!h)return y;var b=W(y,g,a);return b}function Z(t){var e=t.format;if(e.indexOf("'")>-1||e.indexOf('"')>-1||e.indexOf("\\")>-1){var n=t.literals=[];t.format=e.replace(tn,function(t){var e=t.charAt(0).replace("\\",ke),o=t.slice(1).replace(e,ke);return n.push(o),$e})}}function $(t,e){var n;return n=0===e?en:new RegExp("(\\.[0-9]{"+e+"}[1-9]*)0+$","g"),t.replace(n,"$1").replace(nn,ke)}function J(t){var e=t.number,n=t.format,o=n.indexOf(we);if(o!==-1){var r=n.lastIndexOf(Qe)-o,i=n.lastIndexOf(Je)-o,s=r>-1,a=i>-1,l=e.toString().split("e");l=l[1]?q(e,Math.abs(l[1])):l[0],l=l.split(we)[1]||ke;var c=l.length,u=-1;s||a?s&&r>i?c=r:i>r&&(a&&c>i?c=i:s&&c<r&&(c=r),u=s?r:0):(t.format=n.substring(0,o)+n.substring(o+1),o=-1,c=0),c>-1&&(e=q(e,c),u>-1&&(e=$(e,u)))}else e=q(e);t.negative&&e*-1>=0&&(t.negative=!1),t.number=e,t.decimalIndex=o}function Q(t){return t.indexOf(Je)===-1&&t.indexOf(Qe)===-1}function tt(t){var e=t.number,n=t.format;if(n=n.split(_e),t.negative&&n[1])n=n[1],t.hasNegativeFormat=!0;else if(0===e){var o=n[2];n=o||n[0],o&&Q(o)&&(t.constant=o)}else n=n[0];t.format=n}function et(t,e){var n=t.format;n.indexOf(me)!==-1&&(t.style=ve,t.symbol=e.numbers.symbols.percentSign,t.number*=100),n.indexOf(ge)!==-1&&(t.style=fe,t.symbol=H(e))}function nt(t){t.hasGroup=t.format.indexOf(xe)>-1,t.hasGroup&&(t.format=t.format.replace(on,ke))}function ot(t,e,n){var o;return o=t===-1&&e!==-1?e:t!==-1&&e===-1?t:n?Math.min(t,e):Math.max(t,e)}function rt(t){var e=t.format,n=e.indexOf(Je),o=e.indexOf(Qe),r=ot(n,o,!0);n=e.lastIndexOf(Je),o=e.lastIndexOf(Qe);var i=ot(n,o);r===e.length&&(i=r),t.start=r,t.end=i,t.lastZeroIndex=o}function it(t,e,n){var o=t;if(e===fe||e===ve){o=ke;for(var r=0,i=t.length;r<i;r++){var s=t.charAt(r);o+=s===ge||s===me?n:s}}return o}function st(t,e){var n=t;if(e)for(var o=e.length,r=0;r<o;r++)n=n.replace($e,e[r]);return n}function at(t,e){var n=t.start,o=t.end,r=t.negative,i=t.format,s=t.decimalIndex,a=t.lastZeroIndex,l=t.hasNegativeFormat,c=t.hasGroup,u=t.number,p=u.toString().split(we),h=i.length,f=p[0],d=p[1]||ke,v=f.length,y=ke;u=i.substring(0,n),r&&!l&&(u+="-");for(var g=n;g<h;g++){var m=i.charAt(g);if(s===-1){if(o-g<v){u+=f;break}}else if(a!==-1&&a<g&&(y=ke),s-g<=v&&s-g>
25-1&&(u+=f,g=s),s===g){u+=(d?e.numbers.symbols.decimal:ke)+d,g+=o-s+1;continue}m===Qe?(u+=m,y=m):m===Je&&(u+=y)}return c&&(u=V(u,n+(r&&!l?1:0),Math.max(o,v+n),e.numbers.decimal,e)),o>=n&&(u+=i.substring(o+1)),u}function lt(t,e){var n=t.number;return t.start!==-1&&(n=at(t,e),n=it(n,t.style,t.symbol),n=st(n,t.literals)),n}function ct(t,e,n){var o={negative:t<0,number:Math.abs(t),format:e};return tt(o),o.constant?o.constant:(Z(o),et(o,n),nt(o),J(o),rt(o),lt(o,n))}function ut(t){var e=rn.exec(t);if(e){var n={style:he},o=e[1].toLowerCase();return"c"===o?n.style=fe:"a"===o?n.style=de:"p"===o?n.style=ve:"e"===o&&(n.style=ye),e[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(e[2],10)),n}}function pt(t){var e;return e=n(t)?ut(t):t}function ht(t,e,n){if(void 0===e&&(e=be),void 0===n&&(n=Se),void 0===t||null===t)return ke;if(!isFinite(t))return String(t);var o,r=s(n),i=pt(e);if(i){var a=i.style||he;o=X(t,Object.assign({},r.numbers[a],i),r)}else o=ct(t,e,r);return o}function ft(t){return"number"==typeof t}function dt(t,e){if(e.length>1){var n=(e[1]||ke).replace(ge,ke).split(be);if(t.indexOf(n[0])>-1&&t.indexOf(n[1])>-1)return t.replace(n[0],ke).replace(n[1],ke)}}function vt(t,e,n){var o,r=pt(n)||{},i=U(r.style),s=t,a=r.currency||L(e,i);if(a){var l=D(e,a,i);if(l)for(var c=0;c<l.length;c++){var u=l[c];if(s.includes(u)){s=s.replace(u,ke),i=!0;break}}if(i){var p=dt(s,e.numbers.currency.patterns)||dt(s,e.numbers.accounting.patterns);p&&(o=!0,s=p)}}return{number:s,negative:o}}function yt(t,e,n){if(void 0===e&&(e=Se),void 0===n&&(n={}),!t&&0!==t)return null;if(ft(t))return t;var o,r=s(e),i=r.numbers.symbols,a=t.toString();if(sn.test(a))return a=parseFloat(a.replace(i.decimal,we)),isNaN(a)?null:a;var l=a.indexOf("-");if(l>0)return null;var c=l>-1,u=vt(a,r,n),p=u.negative,h=u.number;return a=h,c=void 0!==p?p:c,(n.style===ve||a.indexOf(i.percentSign)>-1)&&(a=a.replace(i.percentSign,ke),o=!0),a=a.replace("-",ke).replace(an," ").split(i.group.replace(an," ")).join(ke).replace(i.decimal,we),a=parseFloat(a),isNaN(a)?a=null:c&&(a*=-1),a&&o&&(a/=100),a}function gt(t){var e=arguments;return t.replace(ln,function(t,n){var o=e[parseInt(n,10)+1];return o})}function mt(t){return t.hour12?"h":"H"}function bt(t){return xn[t]||(xn[t]=new RegExp(t+"+")),xn[t]}function _t(t){for(var e=[],n=t.charAt(0),o=n,r=1;r<t.length;r++){var i=t.charAt(r);i===o?n+=i:(e.push(n),n=o=i)}return e.push(n),e}function xt(t,e){var n,o,r=t.length,i=-Number.MAX_VALUE;for(var s in e){for(var a=[],l=s.replace("v","z"),c=0,u=0;u<r;u++){var p=t[u],h=bt(p[0]),f=(h.exec(l)||[])[0];if(f){if(l=l.replace(f,ke),f.length!==p.length){var d=Math.max(Math.min(pn[f.length]-pn[p.length],2),-2);c-=yn[d]}}else c-=cn;if(a.push(f),c<i)break}l.length&&(c-=_t(l).length*un),c>i&&(i=c,n=a,o=e[s])}o=o.replace("v","z");for(var v=0;v<r;v++){var y=n[v];if(y&&y!==t[v]){var g=n[v][0];o=o.replace(bt(g),t[v]),_n[g]&&(o=o.replace(bt(_n[g]),t[v]))}}return o}function wt(t,e,n){wn[n]||(wn[n]={}),wn[n][t]=e}function kt(t,e){var n=e.calendar.dateTimeFormats.availableFormats;if(n[t])return n[t];if(wn[e.name]&&wn[e.name][t])return wn[e.name][t];var o,r=t.search(mn);if(r>0){var i=t.substr(0,r),s=t.substr(r);o=gt(e.calendar.dateTimeFormats.short,n[s]||xt(_t(s),n),n[i]||xt(_t(i),n))}else o=xt(_t(t),n);return wt(t,o,e.name),o}function St(t){for(var e=[],n=0;n<bn.length;n++){var o=bn[n],r=o.key,i=t[r];if(i){var s=o.specifier||o.getSpecifier(t);e.push(s.repeat(gn[i]))}}return e.join(ke)}function Ot(t,e){var o,r=e.calendar;if(n(t))o=r.patterns[t]?r.patterns[t]:t;else if(t){if(t.pattern)return t.pattern;var i=t.skeleton;i||(t.datetime?o=gt(r.dateTimeFormats[t.datetime],r.timeFormats[t.datetime],r.dateFormats[t.datetime]):t.date?o=r.dateFormats[t.date]:t.time?o=r.timeFormats[t.time]:i=St(t)),i&&(o=kt(i,e))}return o||(o=r.patterns.d),o}function Ct(t){var e;return t<=3?e="abbreviated":4===t?e="wide":5===t?e="narrow":6===t&&(e="short"),e}function Tt(t,e,n,o,r){return E(t,{type:e,nameType:Ct(n),standAlone:o,lower:r})}function Et(t){return"function"==typeof t}function At(t){return Boolean(t)&&Et(t.getTime)&&Et(t.getMonth)}function Mt(t,e,n){var o,r=z(n);return o=t<r?7-r+t:t-r,o+1}function Pt(t,e,n,o){return e<=2?G(t+1,e):Tt(n,"months",e,o)[t]}function jt(t,e,n,o){var r=Math.floor(t.getMonth()/3);return e<3?r+1:Tt(n,"quarters",e,o)[r]}function Dt(t,e,n){var o=n.shortHours,r=n.optionalMinutes,i=n.separator,s=n.localizedName,a=n.zZeroOffset,l=t.getTimezoneOffset()/60;if(0===l&&a)return"Z";var c=l<=0?"+":"-",u=Math.abs(l).toString().split("."),p=u[1]||0,h=c+(o?u[0]:G(u[0],2));if(!p&&r||(h+=(i?":":ke)+G(p,2)),s){var f=0===l?e.calendar.gmtZeroFormat:e.calendar.gmtFormat;h=gt(f,h)}return h}function Rt(t,e,n,o){var r;return r=e<3?Mt(t.getDay(),e,n):Tt(n,"days",e,o)[t.getDay()]}function It(t,e,n){if(void 0===n&&(n=Se),!At(t))return void 0===t||null===t?ke:t;var o=s(n),r=Ot(e,o);return r.replace(An,function(e){var n,r=e.length;return n=e.includes("'")||e.includes('"')?e.slice(1,r-1):Mn[e[0]](t,r,o)})}function Ft(t,e,n){var o=t.getTimezoneOffset(),r=new Date(t.getTime()+6e4*(e-n)),i=r.getTimezoneOffset();return new Date(r.getTime()+6e4*(i-o))}function Lt(t,e){e||23!==t.getHours()||t.setHours(t.getHours()+2)}function zt(t,e,n){return!(t>=e&&t<=n)}function Bt(t,e){for(var n=e.format,o=e.idx,r=0;n[o]===t;)r++,o++;return r>0&&(o-=1),e.idx=o,r}function Nt(t,e){var n=t?Rn[t]||new RegExp("^\\d{1,"+t+"}"):In,o=e.value.substr(e.valueIdx,t).match(n);return o?(o=o[0],e.valueIdx+=o.length,parseInt(o,10)):null}function Ht(t,e,n){for(var o,r,i,s=0,a=t.length,l=0,c=0;s<a;s++)o=t[s],r=o.length,i=e.value.substr(e.valueIdx,r),n&&(i=i.toLowerCase()),i===o&&r>l&&(l=r,c=s);return l?(e.valueIdx+=l,c+1):null}function Vt(t){var e=!1;return t.value.charAt(t.valueIdx)===t.format[t.idx]&&(t.valueIdx++,e=!0),e}function Ut(t){var e=t.gmtFormat,n=t.gmtZeroFormat;if(!e)throw ue.NoGMTInfo.error();return[e.replace(Fn,ke).toLowerCase(),n.replace(Fn,ke).toLowerCase()]}function Gt(t,e,n){var o=n.shortHours,r=n.noSeparator,i=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&&!Ht(Ut(e.calendar),t,!0))return!0;var l=Pn.exec(t.value.substr(t.valueIdx,6));if(!l)return!s;var c=l[1],u=l[3],p=parseInt(c,10),h=l[2],f=parseInt(u,10);return!!(isNaN(p)||!o&&3!==c.length||!i&&isNaN(f)||r&&h)||(isNaN(f)&&(f=null),!!(zt(p,-12,13)||f&&zt(f,0,59))||(t.valueIdx+=l[0].length,t.hoursOffset=p,void(t.minutesOffset=f)))}function qt(t,e,n){var o=Bt(t,e),r=Tt(n,"months",o,"L"===t,!0),i=o<3?Nt(2,e):Ht(r,e,!0);return!(null!==i&&!zt(i,1,12))||void(e.month=i-1)}function Kt(t,e,n){var o=Bt(t,e),r=Tt(n,"days",o,"c"===t,!0),i=o<3?Nt(1,e):Ht(r,e,!0);if(!i&&0!==i||zt(i,1,7))return!0}function Wt(t){var e,n=t.year,o=t.month,r=t.day,i=t.hours,s=t.minutes,a=t.seconds,l=t.milliseconds,c=t.pmHour,u=t.UTC,p=t.hoursOffset,h=t.minutesOffset,f=null!==i||null!==s||a||null,d=new Date;return null===n&&null===o&&null===r&&f?(n=d.getFullYear(),o=d.getMonth(),r=d.getDate()):(null===n&&(n=d.getFullYear()),null===r&&(r=1)),c&&i<12&&(i+=12),u?(p&&(i+=-p),h&&(s+=-h*(p<0?-1:1)),e=new Date(Date.UTC(n,o,r,i,s,a,l))):(e=new Date(n,o,r,i,s,a,l),Lt(e,i)),n<100&&e.setFullYear(n),e.getDate()!==r&&void 0===u?null:e}function Yt(t,e,n){for(var o=Ot(e,n).split(ke),r={format:o,idx:0,value:t,valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},i=o.length,s=!1;r.idx<i;r.idx++){var a=o[r.idx];if(s)"'"===a&&(s=!1),Vt(r);else if(Nn[a]){var l=Nn[a](r,n);if(l)return null}else if("'"===a)s=!0,Vt(r);else if(!Vt(r))return null}return r.valueIdx<t.length?null:Wt(r)||null}function Xt(t){var e="-"===t.substr(0,1)?-1:1,n=t.substring(1);return n=60*parseInt(n.substr(0,2),10)+parseInt(n.substring(2),10),e*n}function Zt(t){if(t&&0===t.indexOf("/D")){var e=jn.exec(t);if(e){e=e[1];var n=Dn.exec(e.substring(1));return e=new Date(parseInt(e,10)),n&&(n=Xt(n[0]),e=Ft(e,e.getTimezoneOffset(),0),e=Ft(e,0,-1*n)),e}}}function $t(t){for(var e=[],n=t.patterns,o=zn.length,r=0;r<o;r++)e.push(n[zn[r]]);return e.concat(Ln)}function Jt(t,e,n){if(void 0===n&&(n=Se),!t)return null;if(At(t))return t;
25var o=String(t).trim(),r=Zt(o);if(r)return r;var i=s(n),a=e||$t(i.calendar);a=Array.isArray(a)?a:[a];for(var l=a.length,c=0;c<l;c++)if(r=Yt(o,a[c],i))return r;return r}function Qt(t,e){var n=t[t.length-1];n&&n.type===Vn?n.pattern+=e:t.push({type:Vn,pattern:e})}function te(t){return"h"===t||"K"===t}function ee(t,e){void 0===e&&(e=Se);for(var n=s(e),o=Ot(t,n),r=[],i=An.lastIndex=0,a=An.exec(o);a;){var l=a[0];if(i<a.index&&Qt(r,o.substring(i,a.index)),l.startsWith('"')||l.startsWith("'"))Qt(r,l);else{var c=l[0],u=En[c],p={type:u,pattern:l};"hour"===u&&(p.hour12=te(l));var h=Hn[u];if(h){var f=ft(h.minLength)?h.minLength:h.minLength[c],d=l.length;d>=f&&(p.names={type:h.type,nameType:Ct(d),standAlone:h.standAlone===c})}r.push(p)}i=An.lastIndex,a=An.exec(o)}return i<o.length&&Qt(r,o.substring(i)),r}function ne(t,e,n){if(e){if(At(t))return It(t,e,n);if(ft(t))return ht(t,e,n)}return void 0!==t&&null!==t?t:ke}function oe(t,e,n){return t.replace(Un,function(t,o,r){var i=e[parseInt(o,10)];return ne(i,r?r.substring(1):ke,n)})}Object.defineProperty(e,"__esModule",{value:!0});var re={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:"Ã",perMille:"â°",infinity:"â",nan:"NaN",timeSeparator:":"}
25,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:"â¬","symbol-alt-narrow":"â¬"},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"}
25,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"}}}},ie={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."},se=/\{(\d+)}?\}/g,ae=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};ae.prototype.formatMessage=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=le(t),o=this.message.replace(se,function(t,e){return n[parseInt(e,10)]});return this.name+": "+o},ae.prototype.error=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new Error(this.formatMessage(t))};var le=function(t){return t.reduce(function(t,e){return t.concat(e)},[])},ce=function(t){var e=function(e,n){return e[n]=new ae({name:n,message:t[n]}),e};return Object.keys(t).reduce(e,{})},ue=ce(ie),pe=re,he="decimal",fe="currency",de="accounting",ve="percent",ye="scientific",ge="$",me="%",be="n",_e=";",xe=",",we=".",ke="",Se="en",Oe="Formats-numberSystem-latn",Ce="symbols-numberSystem-latn",Te=/([#,0.]+)/g,Ee=/¤/g,Ae={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},Me=/y+/g,Pe=[["dateFormats","short"]],je={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]},De=ue.NoCurrency,Re=ue.NoCurrencyDisplay,Ie=ue.NoSupplementalCurrency,Fe=ue.NoCurrencyRegion,Le=ue.NoValidCurrency,ze=2,Be="symbol",Ne="XXX",He={"001":"USD",150:"EUR"},Ve=["sun","mon","tue","wed","thu","fri","sat"],Ue="001",Ge=ue.NoWeekData,qe=ue.NoFirstDay,Ke=ue.NoWeekData,We=20,Ye=3,Xe=0,Ze=/0+$/,$e="__??__",Je="#",Qe="0",tn=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,en=/(\.(?:[0-9]*[1-9])?)0+$/g,nn=/\.$/,on=/\,/g,rn=/^(n|c|p|e|a)(\d*)$/i,sn=/[eE][\-+]?[0-9]+/,an=/\u00A0/g,ln=/\{(\d+)}/g,cn=120,un=20,pn=[2,1,5,3,4],hn=-2,fn=-1,dn=1,vn=2,yn={};yn[hn.toString()]=8,yn[fn.toString()]=6,yn[vn.toString()]=6,yn[dn.toString()]=3;var gn={numeric:1,"2-digit":2,short:3,long:4,narrow:5},mn=/[hHmsSzZoOvVxX]/,bn=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:mt},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],_n={e:"c",E:"c",M:"L",Q:"q"},xn={},wn={},kn="month",Sn="hour",On="zone",Cn="weekday",Tn="quarter",En={G:"era",y:"year",q:Tn,Q:Tn,M:kn,L:kn,d:"day",E:Cn,c:Cn,e:Cn,h:Sn,H:Sn,k:Sn,K:Sn,m:"minute",s:"second",a:"dayperiod",x:On,X:On,z:On,Z:On},An=/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,Mn={};Mn.d=function(t,e){return G(t.getDate(),e)},Mn.E=function(t,e,n){return Tt(n,"days",e)[t.getDay()]},Mn.M=function(t,e,n){return Pt(t.getMonth(),e,n,!1)},Mn.L=function(t,e,n){return Pt(t.getMonth(),e,n,!0)},Mn.y=function(t,e){var n=t.getFullYear();return 2===e&&(n%=100),G(n,e)},Mn.h=function(t,e){var n=t.getHours()%12||12;return G(n,e)},Mn.H=function(t,e){return G(t.getHours(),e)},Mn.k=function(t,e){return G(t.getHours()||24,e)},Mn.K=function(t,e){return G(t.getHours()%12,e)},Mn.m=function(t,e){return G(t.getMinutes(),e)},Mn.s=function(t,e){return G(t.getSeconds(),e)},Mn.S=function(t,e){var n,o=t.getMilliseconds();return n=0!==o?String(t.getMilliseconds()/1e3).split(".")[1].substr(0,e):G(ke,e)},Mn.a=function(t,e,n){return Tt(n,"dayPeriods",e)[t.getHours()<12?"am":"pm"]},Mn.z=function(t,e,n){return Dt(t,n,{shortHours:e<4,optionalMinutes:e<4,separator:!0,localizedName:!0})},Mn.Z=function(t,e,n){return Dt(t,n,{separator:e>3,localizedName:4===e,zZeroOffset:5===e})},Mn.x=function(t,e,n){return Dt(t,n,{optionalMinutes:1===e,separator:3===e||5===e})},Mn.X=function(t,e,n){return Dt(t,n,{optionalMinutes:1===e,separator:3===e||5===e,zZeroOffset:!0})},Mn.G=function(t,e,n){var o=t.getFullYear()>=0?1:0;return Tt(n,"eras",e)[o]},Mn.e=Rt,Mn.c=function(t,e,n){return Rt(t,e,n,!0)},Mn.q=function(t,e,n){return jt(t,e,n,!0)},Mn.Q=jt;var Pn=/([+|\-]\d{1,2})(:?)(\d{2})?/,jn=/^\/Date\((.*?)\)\/$/,Dn=/[+-]\d*/,Rn={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/}
25,In=/\d+/,Fn="{0}",Ln=["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"],zn=["G","g","F","Y","y","M","m","D","d","y","T","t"],Bn=2029,Nn={};Nn.d=function(t){Bt("d",t);var e=Nt(2,t);return!(null!==e&&!zt(e,1,31))||void(null===t.day&&(t.day=e))},Nn.E=function(t,e){var n=Bt("E",t),o=Ht(Tt(e,"days",n,!1,!0),t,!0);if(null===o)return!0},Nn.M=function(t,e){return qt("M",t,e)},Nn.L=function(t,e){return qt("L",t,e)},Nn.y=function(t){var e=Bt("y",t),n=Nt(1===e?void 0:e,t);if(null===n)return!0;if(2===e){var o=(new Date).getFullYear();n=o-o%100+n,n>Bn&&(n-=100)}t.year=n},Nn.h=function(t){Bt("h",t);var e=Nt(2,t);return 12===e&&(e=0),!(null!==e&&!zt(e,0,11))||void(t.hours=e)},Nn.K=function(t){Bt("K",t);var e=Nt(2,t);return!(null!==e&&!zt(e,0,11))||void(t.hours=e)},Nn.a=function(t,e){var n=Bt("a",t),o=Tt(e,"dayPeriods",n,!1,!0),r=Ht([o.pm],t,!0);return!r&&!Ht([o.am],t,!0)||void(t.pmHour=r)},Nn.H=function(t){Bt("H",t);var e=Nt(2,t);return!(null!==e&&!zt(e,0,23))||void(t.hours=e)},Nn.k=function(t){Bt("k",t);var e=Nt(2,t);return!(null!==e&&!zt(e,1,24))||void(t.hours=24===e?0:e)},Nn.m=function(t){Bt("m",t);var e=Nt(2,t);return!(null!==e&&!zt(e,0,59))||void(t.minutes=e)},Nn.s=function(t){Bt("s",t);var e=Nt(2,t);return!(null!==e&&!zt(e,0,59))||void(t.seconds=e)},Nn.S=function(t){var e=Bt("S",t),n=t.value.substr(t.valueIdx,e),o=null;return isNaN(parseInt(n,10))||(o=parseFloat("0."+n,10),o=q(o,3),o*=1e3,t.valueIdx+=e),!(null!==o&&!zt(o,0,999))||void(t.milliseconds=o)},Nn.z=function(t,e){var n=Bt("z",t),o=n<4,r=Gt(t,e,{shortHours:o,optionalMinutes:o,localizedName:!0});if(r)return r},Nn.Z=function(t,e){var n=Bt("Z",t),o=Gt(t,e,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(o)return o},Nn.x=function(t,e){var n=Bt("x",t),o=Gt(t,e,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(o)return o},Nn.X=function(t,e){var n=Bt("X",t),o=Gt(t,e,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(o)return o},Nn.G=function(t,e){var n=Bt("G",t),o=Tt(e,"eras",n,!1,!0),r=Ht([o[0],o[1]],t,!0);if(null===r)return!0},Nn.e=function(t,e){return Kt("e",t,e)},Nn.c=function(t,e){return Kt("c",t,e)};var Hn={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}},Vn="literal",Un=/\{(\d+)(:[^\}]+)?\}/g;e.formatNumber=ht,e.parseNumber=yt,e.formatDate=It,e.parseDate=Jt,e.splitDateFormat=ee,e.load=w,e.setData=k,e.dateFieldName=S,e.dateFormatNames=E,e.cldr=pe,e.localeInfo=s,e.currencyDisplays=D,e.currencyDisplay=R,e.currencyFractionOptions=I,e.territoryCurrencyCode=F,e.localeCurrency=L,e.firstDay=z,e.weekendRange=B,e.numberSymbols=N,e.toString=ne,e.format=oe,e.errors=ue,e.IntlError=ae,e.toIntlErrors=ce},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.TemplateService=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(30);e.TemplateService=function(){function t(){o(this,t)}return r(t,null,[{key:"compile",value:function(t){return i.Template.compile(t)}}]),t}()},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=/\$\{([^}]*)\}/g,i=/\\\}/g,s=/__CURLY__/g,a=/\\#/g,l=/__SHARP__/g,c=e.Template=function(){function t(){n(this,t)}return o(t,null,[{key:"htmlEncode",value:function(t){var e=/&/g,n=/</g,o=/"/g,r=/'/g,i=/>/g,s=String(t).replace(e,"&").replace(n,"<").replace(i,">").replace(o,""").replace(r,"'");return s}},{key:"render",value:function(t,e){var n=void 0,o=void 0,r="";for(n=0,o=e.length;n<o;
25n++)r+=t(e[n]);return r}},{key:"compile",value:function(e){var n="var $kendoOutput, $kendoHtmlEncode = htmlEncode;",o=void 0,c=void 0,u=t.options.paramName,p=t.options.useWithBlock;if("function"==typeof e)return e;for(n+=p?"with("+u+"){":"",n+="$kendoOutput=",o=e.replace(i,"__CURLY__").replace(r,"#=$kendoHtmlEncode($1)#").replace(s,"}").replace(a,"__SHARP__").split("#"),c=0;c<o.length;c++)n+=t.compilePart(o[c],c%2===0);n+=p?";}":";",n+="return $kendoOutput;",n=n.replace(l,"#");try{var h=new Function(u,"htmlEncode",n);return function(e){return h(e,t.htmlEncode)}}catch(t){throw new Error("Invalid template:'"+e+"' Generated code:'"+n+"'")}}},{key:"compilePart",value:function(t,e){if(e)return"'"+t.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var n=t.charAt(0),o=t.substring(1);return"="===n?"+("+o+")+":":"===n?"+$kendoHtmlEncode("+o+")+":";"+t+";$kendoOutput+="}}]),t}();c.options={useWithBlock:!0,paramName:"dataItem"}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ThemeService=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=n(19),l=n(32),c=n(33),u=function(t){return t.fontSize+" "+t.fontFamily},p=function(t){return t.toLowerCase().charCodeAt(0)-"a".charCodeAt(0)},h=function(t){return p(t.match(/series-([a-z])$/)[1])},f='\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';e.ThemeService=function(t){function e(){var t,n,i,s;o(this,e);for(var a=arguments.length,l=Array(a),c=0;c<a;c++)l[c]=arguments[c];return n=i=r(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(l))),i.loaded=!1,i.element=null,s=n,r(i,s)}return i(e,t),s(e,[{key:"reset",value:function(){this.loaded=!1}},{key:"getThemeOptions",value:function(){return this.store}},{key:"loadTheme",value:function(){ 26this.readTheme()||this.readDefaultTheme(),this.loaded=!0}},{key:"readTheme",value:function(){this.createElement();
26var t=this.queryColor("accent"),e=this.queryColor("accent-contrast");if(this.loaded&&this.currentAccentColor&&this.currentAccentColor===t)return!0;var n=t!==e;try{n&&(this.currentAccentColor=t,this.push((0,a.chartBaseTheme)()),this.setColors(),this.setFonts(),this.setSeriesColors())}finally{this.destroyElement()}return n}},{key:"readDefaultTheme",value:function(){this.push((0,l.chartDefaultTheme)())}},{key:"createElement",value:function(){var t=this.element=document.createElement("div");t.style.display="none",t.innerHTML=f,document.body.appendChild(t)}},{key:"destroyElement",value:function(){this.element&&(document.body.removeChild(this.element),this.element=void 0)}},{key:"setStyle",value:function(t,e){this.set(t,e)}},{key:"setColors",value: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("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))}},{key:"setFonts",value:function(){var t=u(this.queryStyle("chart-font")),e=u(this.queryStyle("chart-title-font")),n=u(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)}},{key:"setSeriesColors",value:function(){var t=this.element,e=[].slice.call(t.querySelectorAll(".k-var--series div")),n=e.reduce(function(t,e){var n=h(e.className);return t[n]=window.getComputedStyle(e).backgroundColor,t},[]);this.setStyle("seriesColors",n)}},{key:"mapColor",value:function(t,e){this.setStyle(t,this.queryColor
26(e))}},{key:"queryColor",value:function(t){return this.queryStyle(t).backgroundColor}},{key:"queryStyle",value:function(t){var e=this.element;return window.getComputedStyle(e.querySelector(".k-var--"+t))}}]),e}(c.ConfigurationService)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.chartDefaultTheme=void 0;var o=n(19);e.chartDefaultTheme=function(){return Object.assign({},(0,o.chartBaseTheme)(),{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)"]})}},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}();e.ConfigurationService=function(){function t(){n(this,t),this.store={}}return o(t,[{key:"push",value:function(t){this.store=t}},{key:"set",value:function(t,e){for(var n=this.store,o=t.split("."),r=o.shift();o.length>0;)n=n[r]=n[r]||{},r=o.shift();n[r]=e}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(35);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var r=n(39);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var i=n(44);
26Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var s=n(46);Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,s.initComponent)(i.Groupable,(0,s.addComponentSuffix)(t,"Groupable"),e)}function r(t){(0,s.destroyComponent)((0,s.addComponentSuffix)(t,"Groupable"))}Object.defineProperty(e,"__esModule",{value:!0}),e.initGroupable=o,e.destroyGroupable=r;var i=n(36),s=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Groupable=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(37),c=n(1),u=n(38),p=(0,u.toDataAttr)("field"),h=(0,u.toDataAttr)("text"),f={indicatorContainer:"k-indicator-container"};e.Groupable=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,parentSelector:".k-grid",dropTargetSelector:".k-grouping-header",dropTarget:{group:null,itemSelector:(0,u.toClassSelector)(f.indicatorContainer)},jsinterop:{addGroup:""}},i.onDropTargetDrop=function(t){var e=t.draggable.originalCurrentTarget,n=e.getAttribute(p),o=t.draggable.getElementUnderCursor(t),r=o.closest(i.dropTarget.options.itemSelector),s=e.getAttribute(h),a=(0,u.getElementIndex)(r);if(a<0){var l=(0,u.last)(i.dropTarget.element.querySelectorAll(i.dropTarget.options.itemSelector));a=(0,u.getElementIndex)(l)}n&&a>=0&&i.invokeAddGroup({field:n,title:s,index:a})},i.allowsDragFrom=function(t){var e=!i.containsGroup(t.originalCurrentTarget)&&t.originalCurrentTarget.hasAttribute(p);return e},i.allowsDropFrom=function(t){var e=!i.containsGroup(t.originalCurrentTarget);return e},i.extendOptions(n),i.createDropTarget(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.destroyDropTarget(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"createDropTarget",value:function(){var t=this.element.closest(this.options.parentSelector).querySelector(this.options.dropTargetSelector);t&&(this.dropTarget=new l.DropTarget(t,(0,c.deepExtend)(this.options.dropTarget,{allowsDragFrom:this.allowsDragFrom,allowsDropFrom:this.allowsDropFrom,events:{drop:this.onDropTargetDrop}})))}},{key:"destroyDropTarget",value:function(){this.dropTarget&&this.dropTarget.destroy()}},{key:"containsGroup",value:function(t){var e=t.getAttribute(p),n=Array.from(this.element.querySelectorAll((0,u.toClassSelector)(f.indicatorContainer))).map(function(t){return t.getAttribute(p)}).includes(e);return n}},{key:"invokeAddGroup",value:function(t){this.invokeMethodAsync(this.options.jsinterop.addGroup,t)}}]),e}(c.Component)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
26Object.defineProperty(e,"__esModule",{value:!0}),e.DropTarget=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=e.DropTarget=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={id:(0,l.guid)(),group:null,itemSelector:"",allowsDragFrom:function(){return!0},allowsDropFrom:function(){return!0},events:{dragEnter:null,dragLeave:null,dragOver:null,drop:null}},i.extendOptions(n),(0,l.setComponentInstance)(i.options.id,i),e.InstancesByGroup[i.options.group]||(e.InstancesByGroup[i.options.group]=new Set),e.InstancesByGroup[i.options.group].add(i),i}return i(e,t),s(e,[{key:"destroy",value:function(){e.InstancesByGroup[this.options.group]&&e.InstancesByGroup[this.options.group].delete(this),(0,l.removeComponentInstance)(this.options.id),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"triggerDragEnter",value:function(t){this.trigger("dragEnter",t)}},{key:"triggerDragLeave",value:function(t){this.trigger("dragLeave",t)}},{key:"triggerDragOver",value:function(t){this.trigger("dragOver",t)}},{key:"triggerDrop",value:function(t){this.trigger("drop",t)}},{key:"allowsDragFrom",value:function t(e,n){var t=e&&e.options.group===this.options.group&&this.options.allowsDragFrom(e,n);return t}},{key:"allowsDropFrom",value:function t(e,n){var t=e&&e.options.group===this.options.group&&this.options.allowsDropFrom(e,n);return t}}]),e}(l.Component);c.InstancesByGroup={},c.forEachInstanceInGroup=function(t,e){var n=c.InstancesByGroup[t]||new Set,o=!0,r=!1,i=void 0;try{for(var s,a=n[Symbol.iterator]();!(o=(s=a.next()).done);o=!0){var l=s.value;l&&l instanceof c&&e(l)}}catch(t){r=!0,i=t}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return"undefined"!=typeof t},o=(e.toDataAttr=function(t){return"data-"+t},e.isFunction=function(t){return"function"==typeof t},e.last=function(t){if(t.length)return t[t.length-1]},e.getElementFromPoint=function(t){var e=t.clientX,o=t.clientY;if(n(e)&&n(o))return document.elementFromPoint(e,o)},e.getElementIndex=function(t,e){if(!t)return[].indexOf(t);var n=Array.from(t.parentElement.children);return e&&(n=n.filter(function(t){return t.matches(e)})),Array.from(n).indexOf(t)},e.preventDefault=function(t){t.preventDefault&&t.preventDefault(),t.originalEvent&&t.originalEvent.preventDefault()},e.convertToHtml=function(t){var e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild},e.htmlEncode=function(t){var e=/&/g,n=/</g,o=/"/g,r=/'/g,i=/>/g,s=String(t).replace(e,"&").replace(n,"<").replace(i,">").replace(o,""").replace(r,"'");return s},function(t){return t.ownerDocument.documentElement}),r=function(t){return t.ownerDocument.defaultView};e.getOffset=function(t){var e=o(t),n=e.clientTop,i=e.clientLeft,s=r(t),a=s.pageYOffset,l=s.pageXOffset,c=t.getBoundingClientRect(),u=c.top,p=c.left;return{top:u+a-n,left:p+l-i}},e.toClassSelector=function(t){return"."+t}},function(t,e,n){"use strict";function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.initComponent)(i.ColumnDraggable,(0,s.addComponentSuffix)(t,"ColumnDraggable"),e)}function r(t){(0,s.destroyComponent)((0,s.addComponentSuffix)(t,"ColumnDraggable"))}Object.defineProperty(e,"__esModule",{value:!0}),e.initColumnDraggable=o,e.destroyColumnDraggable=r;var i=n(40),s=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
26Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnDraggable=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(41),c=n(38),u=n(1),p=n(43),h=(0,c.toDataAttr)("field"),f=(0,c.toDataAttr)("text"),d={dragStatus:"k-drag-status",dropAllowed:"k-i-plus",dropForbidden:"k-i-cancel",dropClue:"k-grouping-dropclue"},v=function(t){if(t instanceof HTMLElement){var e=t.getAttribute(f)||t.getAttribute(h)||"";return(0,c.htmlEncode)(e)}return""},y=function(t){var e=(0,u.stringifyToStyle)({position:"absolute","z-index":2e4}),n=v(t),o=t.getAttribute(h)||"",r=t.getAttribute(f)||"",i=(0,c.convertToHtml)('<div class="k-header k-drag-clue" style="'+e+'" data-field="'+o+'" data-text="'+r+'">\n <span class="k-icon k-drag-status k-i-cancel k-icon-with-modifier">\n <span class="k-icon k-icon-modifier"></span>\n </span>\n '+n+"\n </div>");return i},g=function(t,e){if(!t||!e)return!1;var n=t.parentElement===e.parentElement;return n&&(0,c.getElementIndex)(t)>(0,c.getElementIndex)(e)};e.ColumnDraggable=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={parentSelector:".k-grid",draggableSourceSelector:".k-grid-header",draggable:{group:null,filter:"th.k-header:not(.k-group-cell):not(.k-hierarchy-cell)",ignore:".k-grid-filter, .k-checkbox, .k-column-resizer"}},i.onDraggableDrag=function(t){i.canDragToAnyDropTarget(t)||t.preventDefault()},i.onDraggableDrop=function(t){t.dropTarget.allowsDropFrom(t.sender,t)&&document.activeElement&&document.activeElement.blur(),i.destroyDropClue()},i.onDropTargetLeave=function(){i.showDisabledHint(),i.destroyDropClue()},i.onDropTargetOver=function(t){i.canDrop(t)?i.showDropAllowedIndicators(t):i.showDropForbiddenIndicators()},i.ignoreElementUnderCursor=function(t){var e=t.closest((0,c.toClassSelector)(d.dropClue));return Boolean(e)},i.extendOptions(n),i.createDraggable(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.destroyDropClue(),this.destroyDraggable(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"extendOptions",value:function(t){this.options=(0,u.deepExtend)(this.options,t)}},{key:"createDraggable",value:function(){var t=this.element.closest(this.options.parentSelector).querySelector(this.options.draggableSourceSelector);t&&(this.draggable=new l.Draggable(t,(0,u.deepExtend)(this.options.draggable,{hint:y,ignoreElementUnderCursor:this.ignoreElementUnderCursor,events:{drag:this.onDraggableDrag,drop:this.onDraggableDrop,dropTargetLeave:this.onDropTargetLeave,dropTargetOver:this.onDropTargetOver}})))}},{key:"destroyDraggable",value:function(){this.draggable&&this.draggable.destroy()}},{key:"canDragToAnyDropTarget",value:function t(e){var n=this,t=!1;return this.draggable.forEachDropTarget(function(o){t=t||o.allowsDragFrom(n.draggable,e)}),t}},{key:"canDrop",value:function(t){return t.dropTarget&&t.dropTarget.allowsDropFrom(this.draggable,t)}},{key:"showEnabledHint",value:function(){var t=this.draggable.hint;if(t){var e=t.querySelector((0,c.toClassSelector)(d.dragStatus));(0,u.removeClass)(d.dropForbidden,e),(0,u.addClass)(d.dropAllowed,e)}}},{key:"showDisabledHint",value:function(){var t=this.draggable.hint;if(t){var e=t.querySelector((0,c.toClassSelector)(d.dragStatus));(0,u.addClass)(d.dropForbidden,e),(0,u.removeClass)(d.dropAllowed,e)}}},{key:"createDropClue",value:function(){this.dropClue||(this.dropClue=new p.DropClue)}},{key:"destroyDropClue",value:function(){this.dropClue&&(this.dropClue.destroy(),this.dropClue=null)}},{key:"addDropClue",value:function(t){if(t.dropTarget&&t.elementUnderCursor){var e=t.elementUnderCursor.closest(t.dropTarget.options.itemSelector)||t.elementUnderCursor,
26n=g(e,t.draggable.originalCurrentTarget),o=this.getDropClueOffsetElement({elementUnderCursor:e,dropTargetItemSelector:t.dropTarget.options.itemSelector,dropTargeElement:t.dropTarget.element});if(o){this.createDropClue();var r=this.dropClue.getOffsetState(o,n);this.showDropClue(r)}}}},{key:"getDropClueOffsetElement",value:function(t){var e=t.elementUnderCursor,n=t.dropTargeElement,o=t.dropTargetItemSelector,r=e.closest(o),i=r;if(!r){var s=(0,c.last)(n.querySelectorAll(o));s&&(i=s)}return i}},{key:"showDropClue",value:function(t){var e=t.top,n=t.left,o=t.height;this.dropClue||this.createDropClue(),this.dropClue.setState({top:e,left:n,height:o}),this.dropClue.show()}},{key:"hideDropClue",value:function(){this.dropClue&&this.dropClue.hide()}},{key:"showDropAllowedIndicators",value:function(t){this.showEnabledHint(),this.addDropClue(t)}},{key:"showDropForbiddenIndicators",value:function(){this.showDisabledHint(),this.destroyDropClue()}}]),e}(u.Component)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Draggable=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(42),c=n(37),u=n(38),p=n(1),h=function(t,e){return!!(e&&t&&t.closest(e))};e.Draggable=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={events:{dragStart:null,drag:null,dragEnd:null,dropTargetEnter:null},filter:null,ignore:"",hint:null,group:null,ignoreElementUnderCursor:function(){return!1}},i.onPress=function(t){return i.dragStarted=!1,h(t.originalEvent.target,i.options.ignore)?void(i.originalCurrentTarget=null):void(h(t.originalEvent.target,i.options.filter)?((0,u.preventDefault)(t),i.originalCurrentTarget=t.originalEvent.target.closest(i.options.filter),i.triggerDragStart(t)):i.originalCurrentTarget=null)},i.onDrag=function(t){var e=(0,p.extend)(t,{originalCurrentTarget:i.originalCurrentTarget});if(i.originalCurrentTarget){if((0,u.preventDefault)(e),!i.dragStarted)return i.dragStarted=!0,void i.triggerDragStart(e);i.processDropTargetIntersection(e);var n=i.triggerDrag((0,p.extend)(e,{dropTarget:i.getLastDropTarget()}));n||(!i.hint&&i.options.hint&&(i.createHint(i.originalCurrentTarget),i.appendHint()),i.dragHint({top:e.pageY,left:e.pageX}),i.triggerDropTargetDragOver(e))}},i.onRelease=function(t){i.originalCurrentTarget&&((0,u.preventDefault)(t),i.processDropTargetDrop(t),i.destroyHint(),i.triggerDragEnd(t))},i.extendOptions(n),i.initDraggableEvents(t),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.destroyDraggableEvents(),this.destroyHint(),this.lastDropTargetId=null,this.originalCurrentTarget=null,a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"initDraggableEvents",value:function(){this.destroyDraggableEvents(),this.draggableEvents=new l.Draggable({press:this.onPress,drag:this.onDrag,release:this.onRelease}),this.draggableEvents.bindTo(this.element)}},{key:"destroyDraggableEvents",value:function(){this.draggableEvents&&this.draggableEvents.destroy&&this.draggableEvents.destroy()}},{key:"triggerDragStart",value:function(t){this.trigger("dragStart",t)}},{key:"triggerDrag",value:function(t){return this.trigger("drag",t)}},{key:"triggerDragEnd",value:function(t){this.trigger("dragEnd",t)}},{key:"trigger",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"trigger",this).call(this,t,(0,p.extend)(n,{originalCurrentTarget:this.originalCurrentTarget,elementUnderCursor:this.getElementUnderCursor(n)}))}},{key:"triggerDropTargetDragEnter",value:function(t,e){t&&(t.triggerDragEnter((0,p.extend)(e,{draggable:this})),this.triggerDropTargetEnter((0,p.extend)(e,{dropTarget:t})))}},{key:"triggerDropTargetEnter",value:function(t){this.trigger("dropTargetEnter",t)}},{key:"triggerDropTargetDragLeave",value:function(t,e){t&&(t.triggerDragLeave((0,p.extend)(e,{draggable:this})),this.triggerDropTargetLeave((0,p.extend)(e,{dropTarget:t})))}},{key:"triggerDropTargetLeave",value:function(t){this.trigger("dropTargetLeave",(0,p.extend)(t,{dropTarget:this.dropTarget}))}},{key:"triggerDropTargetDragOver",value:function(t){if(this.lastDropTargetId){var e=(0,p.getComponentInstance)(this.lastDropTargetId);if(!e)return;e.triggerDragOver((0,p.extend)(t,{draggable:this})),this.triggerDropTargetOver((0,p.extend)(t,{dropTarget:e}))}}},{key:"triggerDropTargetOver",value:function(t){this.trigger("dropTargetOver",t)}},{key:"triggerDropTargetDrop",value:function(t,e){var n=(0,p.extend)(e,{elementUnderCursor:this.getElementUnderCursor(e)});t&&(t.allowsDropFrom(this,n)&&t.triggerDrop((0,p.extend)(n,{draggable:this})),this.triggerDrop((0,p.extend)(n,{dropTarget:t})))}},{key:"triggerDrop",value:function(t){this.trigger("drop",t)}},{key:"processDropTargetIntersection",value:function(t){var e=this,n=this.getElementUnderCursor(t),o=!1;this.forEachDropTarget(function(r){var i=r.element.contains(n),s=(0,p.getComponentInstance)(e.lastDropTargetId);o=o||i,i&&e.lastDropTargetId!==r.options.id&&(e.triggerDropTargetDragLeave(s,t),e.lastDropTargetId=r.options.id,e.triggerDropTargetDragEnter(r,t))}),o||(this.triggerDropTargetDragLeave(this.getLastDropTarget(),t),this.lastDropTargetId=null)}},{key:"processDropTargetDrop",value:function(t){var e=this;this.forEachDropTarget(function(n){var o=e.getElementUnderCursor(t);n.element.contains(o)&&(e.lastDropTargetId=null,e.triggerDropTargetDrop(n,t))})}},{key:"createHint",value:function(t){this.hint=(0,u.isFunction)(this.options.hint)?this.options.hint(t):this.options.hint}},{key:"destroyHint",value:function(){this.hint&&(this.removeHint(),this.hint=null)}},{key:"showHint",value:function(){(0,p.showElement)(this.hint)}},{key:"hideHint",value:function(){(0,p.hideElement)(this.hint)}},{key:"appendHint",value:function(){document.body.appendChild(this.hint)}},{key:"removeHint",value:function(){document.body.removeChild(this.hint)}},{key:"dragHint",value:function(t){var e=t.top,n=t.left;this.setHintState({top:e,left:n})}},{key:"setHintState",value:function(t){var e=t.top,n=t.left;this.hint&&this.setHintPosition({top:e,left:n})}},{key:"setHintPosition",value:function(t){var e=t.top,n=void 0===e?0:e,o=t.left,r=void 0===o?0:o,i=this.hint.getBoundingClientRect(),s=i.width,a=i.height,l=n-a/2,c=r-s/2;this.hint.style.top=l+"px",this.hint.style.left=c+"px"}},{key:"getElementUnderCursor",value:function(t){var e=(0,u.getElementFromPoint)(t);if(this.hint&&this.hint.contains(e)){if(this.hideHint(),e=(0,u.getElementFromPoint)(t),this.options.ignoreElementUnderCursor(e)){var n=e;(0,p.hideElement)(n);var o=(0,u.getElementFromPoint)(t);o&&(e=o),(0,p.showElement)(n)}this.showHint()}return e}}
26,{key:"forEachDropTarget",value:function(t){c.DropTarget.forEachInstanceInGroup(this.options.group,t)}},{key:"getLastDropTarget",value:function(){return(0,p.getComponentInstance)(this.lastDropTargetId)}}]),e}(p.Component)},function(t,e){"use strict";function n(t){return t.type.match(l)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){return function(n){return e(t(n))}},r=function(t,e,n){return t.addEventListener&&t.addEventListener(e,n)},i=function(t,e,n){return t&&t.removeEventListener&&t.removeEventListener(e,n)},s=function(){},a=function(t){return t.preventDefault()},l=/touch/,c=2e3,u=function(t){var e=this,l=t.press;void 0===l&&(l=s);var u=t.drag;void 0===u&&(u=s);var p=t.release;void 0===p&&(p=s);var h=t.mouseOnly;void 0===h&&(h=!1),this._pressHandler=o(n,l),this._dragHandler=o(n,u),this._releaseHandler=o(n,p),this._ignoreMouse=!1,this._mouseOnly=h,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,c))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var n=t.which;n&&n>1||e._ignoreMouse||(r(document,"mousemove",e._mousemove),r(document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){i(document,"mousemove",e._mousemove),i(document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(r(document,"pointermove",e._pointermove),r(document,"pointerup",e._pointerup),r(document,"pointercancel",e._pointerup),r(document,"contextmenu",a),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(i(document,"pointermove",e._pointermove),i(document,"pointerup",e._pointerup),i(document,"pointercancel",e._pointerup),i(document,"contextmenu",a),e._releaseHandler(t))}};u.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},u.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},u.prototype._bindToCurrent=function(){var t=this._element;return this._usePointers()?void r(t,"pointerdown",this._pointerdown):(r(t,"mousedown",this._mousedown),void(this._mouseOnly||(r(t,"touchstart",this._touchstart),r(t,"touchmove",this._touchmove),r(t,"touchend",this._touchend))))},u.prototype._unbindFromCurrent=function(){var t=this._element;return this._usePointers()?(i(t,"pointerdown",this._pointerdown),i(document,"pointermove",this._pointermove),i(document,"pointerup",this._pointerup),i(document,"contextmenu",a),void i(document,"pointercancel",this._pointerup)):(i(t,"mousedown",this._mousedown),void(this._mouseOnly||(i(t,"touchstart",this._touchstart),i(t,"touchmove",this._touchmove),i(t,"touchend",this._touchend))))},u.prototype._usePointers=function(){return!this._mouseOnly&&u.supportPointerEvent(); 27},u.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},u.default=u,e.Draggable=u,e.default=u},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.DropClue=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(38),s=n(1);e.DropClue=function(){function t(e){o(this,t),this.options={appendTo:document.body,template:function(){var t=(0,s.stringifyToStyle)({position:"absolute","z-index":1e4});return'<div class="k-grouping-dropclue" style="'+t+'" />'}()},this.extendOptions(e),this.initElement(),this.append()}return r(t,[{key:"destroy",value:function(){this.remove()}},{key:"extendOptions",value:function(t){this.options=(0,s.extend)(this.options,t)}},{key:"initElement",value:function(){this.element=(0,i.convertToHtml)(this.options.template)}},{key:"append",value:function(){this.hide(),this.options.appendTo.appendChild(this.element)}},{key:"remove",value:function(){this.options.appendTo.removeChild(this.element),this.element=null}},{key:"show",value:function(){(0,s.showElement)(this.element)}},{key:"hide",value:function(){(0,s.hideElement)(this.element)}},{key:"setState",value:function(t){var e=t.top,n=t.left,o=t.height,r=t.visible;this.setPosition({top:e,left:n}),this.setVisibility(r),this.setSize({height:o})}},{key:"setSize",value:function(t){var e=t.height;this.element.style.height=e+"px"}},{key:"setVisibility",value:function(t){t?this.show():this.hide()}},{key:"setPosition",value:function(t){var e=t.top,n=void 0===e?0:e,o=t.left,r=void 0===o?0:o;this.element.style.top=n+"px",this.element.style.left=r+"px"}},{key:"getOffsetState",value:function(t,e){var n=(0,i.getOffset)(t),o=t.offsetWidth,r=t.offsetHeight;
27return{top:n.top,left:n.left+(e?o:0),height:r}}}]),t}()},function(t,e,n){"use strict";function o(t,e){(0,s.initComponent)(i.ColumnReorderable,(0,s.addComponentSuffix)(t,"ColumnReorderable"),e)}function r(t){(0,s.destroyComponent)((0,s.addComponentSuffix)(t,"ColumnReorderable"))}Object.defineProperty(e,"__esModule",{value:!0}),e.initColumnReorderable=o,e.destroyColumnReorderable=r;var i=n(45),s=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnReorderable=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(37),c=n(1),u=n(38),p=(0,u.toDataAttr)("reorderable");e.ColumnReorderable=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dropTarget:{itemSelector:"th.k-header:not(.k-group-cell):not(.k-hierarchy-cell)"}},i.allowsDragFrom=function(t){var e=Boolean(t.originalCurrentTarget.getAttribute(p)),n=i.dropTarget.element.querySelectorAll(i.options.dropTarget.itemSelector).length>1;return e&&n},i.allowsDropFrom=function(t,e){var n=e.elementUnderCursor.closest(i.options.dropTarget.itemSelector),o=t.originalCurrentTarget,r=Boolean(o.getAttribute(p));return r&&n&&n!==o},i.onDropTargetDrop=function(t){var e=t.draggable.originalCurrentTarget,n=t.elementUnderCursor.closest(i.options.dropTarget.itemSelector),o=(0,u.getElementIndex)(e,i.options.dropTarget.itemSelector),r=(0,u.getElementIndex)(n,i.options.dropTarget.itemSelector);document.activeElement&&document.activeElement.blur(),i.reorderColumn(o,r)},i.extendOptions(n),i.createDropTarget(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.destroyDropTarget(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"createDropTarget",value:function(){this.dropTarget=new l.DropTarget(this.element,(0,c.deepExtend)(this.options.dropTarget,{allowsDragFrom:this.allowsDragFrom,allowsDropFrom:this.allowsDropFrom,events:{drop:this.onDropTargetDrop}}))}},{key:"destroyDropTarget",value:function(){this.dropTarget&&this.dropTarget.destroy()}},{key:"reorderColumn",value:function(t,e){t>=0&&e>=0&&t!==e&&this.invokeMethodAsync(this.options.jsinterop.reorderColumn,{fromIndex:t,toIndex:e})}}]),e}(c.Component)},function(t,e,n){"use strict";function o(t,e){(0,s.initComponent)(i.ColumnResizable,(0,s.addComponentSuffix)(t,"ColumnResizable"),e)}function r(t){(0,s.destroyComponent)((0,s.addComponentSuffix)(t,"ColumnResizable"))}Object.defineProperty(e,"__esModule",{value:!0}),e.initColumnResizable=o,e.destroyColumnResizable=r;var i=n(47),s=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
27Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnResizable=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(48),c=n(1),u=n(38),p=Array.from,h=function(t){return parseFloat(t)+"px"},f=function(t,e){t.style.width=h(e)},d=function(t){var e=t.getBoundingClientRect().width;return e},v=function(t){return Boolean(t.style.width)},y=function(t,e){return Math.max(t,e)},g=function(t,e){t.style.left=h(e)},m=function(t,e){t.style.right=h(e)},b=function(t){var e=(0,c.hasAnyClass)(["k-grid-content-sticky","k-grid-header-sticky","k-grid-footer-sticky"],t);return e};e.ColumnResizable=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={parentSelector:".k-grid",columnSelector:"th.k-header:not(.k-group-cell):not(.k-hierarchy-cell)",contentTableSelector:".k-grid-table",contentRowSelector:"tr.k-master-row",contentCellSelector:"td:not(.k-group-cell):not(.k-hierarchy-cell)",footerRowSelector:"tr.k-group-footer",minResizableWidth:30,resizable:{draggable:{filter:".k-column-resizer"}},jsinterop:{resizeColumn:""}},i.onResizableResizeStart=function(t){i.setFixedWidths();var e=t.originalCurrentTarget.closest(i.options.columnSelector);i.setState({initialColumnWidth:d(e)})},i.onResizableResize=function(t){var e=t.originalCurrentTarget.closest(i.options.columnSelector),n=i.state.initialColumnWidth+t.initialDelta.x;t.delta.x>0&&n<=i.options.minResizableWidth||i.applyResizeDelta(e,t.delta.x)},i.onResizableResizeEnd=function(){i.invokeResizeColumn(i.state)},i.extendOptions(n),i.createResizable(),i.state={},i}return i(e,t),s(e,[{key:"destroy",value:function(){this.destroyResizable(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"createResizable",value:function(){this.resizable=new l.Resizable(this.element,(0,c.deepExtend)(this.options.resizable,{events:{resizeStart:this.onResizableResizeStart,resize:this.onResizableResize,resizeEnd:this.onResizableResizeEnd}}))}},{key:"destroyResizable",value:function(){this.resizable&&this.resizable.destroy()}},{key:"setFixedWidths",value:function(){var t=this.getHeaderColumns(),e=this.getHeaderTable(),n=this.getContentTable();if(!(t.every(v)&&v(e)&&v(n))){f(e,d(e)),f(n,d(n));for(var o=this.getHeaderCells(),r=[],i=0;i<o.length;i++){var s=d(o[i]);r.push(s)}for(var a=0;a<o.length;a++)this.resizeHeaderColumn(a,r[a]),this.resizeContentColumn(a,r[a])}}},{key:"applyResizeDelta",value:function(t,e){if(t){var n=(0,u.getElementIndex)(t,this.options.columnSelector);this.resizeColumn(n,d(t)+e)}}},{key:"resizeColumn",value:function(t,e){var n=this.getHeaderCells()[t];if(n&&!(t<0)){var o=y(e,this.options.minResizableWidth),r=o-d(n);this.resizeHeaderTable(r),this.resizeContentTable(r),this.resizeHeaderColumn(t,o),this.resizeContentColumn(t,o),this.resizeLockedColumns(),this.setState({index:t,width:h(o),tableWidth:h(d(this.getHeaderTable()))})}}},{key:"resizeHeaderColumn",value:function(t,e){var n=this.getHeaderColumnByIndex(t);f(n,e)}},{key:"resizeContentColumn",value:function(t,e){var n=this.getContentColumnByIndex(t);f(n,e)}},{key:"resizeHeaderTable",value:function(t){this.resizeTable(this.getHeaderTable(),t)}},{key:"resizeContentTable",value:function(t){this.resizeTable(this.getContentTable(),t)}},{key:"resizeTable",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t&&f(t,d(t)+e)}},{key:"resizeLockedColumns",value:function(){this.resizeLockedHeaderCells(),this.resizeLockedContentCells(),this.resizeLockedFooterCells()}},{key:"resizeLockedHeaderCells",value:function(){var t=this.getHeaderCells();this.setLockedCellsOffsets(t)}},{key:"resizeLockedContentCells",value:function(){var t=this.getContentRows();this.resizeLockedCellsForRows(t)}},{key:"resizeLockedFooterCells",value:function(){var t=this.getFooterRows();this.resizeLockedCellsForRows(t)}},{key:"resizeLockedCellsForRows",value:function(t){for(var e=0;e<t.length;e++){var n=t[e],o=n.querySelectorAll(this.options.contentCellSelector);this.setLockedCellsOffsets(o)}}},{key:"setLockedCellsOffsets",value:function(t){this.setLockedCellsOffsetLeft(t),this.setLockedCellsOffsetRight(t)}},{key:"setLockedCellsOffsetLeft",value:function(t){this.setLockedCellOffset(t,function(t,e){g(t,e)})}},{key:"setLockedCellsOffsetRight",value:function(t){this.setLockedCellOffset(t,function(t,e){m(t,e)},{iterateBackwards:!0})}},{key:"setLockedCellOffset",value:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.iterateBackwards,r=void 0!==o&&o,i=0,s=0;s<t.length;s++){var a=r?t.length-1-s:s,l=t[a];if(b(l)){var c=d(l);e(l,i),i+=c}}}},{key:"invokeResizeColumn",value:function(t){return this.invokeMethodAsync(this.options.jsinterop.resizeColumn,t)}},{key:"setState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.state=(0,c.extend)(this.state,t)}},{key:"getHeaderTable",value:function(){return this.element.querySelector("table")}},{key:"getContentTable",value:function(){return this.element.closest(this.options.parentSelector).querySelector(this.options.contentTableSelector)}},{key:"getHeaderColumnByIndex",value:function(t){return this.getHeaderColumns()[t]}},{key:"getHeaderColumns",value:function(){return this.getTableColumns(this.getHeaderTable())}},{key:"getHeaderCells",value:function(){return p(this.element.querySelectorAll(this.options.columnSelector))}},{key:"getContentColumnByIndex",value:function(t){return this.getContentColumns()[t]}},{key:"getContentColumns",value:function(){return this.getTableColumns(this.getContentTable())}},{key:"getTableColumns",value:function(t){var e=t.querySelector("colgroup").querySelectorAll("col:not(.k-group-col):not(.k-hierarchy-col)");return p(e)}},{key:"getContentRows",value:function(){return this.queryContentTable(this.options.contentRowSelector)}},{key:"getFooterRows",value:function(){return this.queryContentTable(this.options.footerRowSelector)}},{key:"queryContentTable",value:function(t){var e=this.getContentTable(),n=e.querySelectorAll(t);return p(n)}}]),e}(c.Component)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
27Object.defineProperty(e,"__esModule",{value:!0}),e.Resizable=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(41),c=n(1);e.Resizable=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={events:{resizeStart:null,resize:null,resizeEnd:null},draggable:{filter:""}},i.onDraggableDragStart=function(t){i.initialLocation={pageX:t.pageX,pageY:t.pageY},i.location={pageX:t.pageX,pageY:t.pageY},i.delta={x:0,y:0},i.initialDelta={x:0,y:0},i.trigger("resizeStart",t)},i.onDraggableDrag=function(t){i.setCursorStyle(t.sender.originalCurrentTarget.style.cursor),i.calculateInitialDelta(t),i.calculateDelta(t),i.setLocation(t),i.trigger("resize",t)},i.onDraggableDragEnd=function(t){i.resetCursorStyle(),i.trigger("resizeEnd",t)},i.extendOptions(n),i.createDraggable(t),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.destroyDraggable(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"createDraggable",value:function(){this.draggable=new l.Draggable(this.element,(0,c.deepExtend)(this.options.draggable,{events:{dragStart:this.onDraggableDragStart,drag:this.onDraggableDrag,dragEnd:this.onDraggableDragEnd}}))}},{key:"destroyDraggable",value:function(){this.draggable&&this.draggable.destroy()}},{key:"trigger",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"trigger",this).call(this,t,(0,c.extend)(n,{initialLocation:this.initialLocation,location:this.location,delta:this.delta,initialDelta:this.initialDelta}))}},{key:"calculateDelta",value:function(t){this.delta={x:t.pageX-this.location.pageX,y:t.pageY-this.location.pageY}}},{key:"calculateInitialDelta",value:function(t){this.initialDelta={x:t.pageX-this.initialLocation.pageX,y:t.pageY-this.initialLocation.pageY}}},{key:"setLocation",value:function(t){var e=t.pageX,n=t.pageY;this.location={pageX:e,pageY:n}}},{key:"setCursorStyle",value:function(t){t&&(document.body.style.cursor=t)}},{key:"resetCursorStyle",value:function(){document.body.style.cursor=""}}]),e}(c.Component)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(50);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var r=n(54);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var i=n(56);
27Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var s=n(58);Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.AutoComplete,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initAutoComplete=o;var r=n(51),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.AutoComplete=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=n(52),u=[l.Key.ARROWDOWN,l.Key.ARROWUP];e.AutoComplete=function(t){function e(t,n){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return i(e,t),s(e,[{key:"bindEvents",value:function(){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"bindEvents",this).call(this),this.navigationService.bind(u,this.onPopupKeys)}}]),e}(c.AutoCompleteBase)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.AutoCompleteBase=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=n(53),u="blur",p="focus";e.AutoCompleteBase=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={value:null},i.onBlur=function(t){var e=t.relatedTarget;return(0,l.ownsElement)(i.popupElement,e)||(0,l.ownsElement)(i.element,e)?void i.focusInput():void i.invokeBlur()},i.onFocus=function(){i.invokeFocus()},i.extendOptions(n),i.input=i.element.querySelector("input"),i.setValue(n.value),i.bindEvents(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this.input=null}},{key:"bindEvents",value:function(){this.input.addEventListener(u,this.onBlur),this.input.addEventListener(p,this.onFocus)}},{key:"unbindEvents",value:function(){this.input.removeEventListener(u,this.onBlur),this.input.removeEventListener(p,this.onFocus)}},{key:"setValue",value:function(t){this.input&&(this.input.value=t)}},{key:"focusInput",value:function(){this.input&&this.input.focus()}}]),e}(c.DropdownBase)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
27Object.defineProperty(e,"__esModule",{value:!0}),e.DropdownBase=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=[l.Key.ENTER,l.Key.ESC],u=[l.Key.HOME,l.Key.END];e.DropdownBase=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,popupId:null,jsinterop:{focus:null,blur:null,keydown:null}},i.onKeyDown=function(t){return i.invokeKeyDown(t),i.isClosed()},i.onPopupKeys=function(t){return!!i.isClosed()||(i.invokeKeyDown(t),!1)},i.invokeKeyDown=function(t){i.invokeMethodAsync(i.options.jsinterop.keydown,t.name)},i.invokeBlur=function(){i.invokeMethodAsync(i.options.jsinterop.blur)},i.invokeFocus=function(){i.invokeMethodAsync(i.options.jsinterop.focus)},i.extendOptions(n),i.popupElement=(0,l.getElementByDataId)(n.popupId),i.initNavigationService(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.destroyNavigationService(),this.popupElement=null,a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"initNavigationService",value:function(){this.navigationService=new l.NavigationService(this.element),this.navigationService.bind(c,this.onKeyDown),this.navigationService.bind(l.KeyModifiers.ALT+" "+l.Key.ARROWDOWN,this.onKeyDown),this.navigationService.bind(l.KeyModifiers.ALT+" "+l.Key.ARROWUP,this.onKeyDown),this.navigationService.bind(u,this.onPopupKeys)}},{key:"destroyNavigationService",value:function(){this.navigationService.destroy()}},{key:"isClosed",value:function(){return!this.popupElement||!this.popupElement.children[0].children.length}}]),e}(l.Component)},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.ComboBox,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initComboBox=o;var r=n(55),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ComboBox=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=n(52),u=[l.Key.ARROWDOWN,l.Key.ARROWUP];e.ComboBox=function(t){function e(t,n){return o(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return i(e,t),s(e,[{key:"bindEvents",value:function(){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"bindEvents",this).call(this),this.navigationService.bind(u,this.invokeKeyDown)}}]),e}(c.AutoCompleteBase)},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.DropDownList,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initDropDownList=o;var r=n(57),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
27Object.defineProperty(e,"__esModule",{value:!0}),e.DropDownList=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=n(53),u="blur",p="focus",h=[l.Key.ARROWDOWN,l.Key.ARROWUP];e.DropDownList=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.onBlur=function(t){var e=t.relatedTarget;return(0,l.ownsElement)(i.popupElement,e)?void i.element.focus():void i.invokeBlur()},i.onFocus=function(){i.invokeFocus()},i.bindEvents(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindEvents",value:function(){this.element.addEventListener(u,this.onBlur),this.element.addEventListener(p,this.onFocus),this.navigationService.bind(h,this.invokeKeyDown),this.navigationService.bind("printableKey",this.invokeKeyDown)}},{key:"unbindEvents",value:function(){this.element.removeEventListener(u,this.onBlur)}}]),e}(c.DropdownBase)},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.MultiSelect,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initMultiSelect=o;var r=n(59),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.MultiSelect=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(52),c=n(1),u="click";e.MultiSelect=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.onClick=function(t){t.target instanceof HTMLElement&&!t.target.closest(".k-button")&&!t.target.closest(".k-clear")&&(i.focusInput(),i.invokeClick())},i.bindMultiSelectEvents(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindMultiSelectEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindMultiSelectEvents",value:function(){this.element.addEventListener(u,this.onClick,!0),this.navigationService.bind([c.Key.ARROWDOWN,c.Key.ARROWUP],this.onPopupKeys),this.navigationService.bind([c.Key.ARROWLEFT,c.Key.ARROWRIGHT],this.onTagFocus.bind(this)),this.navigationService.bind([c.Key.BACKSPACE,c.Key.DELETE],this.onTagDelete.bind(this))}},{key:"unbindMultiSelectEvents",value:function(){this.element.removeEventListener(u,this.onClick,!0)}},{key:"onTagDelete",value:function(t){return!!this.input.value||(this.invokeKeyDown(t),!1)}},{key:"onTagFocus",value:function(t){return!!this.input.value||(this.invokeKeyDown(t),!1)}},{key:"invokeClick",value:function(){var t=this.options.jsinterop.click;this.invokeMethodAsync(t)}}]),e}(l.AutoCompleteBase)},function(t,e,n){"use strict";
27Object.defineProperty(e,"__esModule",{value:!0});var o=n(61);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.Drawer,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initDrawer=o;var r=n(62),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Drawer=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=[l.Key.ENTER,l.Key.ARROWDOWN,l.Key.ARROWUP],u=function(){return(0,l.delay)(20)};e.Drawer=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,jsinterop:{keydown:"",focusout:"",collapse:""},mode:"",duration:0},i.onMouseDown=function(t){var e=t.target;"overlay"!==i.options.mode||(0,l.isChild)(e,[i.element])||i.invokeCollapse()},i.onKeyDown=function(t){ 28i.invokeKeyDown(t)},i.onFocusOut=function(){i.invokeFocusOut()},i.extendOptions(n),i.bindEvents(),i.createNavigationService(),i}return i(e,t),s(e,[{key:"expandAsync",value:function(){var t=this;return u().then(function(){return t.onTransitionEnd()})}},{key:"collapseAsync",value:function(){var t=this;return u().then(function(){return t.onTransitionEnd()})}},{key:"destroy",value:function(){this.unbindEvents(),this.destroyNavigationService(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindEvents",value:function(){this.element.addEventListener("focusout",this.onFocusOut),document.addEventListener("mousedown",this.onMouseDown,!0)}},{key:"unbindEvents",value:function(){this.element.removeEventListener("focusout",this.onFocusOut),document.removeEventListener("mousedown",this.onMouseDown,!0)}},{key:"focusItem",value:function(t){var e=this.element.querySelector('[data-index="'+t+'"]');e instanceof HTMLElement&&e.focus()}},{key:"cancelCallback",value:function(){this.timer&&this.timer.cancel(),this.timer=null}},{key:"onTransitionEnd",value:function(){var t=this.options.duration;return this.timer=(0,l.createCancellableTimerPromise)(t),this.timer.promise}},{key:"createNavigationService",value:function(){this.navigationService=new l.NavigationService(this.element),this.navigationService.bind(c,this.onKeyDown)}},{key:"destroyNavigationService",value:function(){this.navigationService&&(this.navigationService.destroy(),this.navigationService=null)}},{key:"invokeKeyDown",value:function(t){this.invokeMethodAsync(this.options.jsinterop.keydown,t.name)}},{key:"invokeFocusOut",value:function(){this.invokeMethodAsync(this.options.jsinterop.focusout)}},{key:"invokeCollapse",value:function(){this.invokeMethodAsync(this.options.jsinterop.collapse)}}]),e}(l.Component)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(64);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.FilterMenu,t,e)}
28Object.defineProperty(e,"__esModule",{value:!0}),e.initFilterMenu=o;var r=n(65),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.FilterMenu=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c="focus",u="focusout";e.FilterMenu=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null},i.onKeyDown=function(t){i.invokeKeyDown(t)},i.onFocus=function(){i.invokeFocus()},i.onFocusOut=function(){i.invokeFocusOut()},i.extendOptions(n),i.bindEvents(),i.initNavigationService(),i}return i(e,t),s(e,[{key:"bindEvents",value:function(){this.element.addEventListener(c,this.onFocus),this.element.addEventListener(u,this.onFocusOut)}},{key:"unbindEvents",value:function(){this.element.removeEventListener(c,this.onFocus),this.element.removeEventListener(u,this.onFocusOut)}},{key:"initNavigationService",value:function(){this.navigationService=new l.NavigationService(this.element),this.navigationService.bind(l.KeyModifiers.ALT+" "+l.Key.ARROWDOWN,this.onKeyDown)}},{key:"destroy",value:function(){this.disableTabKeyTrap(),this.navigationService.destroy(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"enableTabKeyTrap",value:function(t){if(this.options.navigable){var e=(0,l.getElementByDataId)(t);this.formKeyTrap=new l.FormKeyTrap(e),this.formKeyTrap.enableKeyTrap()}}},{key:"disableTabKeyTrap",value:function(){this.formKeyTrap&&this.formKeyTrap.disableTabKeyTrap()}},{key:"invokeKeyDown",value:function(t){this.invokeMethodAsync(this.options.jsinterop.keydown,t.name)}},{key:"invokeFocus",value:function(){this.invokeMethodAsync(this.options.jsinterop.focus)}},{key:"invokeFocusOut",value:function(){this.invokeMethodAsync(this.options.jsinterop.focusout)}}]),e}(l.Component)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(67);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,s.initComponent)(i.Grid,t,e)}function r(t){(0,s.destroyComponent)(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.initGrid=o,e.destroyGrid=r;var i=n(68),s=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Grid=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=n(69),u={icon:"k-icon",header:"k-grid-header-wrap",content:"k-grid-content",hierarchyCell:"k-hierarchy-cell",groupRow:"k-grouping-row",masterRow:"k-master-row",checkbox:"k-checkbox",gridCheckbox:"k-gri
28d-checkbox"},p="mousedown",h="scroll";e.Grid=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,selectable:!1,incellEdit:!1,jsinterop:{selectRow:"",selectAll:"",deselectAll:"",removeFocus:"",blur:""}},i.onScroll=function(t){i.content===t.currentTarget&&i.setScrollLeft(t.currentTarget.scrollLeft)},i.onNavigationRemoveFocus=function(){i.removeFocus()},i.onNavigationBlur=function(){i.blur()},i.onMouseDown=function(t){t.shiftKey&&t.preventDefault()},i.extendOptions(n),i.content=i.getChildElement(u.content),i.header=i.getChildElement(u.header),i.adjustScrollbarPadding(),i.bindEvents(),i.createNavigationService(),i}return i(e,t),s(e,[{key:"getChildElement",value:function(t){return this.element.getElementsByClassName(t)[0]}},{key:"destroy",value:function(){this.unbindEvents(),this.destroyNavigationService(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindEvents",value:function(){this.content.addEventListener(h,this.onScroll),this.content.addEventListener(p,this.onMouseDown)}},{key:"unbindEvents",value:function(){this.content.removeEventListener(h,this.onScroll),this.content.removeEventListener(p,this.onMouseDown)}},{key:"adjustScrollbarPadding",value:function(){var t=(0,l.getScrollBarWidth)();0===t?this.header.style.borderRightWidth="0px":t-=1,this.header.parentElement.style.paddingRight=t+"px"}},{key:"setScrollLeft",value:function(t){this.header&&(this.header.scrollLeft=t)}},{key:"createNavigationService",value:function(){this.options.navigable&&(this.navigationService=new c.NavigationService(this.element,{events:{removeFocus:this.onNavigationRemoveFocus,blur:this.onNavigationBlur}}))}},{key:"destroyNavigationService",value:function(){this.navigationService&&(this.navigationService.destroy(),this.navigationService=null)}},{key:"focusCell",value:function(t){this.navigationService.focusCell(t)}},{key:"focusEditable",value:function(t){this.navigationService.focusEditable(t)}},{key:"focusFirstFocusable",value:function(t){this.navigationService.focusFirstFocusable(t)}},{key:"removeFocus",value:function(){this.invokeMethodAsync(this.options.jsinterop.removeFocus)}},{key:"blur",value:function(){this.invokeMethodAsync(this.options.jsinterop.blur)}}]),e}(l.Component)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationService=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1);e.NavigationService=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={events:{removeFocus:null,blur:null},rowSelector:function(t){return"tr[data-render-row-index='"+t+"']"},columnSelector:function(t){return"[data-col-index='"+t+"']"},groupRowClass:"k-grouping-row"},i.onClick=function(t){"input"===t.target.tagName.toLowerCase()&&t.stopPropagation()},i.onKeyDown=function(t){var e=[l.KeyCode.ARROWRIGHT,l.KeyCode.ARROWLEFT,l.KeyCode.ARROWUP,l.KeyCode.ARROWDOWN,l.KeyCode.PAGE_DOWN,l.KeyCode.PAGE_UP,l.KeyCode.HOME,l.KeyCode.END,l.KeyCode.SPACE].includes(t.keyCode),n=(0,l.hasClass)("k-checkbox",t.target)&&t.keyCode===l.KeyCode.SPACE;e&&!n&&(0,l.hasClass)("k-state-focused",t.target)&&(t.target.matches("td")||t.target.matches("th"))&&t.preventDefault()},i.onFocusOut=function(t){!t.relatedTarget||i.element.contains(t.relatedTarget)||t.relatedTarget.closest(".k-window")||t.relatedTarget.closest(".k-grid-filter-popup")?i.triggerBlur():i.triggerRemoveFocus()},i.extendOptions(n),i.bindEvents(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindEvents",value:function(){this.element.addEventListener("keydown",this.onKeyDown),this.element.addEventListener("click",this.onClick),this.element.addEventListener("focusout",this.onFocusOut)}},{key:"unbindEvents",value:function(){this.element.removeEventListener("keydown",this.onKeyDown),this.element.removeEventListener("click",this.onClick),this.element.removeEventListener("focusout",this.onFocusOut)}},{key:"focusCell",value:function(t){var e=t.rowIndex,n=t.columnIndex,o=this.getCell(e,n);o||(o=this.getGroupCell(e)),this.focusElement(o)}},{key:"focusElement",value:function(t){t instanceof HTMLElement&&t!==document.activeElement&&t.focus()}},{key:"focusEditable",value:function(t){var e=this,n=t.rowIndex,o=t.columnIndex;setTimeout(function(){var t=document.activeElement,r=t&&t.closest(".k-grid-edit-cell")?t.closest("tr"):null,i=e.getCell(n,o),s=i?i.closest("tr"):null;r&&r===s||e.focusCellChild(n,o,l.findEditable)},1)}},{key:"focusFirstFocusable",value:function(t){var e=this,n=t.rowIndex,o=t.columnIndex;setTimeout(function(){e.focusCellChild(n,o,l.findFocusable)},1)}},{key:"focusCellChild",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.findFocusable,o=this.getCell(t,e),r=o?n(o,!1):null;this.focusElement(r)}},{key:"getRow",value:function(t){var e=this.element.parentElement.closest(".k-grid");if(e&&e!==this.element){var n=this.element.querySelector(this.options.rowSelector(t));return n}var o=Array.from(this.element.querySelectorAll(this.options.rowSelector(t))).filter(function(t){return null===t.closest(".k-detail-row")});return o[0]}},{key:"getCell",value:function(t,e){var n=this.getRow(t);if(n){var o=n.querySelector(this.options.columnSelector(e));return o}}},{key:"getGroupRow",value:function(t){var e=this.getRow(t);return e&&(0,l.hasClass)(this.options.groupRowClass,e)?e:null}},{key:"getGroupCell",value:function(t){var e=this.getGroupRow(t);if(e)return e.querySelector("td[role='gridcell']")}},{key:"triggerRemoveFocus",value:function(){this.trigger("removeFocus")}},{key:"triggerBlur",value:function(){this.trigger("blur")}}]),e}(l.Component)},function(t,e,n){"use strict";
28Object.defineProperty(e,"__esModule",{value:!0});var o=n(71);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var r=n(113);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var i=n(116);Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var s=n(119);Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})});var a=n(121);Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})});var l=n(123);Object.keys(l).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,s.initComponent)(i.DateInput,t,e)}function r(t,e){var n=(0,s.getComponentInstance)(t);n&&n.updateValue(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initDateInput=o,e.updateDateInputValue=r;var i=n(72),s=n(1)},function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.DateInput=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),l=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},c=n(73),u=n(28),p=o(u),h=n(112),f=n(1),d=1,v="dragStart",y="mouseup",g="click",m="input",b="keydown",_="focus",x="blur";e.DateInput=function(t){function e(t,n){r(this,e);var o=new Date(n.selectedDate);isNaN(o.getTime())&&(o=null);var s=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));s.options={dotNetInstance:null,format:"yyyy-MM-dd",selectedDate:null,allowNulls:!1,cycleTime:!0,locale:null,jsinterop:{focus:"",blur:"",updateDate:"",enter:""}},s.onElementDragStart=function(t){t.preventDefault()},s.onElementMouseUp=function(t){t.preventDefault()},s.onElementClick=function(){s.setSelection(s.selectionByIndex(s.selection.start))},s.onElementInput=function(){if(s.element&&s.dateObject){var t=s.dateObject.getTextAndFormat(),e=t.text,n=t.format;s.currentFormat=n;var o=(0,h.approximateStringMatching)(e,s.currentFormat,s.element.value,s.selection.start),r=1===o.length&&"_"===o[0][1],i=!1;if(!r)for(var a=0;a<o.length;a++)i=s.dateObject.parsePart(o[a][0],o[a][1],s.resetSegmentValue).switchToNext;s.resetSegmentValue=!1,s.forceUpdate(),o.length&&"_"!==o[0][0]&&s.setSelection(s.selectionBySymbol(o[0][0])),(i||r)&&s.switchDateSegment(1),s.updateComponentValue()}},s.onElementFocus=function(){var t=s.options.jsinterop.focus;s.invokeMethodAsync(t)},s.onElementBlur=function(){s.resetSegmentValue=!0;var t=s.options.jsinterop.blur;s.invokeMethodAsync(t)},s.onElementKeyDown=function(t){var e=s.options.jsinterop.enter,n=!1;if(!t.altKey&&t.keyCode!==f.KeyCode.TAB){switch(t.keyCode){case f.KeyCode.ARROWLEFT:s.switchDateSegment(-1),n=!0;break;case f.KeyCode.ARROWUP:s.modifyDateSegmentValue(1,event),n=!0;break;case f.KeyCode.ARROWRIGHT:s.switchDateSegment(1),n=!0;break;case f.KeyCode.ARROWDOWN:s.modifyDateSegmentValue(-1,event),n=!0;break;case f.KeyCode.ENTER:s.invokeMethodAsync(e);break;case f.KeyCode.DELETE:case f.KeyCode.BACKSPACE:return s.options.allowNulls&&(s.dateObject.setValue(null),s.forceUpdate(),s.updateComponentValue()),void(n=!0);default:return}n&&t.preventDefault()}},s.extendOptions(n);var a=s.element.getAttribute("data-id");
28return s.extendCulture(a),s.dateObject=new c.DateObject(p,"formatPattern",n.format,a,n.cycleTime),s.dateObject.setValue(o),s.setTextAndFormat(),s.bindEvents(),s.resetSegmentValue=!0,s}return s(e,t),a(e,[{key:"extendCulture",value:function(t){var e=this.options;e.locale.name=t;var n=(0,f.deepExtend)({},p.localeInfo("en"),e.locale);p.setData(n)}},{key:"destroy",value:function(){this.unbindEvents(),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this.dateObject=null}},{key:"bindEvents",value:function(){this.element.addEventListener(v,this.onElementDragStart),this.element.addEventListener(g,this.onElementClick),this.element.addEventListener(y,this.onElementMouseUp),this.element.addEventListener(m,this.onElementInput),this.element.addEventListener(b,this.onElementKeyDown),this.element.addEventListener(_,this.onElementFocus),this.element.addEventListener(x,this.onElementBlur)}},{key:"unbindEvents",value:function(){this.element.removeEventListener(v,this.onElementDragStart),this.element.removeEventListener(y,this.onElementMouseUp),this.element.removeEventListener(g,this.onElementClick),this.element.removeEventListener(m,this.onElementInput),this.element.removeEventListener(b,this.onElementKeyDown),this.element.removeEventListener(_,this.onElementFocus),this.element.removeEventListener(x,this.onElementBlur)}},{key:"setSelection",value:function(t){this._lastSelectedSymbol=this.currentFormat[t.start],this.element&&document.activeElement===this.element&&this.element.setSelectionRange(t.start,t.end)}},{key:"selectionBySymbol",value:function(t){for(var e=-1,n=0,o=0;o<this.currentFormat.length;o++)this.currentFormat[o]===t&&(n=o+1,e===-1&&(e=o));return e<0&&(e=0),{start:e,end:n}}},{key:"selectionByIndex",value:function(t){for(var e={start:t,end:t},n=t,o=t-1;n<this.currentFormat.length||o>=0;n++,o--){if(n<this.currentFormat.length&&"_"!==this.currentFormat[n]){e=this.selectionBySymbol(this.currentFormat[n]);break}if(o>=0&&"_"!==this.currentFormat[o]){e=this.selectionBySymbol(this.currentFormat[o]);break}}return e}},{key:"switchDateSegment",value:function(t){var e=this.selection,n=e.start,o=e.end;if(n<o&&this.currentFormat[n]!==this.currentFormat[o-1])return this.setSelection(this.selectionByIndex(t>0?n:o-1)),void(this.resetSegmentValue=!0);for(var r=this.currentFormat[n],i=n+t;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===r||"_"===this.currentFormat[i]);)i+=t;if("_"!==this.currentFormat[i]){for(var s=i;s>=0&&s<this.currentFormat.length&&this.currentFormat[s]===this.currentFormat[i];)s+=t;i>s&&(s+1!==n||i+1!==o)?(this.setSelection({start:s+1,end:i+1}),this.resetSegmentValue=!0):i<s&&(i!==n||s!==o)&&(this.setSelection({start:i,end:s}),this.resetSegmentValue=!0)}}},{key:"modifyDateSegmentValue",value:function(t){if(this.dateObject){var e=this.currentFormat[this.selection.start],n=d*t;this.dateObject.modifyPart(e,n),this.forceUpdate(),this.setSelection(this.selectionBySymbol(e)),this.updateComponentValue()}}},{key:"updateValue",value:function(t){var e=new Date(t);isNaN(e.getTime())&&(e=null),this.dateObject.setValue(e),this.forceUpdate()}},{key:"updateComponentValue",value:function(){var t=this.options.jsinterop.updateDate;this.invokeMethodAsync(t,this.dateObject.getFormattedDate("yyyy-MM-dd HH:mm:ss"))}},{key:"forceUpdate",value:function(){this.setTextAndFormat(),this.setElementValue(this.currentText)}},{key:"setTextAndFormat",value:function(){var t=this.dateObject.getTextAndFormat(),e=t.text,n=t.format;this.currentFormat=n,this.currentText=e}},{key:"setElementValue",value:function(t){this.element.value=t}},{key:"selection",get:function(){var t={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(t={start:this.element.selectionStart,end:this.element.selectionEnd}),t}}]),e}(f.Component)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.DateObject=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(74),s=n(111),a=n(112);e.DateObject=function(){function t(e,n,r,s,a){o(this,t),this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=[],this.typedMonthPart="",this.knownParts="adHhmMsEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y"},this._value=(0,i.getDate)(new Date),this.intl=e,this.formatPlaceholder=n||"wide",this.format=r,this.localeId=s||"en",this.cycleTime=a,this.monthNames=this.allFormatedMonths(this.localeId)}return r(t,[{key:"value",get:function(){return this._value}}]),r(t,[{key:"setValue",value:function(t){t?(0,i.isEqual)(t,this._value)||(this._value=(0,i.cloneDate)(t),this.modifyExisting(!0)):(this._value=(0,i.getDate)(new Date),this.modifyExisting(!1))}},{key:"hasValue",value:function(){var t=this,e=function(e,n){return e||"literal"!==n.type&&"dayperiod"!==n.type&&t.getExisting(n.pattern[0])};return this.intl.splitDateFormat(this.format,this.localeId).reduce(e,!1)}},{key:"getDateObject",value:function(){for(var t=0;t<this.knownParts.length;t++)if(!this.getExisting(this.knownParts[t]))return null;return(0,i.cloneDate)(this.value)}},{key:"getFormattedDate",value:function(t){return this.intl.formatDate(this.getDateObject(),t,this.localeId)}},{key:"getTextAndFormat",value:function(){var t=this.intl.formatDate(this.value,this.format,this.localeId),e=this.dateFormatString(this.value,this.format);
28return this.merge(t,e)}},{key:"modifyExisting",value:function(t){for(var e=this.dateFormatString(this.value,this.format).symbols,n=0;n<e.length;n++)this.setExisting(e[n],t)}},{key:"getExisting",value:function(t){switch(t){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;default:return!0}}},{key:"setExisting",value:function(t,e){switch(t){case"y":this.year=e,e===!1&&this._value.setFullYear((new Date).getFullYear());break;case"M":this.month=e,e===!1&&this._value.setMonth(0);break;case"d":this.date=e;break;case"h":case"H":this.hours=e;break;case"m":this.minutes=e;break;case"s":this.seconds=e;break;default:return}}},{key:"modifyPart",value:function(t,e){var n=(0,i.cloneDate)(this.value),o=!1;switch(t){case"y":n.setFullYear(n.getFullYear()+e);break;case"M":n=(0,i.addMonths)(this.value,e);break;case"d":case"E":n.setDate(n.getDate()+e);break;case"h":case"H":n.setHours(n.getHours()+e),o=!0;break;case"m":n.setMinutes(n.getMinutes()+e),o=!0;break;case"s":n.setSeconds(n.getSeconds()+e),o=!0;break;case"a":n.setHours(n.getHours()+12*e),o=!0}o&&!this.cycleTime&&n.getDate()!==this._value.getDate()&&(n.setDate(this._value.getDate()),n.setMonth(this._value.getMonth()),n.setFullYear(this._value.getFullYear())),this.setExisting(t,!0),this._value=n}},{key:"parsePart",value:function(t,e,n){if(!e)return this.resetLeadingZero(),this.setExisting(t,!1),{value:null,switchToNext:!1};for(var o=this.intl.formatDate(this.value,this.format,this.localeId),r=this.dateFormatString(this.value,this.format),s=r.symbols,a=!1,l="",c="",u="",p=0;p<o.length;p++)s[p]===t?(c+=this.getExisting(t)?o[p]:"0",a=!0):a?u+=o[p]:l+=o[p];var h=c.length-3,f=null,d=this.matchMonth(e),v=this.matchDayPeriod(e,t),y="0"===e,g=this.leadingZero||{};if(y){var m=parseInt(n?e:c+e,10);0!==m||this.isAbbrMonth(r.partMap,t)||this.incrementLeadingZero(t)}else this.resetLeadingZero();for(var b=Math.max(0,h);b<=c.length;b++){var _=n?e:c.substring(b)+e,x=parseInt(_,10);if(f=this.intl.parseDate(l+_+u,this.format,this.localeId),!f&&!isNaN(x)&&!isNaN(parseInt(e,10))){if("M"===t&&!d){var w=x-1;w>-1&&w<12&&(f=(0,i.cloneDate)(this.value),f.setMonth(w),f.getMonth()!==w&&(f=(0,i.lastDayOfMonth)((0,i.addMonths)(f,-1))))}"y"===t&&(f=(0,i.createDate)(parseInt(_,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&f.getDate()!==this.value.getDate()&&(f=(0,i.lastDayOfMonth)((0,i.addMonths)(f,-1))))}if(f){var k=this.partPattern(r.partMap,t).pattern,S=this.intl.parseDate(""+l+this.peek(_,k)+u,this.format,this.localeId);this._value=f,this.setExisting(t,!0);var O=null===S||g[t]&&k.length<=_.length;return{value:this.value,switchToNext:O}}}return d&&(f=this.intl.parseDate(l+d+u,this.format,this.localeId))?(this._value=f,this.setExisting(t,!0),{value:this.value,switchToNext:!1}):v&&(f=this.intl.parseDate(l+v+u,this.format))?(this._value=f,{value:this.value,switchToNext:!0}):(y&&this.setExisting(t,!1),{value:null,switchToNext:!1})}},{key:"symbolMap",value:function(t){return this.intl.splitDateFormat(this.format,this.localeId).reduce(a.dateSymbolMap,{})[t]}},{key:"resetLeadingZero",value:function(){var t=null!==this.leadingZero;return this.leadingZero=null,t}},{key:"incrementLeadingZero",value:function(t){var e=this.leadingZero||{};e[t]=(e[t]||0)+1,this.leadingZero=e}},{key:"isAbbrMonth",value:function(t,e){var n=this.partPattern(t,e);return"month"===n.type&&n.names}},{key:"partPattern",value:function(t,e){return t.filter(function(t){return t.pattern.indexOf(e)!==-1})[0]}},{key:"peek",value:function(t,e){var n=t.replace(/^0*/,"")+"0";return(0,a.padZero)(e.length-n.length)+n}},{key:"matchMonth",value:function(t){if(this.typedMonthPart+=t.toLowerCase(),0===this.monthNames.length)return"";for(;this.typedMonthPart.length>0;){for(var e=0;e<this.monthNames.length;e++)if(0===this.monthNames[e].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[e];
28var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}},{key:"matchDayPeriod",value:function(t,e){var n=t.toLowerCase();if("a"===e&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""}},{key:"allFormatedMonths",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",e=this.intl.splitDateFormat(this.format,this.localeId),n=0;n<e.length;n++)if("month"===e[n].type&&e[n].names)return this.intl.dateFormatNames(t,e[n].names);return[]}},{key:"dateFormatString",value:function(t,e){for(var n=this.intl.splitDateFormat(e,this.localeId),o=[],r=[],i=0;i<n.length;i++)for(var a=this.intl.formatDate(t,{pattern:n[i].pattern},this.localeId).length;a>0;)o.push(this.symbols[n[i].pattern[0]]||"_"),r.push(n[i]),a--;var l=new s.Mask;return l.symbols=o.join(""),l.partMap=r,l}},{key:"merge",value:function(t,e){for(var n="",o="",r=e.symbols,i=r.length-1;i>=0;i--)if(this.knownParts.indexOf(r[i])===-1||this.getExisting(r[i]))n=t[i]+n,o=r[i]+o;else{for(var s=r[i];i>=0&&s===r[i];)i--;for(i++,n=this.leadingZero&&this.leadingZero[s]?"0"+n:this.dateFieldName(e.partMap[i])+n;o.length<n.length;)o=r[i]+o}return{text:n,format:o}}},{key:"dateFieldName",value:function(t){var e=this.formatPlaceholder||"wide";return e[t.type]?e[t.type]:"formatPattern"===e?t.pattern:this.intl.dateFieldName(Object.assign(t,{nameType:e}))}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(75);o.__exportStar(n(76),e),o.__exportStar(n(79),e),o.__exportStar(n(82),e),o.__exportStar(n(83),e),o.__exportStar(n(85),e),o.__exportStar(n(86),e),o.__exportStar(n(77),e),o.__exportStar(n(78),e),o.__exportStar(n(81),e),o.__exportStar(n(87),e),o.__exportStar(n(89),e),o.__exportStar(n(88),e),o.__exportStar(n(90),e),o.__exportStar(n(91),e),o.__exportStar(n(92),e),o.__exportStar(n(95),e),o.__exportStar(n(97),e),o.__exportStar(n(98),e),o.__exportStar(n(99),e),o.__exportStar(n(100),e),o.__exportStar(n(101),e),o.__exportStar(n(102),e),o.__exportStar(n(93),e),o.__exportStar(n(96),e),o.__exportStar(n(104),e),o.__exportStar(n(105),e),o.__exportStar(n(80),e),o.__exportStar(n(106),e),o.__exportStar(n(107),e),o.__exportStar(n(108),e),o.__exportStar(n(109),e),o.__exportStar(n(110),e)},function(t,e,n){var o,r;(function(n){/*! ***************************************************************************** 29 Copyright (c) Microsoft Corporation. All rights reserved. 30 Licensed under the Apache License, Version 2.0 (the "License"); you may not use 31 this file except in compliance with the License. You may obtain a copy of the 32 License at http://www.apache.org/licenses/LICENSE-2.0 33 34 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 35 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 36 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 37 MERCHANTABLITY OR NON-INFRINGEMENT. 38 39 See the Apache Version 2.0 License for specific language governing permissions 40 and limitations under the License. 41 ***************************************************************************** */ 42var i,s,a,l,c,u,p,h,f,d,v,y,g,m,b,_,x,w,k,S;!function(i){function s(t,e){return t!==a&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(n,o){return t[n]=e?e(n,o):o}}var a="object"==typeof n?n:"object"==typeof self?self:"object"==typeof this?this:{};o=[e],r=function(t){i(s(a,s(t)))}.apply(e,o),!(void 0!==r&&(t.exports=r))}(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};i=function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)},s=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},a=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o
42]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n},l=function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t,e){return function(n,o){e(n,o,t)}},u=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t,e,n,o){return new(n||(n=Promise))(function(r,i){function s(t){try{l(o.next(t))}catch(t){i(t)}}function a(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(s,a)}l((o=o.apply(t,e||[])).next())})},h=function(t,e){function n(t){return function(e){return o([t,e])}}function o(n){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,i&&(s=2&n[0]?i.return:n[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,n[1])).done)return s;switch(i=0,s&&(n=[2&n[0],s.value]),n[0]){case 0:case 1:s=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,i=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(s=l.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){l.label=n[1];break}if(6===n[0]&&l.label<s[1]){l.label=s[1],s=n;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(n);break}s[2]&&l.ops.pop(),l.trys.pop();continue}n=e.call(t,l)}catch(t){n=[6,t],i=0}finally{r=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var r,i,s,a,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a},f=function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},d=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},v=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},y=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t},g=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var o=Array(t),r=0,e=0;e<n;e++)for(var i=arguments[e],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},m=function(t){return this instanceof m?(this.v=t,this):new m(t)},b=function(t,e,n){function o(t){u[t]&&(c[t]=function(e){return new Promise(function(n,o){p.push([t,e,n,o])>1||r(t,e)})})}function r(t,e){try{i(u[t](e))}catch(t){l(p[0][3],t)}}function i(t){t.value instanceof m?Promise.resolve(t.value.v).then(s,a):l(p[0][2],t)}function s(t){r("next",t)}function a(t){r("throw",t)}function l(t,e){t(e),p.shift(),p.length&&r(p[0][0],p[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c,u=n.apply(t,e||[]),p=[];return c={},o("next"),o("throw"),o("return"),c[Symbol.asyncIterator]=function(){return this},c},_=function(t){function e(e,r){n[e]=t[e]?function(n){return(o=!o)?{value:m(t[e](n)),done:"return"===e}:r?r(n):n}:r}var n,o;return n={},e("next"),e("throw",function(t){throw t}),e("return"),n[Symbol.iterator]=function(){return this},n},x=function(t){function e(e){o[e]=t[e]&&function(o){return new Promise(function(r,i){o=t[e](o),n(r,i,o.done,o.value)})}}function n(t,e,n,o){Promise.resolve(o).then(function(e){t({value:e,done:n})},e)}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t[Symbol.asyncIterator];return r?r.call(t):(t="function"==typeof d?d(t):t[Symbol.iterator](),o={},e("next"),e("throw"),e("return"),o[Symbol.asyncIterator]=function(){return this},o)},w=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},k=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},S=function(t){return t&&t.__esModule?t:{default:t}},t("__extends",i),t("__assign",s),t("__rest",a),t("__decorate",l),t("__param",c),t("__metadata",u),t("__awaiter",p),t("__generator",h),t("__exportStar",f),t("__values",d),t("__read",v),t("__spread",y),t("__spreadArrays",g),t("__await",m),t("__asyncGenerator",b),t("__asyncDelegator",_),t("__asyncValues",x),t("__makeTemplateOb
42ject",w),t("__importStar",k),t("__importDefault",S)})}).call(e,function(){return this}())},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(77),r=n(78);e.addDays=function(t,e){var n=r.cloneDate(t);return n.setDate(n.getDate()+e),o.adjustDST(n,t.getHours())}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(78);e.adjustDST=function(t,e){var n=o.cloneDate(t);return 0===e&&23===n.getHours()&&n.setHours(n.getHours()+2),n}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cloneDate=function(t){return t?new Date(t.getTime()):null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(77),r=n(78),i=n(80),s=12,a=function(t,n){return t.getMonth()!==n?i.lastDayOfMonth(e.addMonths(t,-1)):t};e.addMonths=function(t,e){var n=r.cloneDate(t),i=(n.getMonth()+e)%s,l=(s+i)%s;return n.setMonth(n.getMonth()+e),a(o.adjustDST(n,t.getHours()),l)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(76),r=n(81);e.lastDayOfMonth=function(t){var e=r.createDate(t.getFullYear(),t.getMonth()+1,1,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds());return o.addDays(e,-1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(77);e.createDate=function(t,e,n,r,i,s,a){void 0===r&&(r=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===a&&(a=0);var l=new Date(t,e,n,r,i,s,a);return t>-1&&t<100&&l.setFullYear(l.getFullYear()-1900),o.adjustDST(l,r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(76);e.addWeeks=function(t,e){return o.addDays(t,7*e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(77),r=n(84);e.addYears=function(t,e){return o.adjustDST(r.setYear(t,t.getFullYear()+e),t.getHours())}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(79),r=n(81),i=n(80);e.setYear=function(t,e){var n=t.getMonth(),s=r.createDate(e,n,t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds());return s.getMonth()===n?s:i.lastDayOfMonth(o.addMonths(s,-1))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(83);e.addDecades=function(t,e){return o.addYears(t,10*e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(83);e.addCenturies=function(t,e){return o.addYears(t,100*e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(88),r=n(77),i=n(78);e.dayOfWeek=function(t,e,n){void 0===n&&(n=o.Direction.Forward);var s=i.cloneDate(t),a=(e-s.getDay()+7*n)%7;return s.setDate(s.getDate()+a),r.adjustDST(s,t.getHours())}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n;!function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"}(n=e.Direction||(e.Direction={}))},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n;!function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(n=e.Day||(e.Day={}))},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.durationInMonths=function(t,e){return 12*(e.getFullYear()-t.getFullYear())+(e.getMonth()-t.getMonth())}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.durationInYears=function(t,e){return e.getFullYear()-t.getFullYear()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(93);e.durationInDecades=function(t,e){return(o.firstYearOfDecade(e).getFullYear()-o.firstYearOfDecade(t).getFullYear())/10}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(94);e.firstYearOfDecade=function(t){return o.normalizeYear(t,function(t){return t-t%10})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(84);e.normalizeYear=function(t,e){return o.setYear(t,e(t.getFullYear()))}},function(t,e,n){"use strict";
42Object.defineProperty(e,"__esModule",{value:!0});var o=n(96);e.durationInCenturies=function(t,e){return(o.firstDecadeOfCentury(e).getFullYear()-o.firstDecadeOfCentury(t).getFullYear())/100}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(94);e.firstDecadeOfCentury=function(t){return o.normalizeYear(t,function(t){return t-t%100})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(88),r=n(87);e.nextDayOfWeek=function(t,e){return r.dayOfWeek(t,e,o.Direction.Forward)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(88),r=n(87);e.prevDayOfWeek=function(t,e){return r.dayOfWeek(t,e,o.Direction.Backward)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(81);e.getDate=function(t){return o.createDate(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(78),r=n(89);e.firstDayInWeek=function(t,e){void 0===e&&(e=r.Day.Sunday);for(var n=o.cloneDate(t);n.getDay()!==e;)n.setDate(n.getDate()-1);return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(81);e.firstDayOfMonth=function(t){return o.createDate(t.getFullYear(),t.getMonth(),1,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(103);e.firstMonthOfYear=function(t){return o.setMonth(t,0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(79),r=n(81),i=n(80);e.setMonth=function(t,e){var n=t.getDate(),s=r.createDate(t.getFullYear(),e,n,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds());return s.getDate()===n?s:i.lastDayOfMonth(o.addMonths(s,-1))}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(t,e){return!t&&!e||t&&e&&t.getTime()===e.getTime()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(99),r=n(104);e.isEqualDate=function(t,e){return!t&&!e||t&&e&&r.isEqual(o.getDate(t),o.getDate(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(103);e.lastMonthOfYear=function(t){return o.setMonth(t,11)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(94);e.lastYearOfDecade=function(t){return o.normalizeYear(t,function(t){return t-t%10+9})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(94);e.lastDecadeOfCentury=function(t){return o.normalizeYear(t,function(t){return t-t%100+90})}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MS_PER_DAY=864e5},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(89),r=n(76),i=n(81),s=n(98),a=n(109),l=function(t,e){return e!==o.Day.Monday?r.addDays(s.prevDayOfWeek(t,e),4):r.addDays(t,4-(t.getDay()||7))},c=function(t,e){var n=i.createDate(t.getFullYear(),0,1,-6),o=l(t,e),r=o.getTime()-n.getTime(),s=Math.floor(r/a.MS_PER_DAY);return 1+Math.floor(s/7)};e.weekInYear=function(t,e){void 0===e&&(e=o.Day.Monday);var n=r.addDays(t,-7),i=r.addDays(t,7),s=c(t,e);return 0===s?c(n,e)+1:53===s&&c(i,e)>1?1:s}},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});e.Mask=function t(){n(this,t),this.symbols=""}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.defaultFormat="d",e.defaultFormatPlaceholder="wide",e.padZero=function(t){return new Array(Math.max(t,0)).fill("0").join("")},e.approximateStringMatching=function(t,e,n,o){var r=t[o+t.length-n.length],i=t.substring(0,o+t.length-n.length),s=n.substring(0,o),a=[];if(i===s&&o>0)return a.push([e[o-1],s[o-1]]),a;if(0===i.indexOf(s)&&(0===s.length||e[s.length-1]!==e[s.length])){var l="";1===s.length&&a.push([e[0],s[0]]);for(var c=s.length;c<i.length;c++)e[c]!==l&&"_"!==e[c]&&(l=e[c],a.push([l,""]));return a}if(0===s.indexOf(i)||"_"===e[o-1]){for(var u=e[0],p=Math.max(0,i.length-1);p<e.length;p++)if("_"!==e[p]){u=e[p];break}return[[u,s[o-1]]]}return" "===s[s.length-1]||s[s.length-1]===r?[[e[o-1],"_"]]:[[e[o-1],s[o-1]]]},e.dateSymbolMap=function(t,e){return t[e.pattern[0]]=e.type,t},e.isInRange=function(t,e,n){return null===t||!(e&&e>t||n&&n<t)}
42,e.invalidClasses=["k-state-invalid"],e.wrapperClasses=["k-widget","k-dateinput"]},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.DatePicker,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initDatePicker=o;var r=n(114),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.DatePicker=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(115);e.DatePicker=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,popupElement:null,jsinterop:{close:"",mousedown:""}},i.extendOptions(n),i.bindEvents(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(l.PickerBase)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.PickerBase=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1);e.PickerBase=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.onToggleElementClick=function(t){t.preventDefault()},i.onToggleElementMouseDown=function(){var t=i.options.jsinterop.mousedown;i.invokeMethodAsync(t)},i.onPopupKeyDown=function(t){(t.keyCode===l.KeyCode.ESCAPE||t.keyCode===l.KeyCode.ARROWUP&&t.altKey)&&(i.invokeClose(),i.focusInput(),t.stopPropagation())},i.closePopup=function(){return i.invokeClose(),!1},i.openPopup=function(){return i.invokeOpen(),!1},i.onInputFocus=function(){i.invokeClose()},i.input=i.element.getElementsByClassName("k-input")[0],i.toggleElement=i.element.querySelector(".k-select"),i.popupElement=(0,l.getElementByDataId)(n.popupId),i.initTabKeyTrap(),i.initNavigationService(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.tabKeyTrap.destroy(),this.navigationService.destroy(),this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this.input=this.popupElement=this.selectArrow=null,this.tabKeyTrap=null}},{key:"initNavigationService",value:function(){this.navigationService=new l.NavigationService(this.element),this.navigationService.bind(l.KeyModifiers.ALT+" "+l.Key.ARROWDOWN,this.openPopup),this.navigationService.bind(l.KeyModifiers.ALT+" "+l.Key.ARROWUP,this.closePopup)}},{key:"initTabKeyTrap",value:function(){this.tabKeyTrap=new l.TabKeyTrap(this.popupElement)}},{key:"bindEvents",value:function(){this.input.addEventListener("focus",this.onInputFocus),this.toggleElement.addEventListener("click",this.onToggleElementClick),this.toggleElement.addEventListener("mousedown",this.onToggleElementMouseDown),this.popupElement.addEventListener("keydown",this.onPopupKeyDown,!0),this.tabKeyTrap.enableKeyTrap()}},{key:"unbindEvents",value:function(){this.input.removeEventListener("focus",this.onInputFocus),this.toggleElement.removeEventListener("click",this.onToggleElementClick),this.toggleElement.removeEventListener("mousedown",this.onToggleElementMouseDown),this.popupElement.removeEventListener("keydown",this.onPopupKeyDown,!0)}},{key:"focusInput",value:function(){var t=this;setTimeout(function(){t.input.focus()},100)}},{key:"invokeClose",value:function(){this.invokeMethodAsync(this.options.jsinterop.close)}},{key:"invokeOpen",value:function(){this.invokeMethodAsync(this.options.jsinterop.open)}}]),e}(l.Component)},function(t,e,n){"use strict";function o(t,e){(0,c.initComponent)(l.TimePicker,t,e)}function r(t){var e=(0,c.getComponentInstance)(t);e&&e.focusInput()}function i(t,e){(0,c.initComponent)(a.TimePickerCarousel,t,e)}function s(t,e){var n=(0,c.getComponentInstance)(t);n&&n.setSelectedIndex(e)}
42Object.defineProperty(e,"__esModule",{value:!0}),e.initTimePicker=o,e.focusTimePickerInput=r,e.initTimeCarousel=i,e.setCarouselSelectedIndex=s;var a=n(117),l=n(118),c=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.TimePickerCarousel=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=(e.TimePickerCarousel=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c.call(i),i.extendOptions(n),i.timeList=i.element.parentElement,i.listElement=i.element.querySelector("ul.k-reset"),i.timeout,i.setDimensions(),i.bindEvents(),i.options.focusOnInit&&i.focusTimeList(),i}return i(e,t),s(e,[{key:"setDimensions",value:function(){this.itemHeight=this.listElement.querySelector("li.k-item").offsetHeight,this.elementHeight=this.element.offsetHeight,this.scrollTop=this.element.scrollTop;var t=this.listElement.offsetHeight+(this.elementHeight-this.itemHeight);this.element.querySelector(".k-scrollable-placeholder").setAttribute("style","height: "+t+"px");var e=Math.floor((this.elementHeight-this.itemHeight)/2);this.listElement.setAttribute("style","transform: translateY("+e+"px);")}},{key:"bindEvents",value:function(){this.element.addEventListener("scroll",this.onScroll),this.element.addEventListener("mousedown",this.onMouseDown),this.listElement.addEventListener("click",this.onClick),this.timeList.addEventListener("keydown",this.onKeyDown),this.timeList.addEventListener("mouseenter",this.onMouseEnter),this.timeList.addEventListener("focusout",this.onFocusOut)}},{key:"destroy",value:function(){clearTimeout(this.timeout),this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this.selectedIndex=this.listElement=null}},{key:"unbindEvents",value:function(){this.element.addEventListener("mousedown",this.onMouseDown),this.element.removeEventListener("scroll",this.onScroll),this.listElement.removeEventListener("click",this.onClick),this.timeList.removeEventListener("keydown",this.onKeyDown),this.timeList.removeEventListener("mouseenter",this.onMouseEnter),this.timeList.removeEventListener("focusout",this.onFocusOut)}},{key:"onKeyArrowUp",value:function(){var t=this.selectedIndex;this.setSelectedIndex(t-1),this.selectedIndex!==t&&this.invokeSelect(this.selectedIndex)}},{key:"onKeyArrowDown",value:function(){var t=this.selectedIndex;this.setSelectedIndex(t+1),this.selectedIndex!==t&&this.invokeSelect(this.selectedIndex)}},{key:"focusTimeList",value:function(){var t=this;setTimeout(function(){t.timeList.focus({preventScroll:!0})},100)}},{key:"snapToItem",value:function(t){var e=this.element.scrollTop,n=e%this.itemHeight;this.scrollTop>e?e-=n:e+=this.itemHeight-n,this.selectItem(e,t)}},{key:"selectItem",value:function(t,e){if(this.scrollTo(t),e){var n=Math.floor(t/this.itemHeight);this.invokeSelect(n)}}},{key:"invokeSelect",value:function(t){var e=this.options.jsinterop.click,n=Math.min(t,this.listElement.querySelectorAll(".k-item").length-1);this.invokeMethodAsync(e,n)}},{key:"invokeEnter",value:function(){var t=this.options.jsinterop.enter;this.invokeMethodAsync(t)}},{key:"invokeFocusOut",value:function(){this.invokeMethodAsync(this.options.jsinterop.focusout)}},{key:"scrollTo",value:function(t){this.element.scrollTop=t,this.scrollTop=this.element.scrollTop}},{key:"setSelectedIndex",value:function(t){this.setDimensions();var e=this.listElement.querySelectorAll(".k-item"),n=e[t];n&&(this.selectedIndex=t,this.scrollTo(n.offsetTop))}}]),e}(l.Component),function(){var t=this;this.options={dotNetInstance:null,focusOnInit:!1,jsinterop:{click:""}},this.onKeyDown=function(e){e.keyCode===l.KeyCode.ARROWUP?(t.onKeyArrowUp(),e.preventDefault()):e.keyCode===l.KeyCode.ARROWDOWN?(t.onKeyArrowDown(),e.preventDefault()):e.keyCode===l.KeyCode.ENTER&&t.invokeEnter()},this.onScroll=function(){var e=t;e.element.scrollTop!==e.scrollTop&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){e.snapToItem(!0)},33))},this.onMouseDown=function(t){t.preventDefault()},this.onClick=function(e){var n=e.target.closest("li"),o=t.listElement.querySelectorAll(".k-item"),r=Array.from(o),i=r.indexOf(n);n&&(t.scrollTo(n.offsetTop),t.invokeSelect(i))},this.onMouseEnter=function(){t.timeList.focus()},this.onFocusOut=function(){t.invokeFocusOut()}})},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
42Object.defineProperty(e,"__esModule",{value:!0}),e.TimePicker=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=n(115);e.TimePicker=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,popupElement:null,jsinterop:{close:"",mousedown:""}},i.onNavigate=function(t){var e=document.activeElement;if(e.classList.contains("k-time-list")){var n=e.getAttribute("data-index");t.keyCode===l.KeyCode.ARROWLEFT?(i.focusTimeList(parseInt(n)-1),t.preventDefault()):t.keyCode===l.KeyCode.ARROWRIGHT&&(i.focusTimeList(parseInt(n)+1),t.preventDefault())}},i.extendOptions(n),i.bindEvents(),i}return i(e,t),s(e,[{key:"bindEvents",value:function(){this.popupElement.addEventListener("keydown",this.onNavigate),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"bindEvents",this).call(this)}},{key:"unbindEvents",value:function(){this.popupElement.addEventListener("keydown",this.onNavigate),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"unbindEvents",this).call(this)}},{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"focusTimeList",value:function(t){var e='.k-time-list[data-index="'+t+'"]',n=this.popupElement.querySelector(e);n&&n.focus()}},{key:"focusFirstCarousel",value:function(){var t=this;this.popupElement&&setTimeout(function(){var e=t.popupElement.querySelector(".k-time-list");e instanceof HTMLElement&&e.focus()},100)}}]),e}(c.PickerBase)},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.Calendar,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initCalendar=o;var r=n(120),i=n(1)},function(t,e,n){"use strict";function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Calendar=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),l=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},c=n(1),u="keydown",p="mousedown",h="click",f="focus",d="focusout",v=[c.KeyCode.ARROWUP,c.KeyCode.ARROWDOWN,c.KeyCode.ARROWLEFT,c.KeyCode.ARROWRIGHT,c.KeyCode.HOME,c.KeyCode.END];e.Calendar=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.onKeyDown=function(t){var e=v.concat(c.KeyCode.ENTER);e.includes(t.keyCode)?t.preventDefault():(t.shiftKey||t.ctrlKey)&&t.stopPropagation()},o.onMouseDown=function(t){t.preventDefault()},o.onClick=function(t){var e=t.currentTarget;e&&e.focus()},o.onFocus=function(){o.invokeMethodAsync(o.options.jsinterop.focus)},o.onFocusout=function(){o.invokeMethodAsync(o.options.jsinterop.focusout)},o.extendOptions(n),o.tables=o.element.querySelectorAll("table"),o.bindEvents(),o}return s(e,t),a(e,[{key:"destroy",value:function(){this.unbindEvents(),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this.tables=this.navigationService=null}},{key:"bindEvents",value:function(){var t=this;
42[].concat(o(this.tables)).forEach(function(e){e.addEventListener(p,t.onMouseDown),e.addEventListener(h,t.onClick),e.addEventListener(u,t.onKeyDown,!0),e.addEventListener(f,t.onFocus),e.addEventListener(d,t.onFocusout)})}},{key:"unbindEvents",value:function(){var t=this;[].concat(o(this.tables)).forEach(function(e){e.removeEventListener(p,t.onMouseDown),e.removeEventListener(h,t.onClick),e.removeEventListener(u,t.onKeyDown,!0),e.removeEventListener(f,t.onFocus),e.removeEventListener(d,t.onFocusout)})}},{key:"focusTable",value:function(){var t=this.tables[0];t&&setTimeout(function(){t.focus()},100)}}]),e}(c.Component)},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.DateTimePicker,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initDateTimePicker=o;var r=n(122),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.DateTimePicker=void 0;var s=function(){function t(t,e){ 43for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=n(115);e.DateTimePicker=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,jsinterop:{close:"",mousedown:""}},i.onNavigate=function(t){var e=document.activeElement;if(e.classList.contains("k-time-list")){var n=e.getAttribute("data-index");t.keyCode===l.KeyCode.ARROWLEFT?(i.focusTimeList(parseInt(n)-1),t.preventDefault()):t.keyCode===l.KeyCode.ARROWRIGHT&&(i.focusTimeList(parseInt(n)+1),t.preventDefault())}},i.extendOptions(n),i.bindEvents(),i}return i(e,t),s(e,[{key:"bindEvents",value:function(){this.popupElement.addEventListener("keydown",this.onNavigate),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"bindEvents",this).call(this)}},{key:"unbindEvents",value:function(){this.popupElement.addEventListener("keydown",this.onNavigate),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"unbindEvents",this).call(this)}},{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"focusTimeList",value:function(t){var e='.k-time-list[data-index="'+t+'"]',n=this.popupElement.querySelector(e);n&&n.focus()}},{key:"focusTable",value:function(){var t=this;setTimeout(function(){var e=t.popupElement&&t.popupElement.querySelector("table");e instanceof HTMLElement&&e.focus()},100)}},{key:"focusFirstCarousel",value:function(){var t=this;this.popupElement&&setTimeout(function(){var e=t.popupElement.querySelector(".k-time-list");e instanceof HTMLElement&&e.focus()},100)}}]),e}(c.PickerBase)},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.DateRangePicker,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initDateRangePicker=o;var r=n(124),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
43Object.defineProperty(e,"__esModule",{value:!0}),e.DateRangePicker=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c="blur",u="click";e.DateRangePicker=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));i.options={dotNetInstance:null,popupElement:null,jsinterop:{change:"",close:"",open:""}},i.onStartEnterKeyDown=function(){i.triggerStartChanged(),i.focusEndInput()},i.onEndEnterKeyDown=function(){i.triggerEndChanged(),i.invokeClose()},i.onPopupShiftTab=function(t,e){var n=(0,l.findFocusable)(i.popupElement,!1);return e.target!==n||(i.focusEndInput(),!1)},i.onPopupTab=function(t,e){var n=i.popupElement.querySelector("table:last-child");return e.target===n&&i.triggerClose(),!0},i.triggerStartOpen=function(){return i.isClosed()&&i.invokeOpen(i.options.startTarget),!0},i.triggerEndOpen=function(){return i.isClosed()&&i.invokeOpen(i.options.endTarget),!0},i.triggerStartChanged=function(){i.invokeChange(i.options.startTarget)},i.triggerEndChanged=function(){i.invokeChange(i.options.endTarget)},i.triggerClose=function(){return i.invokeClose(),!0},i.focusPopupCalendar=function(){return!!i.isClosed()||(i.popupElement.querySelector("table").focus(),!1)},i.closePopup=function(){return!!i.isClosed()||(i.triggerClose(),i.focusStartInput(),!1)};var s=i.element.querySelectorAll(".k-input");return i.startInput=s[0],i.endInput=s[1],i.popupElement=(0,l.getElementByDataId)(n.popupId),i.extendOptions(n),i.initNavigationServices(),i.bindEvents(),i}return i(e,t),s(e,[{key:"bindEvents",value:function(){this.startInput.addEventListener(c,this.triggerStartChanged),this.endInput.addEventListener(c,this.triggerEndChanged),this.startInput.addEventListener(u,this.triggerStartOpen,!0),this.endInput.addEventListener(u,this.triggerEndOpen,!0)}},{key:"unbindEvents",value:function(){this.startInput.removeEventListener(c,this.triggerStartChanged),this.endInput.removeEventListener(c,this.triggerEndChanged),this.startInput.removeEventListener(u,this.triggerStartOpen,!0),this.endInput.removeEventListener(u,this.triggerEndOpen,!0)}},{key:"destroy",value:function(){this.unbindEvents(),this.navigationServices.forEach(function(t){return t.destroy()}),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"initNavigationServices",value:function(){this.navigationServices=[this.initStartInputNavigationService(),this.initEndInputNavigationService(),this.initPopupNavigationService()]}},{key:"initStartInputNavigationService",value:function(){var t=new l.NavigationService(this.startInput);return t.bind([l.Key.ESC,l.KeyModifiers.ALT+" "+l.Key.ARROWUP],this.closePopup),t.bind(l.KeyModifiers.ALT+" "+l.Key.ARROWDOWN,this.triggerStartOpen),t.bind(l.Key.ENTER,this.onStartEnterKeyDown),t.bind(l.KeyModifiers.SHIFT+" "+l.Key.TAB,this.triggerClose),t}},{key:"initEndInputNavigationService",value:function(){var t=new l.NavigationService(this.endInput);return t.bind([l.Key.ESC,l.KeyModifiers.ALT+" "+l.Key.ARROWUP],this.closePopup),t.bind(l.KeyModifiers.ALT+" "+l.Key.ARROWDOWN,this.triggerEndOpen),t.bind(l.Key.TAB,this.focusPopupCalendar),t.bind(l.Key.ENTER,this.onEndEnterKeyDown),t}},{key:"initPopupNavigationService",value:function(){var t=new l.NavigationService(this.popupElement);return t.bind(l.KeyModifiers.SHIFT+" "+l.Key.TAB,this.onPopupShiftTab),t.bind(""+l.Key.TAB,this.onPopupTab),t.bind([l.Key.ESC,l.KeyModifiers.ALT+" "+l.Key.ARROWUP],this.closePopup),t}},{key:"focusStartInput",value:function(){this.startInput.focus()}},{key:"focusEndInput",value:function(){this.endInput.focus()}},{key:"invokeChange",value:function(t){this.invokeMethodAsync(this.options.jsinterop.change,t)}},{key:"invokeClose",value:function(){this.invokeMethodAsync(this.options.jsinterop.close)}},{key:"invokeOpen",value:function(t){this.invokeMethodAsync(this.options.jsinterop.open,t)}},{key:"isClosed",value:function(){return!this.popupElement||!this.popupElement.children[0].children.length}}]),e}(l.Component)},function(t,e,n){"use strict";
43Object.defineProperty(e,"__esModule",{value:!0});var o=n(126);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var r=n(128);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.NumericTextBox,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initNumericTextBox=o;var r=n(127),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.NumericTextBox=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c={increaseArrow:"k-link-increase",descreaseArrow:"k-link-decrease"},u=[l.KeyCode.ARROWDOWN,l.KeyCode.ARROWUP];e.NumericTextBox=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,decimals:0,separator:"\\.",min:null,max:null,value:"",jsinterop:{blur:""}},i.onKeyDown=function(t){u.includes(t.keyCode)&&t.preventDefault()},i.extendOptions(n),i.element.value=i.options.value,i.upArrowElement=t.parentElement.getElementsByClassName(c.increaseArrow)[0],i.downArrowElement=t.parentElement.getElementsByClassName(c.descreaseArrow)[0],i.bindEvents(),i}return i(e,t),s(e,[{key:"bindEvents",value:function(){this.onKeyPress=this.onKeyPress.bind(this),this.onPaste=this.onPaste.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onBlur=this.onBlur.bind(this),this.element.addEventListener("keydown",this.onKeyDown),this.element.addEventListener("keypress",this.onKeyPress),this.element.addEventListener("paste",this.onPaste),this.element.addEventListener("blur",this.onBlur),this.upArrowElement&&this.upArrowElement.addEventListener("mousedown",this.onMouseDown),this.downArrowElement&&this.downArrowElement.addEventListener("mousedown",this.onMouseDown)}},{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this.upArrowElement=null,this.downArrowElement=null}},{key:"unbindEvents",value:function(){this.element.removeEventListener("keydown",this.onKeyDown),this.element.removeEventListener("keypress",this.onKeyPress),this.element.removeEventListener("paste",this.onPaste),this.element.removeEventListener("blur",this.onBlur),this.upArrowElement&&this.upArrowElement.removeEventListener("mousedown",this.onMouseDown),this.downArrowElement&&this.downArrowElement.removeEventListener("mousedown",this.onMouseDown)}},{key:"onKeyPress",value:function(t){var e=String.fromCharCode(t.which);this.isValid(e)||t.keyCode===l.KeyCode.ENTER||t.preventDefault()}},{key:"onPaste",value:function(t){this.isValid(t.clipboardData.getData("text/plain"))||t.preventDefault()}},{key:"onMouseDown",value:function(t){t.preventDefault(),document.activeElement!==this.element&&this.element.focus()}},{key:"onBlur",value:function(){var t=this.options.jsinterop.blur;this.invokeMethodAsync(t)}},{key:"numericRegex",value:function(){var t=this.options.separator,e=this.options.decimals,n="{0,"+e+"}";return e?new RegExp("^(-)?(((\\d+("+t+"\\d"+n+")?)|("+t+"\\d"+n+")))?$"):/^(-)?(\d*)$/}},{key:"caret",value:function(){return[this.element.selectionStart,this.element.selectionEnd]}},{key:"isValid",value:function(t){var e=this.element.value,n=this.caret();return e=e.substring(0,n[0])+t+e.substring(n[1]),!!this.numericRegex().test(e)}}]),e}(l.Component)},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.TextBox,t,e)}
43Object.defineProperty(e,"__esModule",{value:!0}),e.initTextBox=o;var r=n(129),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.TextBox=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1);e.TextBox=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,jsinterop:{blur:""}},i.extendOptions(n),i.bindEvents(),i}return i(e,t),s(e,[{key:"bindEvents",value:function(){this.onBlur=this.onBlur.bind(this),this.element.addEventListener("blur",this.onBlur)}},{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"unbindEvents",value:function(){this.element.removeEventListener("blur",this.onBlur)}},{key:"onBlur",value:function(){var t=this.options.jsinterop.blur;this.invokeMethodAsync(t)}}]),e}(l.Component)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(131);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var r=n(133);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var i=n(135);
43Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,r.initComponent)(i.MenuItem,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initMenuItem=o;var r=n(1),i=n(132)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.MenuItem=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=[l.Key.ENTER,l.Key.SPACE,l.Key.HOME,l.Key.END,l.Key.ARROWDOWN,l.Key.ARROWUP,l.Key.ARROWLEFT,l.Key.ARROWRIGHT];e.MenuItem=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.onKeyDown=function(t){i.invokeKeyDown(t)},i.popup=(0,l.getElementByDataId)(n.popupId),i.options=n,i.initNavigationService(),i}return i(e,t),s(e,[{key:"initNavigationService",value:function(){this.navigationService=new l.NavigationService(this.element),this.navigationService.bind(c,this.onKeyDown)}},{key:"destroy",value:function(){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this.popup=null}},{key:"followHref",value:function(){var t=this.element.querySelector("a");if(t){var e=t.getAttribute("href");window.location=e}}},{key:"hasParentPopupWithDisplayNone",value:function(t){if("none"===t.style.display)return!0;var e=t.closest(".k-popup")!==t?t.closest(".k-popup"):null,n=e!==t?e:null;return n&&this.hasParentPopupWithDisplayNone(n)}},{key:"focusNode",value:function(){this.element&&(this.hasParentPopupWithDisplayNone(this.element)?(0,l.focusInNextFrameAsync)(this.element):this.element.focus())}},{key:"invokeKeyDown",value:function(t){this.invokeMethodAsync(this.options.jsinterop.keydown,t.name)}}]),e}(l.Component)},function(t,e,n){"use strict";function o(t,e){(0,r.initComponent)(i.TabStrip,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initTabStrip=o;var r=n(1),i=n(134)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.TabStrip=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=".k-item",u="keydown",p={horizontal:"horizontal",vertical:"vertical"},h=[l.KeyCode.ARROWUP,l.KeyCode.ARROWDOWN],f=[l.KeyCode.ARROWLEFT,l.KeyCode.ARROWRIGHT],d=[l.KeyCode.HOME,l.KeyCode.END];e.TabStrip=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.onKeyDown=function(t){var e=i.options.orientation===p.vertical?h:f,n=e.concat(d);n.includes(t.keyCode)&&t.preventDefault()},i.tabList=i.element.querySelector(".k-tabstrip-items"),i.bindEvents(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindEvents",value:function(){this.tabList.addEventListener(u,this.onKeyDown)}},{key:"unbindEvents",value:function(){this.tabList.removeEventListener(u,this.onKeyDown)}},{key:"focusTab",value:function(t){var e=this.tabList.querySelectorAll(c)[t];e&&e.focus()}}]),e}(l.Component)},function(t,e,n){"use strict";function o(t,e){(0,r.initComponent)(i.TreeView,t,e)}
43Object.defineProperty(e,"__esModule",{value:!0}),e.initTreeView=o;var r=n(1),i=n(136)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.TreeView=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c="keydown",u="mousedown",p=[l.KeyCode.ARROWLEFT,l.KeyCode.ARROWRIGHT,l.KeyCode.ARROWUP,l.KeyCode.ARROWDOWN,l.KeyCode.HOME,l.KeyCode.END,l.KeyCode.ENTER];e.TreeView=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.onKeyDown=function(t){var e=p.includes(t.keyCode);e&&t.preventDefault()},i.onMouseDown=function(t){t.shiftKey&&t.preventDefault()},i.bindEvents(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindEvents",value:function(){this.element.addEventListener(c,this.onKeyDown),this.element.addEventListener(u,this.onMouseDown)}},{key:"unbindEvents",value:function(){this.element.removeEventListener(c,this.onKeyDown),this.element.removeEventListener(u,this.onMouseDown)}},{key:"focusNode",value:function(t){var e=this.element.querySelector('[data-treeindex="'+t+'"]');e&&e.focus()}}]),e}(l.Component)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(138);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.Pager,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initPager=o;var r=n(139),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Pager=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=n(140);e.Pager=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,focusElementSelector:function(t){return"[data-index='"+t+"']"},jsinterop:{focusOut:""}},i.onNavigationRemoveFocus=function(){i.removeFocus()},i.extendOptions(n),i.createNavigationService(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.destroyNavigationService(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"createNavigationService",value:function(){this.navigationService=new c.NavigationService(this.element,{events:{focu
43sOut:this.onNavigationRemoveFocus}})}},{key:"destroyNavigationService",value:function(){this.navigationService&&(this.navigationService.destroy(),this.navigationService=null)}},{key:"focusElement",value:function(t){this.navigationService&&this.navigationService.focusElement(t)}},{key:"removeFocus",value:function(){this.invokeMethodAsync(this.options.jsinterop.focusOut)}}]),e}(l.Component)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationService=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1);e.NavigationService=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={events:{focusOut:null},focusElementSelector:function(t){return"[data-index='"+t+"']"}},i.onKeyDown=function(t){var e=[l.KeyCode.ARROWRIGHT,l.KeyCode.ARROWLEFT,l.KeyCode.ARROWUP,l.KeyCode.ARROWDOWN].includes(t.keyCode);e&&(0,l.hasClass)("k-state-focused",t.target)&&t.preventDefault()},i.onFocusOut=function(){i.trigger("focusOut")},i.extendOptions(n),i.bindEvents(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindEvents",value:function(){this.element.addEventListener("keydown",this.onKeyDown),this.element.addEventListener("focusout",this.onFocusOut)}},{key:"unbindEvents",value:function(){this.element.removeEventListener("keydown",this.onKeyDown),this.element.removeEventListener("focusout",this.onFocusOut)}},{key:"focusElement",value:function(t){var e=t.index,n=this.element.querySelector(this.options.focusElementSelector(e));n&&n.focus()}}]),e}(l.Component)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(142);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,r.initComponent)(i.Popup,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initPopup=o;var r=n(1),i=n(143)},function(t,e,n){"use strict";function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Popup=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),l=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},c=n(1),u=n(144),p={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0},h=30,f=function(){return window&&window.PointerEvent};e.Popup=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(o.mouseHoverTimeout=null,o.options={dotNetInstance:null,anchorSelector:"",anchorRect:p,toggleElementSelector:"",width:"",anchorAlign:{horizontal:"left",vertical:"bottom"},elementAlign:{horizontal:"left",vertical:"top"},openOn:"click",closeOn:"click",closeParentPopups:!1,jsinterop:{close:"",closeAsync:"",openAsync:""}}
43,o.extendOptions(n),o.anchors=document.querySelectorAll(n.anchorSelector),o.anchor=o.anchors[0],o.anchors.length>1&&n.toggleElementSelector)throw new Error("Toggle element is not supported when you have more than one anchor");return n.toggleElementSelector&&(o.toggleElements=document.querySelectorAll(n.toggleElementSelector)),o.createIntersectionObserver(),o.attachAnchorHandlers(),o.attachElementHandlers(),o}return s(e,t),a(e,[{key:"getElementRect",value:function(t){var e=t?t.getBoundingClientRect():p,n=document.body.getBoundingClientRect();return{top:e.top-n.top,left:e.left-n.left,width:e.width,height:e.height}}},{key:"destroy",value:function(){this.unbindEvents(),this.detachAnchorHandlers(),this.destroyIntersectionObserver(),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this.toggleElements=null,this.anchor=null}},{key:"attachElementHandlers",value:function(){"mouseleave"===this.options.closeOn&&(this.onElementMouseLeave=this.onElementMouseLeave.bind(this),this.onElementMouseOver=this.onElementMouseOver.bind(this),this.element.addEventListener("mouseleave",this.onElementMouseLeave),this.element.addEventListener("mouseover",this.onElementMouseOver))}},{key:"attachAnchorHandlers",value:function(){var t=this;this.toggle=this.toggle.bind(this),this.openAsync=this.openAsync.bind(this),this.onCloseEvent=this.onCloseEvent.bind(this),this.toggleElements&&this.toggleElements.length?this.toggleElements.forEach(function(e){t.addEventListeners(e)}):this.anchors.forEach(function(e){t.addEventListeners(e)})}},{key:"addEventListeners",value:function(t){var e=this.options,n=e.openOn,o=e.closeOn;n===o?t.addEventListener(n,this.toggle,!0):(t.addEventListener(n,this.openAsync,!0),t.addEventListener(o,this.onCloseEvent,!0))}},{key:"detachAnchorHandlers",value:function(){var t=this,e=this.options,n=e.openOn,o=e.closeOn;this.toggleElements&&this.toggleElements.forEach(function(e){e.removeEventListener(n,t.toggle,!0),e.removeEventListener(n,t.openAsync,!0),e.removeEventListener(o,t.onCloseEvent,!0)}),this.anchors.forEach(function(e){e.removeEventListener(n,t.toggle,!0),e.removeEventListener(n,t.openAsync,!0),e.removeEventListener(o,t.onCloseEvent,!0)})}},{key:"bindEvents",value:function(){this.bound||(this.bound=!0,this.onScroll=this.onScroll.bind(this),this.onResize=this.onResize.bind(this),this.onMouseDown=this.onMouseDown.bind(this),document.addEventListener("scroll",this.onScroll,!0),window.addEventListener("resize",this.onResize),f()?document.addEventListener("pointerdown",this.onMouseDown,!0):document.addEventListener("mousedown",this.onMouseDown,!0))}},{key:"unbindEvents",value:function(){document.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("mousedown",this.onMouseDown,!0),document.removeEventListener("pointerdown",this.onMouseDown,!0),window.removeEventListener("resize",this.onResize,!0),this.bound=!1}},{key:"toggle",value:function(t){t.preventDefault(),this._visible?this.closeAsync():this.openAsync(t)}},{key:"onCloseEvent",value:function(t){var e=this,n=this.toggleElements&&[].concat(o(this.toggleElements)).includes(t.target); 44!n&&t.target!==this.anchor||this.isChild(t.relatedTarget)||(this.mouseHoverTimeout=setTimeout(function(){e.closeAsync()},h))}},{key:"onElementMouseOver",value:function(){this.mouseHoverTimeout&&clearTimeout(this.mouseHoverTimeout)}},{key:"onMouseDown",value:function(t){this.isChild(t.target)||this.closeAsync()}},{key:"onElementMouseLeave",value:function(t){var e=this,n=t.relatedTarget;if(this.element!==n&&this.anchor!==n&&!(0,c.ownsElement)(this.element,n)&&!(0,c.ownsElement)(this.anchor,n)){var o=n&&n.closest(".k-animation-container");o||t.target!==this.element||(this.mouseHoverTimeout=setTimeout(function(){e.closeAsync(),e.options.closeParentPopups&&e.closeParentPopups()},h))}}},{key:"closeParentPopups",value:function(){for(var t=this.element;null!==t;){var e=t.getAttribute("data-id"),n=(0,c.getComponentInstance)(e),o=n.anchor;n.close(),t=o.closest(".k-animation-container")}}},{key:"onScroll",value:function(t){this.isChild(t.target)||this.positionElement()}},{key:"onOpen",value:function(){this._visible=!0,this.bindEvents(),this.options.width||(this.element.style.width=this.getAnchorWidth()),this.positionElement()}},{key:"getAutoSizePosition",value:function(){var t=this.element.children[0];if(t){var e=t.style.display;t.style.visibility="hidden",t.style.display="block";var n=this.getPosition();return t.style.display=e,t.style.visibility="",n}return this.getPosition()}},{key:"onClose",value:function(){this._visible=!1,this.unbindEvents()}},{key:"onResize",value:function(){this.close()}},{key:"getPosition",value:function(){var t=this.getAnchorRect(),e=this.element.style.left,n=this.element.style.top;this.element.style.left="",this.element.style.top="";var o=this.getElementRect(this.element);this.element.style.left=e,this.element.style.top=n;var r=(0,u.align)({anchorRect:t,elementRect:o,anchorAlign:this.options.anchorAlign,elementAlign:this.options.elementAlign,margin:this.options.margin});o.top=r.top,o.left=r.left,o=(0,u.removeScroll)(o,(0,u.scrollPosition)(this.element));var i=(0,u.restrictToView)({anchorRect:t,elementRect:o,anchorAlign:this.options.anchorAlign,elementAlign:this.options.elementAlign,collisions:{horizontal:"fit",vertical:"flip"},viewPort:(0,u.getWindowViewPort)(this.element)});return this.flipped=i.flipped,{top:r.top+i.offset.top+"px",left:r.left+i.offset.left+"px",flipped:i.flipped}}},{key:"positionElement",value:function(){var t=this.getElementPosition();return this.element.style.top=t.top,this.element.style.left=t.left,t}},{key:"getElementPosition",value:function(){var t=void 0;return t=this.options.autoSize===!0?this.getAutoSizePosition():this.getPosition()}},{key:"getAnchorWidth",value:function(){if(!this.anchor)return"";var t=this.getElementRect(this.anchor);return t.width+"px"}},{key:"getAnchorRect",value:function(){return this.anchor?this.getElementRect(this.anchor):this.options.anchorRect}},{key:"createIntersectionObserver",value:function(){var t=this;this.destroyIntersectionObserver(),this.intersectionObserver=this.initIntersectionObserver(),this.anchors.forEac
44h(function(e){t.intersectionObserver.observe(e)})}},{key:"initIntersectionObserver",value:function(){var t=this,e={threshold:this.getIntersectionThreshold()};return new window.IntersectionObserver(function(e){e.forEach(function(e){e.intersectionRatio>=0&&e.intersectionRatio<1&&t.onAnchorHide()})},e)}},{key:"destroyIntersectionObserver",value:function(){var t=this;this.intersectionObserver&&(this.anchors.forEach(function(e){t.intersectionObserver.unobserve(e)}),this.intersectionObserver.disconnect&&this.intersectionObserver.disconnect()),this.intersectionObserver=null}},{key:"onAnchorHide",value:function(){this.close()}},{key:"getIntersectionThreshold",value:function(){for(var t=[],e=0,n=1,o=.1,r=e;r<=n;r+=o)t.push(r);return t}},{key:"isElementVisible",value:function(){return this.element&&this.element.getElementsByClassName("k-popup")[0]}},{key:"isChild",value:function(t){var e=t;if((0,c.isChild)(e,[this.element,this.anchor]))return!0;var n=e instanceof HTMLElement&&e.closest(".k-animation-container");if(n&&n!==this.element){var o=n.getAttribute("data-id"),r=(0,c.getComponentInstance)(o||n.id);return r&&r.isParent(this.element)}return!1}},{key:"isParent",value:function(t){return t&&(0,c.ownsElement)(t,this.anchor)}},{key:"close",value:function(){this.invokeMethodAsync(this.options.jsinterop.close)}},{key:"closeAsync",value:function(){this.invokeMethodAsync(this.options.jsinterop.closeAsync)}},{key:"openAsync",value:function(t){var e=this;this.mouseHoverTimeout&&clearTimeout(this.mouseHoverTimeout);var n=this.anchor;this.anchors.length>1&&this.anchors.forEach(function(n){if(n===t.target||(0,c.ownsElement)(n,t.target))return void(e.anchor=n)}),n!==this.anchor&&this.closeAsync(),this.invokeMethodAsync(this.options.jsinterop.openAsync)}}]),e}(c.Component)},function(t,e){"use strict";function n(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function o(t,e,n){var o=t.top,r=t.left;return n&&(r=0,o=0),{top:o+e.top,left:r+e.left,height:t.height,width:t.width}}function r(t){return t.ownerDocument||t.document||t}function i(){if(!d&&"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),d=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return d}function s(t){var e=h(t),n=f(t),o={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=i()),o}function a(t){var e=f(t),n=h(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}function l(t){var e=y(t);return e?x(e):{x:0,y:0}}function c(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}Object.defineProperty(e,"__esModule",{value:!0});var u={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},p=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.margin;void 0===i&&(i={});var s=n.horizontal,a=n.vertical,l=r.horizontal,c=r.vertical,p=i.horizontal||0,h=i.vertical||0,f=e.top,d=e.left;return a===u.bottom&&(f+=e.height),a!==u.center&&a!==u.middle||(f+=Math.round(e.height/2)),c===u.bottom&&(f-=o.height,h*=-1),c!==u.center&&c!==u.middle||(f-=Math.round(o.height/2),h*=-1),s===u.right&&(d+=e.width),s!==u.center&&s!==u.middle||(d+=Math.round(e.width/2)),l===u.right&&(d-=o.width,p*=-1),l!==u.center&&l!==u.middle||(d-=Math.round(o.width/2),p*=-1),{top:f+h,left:d+p}},h=function(t){return r(t).defaultView},f=function(t){return r(t).documentElement},d=0,v=function(t){if(!t.getBoundingClientRect){var e=s(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect(),o=n.bottom,r=n.left,i=n.right,a=n.top;return{bottom:o,left:r,right:i,top:a}},y=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||f(t)},g=function(t){return y(t)===t.ownerDocument.body},m=function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,i},b=function(t){var e=t.getBoundingClientRect(),n=e.left,o=e.top;return e.height||e.width||(e=m(t)),{top:o,left:n,height:e.height,width:e.width}},_=function(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n},x=function(t){return t===(t.ownerDocument||{}).body?a(t):{x:t.scrollLeft,y:t.scrollTop}},w=function(t,e){var n=h(t),o=n.getComputedStyle(t),r=b(t),i=e||y(t),s=t.ownerDocument,a=i!==s.body&&i!==s.documentElement,l={top:0,left:0};if("fixed"!==o.position&&a){var c=n.getComputedStyle(i);l=b(i),l.top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}
44return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}},k=function(t,e){return t?x(t):l(e)},S=function(t,e,n){void 0===n&&(n=1);var o=e?y(e):null,r=w(t,o),i=r.top,s=r.left,a=r.height,l=r.width,c=k(o,t),u=c.x,p=c.y,h=t.ownerDocument,f=o===h.body||o===h.documentElement?1:n;return{top:i+p*f,left:s+u*f,height:a,width:l}},O={fit:"fit",flip:"flip"},C=function(t,e,n){var o=0;return t+e>n&&(o=n-(t+e)),t<0&&(o=-t),o},T=function(t){var e=t.offset,n=t.size,o=t.anchorSize,r=t.viewPortSize,i=t.anchorAlignPoint,s=t.elementAlignPoint,a=t.margin,l=0,c=s===u.center||s===u.middle,p=i===u.center||i===u.middle,h=2*a;if(s!==i&&!c&&!p){var f=i===u.top||i===u.left;e<0&&f?(l=n+o+h,e+l+n>r&&(l=0)):e>=0&&!f&&(e+n>r&&(l+=-(o+n+h)),e+l<0&&(l=0))}return l},E=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,s=t.viewPort,a=t.margin;void 0===a&&(a={});var l=o.top,c=o.left,u=o.height,p=o.width,h=s.height,f=s.width,d=a.horizontal||0,v=a.vertical||0,y=0,g=0,m=i.horizontal===O.flip,b=i.vertical===O.flip;i.vertical===O.fit&&(g+=C(l,u,h)),i.horizontal===O.fit&&(y+=C(c,p,f)),b&&(g+=T({margin:v,offset:l,size:u,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),m&&(y+=T({margin:d,offset:c,size:p,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var _=m&&0!==y,x=b&&0!==g;return{flipped:_||x,flip:{horizontal:_,vertical:x},offset:{left:y,top:g}}},A=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},M=function(t,e){for(var n,o,r=_(t),i=e;i&&(n=A(i),!(o=r.reduce(function(t,e){return t.concat(n.filter(function(t){return t===e}))},[])[0]));)i=i.parentElement;return o};e.align=p,e.addScroll=n,e.applyLocationOffset=o,e.boundingOffset=v,e.isBodyOffset=g,e.offsetParent=y,e.offset=b,e.parents=_,e.parentScrollPosition=l,e.position=w,e.positionWithScroll=S,e.removeScroll=c,e.restrictToView=E,e.scrollPosition=a,e.siblingContainer=M,e.siblings=A,e.getDocumentElement=f,e.getWindow=h,e.getWindowViewPort=s,e.AlignPoint=u,e.Collision=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(146);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){var n=(0,r.getComponentInstance)(t);if(!n){var o=new i.Tooltip(null,e);(0,r.setComponentInstance)(t,o)}}Object.defineProperty(e,"__esModule",{value:!0}),e.initTooltip=o;var r=n(1),i=n(147)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c="k-callout-n",u="k-callout-s",p="click";e.Tooltip=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,popupId:""},i.onMouseEnter=function(t){var e=t.target,n=e.getAttribute("title")||e.getAttribute("data-title");e.setAttribute("data-title",n),e.removeAttribute("title")},i.onMouseLeave=function(t){var e=t.target,n=e.getAttribute("data-title")||e.getAttribute("title");e.setAttribute("title",n),e.removeAttribute("data-title")},i.elements=document.querySelectorAll(n.targetSelector),i.options=n,i.bindEvents(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindEvents",value:function(){var t=this;
44this.options.showOn===p&&this.elements.forEach(function(e){e.addEventListener("mouseenter",t.onMouseEnter,!0),e.addEventListener("mouseleave",t.onMouseLeave,!0)})}},{key:"unbindEvents",value:function(){var t=this;this.elements.forEach(function(e){e.addEventListener("mouseenter",t.onMouseEnter,!0),e.addEventListener("mouseleave",t.onMouseLeave,!0)})}},{key:"getDataAttributes",value:function(){var t=this.getPopupComponent(),e=t.anchor,n=e.getAttribute("title")||e.getAttribute("data-title"),o=e.getAttribute("alt")||n;o&&e.setAttribute("data-title",o),e.removeAttribute("title");var r=t.anchor.dataset;return r}},{key:"restoreTitle",value:function(){var t=this.getPopupComponent(),e=t.anchor,n=e.getAttribute("data-title")||e.getAttribute("title");n&&e.setAttribute("title",n),e.removeAttribute("data-title")}},{key:"flipCallout",value:function(){var t=this.getPopupComponent();if(t.flipped){var e=t.element.querySelector(".k-callout"),n=(0,l.hasClass)(u,e);n?((0,l.removeClass)(u,e),(0,l.addClass)(c,e)):(0,l.hasClass)(c,e)&&((0,l.removeClass)(c,e),(0,l.addClass)(u,e))}}},{key:"correctCalloutPosition",value:function(){var t=this.getPopupComponent(),e=t.getElementRect(t.anchor),n=t.getElementRect(t.element),o=e.left-n.left+.5*e.width,r=t.element.querySelector(".k-callout");r&&(r.style.left=o+"px")}},{key:"getCalloutSize",value:function(){var t=document.createElement("div");t.className="k-callout "+c,t.style.visibility="hidden",document.body.appendChild(t);var e=window.getComputedStyle(t),n=e.borderWidth||e.borderTopWidth,o=parseFloat(n);return document.body.removeChild(t),o}},{key:"getPopupComponent",value:function(){return(0,l.getComponentInstance)(this.options.popupId)}}]),e}(l.Component)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(149);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.VirtualScroller,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initVirtualScroller=o;var r=n(150),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualScroller=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=(e.VirtualScroller=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c.call(i),i.extendOptions(n),i.timeout,i.contentElement=i.element.querySelector(".k-virtual-position"),i.total=parseInt(i.contentElement.getAttribute("data-total")),i.setPosition(n.skip),i.bindEvents(),i}return i(e,t),s(e,[{key:"destroy",value:function(){clearTimeout(this.timeout),this.unbindEvents(),this.contentElement=null,a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindEvents",value:function(){this.element.addEventListener("scroll",this.onElementScroll)}},{key:"unbindEvents",value:function(){this.element.removeEventListener("scroll",this.onElementScroll)}},{key:"setPosition",value:function(t){this.scrollTop=Math.floor(this.options.itemHeight*t),this.element.scrollTop=this.scrollTop}}]),e}(l.Component),function(){var t=this;this.options={skip:0,jsinterop:{scroll:""}},this.onElementScroll=function(){clearTimeout(t.timeout);var e=Math.floor(t.element.scrollTop),n=t.element.offsetHeight,o=t.contentElement.children[0].offsetHeight,r=t.options,i=2*r.itemHeight,s=parseFloat(t.contentElement.getAttribute("data-translate"));if(t.scrollTop!==e){t.scrollTop=e;var a=s;e<s?a=e-e%i:o+s<n+e&&(a=Math.ceil((n+e-o)/i)*i),t.contentElement.style.setProperty("transform","translateY("+a+"px)");var l=Math.floor(e/r.itemHeight);t.timeout=setTimeout(function(){t.invokeMethodAsync(r.jsinterop.scroll,l)},66)}}})},function(t,e,n){"use strict";
44Object.defineProperty(e,"__esModule",{value:!0});var o=n(152);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,s.initComponent)(i.VirtualColumnScroller,(0,s.addComponentSuffix)(t,"VirtualColumnScroller"),e)}function r(t){(0,s.destroyComponent)((0,s.addComponentSuffix)(t,"VirtualColumnScroller"))}Object.defineProperty(e,"__esModule",{value:!0}),e.initVirtualColumnScroller=o,e.destroyVirtualColumnScroller=r;var i=n(153),s=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualColumnScroller=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=180;e.VirtualColumnScroller=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,tableSelector:".k-grid-table",debounceDelay:c,jsinterop:{onScroll:""}},i.detectScrollTopChanged=function(t){i.state.scrollTopChanged=i.state.scrollTop!==t.target.scrollTop,i.state.scrollTop=t.target.scrollTop},i.onScroll=function(t){i.state.scrollTopChanged||i.invokeScroll(t.target.scrollLeft)},i.extendOptions(n),i.bindEvents(),i.state={scrollTop:0,scrollTopChanged:!1},i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindEvents",value:function(){var t=this;this.debouncedScroll=(0,l.debounce)(function(e){t.onScroll(e)},this.options.debounceDelay).bind(this),this.element.addEventListener("scroll",this.detectScrollTopChanged),this.element.addEventListener("scroll",this.debouncedScroll)}},{key:"unbindEvents",value:function(){this.element.removeEventListener("scroll",this.detectScrollTopChanged),this.element.removeEventListener("scroll",this.debouncedScroll),this.debouncedScroll=null}},{key:"invokeScroll",value:function(t){this.invokeMethodAsync(this.options.jsinterop.onScroll,{scrollLeft:t,tableWidth:this.element.offsetWidth})}}]),e}(l.Component)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(155);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,l.initComponent)(s.DayTable,t,e)}function r(t,e){(0,l.initComponent)(a.MonthTable,t,e)}function i(t){var e=(0,l.getComponentInstance)(t);return e?e.getSlotMetrics():{width:0,height:0,left:0}}Object.defineProperty(e,"__esModule",{value:!0}),e.initDayTable=o,e.initMonthTable=r,e.getSlotMetrics=i;var s=n(156),a=n(158),l=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
44Object.defineProperty(e,"__esModule",{value:!0}),e.DayTable=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(157),c=(e.DayTable=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c.call(i),i.extendOptions(n),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.allDayRowElement=null,a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"onMovableDragStart",value:function(t){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"onMovableDragStart",this).call(this,t),this.moveTarget&&(this.allDayRowPosition=this.getAllDayRowElement().getBoundingClientRect())}},{key:"onMovableDrop",value:function(){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"onMovableDrop",this).call(this),this.allDayRowPosition=null}},{key:"getAllDayRowElement",value:function(){return this.allDayRowElement||(this.allDayRowElement=this.element.querySelector(".k-scheduler-all-day-row")),this.allDayRowElement}},{key:"getAllDayRowPosition",value:function(){return this.allDayRowPosition||(this.allDayRowPosition=this.getAllDayRowElement().getBoundingClientRect()),this.allDayRowPosition}}]),e}(l.ContentTableBase),function(){var t=this;this.options={jsinterop:{getMoveHint:"",moveAppointment:""}},this.isInVerticalRange=function(e){var n=Math.min(t.tablePosition.bottom,t.getBodyElement().getBoundingClientRect().bottom);return t.isInRange(e.clientY,t.getAllDayRowPosition().bottom,n)},this.isMouseOverAllDayRow=function(e){var n=t.getAllDayRowPosition(),o=t.isInHorizontalRange(e),r=t.isInRange(e.clientY,n.top,n.bottom);return o&&r},this.renderMoveHints=function(e){e&&e.length&&t.moveTarget&&(t.destroyHints(),e.forEach(function(e){var n=t.createHint(t.moveTarget);n.style.left=e.left+"px",n.style.width=e.width+"px",e.isAllDay?(n.style.top="0px",n.style.height="100%",t.getAllDayRowElement().appendChild(n)):(n.style.top=e.top+"px",n.style.height=e.height+"px",t.getBodyElement().appendChild(n))}))}})},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ContentTableBase=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=n(42),u=(e.ContentTableBase=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return u.call(i),i.extendOptions(n),i.bindEvents(),i.createMovable(),i.hints=[],i.width=0,i}return i(e,t),s(e,[{key:"destroy",value:function(){this.bodyElement=null,this.unbindEvents(),this.destroyMovable(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"bindEvents",value:function(){window.addEventListener("resize",this.onResize)}},{key:"unbindEvents",value:function(){window.removeEventListener("resize",this.onResize)}},{key:"invokeResizeAppointments",value:function(){this.invokeMethodAsync(this.options.jsinterop.resizeAppointments,this.get
44SlotMetrics())}},{key:"refresh",value:function(){this.invokeResizeAppointments()}},{key:"getSlotMetrics",value:function(){var t=this.getFirstCell(),e=this.element.querySelector(".k-scheduler-content-width");return this.slotMetrics={width:e.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,cellWidth:e.offsetWidth/e.querySelectorAll(".k-scheduler-cell").length},this.slotMetrics}},{key:"createMovable",value:function(){this.destroyMovable(),this.options.allowUpdate&&(this.movable=new c.Draggable({press:this.onMovableDragStart.bind(this),drag:this.onMovableDrag.bind(this),release:this.onMovableDrop.bind(this)}),this.movable.bindTo(this.element))}},{key:"destroyMovable",value:function(){this.movable&&this.movable.destroy&&this.movable.destroy(),this.moveTarget=null}},{key:"onMovableDragStart",value:function(t){this.moveTarget=null,this.dragStarted=!1;var e=t.originalEvent.target;e&&e.closest(".k-event")&&(this.moveTarget=e.closest(".k-event"),this.resizeStart=Boolean(e.closest(".k-resize-n, .k-resize-w")),this.resizeEnd=Boolean(e.closest(".k-resize-s, .k-resize-e")),this.tablePosition=this.element.getBoundingClientRect(),this.lastCellIndex=this.originalCellIndex=this.getCellIndex(t),this.lastRowIndex=this.originalRowIndex=this.isMouseOverAllDayRow(t)?-1:this.getRowIndex(t))}},{key:"onMovableDrag",value:function(t){if(this.moveTarget){if(!this.dragStarted)return void(this.dragStarted=!0);var e=this.isMouseOverBody(t),n=this.isMouseOverAllDayRow(t);if(e||n){var o=this.getCellIndex(t),r=o-this.originalCellIndex,i=n?-1:this.getRowIndex(t),s=n?0:i-this.originalRowIndex,a=!1;o!==this.lastCellIndex&&(this.lastCellIndex=o,a=!0),i!==this.lastRowIndex&&(this.lastRowIndex=i,a=!0),a&&this.invokeMethodAsync(this.options.jsinterop.getMoveHint,{rowIndex:i,cellIndex:o,rowOffset:s,cellOffset:r,resizeStart:this.resizeStart,resizeEnd:this.resizeEnd,isAllDay:n}).then(this.renderMoveHints)}}}},{key:"onMovableDrop",value:function(){this.destroyHints(),this.dragStarted&&this.invokeMethodAsync(this.options.jsinterop.moveAppointment),this.moveTarget=null,this.lastCellIndex=this.lastRowIndex=0,this.tablePosition=null}},{key:"getFirstCell",value:function(){return this.element.querySelector(".k-first-cell")}},{key:"getBodyElement",value:function(){return this.bodyElement||(this.bodyElement=this.element.querySelector(".k-scheduler-body")),this.bodyElement}},{key:"isMouseOverBody",value:function(t){var e=this.isInHorizontalRange(t),n=this.isInVerticalRange(t);return e&&n}},{key:"getCellIndex",value:function(t){return Math.floor((t.clientX-(this.tablePosition.left+this.slotMetrics.left))/this.slotMetrics.cellWidth)}},{key:"getRowIndex",value:function(t){return Math.floor((t.clientY-this.getBodyElement().getBoundingClientRect().top)/this.slotMetrics.height)}},{key:"isMouseOverAllDayRow",value:function(){return!1}}]),e}(l.Component),function(){var t=this;this.options={dotNetInstance:null,allowUpdate:!1,jsinterop:{resizeAppointments:""}},this.onResize=function(){var e=t.element.offsetWidth;e!==t.width&&(t.width=e,t.invokeResizeAppointments())},this.isInHorizontalRange=function(e){var n=t.tablePosition.left+t.slotMetrics.left,o=n+t.slotMetrics.width;return t.isInRange(e.clientX,n,o)},this.isInVerticalRange=function(){throw new Error("You have to implement the method isInVerticalRange!")},this.renderMoveHints=function(){throw new Error("You have to implement the method renderMoveHints!")},this.isInRange=function(t,e,n){return t>e&&t<n},this.createHint=function(e){var n=e.cloneNode();return n.className+=" k-event-drag-hint",n.style.zIndex="2",t.hints[t.hints.length]=n,n},this.destroyHints=function(){t.hints.forEach(function(t){t.parentNode.removeChild(t)}),t.hints=[]}})},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
44Object.defineProperty(e,"__esModule",{value:!0}),e.MonthTable=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(157),c=(e.MonthTable=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c.call(i),i.extendOptions(n),i}return i(e,t),s(e,[{key:"destroy",value:function(){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"onMovableDragStart",value:function(t){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"onMovableDragStart",this).call(this,t),this.moveTarget&&(this.headerPosition=this.getHeaderElement().getBoundingClientRect())}},{key:"onMovableDrop",value:function(){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"onMovableDrop",this).call(this),this.headerPosition=null}},{key:"getFirstCell",value:function(){return this.element.querySelector(".k-slot-cell")}},{key:"getHeaderElement",value:function(){return this.headerElement||(this.headerElement=this.element.querySelector(".k-scheduler-head")),this.headerElement}}]),e}(l.ContentTableBase),function(){var t=this;this.options={jsinterop:{getMoveHint:"",moveAppointment:""}},this.isInVerticalRange=function(e){var n=Math.min(t.tablePosition.bottom,t.getBodyElement().getBoundingClientRect().bottom);return t.isInRange(e.clientY,t.headerPosition.bottom,n)},this.renderMoveHints=function(e){ 45e&&e.length&&t.moveTarget&&(t.destroyHints(),e.forEach(function(e){var n=t.createHint(t.moveTarget);n.style.left=e.left+"px",n.style.width=e.width+"px",n.style.top=e.top+"px",n.style.height=e.height+"px",t.getBodyElement().appendChild(n)}))}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(160);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.Upload,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initUpload=o;var r=n(161),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Upload=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1),c=n(162),u=n(163),p=n(166),h=n(167),f=n(168),d=n(165);e.Upload=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,saveUrl:null,saveField:"files",removeUrl:null,removeField:"files",withCredentials:!1,allowedExtensions:[],minFileSize:null,maxFileSize:null,autoUpload:!1,multiple:!1,jsinterop:{onProgress:null,onSuccess:null,onError:null,onSelect:null}},i.onInputChange=function(t){var e=i.getFilesInfo(t.target.files);(0,c.isWebkit)()&&(t.target.type="",t.target.type="file"),i.options.multiple||i.clearFiles(),i.addFiles(e),i.triggerFileSelect(e)},i.onProgress=function(t){var e=i.getFile(t.file.id);(0,c.hasValue)(e)&&(e.progress=t.file.progress,i.invokeMethodAsync(i.options.jsinterop.onProgress,{files:[e],progress:t.file.progress}))},i.onSuccess=function(t){var e=[i.getFile(t.file.id)];t.operation===d.UploadOperationType.Remove?i.removeFileFromState(t.file.id):i.setFileStatus(e,p.UploadFileStatus.Uploaded),i.invokeMethodAsync(i.options.jsinterop.onSuccess,{operation:t.operation,files:e,request:t.request})},i.onError=function(t){var e=[i.getFile(t.file.id)];t.operation===d.UploadOperationType.Upload&&i.setFileStatus(e,p.UploadFileStatus.Failed),i.invokeMethodAsync(i.options.jsinterop.onError,{operation:t.operation,files:e,request:t.request})},i.extendOptions(n),i.inputElement=i.element.querySelector("input[type='file']"),i.bindEvents(),i.initOrUpdateUploadService(i.options),i.initValidator(),i.resetState(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindEvents(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this.inputElement=null,this.destroyUploadService(),this.destroyValidator()}},{key:"setOptions",value:function(t){this.extendOptions(t),this.initOrUpdateUploadService(this.options)}},{key:"bindEvents",value:function(){this.inputElement&&this.inputElement.addEventListener("change",this.onInputChange)}},{key:"unbindEvents",value:function(){this.inputElement&&this.inputElement.removeEventListener("change",this.onInputChange)}},{key:"resetState",value:function(){this.setState({files:[]})}},{key:"setState",value:function(t){this.state=(0,l.extend)(this.state||{},t)}},{key:"initOrUpdateUploadService",value:function(t){this.uploadService?this.uploadService.setOptions(t):this.uploadService=this.initUploadService(t)}},{key:"initUploadService",value:function(t){var e=new u.UploadService({saveUrl:t.saveUrl,saveField:t.saveField,removeUrl:t.removeUrl,removeField:t.removeField,withCredentials:t.withCredentials,events:{uploadProgress:this.onProgress,uploadSuccess:this.onSuccess,uploadError:this.onError,removeSuccess:this.onSuccess,removeError:this.onError}});return e}},{key:"destroyUploadService",value:function(){this.uploadService&&this.uploadService.destroy()}},{key:"initValidator",value:function(){this.validator=new h.FileValidator}},{key:"destroyValidator",value:function(){this.validator=null}},{key:"triggerFileSelect",value:function(t){return this.invokeMethodAsync(this.options.jsinterop.onSelect,t)}},{key:"addFiles",value:function(t){var e=this;(0,c.toArray)(t).forEach(function(t){e.addFile(t)})}},{key:"addFile",value:function(t){var e=this.getFile(t.id);e||(this.validateFile(t),this.state.files.push(t))}}
45,{key:"deleteFile",value:function(t){var e=t.fileId,n=t.options;this.removeFile(e,n)}},{key:"removeFile",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getFile(t);n&&(n.status===p.UploadFileStatus.Uploaded?this.uploadService.removeFile(n,{headers:e.requestHeaders,data:e.requestData}):this.removeFileFromState(t))}},{key:"removeFileFromState",value:function(t){var e=this.state.files.filter(function(e){return e.id!==t});this.setState({files:e})}},{key:"getFiles",value:function(){return this.state.files}},{key:"getFile",value:function(t){return this.state.files.find(function(e){return e.id===t})}},{key:"getFileInfo",value:function(t){var e=(0,c.getFileInfo)(t);return new f.FileInfo(e)}},{key:"getFilesInfo",value:function(t){var e=(0,c.toArray)(t).map(this.getFileInfo);return e}},{key:"uploadFiles",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.getFiles(),n=this.filesForUpload(e);this.setFileStatus(n,p.UploadFileStatus.Uploading),this.uploadService.uploadFiles(n,{headers:t.requestHeaders,data:t.requestData})}},{key:"uploadFile",value:function(t){var e=this.getFile(t);e&&(this.setFileStatus(e,p.UploadFileStatus.Uploading),this.UploadService.uploadFile(e))}},{key:"retryFile",value:function(t){var e=this.getFile(t);e&&e.status===p.UploadFileStatus.Failed&&this.uploadService.uploadFile(e)}},{key:"clearFiles",value:function(){this.setState({files:[]})}},{key:"cancelFile",value:function(t){var e=this.getFile(t);e&&(this.uploadService.cancelFile(t),this.removeFile(t))}},{key:"validateFile",value:function(t){if(this.validator){var e=this.validator.validateFile(t,{allowedExtensions:this.options.allowedExtensions,minFileSize:this.options.minFileSize,maxFileSize:this.options.maxFileSize});t.invalidExtension=!e.validExtension,t.invalidMinFileSize=!e.validMinFileSize,t.invalidMaxFileSize=!e.validMaxFileSize}}},{key:"filesForUpload",value:function t(){var e=this,t=[];return this.forEachFile(function(n){e.isFileForUpload(n)&&t.push(n)}),t}},{key:"isFileForUpload",value:function(t){return t.isValid()&&t.status===p.UploadFileStatus.Selected}},{key:"forEachFile",value:function(t){this.state.files.forEach(function(e){return t(e)})}},{key:"setFileStatus",value:function(t,e){var n=Array.isArray(t)?t:[t];n.forEach(function(t){t.status=e})}}]),e}(l.Component)},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(e.toArray=Array.from,e.hasValue=function(t){return"undefined"!=typeof t&&null!==t},e.isWebkit=function(){return navigator.userAgent.match(/webkit/i)},e.getFileExtension=function(t){var e=t.match(/\.([^\.]+)$/);return e?e[0]:""});e.getFileInfo=function(t){var e={name:t.name,size:t.size,extension:n(t.name),rawFile:t};return e}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.UploadService=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=n(1),l=n(162),c=n(164),u=n(165),p="uploadSuccess",h="uploadError",f="uploadProgress",d="removeSuccess",v="removeError";e.UploadService=function(t){function e(t){o(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,null,t));return n.options={saveUrl:"",saveMethod:"POST",saveField:"files",removeUrl:null,removeMethod:"POST",removeField:"files",withCredentials:!1,events:{uploadProgress:null,uploadSuccess:null,uploadError:null}},n.onUploadProgress=function(t){n.trigger(f,t)},n.onUploadSuccess=function(t){n.trigger(p,t)},n.onUploadError=function(t){n.trigger(h,t)},n.onRemoveSuccess=function(t){n.trigger(d,t)},n.onRemoveError=function(t){n.trigger(v,t)},n.extendOptions(t),n.resetState(),n}return i(e,t),s(e,[{key:"setOptions",value:function(t){this.extendOptions(t)}},{key:"resetState",value:function(){this.setState({fileRequests:{}})}},{key:"setState",value:function(t){this.state=(0,a.extend)(this.state||{},t)}},{key:"uploadFiles",value:function(t,e){var n=this;(0,l.toArray)(t).forEach(function(t){n.uploadFile(t,e)})}},{key:"uploadFile",value:function(t,e){this.sendUploadRequest(t,e)}},{key:"cancelFile",value:function(t){var e=this.state.fileRequests[t];e&&(this.untrackUploadRequest(t),e.abort())}},{key:"removeFile",value:function(t,e){this.sendRemoveRequest(t,e)}},{key:"sendUploadRequest",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options.saveUrl){var o=t.id,r=this.getFileUploadFormData(t.rawFile,n.data),i=c.HttpRequest.send({url:this.options.saveUrl,method:this.options.saveMethod,withCredentials:this.options.withCredentials,data:r,headers:n.headers,success:function(t){e.onUploadSuccess({operation:u.UploadOperationType.Upload,request:t.request,file:{id:o}})},error:function(t){e.onUploadError({operation:u.UploadOperationType.Upload,request:t.request,file:{id:o}})},progress:function(t){e.onUploadProgress({file:{id:o,progress:t.progress}})}});this.trackUploadRequest(o,i)}}},{key:"sendRemoveRequest",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options.removeUrl){var o=t.id,r=this.getFileRemoveFormData(t,n.data);c.HttpRequest.send({url:this.options.removeUrl,method:this.options.removeMethod,withCredentials:this.options.withCredentials,data:r,headers:n.headers,success:function(t){e.onRemoveSuccess({operation:u.UploadOperationType.Remove,request:t.request,file:{id:o}})},error:function(t){e.onRemoveError({operation:u.UploadOperationType.Remove,request:t.request,file:{id:o}})}})}}},{key:"trackUploadRequest",value:function(t,e){this.state.fileRequests[t]=e}},{key:"untrackUploadRequest",value:function(t){this.state.fileRequests[t]=null}},{key:"getFileUploadFormData",value:function(t,e){var n=this.getFormData({field:this.options.saveField,data:t,additionalData:e});return n}},{key:"getFileRemoveFormData",value:function(t,e){var n=this.getFormData({field:this.options.removeField,data:t.name,additionalData:e});return n}},{key:"getFormData",value:function(t){var e=t.data,n=t.field,o=t.additionalData,r=void 0===o?{}:o,i=new FormData;return Object.keys(r).forEach(function(t){i.append(t,r[t])}),i.append(n,e),i}}]),e}(a.Component)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}
45Object.defineProperty(e,"__esModule",{value:!0}),e.HttpRequest=void 0;var r=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);o=!0);}catch(t){r=!0,i=t}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},a=n(3),l="error",c="progress",u="load",p=function(){return{}},h=function(t){return(0,a.isFunction)(t)?t:p},f=function(t,e){var n=s({request:d(t)},e);return n},d=function(t){var e={status:t.status,statusText:t.statusText,responseText:t.responseText,responseType:t.responseType};return e};e.HttpRequest=function(){function t(){o(this,t)}return i(t,null,[{key:"send",value:function(t){var e=t.url,n=t.method,o=t.data,i=t.withCredentials,s=void 0!==i&&i,a=t.headers,p=void 0===a?{}:a,d=t.success,v=t.error,y=t.progress,g=new XMLHttpRequest,m=h(d),b=h(v),_=h(y);return g.withCredentials=s,g.addEventListener(u,function(){var t=g.status>=200&&g.status<300;t?m(f(g)):b(f(g))}),g.addEventListener(l,function(){b(f(g))}),g.upload.addEventListener(l,function(){b(f(g))}),g.upload.addEventListener(c,function(t){_(f(g,{progress:Math.round(100*t.loaded/t.total)}))}),g.open(n,e,!0),Object.entries(p).forEach(function(t){var e=r(t,2),n=e[0],o=e[1];g.setRequestHeader(n,o)}),g.send(o),g}}]),t}()},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.UploadOperationType={Upload:0,Remove:1}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.UploadFileStatus={Selected:0,Uploaded:1,Uploading:2,Failed:3}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.FileValidator=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(162);e.FileValidator=function(){function t(){o(this,t)}return r(t,[{key:"validateFile",value:function(t,e){var n=e.allowedExtensions,o=e.minFileSize,r=e.maxFileSize,i=this.isValidFileExtension(t.extension,n),s=this.isValidMinFileSize(t.size,o),a=this.isValidMaxFileSize(t.size,r);return{validExtension:i,validMinFileSize:s,validMaxFileSize:a}}},{key:"isValidFileExtension",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if((0,i.hasValue)(e)){var n=e.map(function(t){return t.toLowerCase()});return n.includes(t.toLowerCase())}return!0}},{key:"isValidMinFileSize",value:function(t,e){return!(0,i.hasValue)(e)||t>e}},{key:"isValidMaxFileSize",value:function(t,e){return!(0,i.hasValue)(e)||t<e}}]),t}()},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.FileInfo=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(3),s=n(166);e.FileInfo=function(){function t(e){o(this,t),this.id=(0,i.guid)(),this.name=(0,i.htmlEncode)(e.name),this.size=e.size,this.extension=e.extension,this.progress=e.progress||0,this.rawFile=e.rawFile,this.status=e.status||s.UploadFileStatus.Selected,this.invalidExtension=e.invalidExtension||!1,this.invalidMinFileSize=e.invalidMinSize||!1,this.invalidMaxFileSize=e.invalidMaxFileSize||!1}return r(t,[{key:"isValid",value:function(){return!this.invalidExtension&&!this.invalidMinFileSize&&!this.invalidMaxFileSize}}]),t}()},function(t,e,n){"use strict";
45Object.defineProperty(e,"__esModule",{value:!0});var o=n(170);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},function(t,e,n){"use strict";function o(t,e){(0,i.initComponent)(r.Window,t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.initWindow=o;var r=n(171),i=n(1)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Window=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(o)},l=n(1);e.Window=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.options={dotNetInstance:null,jsinterop:{keydown:"Window_KeyDown"},navigable:!1},i.onKeyDown=function(t){i.element!==t.target&&t.keyCode!==l.KeyCode.ESCAPE||i.invokeKeyDown(t)},i.extendOptions(n),i.bindEvents(),i.options.navigable&&i.enableTabKeyTrap(),i}return i(e,t),s(e,[{key:"destroy",value:function(){this.unbindEvents(),this.options.navigable&&this.disableTabKeyTrap(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this.content=null}},{key:"bindEvents",value:function(){this.element.addEventListener("keydown",this.onKeyDown)}},{key:"unbindEvents",value:function(){this.element.removeEventListener("keydown",this.onKeyDown)}},{key:"onShow",value:function(){this.unbindEvents();var t=this.element.getAttribute("data-id");this.element=(0,l.getElementByDataId)(t),this.content=this.element.querySelector(".k-window-content"),this.bindEvents(),this.formKeyTrap&&(this.formKeyTrap.destroy(),this.enableTabKeyTrap()),this.options.navigable?(0,l.focusFirstFocusableChild)(this.content.id):this.element.focus()}},{key:"invokeKeyDown",value:function(t){this.invokeMethodAsync(this.options.jsinterop.keydown,{type:t.type,key:t.key,code:t.keyCode,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey})}},{key:"enableTabKeyTrap",value:function(){this.options.modal&&(this.formKeyTrap=new l.FormKeyTrap(this.content),this.formKeyTrap.enableKeyTrap())}},{key:"disableTabKeyTrap",value:function(){this.formKeyTrap&&this.formKeyTrap.disableTabKeyTrap()}}]),e}(l.Component)}])});
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.