Select Git revision
Fuzzer.java
Forked from
Toby Murray / swen90006-a2-2018
Source project has a limited visibility.
main-es5.85c858a5d72e383fe318.js 1.15 MiB
function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return i}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _createForOfIteratorHelper(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=_unsupportedIterableToArray(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,r,o=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function _construct(t,e,i){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&_setPrototypeOf(r,i.prototype),r}).apply(null,arguments)}function _get(t,e,i){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=_superPropBase(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var i,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+jW5":function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return n}));var n=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(_classCallCheck(this,t),this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)}return _createClass(t,[{key:"push",value:function(t){this.data.push(t),this.length++,this._up(this.length-1)}},{key:"pop",value:function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}}},{key:"peek",value:function(){return this.data[0]}},{key:"_up",value:function(t){for(var e=this.data,i=this.compare,n=e[t];t>0;){var r=t-1>>1,o=e[r];if(i(n,o)>=0)break;e[t]=o,t=r}e[t]=n}},{key:"_down",value:function(t){for(var e=this.data,i=this.compare,n=this.length>>1,r=e[t];t<n;){var o=1+(t<<1),a=e[o],s=o+1;if(s<this.length&&i(e[s],a)<0&&(o=s,a=e[s]),i(a,r)>=0)break;e[t]=a,t=o}e[t]=r}}]),t}();function r(t,e){return t<e?-1:t>e?1:0}},0:function(t,e,i){t.exports=i("zUnb")},lcx6:function(t,e,i){"use strict";var n=i("+jW5");function r(t,e,i){var r,s,u,l;e=e||1;for(var h=0;h<t[0].length;h++){var c=t[0][h];(!h||c[0]<r)&&(r=c[0]),(!h||c[1]<s)&&(s=c[1]),(!h||c[0]>u)&&(u=c[0]),(!h||c[1]>l)&&(l=c[1])}var p=u-r,d=l-s,f=Math.min(p,d),g=f/2;if(0===f)return[r,s];for(var y=new n(void 0,o),v=r;v<u;v+=f)for(var m=s;m<l;m+=f)y.push(new a(v+g,m+g,g,t));var b=function(t){for(var e=0,i=0,n=0,r=t[0],o=0,s=r.length,u=s-1;o<s;u=o++){var l=r[o],h=r[u],c=l[0]*h[1]-h[0]*l[1];i+=(l[0]+h[0])*c,n+=(l[1]+h[1])*c,e+=3*c}return 0===e?new a(r[0][0],r[0][1],0,t):new a(i/e,n/e,0,t)}(t),_=new a(r+p/2,s+d/2,0,t);_.d>b.d&&(b=_);for(var w=y.length;y.length;){var x=y.pop();x.d>b.d&&(b=x,i&&console.log("found best %d after %d probes",Math.round(1e4*x.d)/1e4,w)),x.max-b.d<=e||(g=x.h/2,y.push(new a(x.x-g,x.y-g,g,t)),y.push(new a(x.x+g,x.y-g,g,t)),y.push(new a(x.x-g,x.y+g,g,t)),y.push(new a(x.x+g,x.y+g,g,t)),w+=4)}return i&&(console.log("num probes: "+w),console.log("best distance: "+b.d)),[b.x,b.y]}function o(t,e){return e.max-t.max}function a(t,e,i,n){this.x=t,this.y=e,this.h=i,this.d=function(t,e,i){for(var n=!1,r=1/0,o=0;o<i.length;o++)for(var a=i[o],u=0,l=a.length,h=l-1;u<l;h=u++){var c=a[u],p=a[h];c[1]>e!=p[1]>e&&t<(p[0]-c[0])*(e-c[1])/(p[1]-c[1])+c[0]&&(n=!n),r=Math.min(r,s(t,e,c,p))}return(n?1:-1)*Math.sqrt(r)}(t,e,n),this.max=this.d+this.h*Math.SQRT2}function s(t,e,i,n){var r=i[0],o=i[1],a=n[0]-r,s=n[1]-o;if(0!==a||0!==s){var u=((t-r)*a+(e-o)*s)/(a*a+s*s);u>1?(r=n[0],o=n[1]):u>0&&(r+=a*u,o+=s*u)}return(a=t-r)*a+(s=e-o)*s}n.default&&(n=n.default),t.exports=r,t.exports.default=r},zUnb:function(t,e,i){"use strict";i.r(e);var n={};function r(t){return"function"==typeof t}i.r(n),i.d(n,"Mercator",(function(){return BE})),i.d(n,"Miller",(function(){return tI})),i.d(n,"Eckert6",(function(){return iI})),i.d(n,"Orthographic",(function(){return oI})),i.d(n,"Stereographic",(function(){return sI})),i.d(n,"Albers",(function(){return cI})),i.d(n,"AlbersUsa",(function(){return pI})),i.d(n,"NaturalEarth1",(function(){return fI})),i.d(n,"AzimuthalEqualArea",(function(){return vI})),i.d(n,"EqualEarth",(function(){return PI})),i.d(n,"Projection",(function(){return yE}));var o=!1,a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=t},get useDeprecatedSynchronousErrorHandling(){return o}};function s(t){setTimeout((function(){throw t}),0)}var u={closed:!0,next:function(t){},error:function(t){if(a.useDeprecatedSynchronousErrorHandling)throw t;s(t)},complete:function(){}},l=Array.isArray||function(t){return t&&"number"==typeof t.length};function h(t){return null!==t&&"object"==typeof t}var c,p=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map((function(t,e){return"".concat(e+1,") ").concat(t.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),d=function(){function t(e){_classCallCheck(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return _createClass(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var i=this._parentOrParents,n=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(var a=0;a<i.length;++a)i[a].remove(this);if(r(n))try{n.call(this)}catch(d){e=d instanceof p?f(d.errors):[d]}if(l(o))for(var s=-1,u=o.length;++s<u;){var c=o[s];if(h(c))try{c.unsubscribe()}catch(d){e=e||[],d instanceof p?e=e.concat(f(d.errors)):e.push(d)}}if(e)throw new p(e)}}},{key:"add",value:function(e){var i=e;if(!e)return t.EMPTY;switch(typeof e){case"function":i=new t(e);case"object":if(i===this||i.closed||"function"!=typeof i.unsubscribe)return i;if(this.closed)return i.unsubscribe(),i;if(!(i instanceof t)){var n=i;(i=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var r=i._parentOrParents;if(null===r)i._parentOrParents=this;else if(r instanceof t){if(r===this)return i;i._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return i;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[i]:o.push(i),i}},{key:"remove",value:function(t){var e=this._subscriptions;if(e){var i=e.indexOf(t);-1!==i&&e.splice(i,1)}}}]),t}();function f(t){return t.reduce((function(t,e){return t.concat(e instanceof p?e.errors:e)}),[])}d.EMPTY=((c=new d).closed=!0,c);var g="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),y=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;switch(_classCallCheck(this,i),(o=e.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=u;break;case 1:if(!t){o.destination=u;break}if("object"==typeof t){t instanceof i?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(_assertThisInitialized(o))):(o.syncErrorThrowable=!0,o.destination=new v(_assertThisInitialized(o),t));break}default:o.syncErrorThrowable=!0,o.destination=new v(_assertThisInitialized(o),t,n,r)}return o}return _createClass(i,[{key:g,value:function(){return this}},{key:"next",value:function(t){this.isStopped||this._next(t)}},{key:"error",value:function(t){this.isStopped||(this.isStopped=!0,this._error(t))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(i.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(t){this.destination.next(t)}},{key:"_error",value:function(t){this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}],[{key:"create",value:function(t,e,n){var r=new i(t,e,n);return r.syncErrorThrowable=!1,r}}]),i}(d),v=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o,a){var s,l;_classCallCheck(this,i),(s=e.call(this))._parentSubscriber=t;var h=_assertThisInitialized(s);return r(n)?l=n:n&&(l=n.next,o=n.error,a=n.complete,n!==u&&(r((h=Object.create(n)).unsubscribe)&&s.add(h.unsubscribe.bind(h)),h.unsubscribe=s.unsubscribe.bind(_assertThisInitialized(s)))),s._context=h,s._next=l,s._error=o,s._complete=a,s}return _createClass(i,[{key:"next",value:function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}},{key:"error",value:function(t){if(!this.isStopped){var e=this._parentSubscriber,i=a.useDeprecatedSynchronousErrorHandling;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):s(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;s(t)}}}},{key:"complete",value:function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var i=function(){return t._complete.call(t._context)};a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.useDeprecatedSynchronousErrorHandling)throw i;s(i)}}},{key:"__tryOrSetError",value:function(t,e,i){if(!a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(s(n),!0)}return!1}},{key:"_unsubscribe",value:function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}]),i}(y),m="function"==typeof Symbol&&Symbol.observable||"@@observable";function b(t){return t}function _(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return w(e)}function w(t){return 0===t.length?b:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var x=function(){function t(e){_classCallCheck(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return _createClass(t,[{key:"lift",value:function(e){var i=new t;return i.source=this,i.operator=e,i}},{key:"subscribe",value:function(t,e,i){var n=this.operator,r=function(t,e,i){if(t){if(t instanceof y)return t;if(t[g])return t[g]()}return t||e||i?new y(t,e,i):new y(u)}(t,e,i);if(n?r.add(n.call(r,this.source)):r.add(this.source||a.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(t){try{return this._subscribe(t)}catch(e){a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,i=e.closed,n=e.destination,r=e.isStopped;if(i||r)return!1;t=n&&n instanceof y?n:null}return!0}(t)?t.error(e):console.warn(e)}}},{key:"forEach",value:function(t,e){var i=this;return new(e=C(e))((function(e,n){var r;r=i.subscribe((function(e){try{t(e)}catch(i){n(i),r&&r.unsubscribe()}}),n,e)}))}},{key:"_subscribe",value:function(t){var e=this.source;return e&&e.subscribe(t)}},{key:m,value:function(){return this}},{key:"pipe",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?this:w(e)(this)}},{key:"toPromise",value:function(t){var e=this;return new(t=C(t))((function(t,i){var n;e.subscribe((function(t){return n=t}),(function(t){return i(t)}),(function(){return t(n)}))}))}}]),t}();function C(t){if(t||(t=a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}x.create=function(t){return new x(t)};var P=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),k=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this)).subject=t,r.subscriber=n,r.closed=!1,r}return _createClass(i,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}}}]),i}(d),S=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t)).destination=t,n}return i}(y),O=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return _createClass(i,[{key:g,value:function(){return new S(this)}},{key:"lift",value:function(t){var e=new D(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new P;if(!this.isStopped)for(var e=this.observers,i=e.length,n=e.slice(),r=0;r<i;r++)n[r].next(t)}},{key:"error",value:function(t){if(this.closed)throw new P;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,i=e.length,n=e.slice(),r=0;r<i;r++)n[r].error(t);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new P;this.isStopped=!0;for(var t=this.observers,e=t.length,i=t.slice(),n=0;n<e;n++)i[n].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(t){if(this.closed)throw new P;return _get(_getPrototypeOf(i.prototype),"_trySubscribe",this).call(this,t)}},{key:"_subscribe",value:function(t){if(this.closed)throw new P;return this.hasError?(t.error(this.thrownError),d.EMPTY):this.isStopped?(t.complete(),d.EMPTY):(this.observers.push(t),new k(this,t))}},{key:"asObservable",value:function(){var t=new x;return t.source=this,t}}]),i}(x);O.create=function(t,e){return new D(t,e)};var D=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this)).destination=t,r.source=n,r}return _createClass(i,[{key:"next",value:function(t){var e=this.destination;e&&e.next&&e.next(t)}},{key:"error",value:function(t){var e=this.destination;e&&e.error&&this.destination.error(t)}},{key:"complete",value:function(){var t=this.destination;t&&t.complete&&this.destination.complete()}},{key:"_subscribe",value:function(t){return this.source?this.source.subscribe(t):d.EMPTY}}]),i}(O);function T(t){return t&&"function"==typeof t.schedule}var E=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this)).parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return _createClass(i,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),i}(y),I=function(t){return function(e){for(var i=0,n=t.length;i<n&&!e.closed;i++)e.next(t[i]);e.complete()}},A="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",F=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function M(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var j=function(t){if(t&&"function"==typeof t[m])return n=t,function(t){var e=n[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(F(t))return I(t);if(M(t))return i=t,function(t){return i.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,s),t};if(t&&"function"==typeof t[A])return e=t,function(t){for(var i=e[A]();;){var n=i.next();if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof i.return&&t.add((function(){i.return&&i.return()})),t};var e,i,n,r=h(t)?"an invalid object":"'".concat(t,"'");throw new TypeError("You provided ".concat(r," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.")};function L(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new E(t,i,n);if(!r.closed)return e instanceof x?e.subscribe(r):j(e)(r)}var V=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"notifyNext",value:function(t,e,i,n,r){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),i}(y);function R(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new N(t,e))}}var N=function(){function t(e,i){_classCallCheck(this,t),this.project=e,this.thisArg=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new B(t,this.project,this.thisArg))}}]),t}(),B=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).project=n,o.count=0,o.thisArg=r||_assertThisInitialized(o),o}return _createClass(i,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}]),i}(y);function H(t,e){return new x((function(i){var n=new d,r=0;return n.add(e.schedule((function(){r!==t.length?(i.next(t[r++]),i.closed||n.add(this.schedule())):i.complete()}))),n}))}function z(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new x((function(i){var n=new d;return n.add(e.schedule((function(){var r=t[m]();n.add(r.subscribe({next:function(t){n.add(e.schedule((function(){return i.next(t)})))},error:function(t){n.add(e.schedule((function(){return i.error(t)})))},complete:function(){n.add(e.schedule((function(){return i.complete()})))}}))}))),n}))}(t,e);if(M(t))return function(t,e){return new x((function(i){var n=new d;return n.add(e.schedule((function(){return t.then((function(t){n.add(e.schedule((function(){i.next(t),n.add(e.schedule((function(){return i.complete()})))})))}),(function(t){n.add(e.schedule((function(){return i.error(t)})))}))}))),n}))}(t,e);if(F(t))return H(t,e);if(function(t){return t&&"function"==typeof t[A]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new x((function(i){var n,r=new d;return r.add((function(){n&&"function"==typeof n.return&&n.return()})),r.add(e.schedule((function(){n=t[A](),r.add(e.schedule((function(){if(!i.closed){var t,e;try{var r=n.next();t=r.value,e=r.done}catch(o){return void i.error(o)}e?i.complete():(i.next(t),this.schedule())}})))}))),r}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof x?t:new x(j(t))}function U(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(n){return n.pipe(U((function(i,n){return z(t(i,n)).pipe(R((function(t,r){return e(i,t,n,r)})))}),i))}:("number"==typeof e&&(i=e),function(e){return e.lift(new W(t,i))})}var W=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,t),this.project=e,this.concurrent=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new G(t,this.project,this.concurrent))}}]),t}(),G=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,i),(r=e.call(this,t)).project=n,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(i,[{key:"_next",value:function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}},{key:"_tryNext",value:function(t){var e,i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this.active++,this._innerSub(e,t,i)}},{key:"_innerSub",value:function(t,e,i){var n=new E(this,e,i),r=this.destination;r.add(n);var o=L(this,t,void 0,void 0,n);o!==n&&r.add(o)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(t,e,i,n,r){this.destination.next(e)}},{key:"notifyComplete",value:function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),i}(V);function K(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return U(b,t)}function Y(t,e){return e?H(t,e):new x(I(t))}function q(){return function(t){return t.lift(new Z(t))}}var X,Z=function(){function t(e){_classCallCheck(this,t),this.connectable=e}return _createClass(t,[{key:"call",value:function(t,e){var i=this.connectable;i._refCount++;var n=new Q(t,i),r=e.subscribe(n);return n.closed||(n.connection=i.connect()),r}}]),t}(),Q=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).connectable=n,r}return _createClass(i,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var i=this.connection,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}else this.connection=null}}]),i}(y),$={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(X=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this)).source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return _createClass(i,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new d).add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=d.EMPTY)),t}},{key:"refCount",value:function(){return q()(this)}}]),i}(x).prototype)._subscribe},_isComplete:{value:X._isComplete,writable:!0},getSubject:{value:X.getSubject},connect:{value:X.connect},refCount:{value:X.refCount}},J=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).connectable=n,r}return _createClass(i,[{key:"_error",value:function(t){this._unsubscribe(),_get(_getPrototypeOf(i.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(i.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),i}(S);function tt(){return new O}function et(t){return{toString:t}.toString()}var it="__annotations__",nt="__parameters__",rt="__prop__metadata__";function ot(t,e,i,n,r){return et((function(){var o=at(e);function a(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(this instanceof a)return o.call.apply(o,[this].concat(e)),this;var s=_construct(a,e);return function(t){return r&&r.apply(void 0,[t].concat(e)),(t.hasOwnProperty(it)?t[it]:Object.defineProperty(t,it,{value:[]})[it]).push(s),n&&n(t),t}}return i&&(a.prototype=Object.create(i.prototype)),a.prototype.ngMetadataName=t,a.annotationCls=a,a}))}function at(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var i in e)this[i]=e[i]}}}function st(t,e,i){return et((function(){var n=at(e);function r(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(this instanceof r)return n.apply(this,e),this;var o=_construct(r,e);return a.annotation=o,a;function a(t,e,i){for(var n=t.hasOwnProperty(nt)?t[nt]:Object.defineProperty(t,nt,{value:[]})[nt];n.length<=i;)n.push(null);return(n[i]=n[i]||[]).push(o),t}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r}))}function ut(t,e,i,n){return et((function(){var r=at(e);function o(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(this instanceof o)return r.apply(this,e),this;var a=_construct(o,e);return function(t,i){var r=t.constructor,o=r.hasOwnProperty(rt)?r[rt]:Object.defineProperty(r,rt,{value:{}})[rt];o[i]=o.hasOwnProperty(i)&&o[i]||[],o[i].unshift(a),n&&n.apply(void 0,[t,i].concat(e))}}return i&&(o.prototype=Object.create(i.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}))}var lt,ht=st("Inject",(function(t){return{token:t}})),ct=st("Optional"),pt=st("Self"),dt=st("SkipSelf"),ft=st("Host"),gt=st("Attribute",(function(t){return{attributeName:t}}));function yt(t){for(var e in t)if(t[e]===yt)return e;throw Error("Could not find renamed property on target object.")}function vt(t,e){for(var i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function mt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function bt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function _t(t){return wt(t,t[Ct])||wt(t,t[St])}function wt(t,e){return e&&e.token===t?e:null}function xt(t){return t&&(t.hasOwnProperty(Pt)||t.hasOwnProperty(Ot))?t[Pt]:null}!function(t){t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional"}(lt||(lt={}));var Ct=yt({"\u0275prov":yt}),Pt=yt({"\u0275inj":yt}),kt=yt({"\u0275provFallback":yt}),St=yt({ngInjectableDef:yt}),Ot=yt({ngInjectorDef:yt});function Dt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Dt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function Tt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var Et=yt({__forward_ref__:yt});function It(t){return t.__forward_ref__=It,t.toString=function(){return Dt(this())},t}function At(t){return Ft(t)?t():t}function Ft(t){return"function"==typeof t&&t.hasOwnProperty(Et)&&t.__forward_ref__===It}var Mt,jt,Lt,Vt="undefined"!=typeof globalThis&&globalThis,Rt="undefined"!=typeof window&&window,Nt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bt="undefined"!=typeof global&&global,Ht=Vt||Bt||Rt||Nt;function zt(){var t=Ht.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}!function(t){t[t.Token=0]="Token",t[t.Attribute=1]="Attribute",t[t.ChangeDetectorRef=2]="ChangeDetectorRef",t[t.Invalid=3]="Invalid"}(Mt||(Mt={})),function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"}(jt||(jt={})),function(t){t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Lt||(Lt={}));var Ut,Wt=yt({"\u0275cmp":yt}),Gt=yt({"\u0275dir":yt}),Kt=yt({"\u0275pipe":yt}),Yt=yt({"\u0275mod":yt}),qt=yt({"\u0275loc":yt}),Xt=yt({"\u0275fac":yt}),Zt=yt({__NG_ELEMENT_ID__:yt}),Qt=function(){function t(e,i){_classCallCheck(this,t),this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=mt({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}return _createClass(t,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),t}(),$t=new Qt("INJECTOR",-1),Jt={},te=/\n/gm,ee=yt({provide:String,useValue:yt}),ie=void 0;function ne(t){var e=ie;return ie=t,e}function re(t){var e=Ut;return Ut=t,e}function oe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lt.Default;if(void 0===ie)throw new Error("inject() must be called from an injection context");return null===ie?ue(t,void 0,e):ie.get(t,e<.Optional?null:void 0,e)}function ae(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lt.Default;return(Ut||oe)(At(t),e)}function se(t){throw new Error("invalid")}function ue(t,e,i){var n=_t(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(i<.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND [".concat(Dt(t),"]"))}function le(t){for(var e=[],i=0;i<t.length;i++){var n=At(t[i]);if(Array.isArray(n)){if(0===n.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=lt.Default,a=0;a<n.length;a++){var s=n[a];s instanceof ct||"Optional"===s.ngMetadataName||s===ct?o|=lt.Optional:s instanceof dt||"SkipSelf"===s.ngMetadataName||s===dt?o|=lt.SkipSelf:s instanceof pt||"Self"===s.ngMetadataName||s===pt?o|=lt.Self:r=s instanceof ht||s===ht?s.token:s}e.push(ae(r,o))}else e.push(ae(n))}return e}var he=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jt;if(e===Jt){var i=new Error("NullInjectorError: No provider for ".concat(Dt(t),"!"));throw i.name="NullInjectorError",i}return e}}]),t}();function ce(t,e,i,n){var r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=Dt(e);if(Array.isArray(e))r=e.map(Dt).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Dt(s)))}r="{".concat(o.join(", "),"}")}return"".concat(i).concat(n?"("+n+")":"","[").concat(r,"]: ").concat(t.replace(te,"\n "))}("\n"+t.message,r,i,n),t.ngTokenPath=r,t.ngTempTokenPath=null,t}var pe={"\u0275\u0275defineInjectable":mt,"\u0275\u0275defineInjector":bt,"\u0275\u0275inject":ae,"\u0275\u0275getFactoryOf":function t(e){var i=e;if(Ft(e))return function(){var e=t(At(i));return e?e():null};var n=_t(i)||xt(i);return n&&void 0!==n.factory?n.factory:null},"\u0275\u0275invalidFactoryDep":se},de=function t(){_classCallCheck(this,t)},fe=function t(){_classCallCheck(this,t)};function ge(t,e){null==t&&function(t,e,i,n){throw new Error("ASSERTION ERROR: ".concat(t)+(null==n?"":" [Expected=> ".concat(i," ").concat(n," ").concat(e," <=Actual]")))}(e,t,null,"!=")}function ye(t,e){for(var i=0;i<t.length;i++)e.push(t[i])}function ve(t,e){void 0===e&&(e=t);for(var i=0;i<t.length;i++){var n=t[i];Array.isArray(n)?(e===t&&(e=t.slice(0,i)),ve(n,e)):e!==t&&e.push(n)}return e}function me(t,e){t.forEach((function(t){return Array.isArray(t)?me(t,e):e(t)}))}function be(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function _e(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function we(t,e){for(var i=[],n=0;n<t;n++)i.push(e);return i}function xe(t,e,i){var n=Pe(t,e);return n>=0?t[1|n]=i:function(t,e,i,n){var r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;){var o=r-2;t[r]=t[o],r--}t[e]=i,t[e+1]=n}}(t,n=~n,e,i),n}function Ce(t,e){var i=Pe(t,e);if(i>=0)return t[1|i]}function Pe(t,e){return function(t,e,i){for(var n=0,r=t.length>>i;r!==n;){var o=n+(r-n>>1),a=t[o<<i];if(e===a)return o<<i;a>e?r=o:n=o+1}return~(r<<i)}(t,e,1)}var ke={OnPush:0,Default:1};ke[ke.OnPush]="OnPush",ke[ke.Default]="Default";var Se={CheckOnce:0,Checked:1,CheckAlways:2,Detached:3,Errored:4,Destroyed:5};Se[Se.CheckOnce]="CheckOnce",Se[Se.Checked]="Checked",Se[Se.CheckAlways]="CheckAlways",Se[Se.Detached]="Detached",Se[Se.Errored]="Errored",Se[Se.Destroyed]="Destroyed";var Oe={Emulated:0,Native:1,None:2,ShadowDom:3};Oe[Oe.Emulated]="Emulated",Oe[Oe.Native]="Native",Oe[Oe.None]="None",Oe[Oe.ShadowDom]="ShadowDom";var De={},Te=[],Ee=0;function Ie(t){return et((function(){var e=t.type,i=e.prototype,n={},r={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:i.ngOnInit||null,doCheck:i.ngDoCheck||null,afterContentInit:i.ngAfterContentInit||null,afterContentChecked:i.ngAfterContentChecked||null,afterViewInit:i.ngAfterViewInit||null,afterViewChecked:i.ngAfterViewChecked||null,onDestroy:i.ngOnDestroy||null,onPush:t.changeDetection===ke.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Te,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Oe.Emulated,id:"c",styles:t.styles||Te,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,a=t.features,s=t.pipes;return r.id+=Ee++,r.inputs=Le(t.inputs,n),r.outputs=Le(t.outputs),a&&a.forEach((function(t){return t(r)})),r.directiveDefs=o?function(){return("function"==typeof o?o():o).map(Ae)}:null,r.pipeDefs=s?function(){return("function"==typeof s?s():s).map(Fe)}:null,r}))}function Ae(t){return Ne(t)||Be(t)}function Fe(t){return He(t)}var Me={};function je(t){var e={type:t.type,bootstrap:t.bootstrap||Te,declarations:t.declarations||Te,imports:t.imports||Te,exports:t.exports||Te,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&et((function(){Me[t.id]=t.type})),e}function Le(t,e){if(null==t)return De;var i={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),i[r]=n,e&&(e[r]=o)}return i}var Ve=Ie;function Re(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ne(t){return t[Wt]||null}function Be(t){return t[Gt]||null}function He(t){return t[Kt]||null}function ze(t,e){return t.hasOwnProperty(Xt)?t[Xt]:null}function Ue(t,e){var i=t[Yt]||null;if(!i&&!0===e)throw new Error("Type ".concat(Dt(t)," does not have '\u0275mod' property."));return i}function We(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ge(t){return Array.isArray(t)&&!0===t[1]}function Ke(t){return 0!=(8&t.flags)}function Ye(t){return 2==(2&t.flags)}function qe(t){return 1==(1&t.flags)}function Xe(t){return null!==t.template}function Ze(t){return 0!=(512&t[2])}var Qe=void 0;function $e(){return void 0!==Qe?Qe:"undefined"!=typeof document?document:void 0}var Je={Important:1,DashCase:2};function ti(t){return!!t.listen}Je[Je.Important]="Important",Je[Je.DashCase]="DashCase";var ei={createRenderer:function(t,e){return $e()}};function ii(t){for(;Array.isArray(t);)t=t[0];return t}function ni(t,e){return ii(e[t+20])}function ri(t,e){return ii(e[t.index])}function oi(t,e){return t.data[e+20]}function ai(t,e){return t[e+20]}function si(t,e){var i=e[t];return We(i)?i:i[0]}function ui(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function li(t){return 4==(4&t[2])}function hi(t){return 128==(128&t[2])}function ci(t,e){return null===t||null==e?null:t[e]}function pi(t){t[18]=0}function di(t,e){t[5]+=e;for(var i=t,n=t[3];null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}var fi={lFrame:Vi(null),bindingsEnabled:!0,checkNoChangesMode:!1};function gi(){return fi.bindingsEnabled}function yi(){return fi.lFrame.lView}function vi(){return fi.lFrame.tView}function mi(){return fi.lFrame.previousOrParentTNode}function bi(t,e){fi.lFrame.previousOrParentTNode=t,fi.lFrame.isParent=e}function _i(){return fi.lFrame.isParent}function wi(){fi.lFrame.isParent=!1}function xi(){return fi.checkNoChangesMode}function Ci(t){fi.checkNoChangesMode=t}function Pi(){var t=fi.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ki(){return fi.lFrame.bindingIndex}function Si(t){return fi.lFrame.bindingIndex=t}function Oi(){return fi.lFrame.bindingIndex++}function Di(t){var e=fi.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Ti(t,e){var i=fi.lFrame;i.bindingIndex=i.bindingRootIndex=t,Ei(e)}function Ei(t){fi.lFrame.currentDirectiveIndex=t}function Ii(t){var e=fi.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ai(){return fi.lFrame.currentQueryIndex}function Fi(t){fi.lFrame.currentQueryIndex=t}function Mi(t,e){var i=Li();fi.lFrame=i,i.previousOrParentTNode=e,i.lView=t}function ji(t,e){var i=Li(),n=t[1];fi.lFrame=i,i.previousOrParentTNode=e,i.lView=t,i.tView=n,i.contextLView=t,i.bindingIndex=n.bindingStartIndex}function Li(){var t=fi.lFrame,e=null===t?null:t.child;return null===e?Vi(t):e}function Vi(t){var e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Ri(){var t=fi.lFrame;return fi.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var Ni=Ri;function Bi(){var t=Ri();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Hi(t){return(fi.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,fi.lFrame.contextLView))[8]}function zi(){return fi.lFrame.selectedIndex}function Ui(t){fi.lFrame.selectedIndex=t}function Wi(){var t=fi.lFrame;return oi(t.tView,t.selectedIndex)}function Gi(t,e){for(var i=e.directiveStart,n=e.directiveEnd;i<n;i++){var r=t.data[i];r.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-i,r.afterContentInit),r.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(i,r.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(i,r.afterContentChecked)),r.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-i,r.afterViewInit),r.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(i,r.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(i,r.afterViewChecked)),null!=r.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(i,r.onDestroy)}}function Ki(t,e,i){Xi(t,e,3,i)}function Yi(t,e,i,n){(3&t[2])===i&&Xi(t,e,i,n)}function qi(t,e){var i=t[2];(3&i)===e&&(i&=2047,i+=1,t[2]=i)}function Xi(t,e,i,n){for(var r=null!=n?n:-1,o=0,a=void 0!==n?65535&t[18]:0;a<e.length;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=n&&o>=n)break}else e[a]<0&&(t[18]+=65536),(o<r||-1==r)&&(Zi(t,i,e,a),t[18]=(4294901760&t[18])+a+2),a++}function Zi(t,e,i,n){var r=i[n]<0,o=i[n+1],a=t[r?-i[n]:i[n]];r?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,o.call(a)):o.call(a)}var Qi=function t(e,i,n){_classCallCheck(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n};function $i(t,e,i){for(var n=ti(t),r=0;r<i.length;){var o=i[r];if("number"==typeof o){if(0!==o)break;r++;var a=i[r++],s=i[r++],u=i[r++];n?t.setAttribute(e,s,u,a):e.setAttributeNS(a,s,u)}else{var l=o,h=i[++r];tn(l)?n&&t.setProperty(e,l,h):n?t.setAttribute(e,l,h):e.setAttribute(l,h),r++}}return r}function Ji(t){return 3===t||4===t||6===t}function tn(t){return 64===t.charCodeAt(0)}function en(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else for(var i=-1,n=0;n<e.length;n++){var r=e[n];"number"==typeof r?i=r:0===i||nn(t,i,r,null,-1===i||2===i?e[++n]:null)}return t}function nn(t,e,i,n,r){var o=0,a=t.length;if(-1===e)a=-1;else for(;o<t.length;){var s=t[o++];if("number"==typeof s){if(s===e){a=-1;break}if(s>e){a=o-1;break}}}for(;o<t.length;){var u=t[o];if("number"==typeof u)break;if(u===i){if(null===n)return void(null!==r&&(t[o+1]=r));if(n===t[o+1])return void(t[o+2]=r)}o++,null!==n&&o++,null!==r&&o++}-1!==a&&(t.splice(a,0,e),o=a+1),t.splice(o++,0,i),null!==n&&t.splice(o++,0,n),null!==r&&t.splice(o++,0,r)}function rn(t){return-1!==t}function on(t){return 32767&t}function an(t){return t>>16}function sn(t,e){for(var i=an(t),n=e;i>0;)n=n[15],i--;return n}function un(t){return"string"==typeof t?t:null==t?"":""+t}function ln(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():un(t)}var hn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ht);function cn(t){return t instanceof Function?t():t}var pn=!0;function dn(t){var e=pn;return pn=t,e}var fn=0;function gn(t,e){var i=vn(t,e);if(-1!==i)return i;var n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,yn(n.data,t),yn(e,null),yn(n.blueprint,null));var r=mn(t,e),o=t.injectorIndex;if(rn(r))for(var a=on(r),s=sn(r,e),u=s[1].data,l=0;l<8;l++)e[o+l]=s[a+l]|u[a+l];return e[o+8]=r,o}function yn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function vn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function mn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var i=e[6],n=1;i&&-1===i.injectorIndex;)i=(e=e[15])?e[6]:null,n++;return i?i.injectorIndex|n<<16:-1}function bn(t,e,i){!function(t,e,i){var n="string"!=typeof i?i[Zt]:i.charCodeAt(0)||0;null==n&&(n=i[Zt]=fn++);var r=255&n,o=1<<r,a=128&r,s=64&r,u=32&r,l=e.data;a?s?u?l[t+7]|=o:l[t+6]|=o:u?l[t+5]|=o:l[t+4]|=o:s?u?l[t+3]|=o:l[t+2]|=o:u?l[t+1]|=o:l[t]|=o}(t,e,i)}function _n(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:lt.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t[Zt];return"number"==typeof e&&e>0?255&e:e}(i);if("function"==typeof o){Mi(e,t);try{var a=o();if(null!=a||n<.Optional)return a;throw new Error("No provider for ".concat(ln(i),"!"))}finally{Ni()}}else if("number"==typeof o){if(-1===o)return new On(t,e);var s=null,u=vn(t,e),l=-1,h=n<.Host?e[16][6]:null;for((-1===u||n<.SkipSelf)&&(l=-1===u?mn(t,e):e[u+8],Sn(n,!1)?(s=e[1],u=on(l),e=sn(l,e)):u=-1);-1!==u;){l=e[u+8];var c=e[1];if(kn(o,u,c.data)){var p=xn(u,e,i,s,n,h);if(p!==wn)return p}Sn(n,e[1].data[u+8]===h)&&kn(o,u,e)?(s=c,u=on(l),e=sn(l,e)):u=-1}}}if(n<.Optional&&void 0===r&&(r=null),0==(n&(lt.Self|lt.Host))){var d=e[9],f=re(void 0);try{return d?d.get(i,r,n<.Optional):ue(i,r,n<.Optional)}finally{re(f)}}if(n<.Optional)return r;throw new Error("NodeInjector: NOT_FOUND [".concat(ln(i),"]"))}var wn={};function xn(t,e,i,n,r,o){var a=e[1],s=a.data[t+8],u=Cn(s,a,i,null==n?Ye(s)&&pn:n!=a&&3===s.type,r<.Host&&o===s);return null!==u?Pn(e,a,u,s):wn}function Cn(t,e,i,n,r){for(var o=t.providerIndexes,a=e.data,s=65535&o,u=t.directiveStart,l=t.directiveEnd,h=o>>16,c=r?s+h:l,p=n?s:s+h;p<c;p++){var d=a[p];if(p<u&&i===d||p>=u&&d.type===i)return p}if(r){var f=a[u];if(f&&Xe(f)&&f.type===i)return u}return null}function Pn(t,e,i,n){var r=t[i],o=e.data;if(r instanceof Qi){var a=r;if(a.resolving)throw new Error("Circular dep for ".concat(ln(o[i])));var s,u=dn(a.canSeeViewProviders);a.resolving=!0,a.injectImpl&&(s=re(a.injectImpl)),Mi(t,n);try{r=t[i]=a.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){var n=e.onChanges,r=e.onInit,o=e.doCheck;n&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)),r&&(i.preOrderHooks||(i.preOrderHooks=[])).push(-t,r),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{a.injectImpl&&re(s),dn(u),a.resolving=!1,Ni()}}return r}function kn(t,e,i){var n=1<<t,r=64&t,o=32&t;return!!((128&t?r?o?i[e+7]:i[e+6]:o?i[e+5]:i[e+4]:r?o?i[e+3]:i[e+2]:o?i[e+1]:i[e])&n)}function Sn(t,e){return!(t<.Self||t<.Host&&e)}var On=function(){function t(e,i){_classCallCheck(this,t),this._tNode=e,this._lView=i}return _createClass(t,[{key:"get",value:function(t,e){return _n(this._tNode,this._lView,t,void 0,e)}}]),t}();function Dn(t){var e=t;if(Ft(t))return function(){var t=Dn(At(e));return t?t():null};var i=ze(e);if(null===i){var n=xt(e);i=n&&n.factory}return i||null}function Tn(t){return t.ngDebugContext}function En(t){return t.ngOriginalError}function In(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];t.error.apply(t,i)}var An=function(){function t(){_classCallCheck(this,t),this._console=console}return _createClass(t,[{key:"handleError",value:function(t){var e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||In}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}},{key:"_findContext",value:function(t){return t?Tn(t)?Tn(t):this._findContext(En(t)):null}},{key:"_findOriginalError",value:function(t){for(var e=En(t);e&&En(e);)e=En(e);return e}}]),t}(),Fn=function(){function t(e){_classCallCheck(this,t),this.changingThisBreaksApplicationSecurity=e}return _createClass(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see http://g.co/ng/security#xss)"}}]),t}(),Mn=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"getTypeName",value:function(){return"HTML"}}]),i}(Fn),jn=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"getTypeName",value:function(){return"Style"}}]),i}(Fn),Ln=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"getTypeName",value:function(){return"Script"}}]),i}(Fn),Vn=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"getTypeName",value:function(){return"URL"}}]),i}(Fn),Rn=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),i}(Fn);function Nn(t){return t instanceof Fn?t.changingThisBreaksApplicationSecurity:t}function Bn(t,e){var i=Hn(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(i," (see http://g.co/ng/security#xss)"))}return i===e}function Hn(t){return t instanceof Fn&&t.getTypeName()||null}var zn=!0,Un=!1;function Wn(){return Un=!0,zn}var Gn=function(){function t(e){_classCallCheck(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");var i=this.inertDocument.body;if(null==i){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n),i=this.inertDocument.createElement("body"),n.appendChild(i)}i.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!i.querySelector||i.querySelector("svg")?(i.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',i.querySelector&&i.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement=this.getInertBodyElement_DOMParser:this.getInertBodyElement=this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return _createClass(t,[{key:"getInertBodyElement_XHR",value:function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(n){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var i=e.response.body;return i.removeChild(i.firstChild),i}},{key:"getInertBodyElement_DOMParser",value:function(t){t="<body><remove></remove>"+t+"</body>";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(i){return null}}},{key:"getInertBodyElement_InertDocument",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;var i=this.inertDocument.createElement("body");return i.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,i=e.length-1;0<i;i--){var n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}for(var r=t.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),t}(),Kn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Yn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function qn(t){return(t=String(t)).match(Kn)||t.match(Yn)?t:(Wn()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(t," (see http://g.co/ng/security#xss)")),"unsafe:"+t)}function Xn(t){return(t=String(t)).split(",").map((function(t){return qn(t.trim())})).join(", ")}function Zn(t){var e,i={},n=_createForOfIteratorHelper(t.split(","));try{for(n.s();!(e=n.n()).done;){i[e.value]=!0}}catch(r){n.e(r)}finally{n.f()}return i}function Qn(){for(var t={},e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];for(var r=0,o=i;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(t[s]=!0)}return t}var $n,Jn=Zn("area,br,col,hr,img,wbr"),tr=Zn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),er=Zn("rp,rt"),ir=Qn(er,tr),nr=Qn(tr,Zn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),rr=Qn(er,Zn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),or=Qn(Jn,nr,rr,ir),ar=Zn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),sr=Zn("srcset"),ur=Zn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),lr=Zn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),hr=Qn(ar,sr,ur,lr),cr=Zn("script,style,template"),pr=function(){function t(){_classCallCheck(this,t),this.sanitizedSomething=!1,this.buf=[]}return _createClass(t,[{key:"sanitizeChildren",value:function(t){for(var e=t.firstChild,i=!0;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);var n=this.checkClobberedElement(e,e.nextSibling);if(n){e=n;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(t){var e=t.nodeName.toLowerCase();if(!or.hasOwnProperty(e))return this.sanitizedSomething=!0,!cr.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);for(var i=t.attributes,n=0;n<i.length;n++){var r=i.item(n),o=r.name,a=o.toLowerCase();if(hr.hasOwnProperty(a)){var s=r.value;ar[a]&&(s=qn(s)),sr[a]&&(s=Xn(s)),this.buf.push(" ",o,'="',gr(s),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();or.hasOwnProperty(e)&&!Jn.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}},{key:"chars",value:function(t){this.buf.push(gr(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return e}}]),t}(),dr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fr=/([^\#-~ |!])/g;function gr(t){return t.replace(/&/g,"&").replace(dr,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(fr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}function yr(t,e){var i=null;try{$n=$n||new Gn(t);var n=e?String(e):"";i=$n.getInertBodyElement(n);var r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=$n.getInertBodyElement(n)}while(n!==o);var a=new pr,s=a.sanitizeChildren(vr(i)||i);return Wn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(i)for(var u=vr(i)||i;u.firstChild;)u.removeChild(u.firstChild)}}function vr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var mr={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};mr[mr.NONE]="NONE",mr[mr.HTML]="HTML",mr[mr.STYLE]="STYLE",mr[mr.SCRIPT]="SCRIPT",mr[mr.URL]="URL",mr[mr.RESOURCE_URL]="RESOURCE_URL";var br=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),_r=/^url\(([^)]+)\)$/;function wr(t){if(!(t=String(t).trim()))return"";var e=t.match(_r);return e&&qn(e[1])===e[1]||t.match(br)&&function(t){for(var e=!0,i=!0,n=0;n<t.length;n++){var r=t.charAt(n);"'"===r&&i?e=!e:'"'===r&&e&&(i=!i)}return e&&i}(t)?t:(Wn()&&console.warn("WARNING: sanitizing unsafe style value ".concat(t," (see http://g.co/ng/security#xss).")),"unsafe")}function xr(t){var e=Sr();return e?e.sanitize(mr.STYLE,t)||"":Bn(t,"Style")?Nn(t):wr(un(t))}function Cr(t){var e=Sr();return e?e.sanitize(mr.URL,t)||"":Bn(t,"URL")?Nn(t):qn(un(t))}function Pr(t){var e=Sr();if(e)return e.sanitize(mr.RESOURCE_URL,t)||"";if(Bn(t,"ResourceURL"))return Nn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function kr(t){return"background-image"===t||"backgroundImage"===t||"background"===t||"border-image"===t||"borderImage"===t||"border-image-source"===t||"borderImageSource"===t||"filter"===t||"list-style"===t||"listStyle"===t||"list-style-image"===t||"listStyleImage"===t||"clip-path"===t||"clipPath"===t}function Sr(){var t=yi();return t&&t[12]}function Or(t,e){t.__ngContext__=e}function Dr(t){throw new Error("Multiple components match node with tagname ".concat(t.tagName))}function Tr(){throw new Error("Cannot mix multi providers and regular providers")}function Er(t,e,i){for(var n=t.length;;){var r=t.indexOf(e,i);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){var o=e.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}i=r+1}}function Ir(t,e,i){for(var n=0;n<t.length;){var r=t[n++];if(i&&"class"===r){if(-1!==Er((r=t[n]).toLowerCase(),e,0))return!0}else if(1===r){for(;n<t.length&&"string"==typeof(r=t[n++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Ar(t){return 0===t.type&&"ng-template"!==t.tagName}function Fr(t,e,i){return e===(0!==t.type||i?t.tagName:"ng-template")}function Mr(t,e,i){for(var n=4,r=t.attrs||[],o=function(t){for(var e=0;e<t.length;e++)if(Ji(t[e]))return e;return t.length}(r),a=!1,s=0;s<e.length;s++){var u=e[s];if("number"!=typeof u){if(!a)if(4&n){if(n=2|1&n,""!==u&&!Fr(t,u,i)||""===u&&1===e.length){if(jr(n))return!1;a=!0}}else{var l=8&n?u:e[++s];if(8&n&&null!==t.attrs){if(!Ir(t.attrs,l,i)){if(jr(n))return!1;a=!0}continue}var h=Lr(8&n?"class":u,r,Ar(t),i);if(-1===h){if(jr(n))return!1;a=!0;continue}if(""!==l){var c;c=h>o?"":r[h+1].toLowerCase();var p=8&n?c:null;if(p&&-1!==Er(p,l,0)||2&n&&l!==c){if(jr(n))return!1;a=!0}}}}else{if(!a&&!jr(n)&&!jr(u))return!1;if(a&&jr(u))continue;a=!1,n=u|1&n}}return jr(n)||a}function jr(t){return 0==(1&t)}function Lr(t,e,i,n){if(null===e)return-1;var r=0;if(n||!i){for(var o=!1;r<e.length;){var a=e[r];if(a===t)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=e[++r];"string"==typeof s;)s=e[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(t,e){var i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){var n=t[i];if("number"==typeof n)return-1;if(n===e)return i;i++}return-1}(e,t)}function Vr(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0;n<e.length;n++)if(Mr(t,e[n],i))return!0;return!1}function Rr(t,e){t:for(var i=0;i<e.length;i++){var n=e[i];if(t.length===n.length){for(var r=0;r<t.length;r++)if(t[r]!==n[r])continue t;return!0}}return!1}function Nr(t,e){return t?":not("+e.trim()+")":e}function Br(t){for(var e=t[0],i=1,n=2,r="",o=!1;i<t.length;){var a=t[i];if("string"==typeof a)if(2&n){var s=t[++i];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""===r||jr(a)||(e+=Nr(o,r),r=""),n=a,o=o||!jr(n);i++}return""!==r&&(e+=Nr(o,r)),e}var Hr={};function zr(t){var e=t[3];return Ge(e)?e[3]:e}function Ur(t){return Gr(t[13])}function Wr(t){return Gr(t[4])}function Gr(t){for(;null!==t&&!Ge(t);)t=t[4];return t}function Kr(t){Yr(vi(),yi(),zi()+t,xi())}function Yr(t,e,i,n){if(!n)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&Ki(e,r,i)}else{var o=t.preOrderHooks;null!==o&&Yi(e,o,0,i)}Ui(i)}var qr={marker:"element"},Xr={marker:"comment"};function Zr(t,e){return t<<17|e<<2}function Qr(t){return t>>17&32767}function $r(t){return 2|t}function Jr(t){return(131068&t)>>2}function to(t,e){return-131069&t|e<<2}function eo(t){return 1|t}function io(t,e){var i=t.contentQueries;if(null!==i)for(var n=0;n<i.length;n+=2){var r=i[n],o=i[n+1];if(-1!==o){var a=t.data[o];Fi(r),a.contentQueries(2,e[o],o)}}}function no(t,e,i){return ti(e)?e.createElement(t,i):null===i?e.createElement(t):e.createElementNS(i,t)}function ro(t,e,i,n,r,o,a,s,u,l){var h=e.blueprint.slice();return h[0]=r,h[2]=140|n,pi(h),h[3]=h[15]=t,h[8]=i,h[10]=a||t&&t[10],h[11]=s||t&&t[11],h[12]=u||t&&t[12]||null,h[9]=l||t&&t[9]||null,h[6]=o,h[16]=2==e.type?t[16]:h,h}function oo(t,e,i,n,r,o){var a=i+20,s=t.data[a]||function(t,e,i,n,r,o){var a=mi(),s=_i(),u=s?a:a&&a.parent,l=u&&u!==e?u:null,h=t.data[i]=yo(t,l,n,i,r,o);return null===t.firstChild&&(t.firstChild=h),a&&(!s||null!=a.child||null===h.parent&&2!==a.type?s||(a.next=h):a.child=h),h}(t,e,a,n,r,o);return bi(s,!0),s}function ao(t,e,i){ji(e,e[6]);try{var n=t.viewQuery;null!==n&&No(1,n,i);var r=t.template;null!==r&&lo(t,e,r,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&io(t,e),t.staticViewQueries&&No(2,t.viewQuery,i);var o=t.components;null!==o&&function(t,e){for(var i=0;i<e.length;i++)Mo(t,e[i])}(e,o)}catch(a){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),a}finally{e[2]&=-5,Bi()}}function so(t,e,i,n){var r=e[2];if(256!=(256&r)){ji(e,e[6]);var o=xi();try{pi(e),Si(t.bindingStartIndex),null!==i&&lo(t,e,i,2,n);var a=3==(3&r);if(!o)if(a){var s=t.preOrderCheckHooks;null!==s&&Ki(e,s,null)}else{var u=t.preOrderHooks;null!==u&&Yi(e,u,0,null),qi(e,0)}if(function(t){for(var e=Ur(t);null!==e;e=Wr(e))if(e[2])for(var i=e[9],n=0;n<i.length;n++){var r=i[n],o=r[3];0==(1024&r[2])&&di(o,1),r[2]|=1024}}(e),function(t){for(var e=Ur(t);null!==e;e=Wr(e))for(var i=10;i<e.length;i++){var n=e[i],r=n[1];hi(n)&&so(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&io(t,e),!o)if(a){var l=t.contentCheckHooks;null!==l&&Ki(e,l)}else{var h=t.contentHooks;null!==h&&Yi(e,h,1),qi(e,1)}!function(t,e){try{var i=t.expandoInstructions;if(null!==i)for(var n=t.expandoStartIndex,r=-1,o=0;o<i.length;o++){var a=i[o];"number"==typeof a?a<=0?(Ui(0-a),r=n+=9+i[++o]):n+=a:(null!==a&&(Ti(n,r),a(2,e[r])),r++)}}finally{Ui(-1)}}(t,e);var c=t.components;null!==c&&function(t,e){for(var i=0;i<e.length;i++)Fo(t,e[i])}(e,c);var p=t.viewQuery;if(null!==p&&No(2,p,n),!o)if(a){var d=t.viewCheckHooks;null!==d&&Ki(e,d)}else{var f=t.viewHooks;null!==f&&Yi(e,f,2),qi(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,di(e[3],-1))}finally{Bi()}}}function uo(t,e,i,n){var r=e[10],o=!xi(),a=li(e);try{o&&!a&&r.begin&&r.begin(),a&&ao(t,e,n),so(t,e,i,n)}finally{o&&!a&&r.end&&r.end()}}function lo(t,e,i,n,r){var o=zi();try{Ui(-1),2&n&&e.length>20&&Yr(t,e,0,xi()),i(n,r)}finally{Ui(o)}}function ho(t,e,i){if(Ke(e))for(var n=e.directiveStart,r=e.directiveEnd,o=n;o<r;o++){var a=t.data[o];a.contentQueries&&a.contentQueries(1,i[o],o)}}function co(t,e,i){gi()&&(function(t,e,i,n){var r=i.directiveStart,o=i.directiveEnd;t.firstCreatePass||gn(i,e),Or(n,e);for(var a=i.initialInputs,s=r;s<o;s++){var u=t.data[s],l=Xe(u);l&&Do(e,i,u);var h=Pn(e,t,s,i);Or(h,e),null!==a&&Eo(e,s-r,h,u,i,a),l&&(si(i.index,e)[8]=h)}}(t,e,i,ri(i,e)),128==(128&i.flags)&&function(t,e,i){var n=i.directiveStart,r=i.directiveEnd,o=t.expandoInstructions,a=t.firstCreatePass,s=i.index-20,u=fi.lFrame.currentDirectiveIndex;try{Ui(s);for(var l=n;l<r;l++){var h=t.data[l],c=e[l];Ei(l),null!==h.hostBindings||0!==h.hostVars||null!==h.hostAttrs?xo(h,c):a&&o.push(null)}}finally{Ui(-1),Ei(u)}}(t,e,i))}function po(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ri,n=e.localNames;if(null!==n)for(var r=e.index+1,o=0;o<n.length;o+=2){var a=n[o+1],s=-1===a?i(e,t):t[a];t[r++]=s}}function fo(t){var e=t.tView;return null===e||e.incompleteFirstPass?t.tView=go(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function go(t,e,i,n,r,o,a,s,u,l){var h=20+n,c=h+r,p=function(t,e){for(var i=[],n=0;n<e;n++)i.push(n<t?null:Hr);return i}(h,c);return p[1]={type:t,id:e,blueprint:p,template:i,queries:null,viewQuery:s,node:null,data:p.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:c,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:u,consts:l,incompleteFirstPass:!1}}function yo(t,e,i,n,r,o){return{type:i,index:n,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function vo(t,e,i){for(var n in t)if(t.hasOwnProperty(n)){i=null===i?{}:i;var r=t[n];i.hasOwnProperty(n)?i[n].push(e,r):i[n]=[e,r]}return i}function mo(t,e,i,n,r,o,a,s){var u,l,h=ri(e,i),c=e.inputs;!s&&null!=c&&(u=c[n])?(Go(t,i,u,n,r),Ye(e)&&function(t,e){var i=si(e,t);16&i[2]||(i[2]|=64)}(i,e.index)):3===e.type?(n="class"===(l=n)?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l,r=null!=a?a(r,e.tagName||"",n):r,ti(o)?o.setProperty(h,n,r):tn(n)||(h.setProperty?h.setProperty(n,r):h[n]=r)):e.type}function bo(t,e,i,n){var r=!1;if(gi()){var o=function(t,e,i){var n=t.directiveRegistry,r=null;if(n)for(var o=0;o<n.length;o++){var a=n[o];Vr(i,a.selectors,!1)&&(r||(r=[]),bn(gn(i,e),t,a.type),Xe(a)?(2&i.flags&&Dr(i),Po(t,i),r.unshift(a)):r.push(a))}return r}(t,e,i),a=null===n?null:{"":-1};if(null!==o){var s=0;r=!0,So(i,t.data.length,o.length);for(var u=0;u<o.length;u++){var l=o[u];l.providersResolver&&l.providersResolver(l)}Co(t,i,o.length);for(var h=!1,c=!1,p=0;p<o.length;p++){var d=o[p];i.mergedAttrs=en(i.mergedAttrs,d.hostAttrs),Oo(t,e,d),ko(t.data.length-1,d,a),null!==d.contentQueries&&(i.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(i.flags|=128),!h&&(d.onChanges||d.onInit||d.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(i.index-20),h=!0),c||!d.onChanges&&!d.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i.index-20),c=!0),_o(t,d),s+=d.hostVars}!function(t,e){for(var i=e.directiveStart,n=e.directiveEnd,r=t.data,o=e.attrs,a=[],s=null,u=null,l=i;l<n;l++){var h=r[l],c=h.inputs,p=null===o||Ar(e)?null:Io(c,o);a.push(p),s=vo(c,l,s),u=vo(h.outputs,l,u)}null!==s&&(s.hasOwnProperty("class")&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=a,e.inputs=s,e.outputs=u}(t,i),wo(t,e,s)}a&&function(t,e,i){if(e)for(var n=t.localNames=[],r=0;r<e.length;r+=2){var o=i[e[r+1]];if(null==o)throw new Error("Export of name '".concat(e[r+1],"' not found!"));n.push(e[r],o)}}(i,n,a)}return i.mergedAttrs=en(i.mergedAttrs,i.attrs),r}function _o(t,e){var i=t.expandoInstructions;i.push(e.hostBindings),0!==e.hostVars&&i.push(e.hostVars)}function wo(t,e,i){for(var n=0;n<i;n++)e.push(Hr),t.blueprint.push(Hr),t.data.push(null)}function xo(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Co(t,e,i){var n=20-e.index,r=65535&e.providerIndexes,o=t.data.length-r;(t.expandoInstructions||(t.expandoInstructions=[])).push(n,o,i)}function Po(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function ko(t,e,i){if(i){if(e.exportAs)for(var n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;Xe(e)&&(i[""]=t)}}function So(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function Oo(t,e,i){t.data.push(i);var n=i.factory||(i.factory=ze(i.type)),r=new Qi(n,Xe(i),null);t.blueprint.push(r),e.push(r)}function Do(t,e,i){var n=ri(e,t),r=fo(i),o=t[10],a=jo(t,ro(t,r,null,i.onPush?64:16,n,e,o,o.createRenderer(n,i)));t[e.index]=a}function To(t,e,i,n,r,o){var a=ri(t,e),s=e[11];if(null==n)ti(s)?s.removeAttribute(a,i,o):a.removeAttribute(i);else{var u=null==r?un(n):r(n,t.tagName||"",i);ti(s)?s.setAttribute(a,i,u,o):o?a.setAttributeNS(o,i,u):a.setAttribute(i,u)}}function Eo(t,e,i,n,r,o){var a=o[e];if(null!==a)for(var s=n.setInput,u=0;u<a.length;){var l=a[u++],h=a[u++],c=a[u++];null!==s?n.setInput(i,c,l,h):i[h]=c}}function Io(t,e){for(var i=null,n=0;n<e.length;){var r=e[n];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===i&&(i=[]),i.push(r,t[r],e[n+1])),n+=2}else n+=2;else n+=4}return i}function Ao(t,e,i,n){return new Array(t,!0,!1,e,null,0,n,i,null,null)}function Fo(t,e){var i=si(e,t);if(hi(i)){var n=i[1];80&i[2]?so(n,i,n.template,i[8]):i[5]>0&&function t(e){for(var i=Ur(e);null!==i;i=Wr(i))for(var n=10;n<i.length;n++){var r=i[n];if(1024&r[2]){var o=r[1];so(o,r,o.template,r[8])}else r[5]>0&&t(r)}var a=e[1].components;if(null!==a)for(var s=0;s<a.length;s++){var u=si(a[s],e);hi(u)&&u[5]>0&&t(u)}}(i)}}function Mo(t,e){var i=si(e,t),n=i[1];!function(t,e){for(var i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}(n,i),ao(n,i,i[8])}function jo(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Lo(t){for(;t;){t[2]|=64;var e=zr(t);if(Ze(t)&&!e)return t;t=e}return null}function Vo(t,e,i){var n=e[10];n.begin&&n.begin();try{so(t,e,t.template,i)}catch(r){throw Wo(e,r),r}finally{n.end&&n.end()}}function Ro(t){!function(t){for(var e=0;e<t.components.length;e++){var i=t.components[e],n=ui(i),r=n[1];uo(r,n,r.template,i)}}(t[8])}function No(t,e,i){Fi(0),e(t,i)}var Bo=Promise.resolve(null);function Ho(t){return t[7]||(t[7]=[])}function zo(t){return t.cleanup||(t.cleanup=[])}function Uo(t,e,i){return(null===t||Xe(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function Wo(t,e){var i=t[9],n=i?i.get(An,null):null;n&&n.handleError(e)}function Go(t,e,i,n,r){for(var o=0;o<i.length;){var a=i[o++],s=i[o++],u=e[a],l=t.data[a];null!==l.setInput?l.setInput(u,r,n,s):u[s]=r}}function Ko(t,e,i){var n=ni(e,t),r=t[11];ti(r)?r.setValue(n,i):n.textContent=i}function Yo(t,e){var i=e[3];return-1===t.index?Ge(i)?i:null:i}function qo(t,e){var i=Yo(t,e);return i?sa(e[11],i[7]):null}function Xo(t,e,i,n,r){if(null!=n){var o,a=!1;Ge(n)?o=n:We(n)&&(a=!0,n=n[0]);var s=ii(n);0===t&&null!==i?null==r?oa(e,i,s):ra(e,i,s,r||null):1===t&&null!==i?ra(e,i,s,r||null):2===t?ca(e,s,a):3===t&&e.destroyNode(s),null!=o&&function(t,e,i,n,r){var o=i[7];o!==ii(i)&&Xo(e,t,n,o,r);for(var a=10;a<i.length;a++){var s=i[a];da(s[1],s,t,e,n,o)}}(e,t,o,i,r)}}function Zo(t,e){return ti(e)?e.createText(t):e.createTextNode(t)}function Qo(t,e,i,n){var r=qo(t.node,e);r&&da(t,e,e[11],i?1:2,r,n)}function $o(t,e){var i=t[9],n=i.indexOf(e),r=e[3];1024&e[2]&&di(r,-1),i.splice(n,1)}function Jo(t,e){if(!(t.length<=10)){var i=10+e,n=t[i];if(n){var r=n[17];null!==r&&r!==t&&$o(r,n),e>0&&(t[i-1][4]=n[4]);var o=_e(t,10+e);Qo(n[1],n,!1,null);var a=o[19];null!==a&&a.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function ta(t,e){if(!(256&e[2])){var i=e[11];ti(i)&&i.destroyNode&&da(t,e,i,3,null,null),function(t){var e=t[13];if(!e)return ia(t[1],t);for(;e;){var i=null;if(We(e))i=e[13];else{var n=e[10];n&&(i=n)}if(!i){for(;e&&!e[4]&&e!==t;)We(e)&&ia(e[1],e),e=ea(e,t);null===e&&(e=t),We(e)&&ia(e[1],e),i=e&&e[4]}e=i}}(e)}}function ea(t,e){var i;return We(t)&&(i=t[6])&&2===i.type?Yo(i,t):t[3]===e?null:t[3]}function ia(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var i;if(null!=t&&null!=(i=t.destroyHooks))for(var n=0;n<i.length;n+=2){var r=e[i[n]];if(!(r instanceof Qi)){var o=i[n+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(r[o[a]]);else o.call(r)}}}(t,e),function(t,e){var i=t.cleanup;if(null!==i){for(var n=e[7],r=0;r<i.length-1;r+=2)if("string"==typeof i[r]){var o=i[r+1],a="function"==typeof o?o(e):ii(e[o]),s=n[i[r+2]],u=i[r+3];"boolean"==typeof u?a.removeEventListener(i[r],s,u):u>=0?n[u]():n[-u].unsubscribe(),r+=2}else{var l=n[i[r+1]];i[r].call(l)}e[7]=null}}(t,e);var i=e[6];i&&3===i.type&&ti(e[11])&&e[11].destroy();var n=e[17];if(null!==n&&Ge(e[3])){n!==e[3]&&$o(n,e);var r=e[19];null!==r&&r.detachView(t)}}}function na(t,e,i){for(var n=e.parent;null!=n&&(4===n.type||5===n.type);)n=(e=n).parent;if(null==n){var r=i[6];return 2===r.type?qo(r,i):i[0]}if(e&&5===e.type&&4&e.flags)return ri(e,i).parentNode;if(2&n.flags){var o=t.data,a=o[o[n.index].directiveStart].encapsulation;if(a!==Oe.ShadowDom&&a!==Oe.Native)return null}return ri(n,i)}function ra(t,e,i,n){ti(t)?t.insertBefore(e,i,n):e.insertBefore(i,n,!0)}function oa(t,e,i){ti(t)?t.appendChild(e,i):e.appendChild(i)}function aa(t,e,i,n){null!==n?ra(t,e,i,n):oa(t,e,i)}function sa(t,e){return ti(t)?t.parentNode(e):e.parentNode}function ua(t,e){if(2===t.type){var i=Yo(t,e);return null===i?null:ha(i.indexOf(e,10)-10,i)}return 4===t.type||5===t.type?ri(t,e):null}function la(t,e,i,n){var r=na(t,n,e);if(null!=r){var o=e[11],a=ua(n.parent||e[6],e);if(Array.isArray(i))for(var s=0;s<i.length;s++)aa(o,r,i[s],a);else aa(o,r,i,a)}}function ha(t,e){var i=10+t+1;if(i<e.length){var n=e[i],r=n[1].firstChild;if(null!==r)return function t(e,i){if(null!==i){var n=i.type;if(3===n)return ri(i,e);if(0===n)return ha(-1,e[i.index]);if(4===n||5===n){var r=i.child;if(null!==r)return t(e,r);var o=e[i.index];return Ge(o)?ha(-1,o):ii(o)}var a=e[16],s=a[6],u=zr(a),l=s.projection[i.projection];return null!=l?t(u,l):t(e,i.next)}return null}(n,r)}return e[7]}function ca(t,e,i){var n=sa(t,e);n&&function(t,e,i,n){ti(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}function pa(t,e,i,n,r,o,a){for(;null!=i;){var s=n[i.index],u=i.type;a&&0===e&&(s&&Or(ii(s),n),i.flags|=4),64!=(64&i.flags)&&(4===u||5===u?(pa(t,e,i.child,n,r,o,!1),Xo(e,t,r,s,o)):1===u?ga(t,e,n,i,r,o):Xo(e,t,r,s,o)),i=a?i.projectionNext:i.next}}function da(t,e,i,n,r,o){pa(i,n,t.node.child,e,r,o,!1)}function fa(t,e,i){ga(e[11],0,e,i,na(t,i,e),ua(i.parent||e[6],e))}function ga(t,e,i,n,r,o){var a=i[16],s=a[6].projection[n.projection];if(Array.isArray(s))for(var u=0;u<s.length;u++)Xo(e,t,r,s[u],o);else pa(t,e,s,a[3],r,o,!0)}function ya(t,e,i){ti(t)?t.setAttribute(e,"style",i):e.style.cssText=i}function va(t,e,i){ti(t)?""===i?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i):e.className=i}var ma,ba,_a,wa=function(){function t(e,i){_classCallCheck(this,t),this._lView=e,this._cdRefInjectingView=i,this._appRef=null,this._viewContainerRef=null}return _createClass(t,[{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}ta(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){var e,i,n;e=this._lView[1],n=t,Ho(i=this._lView).push(n),e.firstCreatePass&&zo(e).push(i[7].length-1,null)}},{key:"markForCheck",value:function(){Lo(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Vo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,i){Ci(!0);try{Vo(t,e,i)}finally{Ci(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,da(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}},{key:"rootNodes",get:function(){var t=this._lView;if(null==t[0]){var e=t[6];return function t(e,i,n,r){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=i[n.index];if(null!==a&&r.push(ii(a)),Ge(a))for(var s=10;s<a.length;s++){var u=a[s],l=u[1].firstChild;null!==l&&t(u[1],u,l,r)}var h=n.type;if(4===h||5===h)t(e,i,n.child,r);else if(1===h){var c=i[16],p=c[6],d=n.projection,f=p.projection[d];if(Array.isArray(f))r.push.apply(r,_toConsumableArray(f));else{var g=zr(c);t(g[1],g,f,r,!0)}}n=o?n.projectionNext:n.next}return r}(t[1],t,e.child,[])}return[]}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),t}(),xa=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t))._view=t,n}return _createClass(i,[{key:"detectChanges",value:function(){Ro(this._view)}},{key:"checkNoChanges",value:function(){!function(t){Ci(!0);try{Ro(t)}finally{Ci(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),i}(wa);function Ca(t,e,i){return ma||(ma=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(t)),new ma(ri(e,i))}function Pa(t,e,i,n){return ba||(ba=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._declarationView=t,o._declarationTContainer=n,o.elementRef=r,o}return _createClass(i,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,i=ro(this._declarationView,e,t,16,null,e.node),n=this._declarationView[this._declarationTContainer.index];i[17]=n;var r=this._declarationView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),ao(e,i,t),new wa(i)}}]),i}(t)),0===i.type?new ba(n,i,Ca(e,i,n)):null}function ka(t,e,i,n){var r;_a||(_a=function(t){_inherits(n,t);var i=_createSuper(n);function n(t,e,r){var o;return _classCallCheck(this,n),(o=i.call(this))._lContainer=t,o._hostTNode=e,o._hostView=r,o}return _createClass(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}},{key:"createEmbeddedView",value:function(t,e,i){var n=t.createEmbeddedView(e||{});return this.insert(n,i),n}},{key:"createComponent",value:function(t,e,i,n,r){var o=i||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(de,null);a&&(r=a)}var s=t.create(o,n,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var i=t._lView,n=i[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ge(i[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var o=i[3],a=new _a(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,i,n){var r=10+n,o=i.length;n>0&&(i[r-1][4]=e),n<o-10?(e[4]=i[r],be(i,10+n,e)):(i.push(e),e[4]=null),e[3]=i;var a=e[17];null!==a&&i!==a&&function(t,e){var i=t[9],n=e[3][3][16];e[16]!==n&&(t[2]=!0),null===i?t[9]=[e]:i.push(e)}(a,e);var s=e[19];null!==s&&s.insertView(t),e[2]|=128}(n,i,this._lContainer,s),Qo(n,i,!0,ha(s,this._lContainer)),t.attachToViewContainerRef(this),be(this._lContainer[8],s,t),t}},{key:"move",value:function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}},{key:"indexOf",value:function(t){var e=this._lContainer[8];return null!==e?e.indexOf(t):-1}},{key:"remove",value:function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1);!function(t,e){var i=Jo(t,e);i&&ta(i[1],i)}(this._lContainer,e),_e(this._lContainer[8],e)}},{key:"detach",value:function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1),i=Jo(this._lContainer,e);return i&&null!=_e(this._lContainer[8],e)?new wa(i):null}},{key:"_adjustIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Ca(e,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new On(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var t=mn(this._hostTNode,this._hostView),e=sn(t,this._hostView),i=function(t,e,i){if(i.parent&&-1!==i.parent.injectorIndex){for(var n=i.parent.injectorIndex,r=i.parent;null!=r.parent&&n==r.parent.injectorIndex;)r=r.parent;return r}for(var o=an(t),a=e,s=e[6];o>1;)s=(a=a[15])[6],o--;return s}(t,this._hostView,this._hostTNode);return rn(t)&&null!=i?new On(i,e):new On(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(t));var o=n[i.index];if(Ge(o))r=o;else{var a;if(4===i.type)a=ii(o);else if(a=n[11].createComment(""),Ze(n)){var s=n[11],u=ri(i,n);ra(s,sa(s,u),a,function(t,e){return ti(t)?t.nextSibling(e):e.nextSibling}(s,u))}else la(n[1],n,a,i);n[i.index]=r=Ao(o,n,a,i),jo(n,r)}return new _a(r,i,n)}function Sa(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,e,i){if(!i&&Ye(t)){var n=si(t.index,e);return new wa(n,n)}if(3===t.type||0===t.type||4===t.type||5===t.type){var r=e[16];return new wa(r,e)}return null}(mi(),yi(),t)}var Oa=function t(){_classCallCheck(this,t)};Oa.__NG_ELEMENT_ID__=function(){return Da()};var Da=Sa,Ta=Function;function Ea(t){return"function"==typeof t}var Ia=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Aa=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Fa=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Ma=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/,ja=function(){function t(e){_classCallCheck(this,t),this._reflect=e||Ht.Reflect}return _createClass(t,[{key:"isReflectionEnabled",value:function(){return!0}},{key:"factory",value:function(t){return function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return _construct(t,i)}}},{key:"_zipTypesAndAnnotations",value:function(t,e){var i;i=we(void 0===t?e.length:t.length);for(var n=0;n<i.length;n++)void 0===t?i[n]=[]:t[n]&&t[n]!=Object?i[n]=[t[n]]:i[n]=[],e&&null!=e[n]&&(i[n]=i[n].concat(e[n]));return i}},{key:"_ownParameters",value:function(t,e){if(i=t.toString(),Ia.test(i)||Ma.test(i)||Aa.test(i)&&!Fa.test(i))return null;var i;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,o=r.map((function(t){return t&&t.type})),a=r.map((function(t){return t&&La(t.decorators)}));return this._zipTypesAndAnnotations(o,a)}var s=t.hasOwnProperty(nt)&&t[nt],u=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return u||s?this._zipTypesAndAnnotations(u,s):we(t.length)}},{key:"parameters",value:function(t){if(!Ea(t))return[];var e=Va(t),i=this._ownParameters(t,e);return i||e===Object||(i=this.parameters(e)),i||[]}},{key:"_ownAnnotations",value:function(t,e){if(t.annotations&&t.annotations!==e.annotations){var i=t.annotations;return"function"==typeof i&&i.annotations&&(i=i.annotations),i}return t.decorators&&t.decorators!==e.decorators?La(t.decorators):t.hasOwnProperty(it)?t[it]:null}},{key:"annotations",value:function(t){if(!Ea(t))return[];var e=Va(t),i=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(i)}},{key:"_ownPropMetadata",value:function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var i=t.propMetadata;return"function"==typeof i&&i.propMetadata&&(i=i.propMetadata),i}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var n=t.propDecorators,r={};return Object.keys(n).forEach((function(t){r[t]=La(n[t])})),r}return t.hasOwnProperty(rt)?t[rt]:null}},{key:"propMetadata",value:function(t){if(!Ea(t))return{};var e=Va(t),i={};if(e!==Object){var n=this.propMetadata(e);Object.keys(n).forEach((function(t){i[t]=n[t]}))}var r=this._ownPropMetadata(t,e);return r&&Object.keys(r).forEach((function(t){var e=[];i.hasOwnProperty(t)&&e.push.apply(e,_toConsumableArray(i[t])),e.push.apply(e,_toConsumableArray(r[t])),i[t]=e})),i}},{key:"ownPropMetadata",value:function(t){return Ea(t)&&this._ownPropMetadata(t,Va(t))||{}}},{key:"hasLifecycleHook",value:function(t,e){return t instanceof Ta&&e in t.prototype}},{key:"guards",value:function(t){return{}}},{key:"getter",value:function(t){return new Function("o","return o."+t+";")}},{key:"setter",value:function(t){return new Function("o","v","return o."+t+" = v;")}},{key:"method",value:function(t){return new Function("o","args","if (!o.".concat(t,") throw new Error('\"").concat(t,"\" is undefined');\n return o.").concat(t,".apply(o, args);"))}},{key:"importUri",value:function(t){return"object"==typeof t&&t.filePath?t.filePath:"./".concat(Dt(t))}},{key:"resourceUri",value:function(t){return"./".concat(Dt(t))}},{key:"resolveIdentifier",value:function(t,e,i,n){return n}},{key:"resolveEnum",value:function(t,e){return t[e]}}]),t}();function La(t){return t?t.map((function(t){return _construct(t.type.annotationCls,_toConsumableArray(t.args?t.args:[]))})):[]}function Va(t){var e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}var Ra=null;function Na(){return Ra=Ra||new ja}function Ba(t){return Ha(Na().parameters(t))}function Ha(t){var e=zt();return t.map((function(t){return function(t,e){var i={token:null,host:!1,optional:!1,resolved:t.R3ResolvedDependencyType.Token,self:!1,skipSelf:!1};function n(e){i.resolved=t.R3ResolvedDependencyType.Token,i.token=e}if(Array.isArray(e)&&e.length>0)for(var r=0;r<e.length;r++){var o=e[r];if(void 0!==o){var a=Object.getPrototypeOf(o);if(o instanceof ct||"Optional"===a.ngMetadataName)i.optional=!0;else if(o instanceof dt||"SkipSelf"===a.ngMetadataName)i.skipSelf=!0;else if(o instanceof pt||"Self"===a.ngMetadataName)i.self=!0;else if(o instanceof ft||"Host"===a.ngMetadataName)i.host=!0;else if(o instanceof ht)i.token=o.token;else if(o instanceof gt){if(void 0===o.attributeName)throw new Error("Attribute name must be defined.");i.token=o.attributeName,i.resolved=t.R3ResolvedDependencyType.Attribute}else o===Oa?(i.token=o,i.resolved=t.R3ResolvedDependencyType.ChangeDetectorRef):n(o)}}else void 0===e||Array.isArray(e)&&0===e.length?(i.token=void 0,i.resolved=Mt.Invalid):n(e);return i}(e,t)}))}var za=yt({provide:String,useValue:yt});function Ua(t){return void 0!==t.useClass}function Wa(t){return void 0!==t.useFactory}function Ga(t,e){var i=e||{providedIn:null},n={name:t.name,type:t,typeArgumentCount:0,providedIn:i.providedIn,userDeps:void 0};return(Ua(i)||Wa(i))&&void 0!==i.deps&&(n.userDeps=Ha(i.deps)),Ua(i)?n.useClass=At(i.useClass):function(t){return za in t}(i)?n.useValue=At(i.useValue):Wa(i)?n.useFactory=i.useFactory:function(t){return void 0!==t.useExisting}(i)&&(n.useExisting=At(i.useExisting)),n}yt({provide:String,useValue:yt}),ot("Injectable",void 0,void 0,void 0,(function(t,e){return Ka(t,e)}));var Ka=function(t,e){var i=null,n=null;t.hasOwnProperty(Ct)||(Object.defineProperty(t,Ct,{get:function(){return null===i&&(i=zt().compileInjectable(pe,"ng:///".concat(t.name,"/\u0275prov.js"),Ga(t,e))),i}}),t.hasOwnProperty(kt)||(t[kt]=function(){return t[Ct]})),t.hasOwnProperty(Xt)||Object.defineProperty(t,Xt,{get:function(){if(null===n){var i=Ga(t,e),r=zt();n=r.compileFactory(pe,"ng:///".concat(t.name,"/\u0275fac.js"),{name:i.name,type:i.type,typeArgumentCount:i.typeArgumentCount,deps:Ba(t),injectFn:"inject",target:r.R3FactoryTarget.Injectable})}return n},configurable:!0})},Ya=new Qt("Set Injector scope."),qa={},Xa={},Za=[],Qa=void 0;function $a(){return void 0===Qa&&(Qa=new he),Qa}function Ja(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new ts(t,i,e||$a(),n)}var ts=function(){function t(e,i,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,t),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];i&&me(i,(function(t){return r.processProvider(t,e,i)})),me([e],(function(t){return r.processInjectorType(t,[],a)})),this.records.set($t,ns(void 0,this));var s=this.records.get(Ya);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:Dt(e))}return _createClass(t,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(t){return t.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jt,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lt.Default;this.assertNotDestroyed();var n,r=ne(this);try{if(!(i<.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(n=t)||"object"==typeof n&&n instanceof Qt)&&_t(t);o=a&&this.injectableDefInScope(a)?ns(es(t),qa):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}var s=i<.Self?$a():this.parent;return e=i<.Optional&&e===Jt?null:e,s.get(t,e)}catch(u){if("NullInjectorError"===u.name){if((u.ngTempTokenPath=u.ngTempTokenPath||[]).unshift(Dt(t)),r)throw u;return ce(u,t,"R3InjectorError",this.source)}throw u}finally{ne(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))}},{key:"toString",value:function(){var t=[];return this.records.forEach((function(e,i){return t.push(Dt(i))})),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,i){var n=this;if(!(t=At(t)))return!1;var r=xt(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==i.indexOf(a);if(void 0!==o&&(r=xt(o)),null==r)return!1;if(null!=r.imports&&!s){var u;i.push(a);try{me(r.imports,(function(t){n.processInjectorType(t,e,i)&&(void 0===u&&(u=[]),u.push(t))}))}finally{}if(void 0!==u)for(var l=function(t){var e=u[t],i=e.ngModule,r=e.providers;me(r,(function(t){return n.processProvider(t,i,r||Za)}))},h=0;h<u.length;h++)l(h)}this.injectorDefTypes.add(a),this.records.set(a,ns(r.factory,qa));var c=r.providers;if(null!=c&&!s){var p=t;me(c,(function(t){return n.processProvider(t,p,c)}))}return void 0!==o&&void 0!==t.providers}},{key:"processProvider",value:function(t,e,i){var n=os(t=At(t))?t:At(t&&t.provide),r=function(t,e,i){return rs(t)?ns(void 0,t.useValue):ns(is(t,e,i),qa)}(t,e,i);if(os(t)||!0!==t.multi){var o=this.records.get(n);o&&void 0!==o.multi&&Tr()}else{var a=this.records.get(n);a?void 0===a.multi&&Tr():((a=ns(void 0,qa,!0)).factory=function(){return le(a.multi)},this.records.set(n,a)),n=t,a.multi.push(t)}this.records.set(n,r)}},{key:"hydrate",value:function(t,e){var i;return e.value===Xa?function(t){throw new Error("Cannot instantiate cyclic dependency! ".concat(t))}(Dt(t)):e.value===qa&&(e.value=Xa,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}},{key:"injectableDefInScope",value:function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();function es(t){var e=_t(t),i=null!==e?e.factory:ze(t);if(null!==i)return i;var n=xt(t);if(null!==n)return n.factory;if(t instanceof Qt)throw new Error("Token ".concat(Dt(t)," is missing a \u0275prov definition."));if(t instanceof Function)return function(t){var e=t.length;if(e>0){var i=we(e,"?");throw new Error("Can't resolve all parameters for ".concat(Dt(t),": (").concat(i.join(", "),")."))}var n=function(t){var e=t&&(t[Ct]||t[St]||t[kt]&&t[kt]());if(e){var i=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(i,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in v10. Please add @Injectable() to the "'.concat(i,'" class.')),e}return null}(t);return null!==n?function(){return n.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function is(t,e,i){var n,r=void 0;if(os(t)){var o=At(t);return ze(o)||es(o)}if(rs(t))r=function(){return At(t.useValue)};else if((n=t)&&n.useFactory)r=function(){return t.useFactory.apply(t,_toConsumableArray(le(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return ae(At(t.useExisting))};else{var a=At(t&&(t.useClass||t.provide));if(a||function(t,e,i){var n="";throw t&&e&&(n=" - only instances of Provider and Type are allowed, got: [".concat(e.map((function(t){return t==i?"?"+i+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(Dt(t),"'")+n)}(e,i,t),!function(t){return!!t.deps}(t))return ze(a)||es(a);r=function(){return _construct(a,_toConsumableArray(le(t.deps)))}}return r}function ns(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:i?[]:void 0}}function rs(t){return null!==t&&"object"==typeof t&&ee in t}function os(t){return"function"==typeof t}var as=function(t,e,i){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,r=Ja(t,e,i,n);return r._resolveInjectorDefTypes(),r}({name:i},e,t,i)},ss=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?as(t,e,""):as(t.providers,t.parent,t.name||"")}}]),t}();function us(t){return t.length>1?" ("+function(t){for(var e=[],i=0;i<t.length;++i){if(e.indexOf(t[i])>-1)return e.push(t[i]),e;e.push(t[i])}return e}(t.slice().reverse()).map((function(t){return Dt(t.token)})).join(" -> ")+")":""}function ls(t,e,i,n){var r=[e],o=i(r),a=n?function(t,e){var i="".concat(t," caused by: ").concat(e instanceof Error?e.message:e),n=Error(i);return n.ngOriginalError=e,n}(o,n):Error(o);return a.addKey=hs,a.keys=r,a.injectors=[t],a.constructResolvingMessage=i,a.ngOriginalError=n,a}function hs(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function cs(t,e){for(var i=[],n=0,r=e.length;n<r;n++){var o=e[n];o&&0!=o.length?i.push(o.map(Dt).join(" ")):i.push("?")}return Error("Cannot resolve all parameters for '"+Dt(t)+"'("+i.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+Dt(t)+"' is decorated with Injectable.")}ss.THROW_IF_NOT_FOUND=Jt,ss.NULL=new he,ss.\u0275prov=mt({token:ss,providedIn:"any",factory:function(){return ae($t)}}),ss.__NG_ELEMENT_ID__=-1;var ps=function(){function t(e,i){if(_classCallCheck(this,t),this.token=e,this.id=i,!e)throw new Error("Token must be defined!");this.displayName=Dt(this.token)}return _createClass(t,null,[{key:"get",value:function(t){return ds.get(At(t))}},{key:"numberOfKeys",get:function(){return ds.numberOfKeys}}]),t}(),ds=new(function(){function t(){_classCallCheck(this,t),this._allKeys=new Map}return _createClass(t,[{key:"get",value:function(t){if(t instanceof ps)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new ps(t,ps.numberOfKeys);return this._allKeys.set(t,e),e}},{key:"numberOfKeys",get:function(){return this._allKeys.size}}]),t}()),fs=new(function(){function t(e){_classCallCheck(this,t),this.reflectionCapabilities=e}return _createClass(t,[{key:"updateCapabilities",value:function(t){this.reflectionCapabilities=t}},{key:"factory",value:function(t){return this.reflectionCapabilities.factory(t)}},{key:"parameters",value:function(t){return this.reflectionCapabilities.parameters(t)}},{key:"annotations",value:function(t){return this.reflectionCapabilities.annotations(t)}},{key:"propMetadata",value:function(t){return this.reflectionCapabilities.propMetadata(t)}},{key:"hasLifecycleHook",value:function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)}},{key:"getter",value:function(t){return this.reflectionCapabilities.getter(t)}},{key:"setter",value:function(t){return this.reflectionCapabilities.setter(t)}},{key:"method",value:function(t){return this.reflectionCapabilities.method(t)}},{key:"importUri",value:function(t){return this.reflectionCapabilities.importUri(t)}},{key:"resourceUri",value:function(t){return this.reflectionCapabilities.resourceUri(t)}},{key:"resolveIdentifier",value:function(t,e,i,n){return this.reflectionCapabilities.resolveIdentifier(t,e,i,n)}},{key:"resolveEnum",value:function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)}}]),t}())(new ja),gs=function(){function t(e,i,n){_classCallCheck(this,t),this.key=e,this.optional=i,this.visibility=n}return _createClass(t,null,[{key:"fromKey",value:function(e){return new t(e,!1,null)}}]),t}(),ys=[],vs=function t(e,i,n){_classCallCheck(this,t),this.key=e,this.resolvedFactories=i,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]},ms=function t(e,i){_classCallCheck(this,t),this.factory=e,this.dependencies=i};function bs(t){var e,i;if(t.useClass){var n=At(t.useClass);e=fs.factory(n),i=ws(n)}else t.useExisting?(e=function(t){return t},i=[gs.fromKey(ps.get(t.useExisting))]):t.useFactory?(e=t.useFactory,i=function(t,e){if(e){var i=e.map((function(t){return[t]}));return e.map((function(e){return xs(t,e,i)}))}return ws(t)}(t.useFactory,t.deps)):(e=function(){return t.useValue},i=ys);return new ms(e,i)}function _s(t){return new vs(ps.get(t.provide),[bs(t)],t.multi||!1)}function ws(t){var e=fs.parameters(t);if(!e)return[];if(e.some((function(t){return null==t})))throw cs(t,e);return e.map((function(i){return xs(t,i,e)}))}function xs(t,e,i){var n=null,r=!1;if(!Array.isArray(e))return Cs(e instanceof ht?e.token:e,r,null);for(var o=null,a=0;a<e.length;++a){var s=e[a];s instanceof Ta?n=s:s instanceof ht?n=s.token:s instanceof ct?r=!0:s instanceof pt||s instanceof dt?o=s:s instanceof Qt&&(n=s)}if(null!=(n=At(n)))return Cs(n,r,o);throw cs(t,i)}function Cs(t,e,i){return new gs(ps.get(t),e,i)}var Ps={},ks=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"resolve",value:function(t){return function(t){var e=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e.get(n.key.id);if(r){if(n.multiProvider!==r.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: ".concat(r," ").concat(n));if(n.multiProvider)for(var o=0;o<n.resolvedFactories.length;o++)r.resolvedFactories.push(n.resolvedFactories[o]);else e.set(n.key.id,n)}else{var a;a=n.multiProvider?new vs(n.key,n.resolvedFactories.slice(),n.multiProvider):n,e.set(n.key.id,a)}}return e}(function t(e,i){return e.forEach((function(e){if(e instanceof Ta)i.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)i.push(e);else{if(!Array.isArray(e))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: ".concat(e));t(e,i)}})),i}(t,[]).map(_s),new Map);return Array.from(e.values())}(t)}},{key:"resolveAndCreate",value:function(e,i){var n=t.resolve(e);return t.fromResolvedProviders(n,i)}},{key:"fromResolvedProviders",value:function(t,e){return new Ss(t,e)}}]),t}(),Ss=function(){function t(e,i){_classCallCheck(this,t),this._constructionCounter=0,this._providers=e,this.parent=i||null;var n=e.length;this.keyIds=[],this.objs=[];for(var r=0;r<n;r++)this.keyIds[r]=e[r].key.id,this.objs[r]=Ps}return _createClass(t,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jt;return this._getByKey(ps.get(t),null,e)}},{key:"resolveAndCreateChild",value:function(t){var e=ks.resolve(t);return this.createChildFromResolved(e)}},{key:"createChildFromResolved",value:function(e){var i=new t(e);return i.parent=this,i}},{key:"resolveAndInstantiate",value:function(t){return this.instantiateResolved(ks.resolve([t])[0])}},{key:"instantiateResolved",value:function(t){return this._instantiateProvider(t)}},{key:"getProviderAtIndex",value:function(t){if(t<0||t>=this._providers.length)throw function(t){return Error("Index ".concat(t," is out-of-bounds."))}(t);return this._providers[t]}},{key:"_new",value:function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw this,ls(this,t.key,(function(t){return"Cannot instantiate cyclic dependency!".concat(us(t))}));return this._instantiateProvider(t)}},{key:"_getMaxNumberOfObjects",value:function(){return this.objs.length}},{key:"_instantiateProvider",value:function(t){if(t.multiProvider){for(var e=[],i=0;i<t.resolvedFactories.length;++i)e[i]=this._instantiate(t,t.resolvedFactories[i]);return e}return this._instantiate(t,t.resolvedFactories[0])}},{key:"_instantiate",value:function(t,e){var i,n,r,o=this,a=e.factory;try{i=e.dependencies.map((function(t){return o._getByReflectiveDependency(t)}))}catch(s){throw s.addKey&&s.addKey(this,t.key),s}try{n=a.apply(void 0,_toConsumableArray(i))}catch(s){throw this,r=s,s.stack,ls(this,t.key,(function(t){var e=Dt(t[0].token);return"".concat(r.message,": Error during instantiation of ").concat(e,"!").concat(us(t),".")}),r)}return n}},{key:"_getByReflectiveDependency",value:function(t){return this._getByKey(t.key,t.visibility,t.optional?null:Jt)}},{key:"_getByKey",value:function(e,i,n){return e===t.INJECTOR_KEY?this:i instanceof pt?this._getByKeySelf(e,n):this._getByKeyDefault(e,n,i)}},{key:"_getObjByKeyId",value:function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Ps&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Ps}},{key:"_throwOrNull",value:function(t,e){if(e!==Jt)return e;throw function(t,e){return ls(t,e,(function(t){return"No provider for ".concat(Dt(t[0].token),"!").concat(us(t))}))}(this,t)}},{key:"_getByKeySelf",value:function(t,e){var i=this._getObjByKeyId(t.id);return i!==Ps?i:this._throwOrNull(t,e)}},{key:"_getByKeyDefault",value:function(e,i,n){var r;for(r=n instanceof dt?this.parent:this;r instanceof t;){var o=r,a=o._getObjByKeyId(e.id);if(a!==Ps)return a;r=o.parent}return null!==r?r.get(e.token,i):this._throwOrNull(e,i)}},{key:"toString",value:function(){return this.displayName}},{key:"displayName",get:function(){return"ReflectiveInjector(providers: [".concat(function(t,e){for(var i=[],n=0;n<t._providers.length;++n)i[n]=' "'+t.getProviderAtIndex(n).key.displayName+'" ';return i}(this).join(", "),"])")}}]),t}();Ss.INJECTOR_KEY=ps.get(ss);var Os=new Qt("AnalyzeForEntryComponents"),Ds=function t(){_classCallCheck(this,t)},Ts=ut("ContentChildren",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),Ds);ut("ContentChild",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),Ds),ut("ViewChildren",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),Ds),ut("ViewChild",(function(t,e){return Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)}),Ds);var Es=new Map,Is=new Set;function As(t){return!!(t.templateUrl&&!t.hasOwnProperty("template")||t.styleUrls&&t.styleUrls.length)}function Fs(t){return"string"==typeof t?t:t.text()}function Ms(t,e,i){var n=i?t.styles:null,r=i?t.classes:null,o=0;if(null!==e)for(var a=0;a<e.length;a++){var s=e[a];"number"==typeof s?o=s:1==o?r=Tt(r,s):2==o&&(n=Tt(n,s+": "+e[++a]+";"))}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=r:t.classesWithoutHost=r}var js=null;function Ls(){if(!js){var t=Ht.Symbol;if(t&&t.iterator)js=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),i=0;i<e.length;++i){var n=e[i];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(js=n)}}return js}function Vs(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}var Rs=function(){function t(e){_classCallCheck(this,t),this.wrapped=e}return _createClass(t,null,[{key:"wrap",value:function(e){return new t(e)}},{key:"unwrap",value:function(e){return t.isWrapped(e)?e.wrapped:e}},{key:"isWrapped",value:function(e){return e instanceof t}}]),t}();function Ns(t){return!!Bs(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ls()in t)}function Bs(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Hs(t,e,i){return t[e]=i}function zs(t,e){return t[e]}function Us(t,e,i){var n=t[e];return!Object.is(n,i)&&(t[e]=i,!0)}function Ws(t,e,i,n){var r=Us(t,e,i);return Us(t,e+1,n)||r}function Gs(t,e,i,n,r){var o=Ws(t,e,i,n);return Us(t,e+2,r)||o}function Ks(t,e,i,n,r,o){var a=Ws(t,e,i,n);return Ws(t,e+2,r,o)||a}function Ys(t,e,i,n){var r=yi();Us(r,Oi(),e)&&(vi(),To(Wi(),r,t,e,i,n));return Ys}function qs(t,e){for(var i=!1,n=ki(),r=1;r<e.length;r+=2)i=Us(t,n++,e[r])||i;if(Si(n),!i)return Hr;for(var o=e[0],a=1;a<e.length;a+=2)o+=un(e[a])+e[a+1];return o}function Xs(t,e,i,n){return Us(t,Oi(),i)?e+un(i)+n:Hr}function Zs(t,e,i,n,r,o){var a=Ws(t,ki(),i,r);return Di(2),a?e+un(i)+n+un(r)+o:Hr}function Qs(t,e,i,n,r,o,a,s){var u=Gs(t,ki(),i,r,a);return Di(3),u?e+un(i)+n+un(r)+o+un(a)+s:Hr}function $s(t,e,i,n,r,o,a,s,u,l){var h=Ks(t,ki(),i,r,a,u);return Di(4),h?e+un(i)+n+un(r)+o+un(a)+s+un(u)+l:Hr}function Js(t,e,i,n,r,o,a,s,u,l,h,c){var p=ki(),d=Ks(t,p,i,r,a,u);return d=Us(t,p+4,h)||d,Di(5),d?e+un(i)+n+un(r)+o+un(a)+s+un(u)+l+un(h)+c:Hr}function tu(t,e,i,n,r,o,a,s,u,l,h,c,p,d){var f=ki(),g=Ks(t,f,i,r,a,u);return g=Ws(t,f+4,h,p)||g,Di(6),g?e+un(i)+n+un(r)+o+un(a)+s+un(u)+l+un(h)+c+un(p)+d:Hr}function eu(t,e,i,n,r,o,a,s,u,l,h,c,p,d,f,g){var y=ki(),v=Ks(t,y,i,r,a,u);return v=Gs(t,y+4,h,p,f)||v,Di(7),v?e+un(i)+n+un(r)+o+un(a)+s+un(u)+l+un(h)+c+un(p)+d+un(f)+g:Hr}function iu(t,e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v){var m=ki(),b=Ks(t,m,i,r,a,u);return b=Ks(t,m+4,h,p,f,y)||b,Di(8),b?e+un(i)+n+un(r)+o+un(a)+s+un(u)+l+un(h)+c+un(p)+d+un(f)+g+un(y)+v:Hr}function nu(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lt.Default,i=yi();return null==i?ae(t,e):_n(mi(),i,At(t),e)}function ru(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;var i=t.attrs;if(i)for(var n=i.length,r=0;r<n;){var o=i[r];if(Ji(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<n&&"string"==typeof i[r];)r++;else{if(o===e)return i[r+1];r+=2}}return null}(mi(),t)}function ou(){throw new Error("invalid")}function au(t,e,i,n,r){var o=r?"class":"style";Go(t,i,e.inputs[o],o,n)}function su(t,e,i,n){var r=yi(),o=vi(),a=20+t,s=r[11],u=r[a]=no(e,s,fi.lFrame.currentNamespace),l=o.firstCreatePass?function(t,e,i,n,r,o,a){var s=e.consts,u=ci(s,o),l=oo(e,i[6],t,3,r,u);return bo(e,i,l,ci(s,a)),null!==l.attrs&&Ms(l,l.attrs,!1),null!==l.mergedAttrs&&Ms(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(t,o,r,0,e,i,n):o.data[a];bi(l,!0);var h=l.mergedAttrs;null!==h&&$i(s,u,h);var c=l.classes;null!==c&&va(s,u,c);var p=l.styles;null!==p&&ya(s,u,p),la(o,r,u,l),0===fi.lFrame.elementDepthCount&&Or(u,r),fi.lFrame.elementDepthCount++,qe(l)&&(co(o,r,l),ho(o,l,r)),null!==n&&po(r,l)}function uu(){var t=mi();_i()?wi():bi(t=t.parent,!1);var e=t;fi.lFrame.elementDepthCount--;var i=vi();i.firstCreatePass&&(Gi(i,t),Ke(t)&&i.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&au(i,e,yi(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&au(i,e,yi(),e.stylesWithoutHost,!1)}function lu(t,e,i,n){su(t,e,i,n),uu()}function hu(t,e,i){var n=yi(),r=vi(),o=t+20,a=r.firstCreatePass?function(t,e,i,n,r){var o=e.consts,a=ci(o,n),s=oo(e,i[6],t,4,"ng-container",a);return null!==a&&Ms(s,a,!0),bo(e,i,s,ci(o,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(t,r,n,e,i):r.data[o];bi(a,!0);var s=n[o]=n[11].createComment("");la(r,n,s,a),Or(s,n),qe(a)&&(co(r,n,a),ho(r,a,n)),null!=i&&po(n,a)}function cu(){var t=mi(),e=vi();_i()?wi():bi(t=t.parent,!1),e.firstCreatePass&&(Gi(e,t),Ke(t)&&e.queries.elementEnd(t))}function pu(t){return!!t&&"function"==typeof t.then}function du(t){return!!t&&"function"==typeof t.subscribe}function fu(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,r=yi(),o=vi(),a=mi();return gu(o,r,r[11],a,t,e,i,n),fu}function gu(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=qe(n),l=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),h=Ho(e),c=!0;if(3===n.type){var p=ri(n,e),d=s?s(p):De,f=d.target||p,g=h.length,y=s?function(t){return s(ii(t[n.index])).target}:n.index;if(ti(i)){var v=null;if(!s&&u&&(v=function(t,e,i,n){var r=t.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===i&&r[o+1]===n){var s=e[7],u=r[o+2];return s.length>u?s[u]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,n.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=o,v.__ngLastListenerFn__=o,c=!1;else{o=vu(n,e,o,!1);var m=i.listen(d.name||f,r,o);h.push(o,m),l&&l.push(r,y,g,g+1)}}else o=vu(n,e,o,!0),f.addEventListener(r,o,a),h.push(o),l&&l.push(r,y,g,a)}var b,_=n.outputs;if(c&&null!==_&&(b=_[r])){var w=b.length;if(w)for(var x=0;x<w;x+=2){var C=b[x],P=b[x+1],k=e[C],S=k[P],O=S.subscribe(o),D=h.length;h.push(o,O),l&&l.push(r,n.index,D,-(D+1))}}}function yu(t,e,i){try{return!1!==e(i)}catch(n){return Wo(t,n),!1}}function vu(t,e,i,n){return function r(o){if(o===Function)return i;var a=2&t.flags?si(t.index,e):e;0==(32&e[2])&&Lo(a);for(var s=yu(e,i,o),u=r.__ngNextListenerFn__;u;)s=yu(e,u,o)&&s,u=u.__ngNextListenerFn__;return n&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function mu(t,e){for(var i=null,n=function(t){var e=t.attrs;if(null!=e){var i=e.indexOf(5);if(0==(1&i))return e[i+1]}return null}(t),r=0;r<e.length;r++){var o=e[r];if("*"!==o){if(null===n?Vr(t,o,!0):Rr(n,o))return r}else i=r}return i}var bu=!1;function _u(t){bu=t}function wu(t,e,i,n,r){var o=yi(),a=Xs(o,e,i,n);a!==Hr&&mo(vi(),Wi(),o,t,a,o[11],r,!1);return wu}var xu=[];function Cu(t,e,i,n,r){for(var o=t[i+1],a=null===e,s=n?Qr(o):Jr(o),u=!1;0!==s&&(!1===u||a);){var l=t[s],h=t[s+1];Pu(l,e)&&(u=!0,t[s+1]=n?eo(h):$r(h)),s=n?Qr(h):Jr(h)}u&&(t[i+1]=n?$r(o):eo(o))}function Pu(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Pe(t,e)>=0}var ku={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Su(t){return t.substring(ku.key,ku.keyEnd)}function Ou(t){return t.substring(ku.value,ku.valueEnd)}function Du(t,e){var i=ku.textEnd;return i===e?-1:(e=ku.keyEnd=function(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}(t,ku.key=e,i),Iu(t,e,i))}function Tu(t,e){var i=ku.textEnd,n=ku.key=Iu(t,e,i);return i===n?-1:(n=ku.keyEnd=function(t,e,i){for(var n;e<i&&(45===(n=t.charCodeAt(e))||95===n||(-33&n)>=65&&(-33&n)<=90);)e++;return e}(t,n,i),n=Au(t,n,i,58),n=ku.value=Iu(t,n,i),n=ku.valueEnd=function(t,e,i){for(var n=-1,r=-1,o=-1,a=e,s=a;a<i;){var u=t.charCodeAt(a++);if(59===u)return s;34===u||39===u?s=a=Fu(t,u,a,i):e===a-4&&85===o&&82===r&&76===n&&40===u?s=a=Fu(t,41,a,i):u>32&&(s=a),o=r,r=n,n=-33&u}return s}(t,n,i),Au(t,n,i,59))}function Eu(t){ku.key=0,ku.keyEnd=0,ku.value=0,ku.valueEnd=0,ku.textEnd=t.length}function Iu(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function Au(t,e,i,n){return(e=Iu(t,e,i))<i&&e++,e}function Fu(t,e,i,n){for(var r=-1,o=i;o<n;){var a=t.charCodeAt(o++);if(a==e&&92!==r)return o;r=92==a&&92===r?0:a}throw new Error}function Mu(t){Ru(Uu,ju,t,!1)}function ju(t,e){for(var i=function(t){return Eu(t),Tu(t,Iu(t,0,ku.textEnd))}(e);i>=0;i=Tu(e,i))Uu(t,Su(e),Ou(e))}function Lu(t,e){for(var i=function(t){return Eu(t),Du(t,Iu(t,0,ku.textEnd))}(e);i>=0;i=Du(e,i))xe(t,Su(e),!0)}function Vu(t,e,i,n){var r,o,a=yi(),s=vi(),u=Di(2);(s.firstUpdatePass&&Bu(s,t,u,n),e!==Hr&&Us(a,u,e))&&(null==i&&(r=null===(o=fi.lFrame)?null:o.currentSanitizer)&&(i=r),Wu(s,s.data[zi()+20],a,a[11],t,a[u+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=Dt(Nn(t)))),t}(e,i),n,u))}function Ru(t,e,i,n){var r=vi(),o=Di(2);r.firstUpdatePass&&Bu(r,null,o,n);var a=yi();if(i!==Hr&&Us(a,o,i)){var s=r.data[zi()+20];if(Yu(s,n)&&!Nu(r,o)){var u=n?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(i=Tt(u,i||"")),au(r,s,a,i,n)}else!function(t,e,i,n,r,o,a,s){r===Hr&&(r=xu);for(var u=0,l=0,h=0<r.length?r[0]:null,c=0<o.length?o[0]:null;null!==h||null!==c;){var p=u<r.length?r[u+1]:void 0,d=l<o.length?o[l+1]:void 0,f=null,g=void 0;h===c?(u+=2,l+=2,p!==d&&(f=c,g=d)):null===c||null!==h&&h<c?(u+=2,f=h):(l+=2,f=c,g=d),null!==f&&Wu(t,e,i,n,f,g,a,s),h=u<r.length?r[u]:null,c=l<o.length?o[l]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(t,e,i){if(null==i||""===i)return xu;var n=[],r=Nn(i);if(Array.isArray(r))for(var o=0;o<r.length;o++)t(n,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&t(n,a,r[a]);else"string"==typeof r&&e(n,r);return n}(t,e,i),n,o)}}function Nu(t,e){return e>=t.expandoStartIndex}function Bu(t,e,i,n){var r=t.data;if(null===r[i+1]){var o=r[zi()+20],a=Nu(t,i);Yu(o,n)&&null===e&&!a&&(e=!1),e=function(t,e,i,n){var r=Ii(t),o=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(i=zu(i=Hu(null,t,e,i,n),e.attrs,n),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(i=Hu(r,t,e,i,n),null===o){var s=function(t,e,i){var n=i?e.classBindings:e.styleBindings;if(0!==Jr(n))return t[Qr(n)]}(t,e,n);void 0!==s&&Array.isArray(s)&&function(t,e,i,n){t[Qr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,s=zu(s=Hu(null,t,e,s[1],n),e.attrs,n))}else o=function(t,e,i){for(var n=void 0,r=e.directiveEnd,o=1+e.directiveStylingLast;o<r;o++){n=zu(n,t[o].hostAttrs,i)}return zu(n,e.attrs,i)}(t,e,n)}return void 0!==o&&(n?e.residualClasses=o:e.residualStyles=o),i}(r,o,e,n),function(t,e,i,n,r,o){var a=o?e.classBindings:e.styleBindings,s=Qr(a),u=Jr(a);t[n]=i;var l,h=!1;if(Array.isArray(i)){var c=i;(null===(l=c[1])||Pe(c,l)>0)&&(h=!0)}else l=i;if(r)if(0!==u){var p=Qr(t[s+1]);t[n+1]=Zr(p,s),0!==p&&(t[p+1]=to(t[p+1],n)),t[s+1]=131071&t[s+1]|n<<17}else t[n+1]=Zr(s,0),0!==s&&(t[s+1]=to(t[s+1],n)),s=n;else t[n+1]=Zr(u,0),0===s?s=n:t[u+1]=to(t[u+1],n),u=n;h&&(t[n+1]=$r(t[n+1])),Cu(t,l,n,!0,o),Cu(t,l,n,!1,o),function(t,e,i,n,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&Pe(o,e)>=0&&(i[n+1]=eo(i[n+1]))}(e,l,t,n,o),a=Zr(s,u),o?e.classBindings=a:e.styleBindings=a}(r,o,e,i,a,n)}}function Hu(t,e,i,n,r){var o=null,a=i.directiveEnd,s=i.directiveStylingLast;for(-1===s?s=i.directiveStart:s++;s<a&&(n=zu(n,(o=e[s]).hostAttrs,r),o!==t);)s++;return null!==t&&(i.directiveStylingLast=s),n}function zu(t,e,i){var n=i?1:2,r=-1;if(null!==e)for(var o=0;o<e.length;o++){var a=e[o];"number"==typeof a?r=a:r===n&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),xe(t,a,!!i||e[++o]))}return void 0===t?null:t}function Uu(t,e,i){kr(e)&&(i=xr(i)),xe(t,e,i)}function Wu(t,e,i,n,r,o,a,s){if(3===e.type){var u=t.data,l=u[s+1];Ku(1==(1&l)?Gu(u,e,i,r,Jr(l),a):void 0)||(Ku(o)||function(t){return 2==(2&t)}(l)&&(o=Gu(u,null,i,r,s,a)),function(t,e,i,n,r){var o=ti(t);if(e)r?o?t.addClass(i,n):i.classList.add(n):o?t.removeClass(i,n):i.classList.remove(n);else{var a=-1==n.indexOf("-")?void 0:2;null==r?o?t.removeStyle(i,n,a):i.style.removeProperty(n):o?t.setStyle(i,n,r,a):i.style.setProperty(n,r)}}(n,a,ni(zi(),i),r,o))}}function Gu(t,e,i,n,r,o){for(var a=null===e,s=void 0;r>0;){var u=t[r],l=Array.isArray(u),h=l?u[1]:u,c=null===h,p=i[r+1];p===Hr&&(p=c?xu:void 0);var d=c?Ce(p,n):h===n?p:void 0;if(l&&!Ku(d)&&(d=Ce(u,n)),Ku(d)&&(s=d,a))return s;var f=t[r+1];r=a?Qr(f):Jr(f)}if(null!==e){var g=o?e.residualClasses:e.residualStyles;null!=g&&(s=Ce(g,n))}return s}function Ku(t){return void 0!==t}function Yu(t,e){return 0!=(t.flags&(e?16:32))}function qu(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=yi(),n=vi(),r=t+20,o=n.firstCreatePass?oo(n,i[6],t,3,null,null):n.data[r],a=i[r]=Zo(e,i[11]);la(n,i,a,o),bi(o,!1)}function Xu(t){return Zu("",t,""),Xu}function Zu(t,e,i){var n=yi(),r=Xs(n,t,e,i);return r!==Hr&&Ko(n,zi(),r),Zu}function Qu(t,e,i){var n=yi();Us(n,Oi(),e)&&mo(vi(),Wi(),n,t,e,n[11],i,!0);return Qu}function $u(t,e){var i=ui(t)[1],n=i.data.length-1;Gi(i,{directiveStart:n,directiveEnd:n+1})}function Ju(t){return Object.getPrototypeOf(t.prototype).constructor}function tl(t){return t===De?{}:t===Te?[]:t}function el(t,e){var i=t.viewQuery;t.viewQuery=i?function(t,n){e(t,n),i(t,n)}:e}function il(t,e){var i=t.contentQueries;t.contentQueries=i?function(t,n,r){e(t,n,r),i(t,n,r)}:e}function nl(t,e){var i=t.hostBindings;t.hostBindings=i?function(t,n){e(t,n),i(t,n)}:e}var rl=["providersResolver"],ol=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];var al=function(){function t(e,i,n){_classCallCheck(this,t),this.previousValue=e,this.currentValue=i,this.firstChange=n}return _createClass(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function sl(t){t.type.prototype.ngOnChanges&&(t.setInput=ul,t.onChanges=function(){var t=ll(this),e=t&&t.current;if(e){var i=t.previous;if(i===De)t.previous=e;else for(var n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}})}function ul(t,e,i,n){var r=ll(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:De,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[i],u=a[s];o[s]=new al(u&&u.currentValue,e,a===De),t[n]=e}function ll(t){return t.__ngSimpleChanges__||null}function hl(t,e,i,n,r){if(t=At(t),Array.isArray(t))for(var o=0;o<t.length;o++)hl(t[o],e,i,n,r);else{var a=vi(),s=yi(),u=os(t)?t:At(t.provide),l=is(t),h=mi(),c=65535&h.providerIndexes,p=h.directiveStart,d=h.providerIndexes>>16;if(os(t)||!t.multi){var f=new Qi(l,r,nu),g=dl(u,e,r?c:c+d,p);-1===g?(bn(gn(h,s),a,u),cl(a,t,e.length),e.push(u),h.directiveStart++,h.directiveEnd++,r&&(h.providerIndexes+=65536),i.push(f),s.push(f)):(i[g]=f,s[g]=f)}else{var y=dl(u,e,c+d,p),v=dl(u,e,c,c+d),m=y>=0&&i[y],b=v>=0&&i[v];if(r&&!b||!r&&!m){bn(gn(h,s),a,u);var _=function(t,e,i,n,r){var o=new Qi(t,i,nu);return o.multi=[],o.index=e,o.componentProviders=0,pl(o,r,n&&!i),o}(r?gl:fl,i.length,r,n,l);!r&&b&&(i[v].providerFactory=_),cl(a,t,e.length,0),e.push(u),h.directiveStart++,h.directiveEnd++,r&&(h.providerIndexes+=65536),i.push(_),s.push(_)}else cl(a,t,y>-1?y:v,pl(i[r?v:y],l,!r&&n));!r&&n&&b&&i[v].componentProviders++}}}function cl(t,e,i,n){var r=os(e);if(r||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=a.indexOf(i);-1===s?a.push(i,[n,o]):a[s+1].push(n,o)}else a.push(i,o)}}}function pl(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function dl(t,e,i,n){for(var r=i;r<n;r++)if(e[r]===t)return r;return-1}function fl(t,e,i,n){return yl(this.multi,[])}function gl(t,e,i,n){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=Pn(i,i[1],this.providerFactory.index,n);yl(o,r=s.slice(0,a));for(var u=a;u<s.length;u++)r.push(s[u])}else yl(o,r=[]);return r}function yl(t,e){for(var i=0;i<t.length;i++){var n=t[i];e.push(n())}return e}sl.ngInherit=!0;var vl=function t(){_classCallCheck(this,t)},ml=function t(){_classCallCheck(this,t)};var bl="ngComponent",_l=function t(){_classCallCheck(this,t)};_l.NULL=new(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(Dt(t),". Did you add it to @NgModule.entryComponents?"));return e[bl]=t,e}(t)}}]),t}());var wl=function t(e){_classCallCheck(this,t),this.nativeElement=e};wl.__NG_ELEMENT_ID__=function(){return xl(wl)};var xl=function(t){return Ca(t,mi(),yi())};new Qt("Renderer2Interceptor");var Cl=function t(){_classCallCheck(this,t)},Pl={Important:1,DashCase:2};Pl[Pl.Important]="Important",Pl[Pl.DashCase]="DashCase";var kl=function t(){_classCallCheck(this,t)};kl.__NG_ELEMENT_ID__=function(){return Sl()};var Sl=function(){var t=yi(),e=si(mi().index,t);return function(t){var e=t[11];if(ti(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(We(e)?e:t)},Ol=function t(){_classCallCheck(this,t)};Ol.\u0275prov=mt({token:Ol,providedIn:"root",factory:function(){return null}});var Dl=function t(e){_classCallCheck(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Tl=new Dl("9.1.9"),El=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"supports",value:function(t){return Ns(t)}},{key:"create",value:function(t){return new Al(t)}}]),t}(),Il=function(t,e){return e},Al=function(){function t(e){_classCallCheck(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Il}return _createClass(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,i=this._removalsHead,n=0,r=null;e||i;){var o=!i||e&&e.currentIndex<Ll(i,n,r)?e:i,a=Ll(o,n,r),s=o.currentIndex;if(o===i)n--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)n++;else{r||(r=[]);var u=a-n,l=s-n;if(u!=l){for(var h=0;h<u;h++){var c=h<r.length?r[h]:r[h]=0,p=c+h;l<=p&&p<u&&(r[h]=c+1)}r[o.previousIndex]=l-u}}a!==s&&t(o,a,s)}}},{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachMovedItem",value:function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"forEachIdentityChange",value:function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}},{key:"diff",value:function(t){if(null==t&&(t=[]),!Ns(t))throw new Error("Error trying to diff '".concat(Dt(t),"'. Only arrays and iterables are allowed"));return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var i,n,r,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)n=t[s],r=this._trackByFn(s,n),null!==o&&Vs(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,n,r,s)),Vs(o.item,n)||this._addIdentityChange(o,n)):(o=this._mismatch(o,n,r,s),a=!0),o=o._next}else i=0,function(t,e){if(Array.isArray(t))for(var i=0;i<t.length;i++)e(t[i]);else for(var n,r=t[Ls()]();!(n=r.next()).done;)e(n.value)}(t,(function(t){r=e._trackByFn(i,t),null!==o&&Vs(o.trackById,r)?(a&&(o=e._verifyReinsertion(o,t,r,i)),Vs(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,r,i),a=!0),o=o._next,i++})),this.length=i;return this._truncate(o),this.collection=t,this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(t,e,i,n){var r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Vs(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,n)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Vs(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,n)):t=this._addAfter(new Fl(e,i),r,n),t}},{key:"_verifyReinsertion",value:function(t,e,i,n){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}},{key:"_truncate",value:function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var n=t._prevRemoved,r=t._nextRemoved;return null===n?this._removalsHead=r:n._nextRemoved=r,null===r?this._removalsTail=n:r._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}},{key:"_moveAfter",value:function(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}},{key:"_addAfter",value:function(t,e,i){return this._insertAfter(t,e,i),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}},{key:"_insertAfter",value:function(t,e,i){var n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new jl),this._linkedRecords.put(t),t.currentIndex=i,t}},{key:"_remove",value:function(t){return this._addToRemovals(this._unlink(t))}},{key:"_unlink",value:function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}},{key:"_addToMoves",value:function(t,e){return t.previousIndex===e||(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}},{key:"_addToRemovals",value:function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new jl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}},{key:"_addIdentityChange",value:function(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),t}(),Fl=function t(e,i){_classCallCheck(this,t),this.item=e,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},Ml=function(){function t(){_classCallCheck(this,t),this._head=null,this._tail=null}return _createClass(t,[{key:"add",value:function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}},{key:"get",value:function(t,e){var i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Vs(i.trackById,t))return i;return null}},{key:"remove",value:function(t){var e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}]),t}(),jl=function(){function t(){_classCallCheck(this,t),this.map=new Map}return _createClass(t,[{key:"put",value:function(t){var e=t.trackById,i=this.map.get(e);i||(i=new Ml,this.map.set(e,i)),i.add(t)}},{key:"get",value:function(t,e){var i=t,n=this.map.get(i);return n?n.get(t,e):null}},{key:"remove",value:function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}},{key:"clear",value:function(){this.map.clear()}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),t}();function Ll(t,e,i){var n=t.previousIndex;if(null===n)return n;var r=0;return i&&n<i.length&&(r=i[n]),n+e+r}var Vl=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"supports",value:function(t){return t instanceof Map||Bs(t)}},{key:"create",value:function(){return new Rl}}]),t}(),Rl=function(){function t(){_classCallCheck(this,t),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return _createClass(t,[{key:"forEachItem",value:function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)}},{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachChangedItem",value:function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"diff",value:function(t){if(t){if(!(t instanceof Map||Bs(t)))throw new Error("Error trying to diff '".concat(Dt(t),"'. Only maps and objects are allowed"))}else t=new Map;return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var i=this._mapHead;if(this._appendAfter=null,this._forEach(t,(function(t,n){if(i&&i.key===n)e._maybeAddToChanges(i,t),e._appendAfter=i,i=i._next;else{var r=e._getOrCreateRecordForKey(n,t);i=e._insertBeforeOrAppend(i,r)}})),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(var n=i;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(t,e){if(t){var i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}},{key:"_getOrCreateRecordForKey",value:function(t,e){if(this._records.has(t)){var i=this._records.get(t);this._maybeAddToChanges(i,e);var n=i._prev,r=i._next;return n&&(n._next=r),r&&(r._prev=n),i._next=null,i._prev=null,i}var o=new Nl(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(t,e){Vs(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}},{key:"_addToAdditions",value:function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}},{key:"_addToChanges",value:function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}},{key:"_forEach",value:function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach((function(i){return e(t[i],i)}))}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),t}(),Nl=function t(e){_classCallCheck(this,t),this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},Bl=function(){function t(e){_classCallCheck(this,t),this.factories=e}return _createClass(t,[{key:"find",value:function(t){var e,i=this.factories.find((function(e){return e.supports(t)}));if(null!=i)return i;throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'"))}}],[{key:"create",value:function(e,i){if(null!=i){var n=i.factories.slice();e=e.concat(n)}return new t(e)}},{key:"extend",value:function(e){return{provide:t,useFactory:function(i){if(!i)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,i)},deps:[[t,new dt,new ct]]}}}]),t}();Bl.\u0275prov=mt({token:Bl,providedIn:"root",factory:function(){return new Bl([new El])}});var Hl=function(){function t(e){_classCallCheck(this,t),this.factories=e}return _createClass(t,[{key:"find",value:function(t){var e=this.factories.find((function(e){return e.supports(t)}));if(e)return e;throw new Error("Cannot find a differ supporting object '".concat(t,"'"))}}],[{key:"create",value:function(e,i){if(i){var n=i.factories.slice();e=e.concat(n)}return new t(e)}},{key:"extend",value:function(e){return{provide:t,useFactory:function(i){if(!i)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,i)},deps:[[t,new dt,new ct]]}}}]),t}();Hl.\u0275prov=mt({token:Hl,providedIn:"root",factory:function(){return new Hl([new Vl])}});var zl=[new Vl],Ul=[new El],Wl=new Bl(Ul),Gl=new Hl(zl),Kl=function t(){_classCallCheck(this,t)};Kl.__NG_ELEMENT_ID__=function(){return Yl(Kl,wl)};var Yl=function(t,e){return Pa(t,e,mi(),yi())},ql=function t(){_classCallCheck(this,t)};ql.__NG_ELEMENT_ID__=function(){return Xl(ql,wl)};var Xl=function(t,e){return ka(t,e,mi(),yi())},Zl=new Map;function Ql(t){var e=Zl.get(t);return e||(e=Dt(t)+"_"+Zl.size,Zl.set(t,e)),e}new WeakMap,Ql(ss),Ql($t),Ql(de),Ql(kl),Ql(wl),Ql(ql),Ql(Kl),Ql(Oa),Ql(ss),Ql($t);var $l={},Jl=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).ngModule=t,n}return _createClass(i,[{key:"resolveComponentFactory",value:function(t){var e=Ne(t);return new ih(e,this.ngModule)}}]),i}(_l);function th(t){var e=[];for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];e.push({propName:n,templateName:i})}return e}var eh=new Qt("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return hn}}),ih=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this)).componentDef=t,r.ngModule=n,r.componentType=t.type,r.selector=t.selectors.map(Br).join(","),r.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],r.isBoundToModule=!!n,r}return _createClass(i,[{key:"create",value:function(t,e,i,n){var r,o,a,s,u=(n=n||this.ngModule)?function(t,e){return{get:function(i,n,r){var o=t.get(i,$l,r);return o!==$l||n===$l?o:e.get(i,n,r)}}}(t,n.injector):t,l=u.get(Cl,ei),h=u.get(Ol,null),c=l.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",d=i?function(t,e,i){if(ti(t)){var n=i===Oe.ShadowDom;return t.selectRootElement(e,n)}var r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(c,i,this.componentDef.encapsulation):no(p,l.createRenderer(null,this.componentDef),function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(p)),f=this.componentDef.onPush?576:528,g="string"==typeof i&&/^#root-ng-internal-isolated-\d+/.test(i),y={components:[],scheduler:r||hn,clean:Bo,playerHandler:o||null,flags:0},v=go(0,-1,null,1,0,null,null,null,null,null),m=ro(null,v,y,f,null,null,l,c,h,u);ji(m,null);try{var b=function(t,e,i,n,r,o){var a=i[1];i[20]=t;var s=oo(a,null,0,3,null,null),u=s.mergedAttrs=e.hostAttrs;null!==u&&(Ms(s,u,!0),null!==t&&($i(r,t,u),null!==s.classes&&va(r,t,s.classes),null!==s.styles&&ya(r,t,s.styles)));var l=n.createRenderer(t,e),h=ro(i,fo(e),null,e.onPush?64:16,i[20],s,n,l,o);return a.firstCreatePass&&(bn(gn(s,i),a,e.type),Po(a,s),So(s,i.length,1)),jo(i,h),i[20]=h}(d,this.componentDef,m,l,c);if(d)if(i)$i(c,d,["ng-version",Tl.full]);else{var _=function(t){for(var e=[],i=[],n=1,r=2;n<t.length;){var o=t[n];if("string"==typeof o)2===r?""!==o&&e.push(o,t[++n]):8===r&&i.push(o);else{if(!jr(r))break;r=o}n++}return{attrs:e,classes:i}}(this.componentDef.selectors[0]),w=_.attrs,x=_.classes;w&&$i(c,d,w),x&&x.length>0&&va(c,d,x.join(" "))}if(s=oi(v,0),void 0!==e)for(var C=s.projection=[],P=0;P<this.ngContentSelectors.length;P++){var k=e[P];C.push(null!=k?Array.from(k):null)}a=function(t,e,i,n,r){var o=i[1],a=function(t,e,i){var n=mi();t.firstCreatePass&&(i.providersResolver&&i.providersResolver(i),Co(t,n,1),Oo(t,e,i));var r=Pn(e,t,e.length-1,n);Or(r,e);var o=ri(n,e);return o&&Or(o,e),r}(o,i,e);n.components.push(a),t[8]=a,r&&r.forEach((function(t){return t(a,e)})),e.contentQueries&&e.contentQueries(1,a,i.length-1);var s=mi();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Ui(s.index-20);var u=i[1];_o(u,e),wo(u,i,e.hostVars),xo(e,a)}return a}(b,this.componentDef,m,y,[$u]),ao(v,m,null)}finally{Bi()}var S=new nh(this.componentType,a,Ca(wl,s,m),m,s);return i&&!g||(v.node.child=s),S}},{key:"inputs",get:function(){return th(this.componentDef.inputs)}},{key:"outputs",get:function(){return th(this.componentDef.outputs)}}]),i}(ml);new Jl;var nh=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s,u,l,h;return _classCallCheck(this,i),(s=e.call(this)).location=r,s._rootLView=o,s._tNode=a,s.destroyCbs=[],s.instance=n,s.hostView=s.changeDetectorRef=new xa(o),u=o[1],l=o,null==(h=u.node)&&(u.node=h=yo(0,null,2,-1,null,null)),l[6]=h,s.componentType=t,s}return _createClass(i,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(t){this.destroyCbs&&this.destroyCbs.push(t)}},{key:"injector",get:function(){return new On(this._tNode,this._rootLView)}}]),i}(vl),rh=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}],oh={};function ah(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),i=uh(e);if(i)return i;var n=e.split("-")[0];if(i=uh(n))return i;if("en"===n)return rh;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function sh(t){return ah(t)[lh.PluralCase]}function uh(t){return t in oh||(oh[t]=Ht.ng&&Ht.ng.common&&Ht.ng.common.locales&&Ht.ng.common.locales[t]),oh[t]}var lh={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};lh[lh.LocaleId]="LocaleId",lh[lh.DayPeriodsFormat]="DayPeriodsFormat",lh[lh.DayPeriodsStandalone]="DayPeriodsStandalone",lh[lh.DaysFormat]="DaysFormat",lh[lh.DaysStandalone]="DaysStandalone",lh[lh.MonthsFormat]="MonthsFormat",lh[lh.MonthsStandalone]="MonthsStandalone",lh[lh.Eras]="Eras",lh[lh.FirstDayOfWeek]="FirstDayOfWeek",lh[lh.WeekendRange]="WeekendRange",lh[lh.DateFormat]="DateFormat",lh[lh.TimeFormat]="TimeFormat",lh[lh.DateTimeFormat]="DateTimeFormat",lh[lh.NumberSymbols]="NumberSymbols",lh[lh.NumberFormats]="NumberFormats",lh[lh.CurrencyCode]="CurrencyCode",lh[lh.CurrencySymbol]="CurrencySymbol",lh[lh.CurrencyName]="CurrencyName",lh[lh.Currencies]="Currencies",lh[lh.Directionality]="Directionality",lh[lh.PluralCase]="PluralCase",lh[lh.ExtraData]="ExtraData";var hh=["zero","one","two","few","many"],ch=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,ph=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,dh=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,fh=/\ufffd(\d+):?\d*\ufffd/gi,gh=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,yh=/\[(\ufffd.+?\ufffd?)\]/,vh=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,mh=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,bh=/{([A-Z0-9_]+)}/g,_h=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,wh=/\/\*/,xh=/\d+\:(\d+)/;function Ch(t){if(!t)return[];var e,i=0,n=[],r=[],o=/[{}]/g;for(o.lastIndex=0;e=o.exec(t);){var a=e.index;if("}"==e[0]){if(n.pop(),0==n.length){var s=t.substring(i,a);ch.test(s)?r.push(Ph(s)):r.push(s),i=a+1}}else{if(0==n.length){var u=t.substring(i,a);r.push(u),i=a+1}n.push("{")}}var l=t.substring(i);return r.push(l),r}function Ph(t){for(var e=[],i=[],n=1,r=0,o=Ch(t=t.replace(ch,(function(t,e,i){return n="select"===i?0:1,r=parseInt(e.substr(1),10),""}))),a=0;a<o.length;){var s=o[a++].trim();1===n&&(s=s.replace(/\s*(?:=)?(\w+)\s*/,"$1")),s.length&&e.push(s);var u=Ch(o[a++]);e.length>i.length&&i.push(u)}return{type:n,mainBinding:r,cases:e,values:i}}function kh(t){for(var e,i,n="",r=0,o=!1;null!==(e=ph.exec(t));)o?e[0]==="\ufffd/*".concat(i,"\ufffd")&&(r=e.index,o=!1):(n+=t.substring(r,e.index+e[0].length),i=e[1],o=!0);return n+=t.substr(r)}function Sh(t,e,i){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=[null,null],o=t.split(fh),a=0,s=0;s<o.length;s++){var u=o[s];if(1&s){var l=parseInt(u,10);r.push(-1-l),a|=Eh(l)}else""!==u&&r.push(u)}return r.push(e<<2|(i?1:0)),i&&r.push(i,n),r[0]=a,r[1]=r.length-2,r}function Oh(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i|=Eh(t.mainBinding);for(var n=0;n<t.values.length;n++)for(var r=t.values[n],o=0;o<r.length;o++){var a=r[o];if("string"==typeof a)for(;e=fh.exec(a);)i|=Eh(parseInt(e[1],10));else i=Oh(a,i)}return i}var Dh=[],Th=-1;function Eh(t){return 1<<Math.min(t,31)}var Ih,Ah=[];function Fh(t,e,i){var n=vi();Dh[++Th]=t,_u(!0),n.firstCreatePass&&null===n.data[t+20]&&function(t,e,i,n,r){var o=e.blueprint.length-20;Ih=0;var a=mi(),s=_i()?a:a&&a.parent,u=s&&s!==t[6]?s.index-20:i,l=0;Ah[l]=u;var h=[];if(i>0&&a!==s){var c=a.index-20;_i()||(c=~c),h.push(c<<3|0)}var p,d=[],f=[];if(""===n&&Lh(r))h.push(n,Mh(o),u<<17|1);else for(var g=function(t,e){if(Lh(e))return kh(t);var i=t.indexOf(":".concat(e,"\ufffd"))+2+e.toString().length,n=t.search(new RegExp("\ufffd\\/\\*\\d+:".concat(e,"\ufffd")));return kh(t.substring(i,n))}(n,r),y=(p=g,p.replace(Yh," ")).split(dh),v=0;v<y.length;v++){var m=y[v];if(1&v)if("/"===m.charAt(0)){if("#"===m.charAt(1)){var b=parseInt(m.substr(2),10);u=Ah[--l],h.push(b<<3|5)}}else{var _=parseInt(m.substr(1),10),w="#"===m.charAt(0);h.push((w?_:~_)<<3|0,u<<17|1),w&&(Ah[++l]=u=_)}else for(var x=Ch(m),C=0;C<x.length;C++)if(1&C){var P=x[C];if("object"!=typeof P)throw new Error('Unable to parse ICU expression in "'.concat(g,'" message.'));var k=Mh(o);h.push(Xr,"",k,u<<17|1);var S=Oh(P);Wh(f,P,k,k);var O=f.length-1;d.push(Eh(P.mainBinding),3,-1-P.mainBinding,k<<2|2,O,S,2,k<<2|3,O)}else if(""!==x[C]){var D=x[C],T=D.match(fh),E=Mh(o);h.push(T?"":D,E,u<<17|1),T&&ye(Sh(D,E),d)}}Ih>0&&function(t,e,i){if(i>0&&t.firstCreatePass){for(var n=0;n<i;n++)t.blueprint.push(null),t.data.push(null),e.push(null);t.expandoInstructions?t.expandoInstructions.push(i):t.expandoStartIndex+=i}}(e,t,Ih);var I={vars:Ih,create:h,update:d,icus:f.length?f:null};e.data[i+20]=I}(yi(),n,t,e,i)}function Mh(t){return t+Ih++}function jh(t,e,i,n,r){var o=e.next;n||(n=i),n===i&&e!==i.child?(e.next=i.child,i.child=e):n!==i&&e!==n.next?(e.next=n.next,n.next=e):e.next=null,i!==r[6]&&(e.parent=i);for(var a=e.next;a;)a.next===e&&(a.next=o),a=a.next;if(1===e.type)return fa(t,r,e),e;la(t,r,ri(e,r),e);var s=r[e.index];return 0!==e.type&&Ge(s)&&la(t,r,s[7],e),e}function Lh(t){return void 0===t}function Vh(){var t=yi();!function(t,e){for(var i=Dh[Th--],n=t.data[i+20],r=mi(),o=Nh(i,n.create,t,e),a=i+1;a<=r.index-20;){-1===o.indexOf(a)&&Bh(t,e,a,!0);var s=oi(t,a);!s||0!==s.type&&3!==s.type&&4!==s.type||null===s.localNames||(a+=s.localNames.length>>1),a++}}(vi(),t),_u(!1)}function Rh(t,e,i,n,r,o){var a=mi();e[i+20]=r;var s=oo(t,e[6],i,n,o,null);return a&&a.next===s&&(a.next=null),s}function Nh(t,e,i,n){for(var r=n[11],o=null,a=null,s=[],u=0;u<e.length;u++){var l=e[u];if("string"==typeof l){var h=Zo(l,r),c=e[++u];a=o,o=Rh(i,n,c,3,h,null),s.push(c),wi()}else if("number"==typeof l)switch(7&l){case 1:var p=l>>>17;a=jh(i,o,p===t?n[6]:oi(i,p),a,n);break;case 0:var d=l>=0,f=(d?l:~l)>>>3;s.push(f),a=o,(o=oi(i,f))&&bi(o,d);break;case 5:a=o=oi(i,l>>>3),bi(o,!1);break;case 4:var g=l>>>3,y=e[++u],v=e[++u];To(oi(i,g),n,y,v,null,null);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(l,'"'))}else switch(l){case Xr:var m=e[++u],b=e[++u],_=r.createComment(m);a=o,o=Rh(i,n,b,5,_,null),s.push(b),Or(_,n),o.activeCaseIndex=null,wi();break;case qr:var w=e[++u],x=e[++u];a=o,o=Rh(i,n,x,3,r.createElement(w),w),s.push(x);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(l,'"'))}}return wi(),s}function Bh(t,e,i,n){var r=oi(t,i),o=ni(i,e);o&&ca(e[11],o);var a=ai(e,i);if(Ge(a)){var s=a;0!==r.type&&ca(e[11],s[7])}n&&(r.flags|=64)}var Hh=0,zh=0;function Uh(t,e){var i,n,r,o=t.cases.indexOf(e);if(-1===o)switch(t.type){case 1:var a=(i=e,n=sh(qh)(parseInt(i,10)),void 0!==(r=hh[n])?r:"other");-1===(o=t.cases.indexOf(a))&&"other"!==a&&(o=t.cases.indexOf("other"));break;case 0:o=t.cases.indexOf("other")}return o}function Wh(t,e,i,n){for(var r=[],o=[],a=[],s=[],u=[],l=0;l<e.values.length;l++){for(var h=e.values[l],c=[],p=0;p<h.length;p++){var d=h[p];if("string"!=typeof d){var f=c.push(d)-1;h[p]="\x3c!--\ufffd".concat(f,"\ufffd--\x3e")}}var g=Gh(h.join(""),i,c,t,n);r.push(g.create),o.push(g.remove),a.push(g.update),s.push(g.vars),u.push(g.childIcus)}var y={type:e.type,vars:s,childIcus:u,cases:e.cases,create:r,remove:o,update:a};t.push(y),Ih+=Math.max.apply(Math,s)}function Gh(t,e,i,n,r){var o=new Gn($e()).getInertBodyElement(t);if(!o)throw new Error("Unable to generate inert body element");var a={vars:0,childIcus:[],create:[],remove:[],update:[]};return function t(e,i,n,r,o,a){if(e){for(var s=[];e;){var u=e.nextSibling,l=a+ ++i.vars;switch(e.nodeType){case Node.ELEMENT_NODE:var h=e,c=h.tagName.toLowerCase();if(or.hasOwnProperty(c)){i.create.push(qr,c,l,n<<17|1);for(var p=h.attributes,d=0;d<p.length;d++){var f=p.item(d),g=f.name.toLowerCase();f.value.match(fh)?hr.hasOwnProperty(g)&&(ar[g]?ye(Sh(f.value,l,f.name,qn),i.update):sr[g]?ye(Sh(f.value,l,f.name,Xn),i.update):ye(Sh(f.value,l,f.name),i.update)):i.create.push(l<<3|4,f.name,f.value)}t(e.firstChild,i,l,r,o,a),i.remove.push(l<<3|3)}else i.vars--;break;case Node.TEXT_NODE:var y=e.textContent||"",v=y.match(fh);i.create.push(v?"":y,l,n<<17|1),i.remove.push(l<<3|3),v&&ye(Sh(y,l),i.update);break;case Node.COMMENT_NODE:var m=Kh.exec(e.textContent||"");if(m){var b=parseInt(m[1],10);i.create.push(Xr,"",l,n<<17|1);var _=r[b];s.push([_,l])}else i.vars--;break;default:i.vars--}e=u}for(var w=0;w<s.length;w++){var x=s[w][0],C=s[w][1];Wh(o,x,C,a+i.vars);var P=o.length-1;i.vars+=Math.max.apply(Math,_toConsumableArray(o[P].vars)),i.childIcus.push(P);var k=Oh(x);i.update.push(Eh(x.mainBinding),3,-1-x.mainBinding,C<<2|2,P,k,2,C<<2|3,P),i.remove.push(P<<3|6,C<<3|3)}}}((vr(o)||o).firstChild,a,e,i,n,r),a}var Kh=/\ufffd(\d+)\ufffd/,Yh=/\uE500/g,qh="en-US";function Xh(t){ge(t,"Expected localeId to be defined"),"string"==typeof t&&(qh=t.toLowerCase().replace(/_/g,"-"))}var Zh=new Map;var Qh=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;_classCallCheck(this,i),(r=e.call(this))._parent=n,r._bootstrapComponents=[],r.injector=_assertThisInitialized(r),r.destroyCbs=[],r.componentFactoryResolver=new Jl(_assertThisInitialized(r));var o=Ue(t),a=t[qt]||null;return a&&Xh(a),r._bootstrapComponents=cn(o.bootstrap),r._r3Injector=Ja(t,n,[{provide:de,useValue:_assertThisInitialized(r)},{provide:_l,useValue:r.componentFactoryResolver}],Dt(t)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(t),r}return _createClass(i,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ss.THROW_IF_NOT_FOUND,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lt.Default;return t===ss||t===de||t===$t?this:this._r3Injector.get(t,e,i)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),i}(de),$h=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).moduleType=t,null!==Ue(t)&&function t(e){if(null!==e.\u0275mod.id){var i=e.\u0275mod.id;(function(t,e,i){if(e&&e!==i)throw new Error("Duplicate module registered for ".concat(t," - ").concat(Dt(e)," vs ").concat(Dt(e.name)))})(i,Zh.get(i),e),Zh.set(i,e)}var n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach((function(e){return t(e)}))}(t),n}return _createClass(i,[{key:"create",value:function(t){return new Qh(this.moduleType,t)}}]),i}(fe);function Jh(t,e){var i=t[e];return i===Hr?void 0:i}function tc(t,e,i,n,r,o){var a=e+i;return Us(t,a,r)?Hs(t,a+1,o?n.call(o,r):n(r)):Jh(t,a+1)}function ec(t,e,i,n,r,o,a){var s=e+i;return Ws(t,s,r,o)?Hs(t,s+2,a?n.call(a,r,o):n(r,o)):Jh(t,s+2)}function ic(t,e,i,n,r,o,a,s){var u=e+i;return Gs(t,u,r,o,a)?Hs(t,u+3,s?n.call(s,r,o,a):n(r,o,a)):Jh(t,u+3)}function nc(t,e,i,n,r,o,a,s,u){var l=e+i;return Ks(t,l,r,o,a,s)?Hs(t,l+4,u?n.call(u,r,o,a,s):n(r,o,a,s)):Jh(t,l+4)}function rc(t,e,i,n,r,o){for(var a=e+i,s=!1,u=0;u<r.length;u++)Us(t,a++,r[u])&&(s=!0);return s?Hs(t,a,n.apply(o,r)):Jh(t,a)}function oc(t,e){return t[1].data[e+20].pure}function ac(t,e){return Rs.isWrapped(e)&&(e=Rs.unwrap(e),t[ki()]=Hr),e}var sc=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,i),(t=e.call(this)).__isAsync=n,t}return _createClass(i,[{key:"emit",value:function(t){_get(_getPrototypeOf(i.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,n){var r,o=function(t){return null},a=function(){return null};t&&"object"==typeof t?(r=this.__isAsync?function(e){setTimeout((function(){return t.next(e)}))}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout((function(){return t.error(e)}))}:function(e){t.error(e)}),t.complete&&(a=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(r=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)},e&&(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)}),n&&(a=this.__isAsync?function(){setTimeout((function(){return n()}))}:function(){n()}));var s=_get(_getPrototypeOf(i.prototype),"subscribe",this).call(this,r,o,a);return t instanceof d&&t.add(s),s}}]),i}(O);function uc(){return this._results[Ls()]()}var lc=function(){function t(){_classCallCheck(this,t),this.dirty=!0,this._results=[],this.changes=new sc,this.length=0;var e=Ls(),i=t.prototype;i[e]||(i[e]=uc)}return _createClass(t,[{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t){this._results=ve(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),t}(),hc=function(){function t(e){_classCallCheck(this,t),this.queryList=e,this.matches=null}return _createClass(t,[{key:"clone",value:function(){return new t(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),t}(),cc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"createEmbeddedView",value:function(e){var i=e.queries;if(null!==i){for(var n=null!==e.contentQueries?e.contentQueries[0]:i.length,r=[],o=0;o<n;o++){var a=i.getByIndex(o),s=this.queries[a.indexInDeclarationView];r.push(s.clone())}return new t(r)}return null}},{key:"insertView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"detachView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"dirtyQueriesWithMatches",value:function(t){for(var e=0;e<this.queries.length;e++)null!==kc(t,e).matches&&this.queries[e].setDirty()}}]),t}(),pc=function t(e,i,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,t),this.predicate=e,this.descendants=i,this.isStatic=n,this.read=r},dc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"elementStart",value:function(t,e){for(var i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}},{key:"elementEnd",value:function(t){for(var e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}},{key:"embeddedTView",value:function(e){for(var i=null,n=0;n<this.length;n++){var r=null!==i?i.length:0,o=this.getByIndex(n).embeddedTView(e,r);o&&(o.indexInDeclarationView=n,null!==i?i.push(o):i=[o])}return null!==i?new t(i):null}},{key:"template",value:function(t,e){for(var i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}},{key:"getByIndex",value:function(t){return this.queries[t]}},{key:"track",value:function(t){this.queries.push(t)}},{key:"length",get:function(){return this.queries.length}}]),t}(),fc=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}return _createClass(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,i=t.parent;null!==i&&4===i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){if(Array.isArray(this.metadata.predicate))for(var i=this.metadata.predicate,n=0;n<i.length;n++)this.matchTNodeWithReadOption(t,e,gc(e,i[n]));else{var r=this.metadata.predicate;r===Kl?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Cn(e,t,r,!1,!1))}}},{key:"matchTNodeWithReadOption",value:function(t,e,i){if(null!==i){var n=this.metadata.read;if(null!==n)if(n===wl||n===ql||n===Kl&&0===e.type)this.addMatch(e.index,-2);else{var r=Cn(e,t,n,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}},{key:"addMatch",value:function(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}]),t}();function gc(t,e){var i=t.localNames;if(null!==i)for(var n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1];return null}function yc(t,e,i,n){return-1===i?function(t,e){return 3===t.type||4===t.type?Ca(wl,t,e):0===t.type?Pa(Kl,wl,t,e):null}(e,t):-2===i?function(t,e,i){return i===wl?Ca(wl,e,t):i===Kl?Pa(Kl,wl,e,t):i===ql?ka(ql,wl,e,t):void 0}(t,e,n):Pn(t,t[1],i,e)}function vc(t,e,i,n){var r=e[19].queries[n];if(null===r.matches){for(var o=t.data,a=i.matches,s=[],u=0;u<a.length;u+=2){var l=a[u];if(l<0)s.push(null);else{var h=o[l];s.push(yc(e,h,a[u+1],i.metadata.read))}}r.matches=s}return r.matches}function mc(t){var e=yi(),i=vi(),n=Ai();Fi(n+1);var r=kc(i,n);if(t.dirty&&li(e)===r.metadata.isStatic){if(null===r.matches)t.reset([]);else{var o=r.crossesNgTemplate?function t(e,i,n,r){var o=e.queries.getByIndex(n),a=o.matches;if(null!==a)for(var s=vc(e,i,o,n),u=0;u<a.length;u+=2){var l=a[u];if(l>0)r.push(s[u/2]);else{for(var h=a[u+1],c=i[-l],p=10;p<c.length;p++){var d=c[p];d[17]===d[3]&&t(d[1],d,h,r)}if(null!==c[9])for(var f=c[9],g=0;g<f.length;g++){var y=f[g];t(y[1],y,h,r)}}}return r}(i,e,n,[]):vc(i,e,r,n);t.reset(o),t.notifyOnChanges()}return!0}return!1}function bc(t,e,i,n,r,o){t.firstCreatePass&&(Pc(t,new pc(i,n,o,r),-1),o&&(t.staticViewQueries=!0)),Cc(t,e)}function _c(t,e,i,n){wc(vi(),yi(),e,i,n,!1,mi(),t)}function wc(t,e,i,n,r,o,a,s){t.firstCreatePass&&(Pc(t,new pc(i,n,o,r),a.index),function(t,e){var i=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?i[i.length-1]:-1)&&i.push(t.queries.length-1,e)}(t,s),o&&(t.staticContentQueries=!0)),Cc(t,e)}function xc(){return t=yi(),e=Ai(),t[19].queries[e].queryList;var t,e}function Cc(t,e){var i=new lc;!function(t,e,i,n){var r=Ho(e);r.push(i),t.firstCreatePass&&zo(t).push(n,r.length-1)}(t,e,i,i.destroy),null===e[19]&&(e[19]=new cc),e[19].queries.push(new hc(i))}function Pc(t,e,i){null===t.queries&&(t.queries=new dc),t.queries.track(new fc(e,i))}function kc(t,e){return t.queries.getByIndex(e)}function Sc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lt.Default,e=Sa(!0);if(null!=e||t<.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}var Oc={"\u0275\u0275attribute":Ys,"\u0275\u0275attributeInterpolate1":function t(e,i,n,r,o,a){var s=yi(),u=Xs(s,i,n,r);return u!==Hr&&To(Wi(),s,e,u,o,a),t},"\u0275\u0275attributeInterpolate2":function t(e,i,n,r,o,a,s,u){var l=yi(),h=Zs(l,i,n,r,o,a);return h!==Hr&&To(Wi(),l,e,h,s,u),t},"\u0275\u0275attributeInterpolate3":function t(e,i,n,r,o,a,s,u,l,h){var c=yi(),p=Qs(c,i,n,r,o,a,s,u);return p!==Hr&&To(Wi(),c,e,p,l,h),t},"\u0275\u0275attributeInterpolate4":function t(e,i,n,r,o,a,s,u,l,h,c,p){var d=yi(),f=$s(d,i,n,r,o,a,s,u,l,h);return f!==Hr&&To(Wi(),d,e,f,c,p),t},"\u0275\u0275attributeInterpolate5":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f){var g=yi(),y=Js(g,i,n,r,o,a,s,u,l,h,c,p);return y!==Hr&&To(Wi(),g,e,y,d,f),t},"\u0275\u0275attributeInterpolate6":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y){var v=yi(),m=tu(v,i,n,r,o,a,s,u,l,h,c,p,d,f);return m!==Hr&&To(Wi(),v,e,m,g,y),t},"\u0275\u0275attributeInterpolate7":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v,m){var b=yi(),_=eu(b,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y);return _!==Hr&&To(Wi(),b,e,_,v,m),t},"\u0275\u0275attributeInterpolate8":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v,m,b,_){var w=yi(),x=iu(w,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v,m);return x!==Hr&&To(Wi(),w,e,x,b,_),t},"\u0275\u0275attributeInterpolateV":function t(e,i,n,r){var o=yi(),a=qs(o,i);return a!==Hr&&To(Wi(),o,e,a,n,r),t},"\u0275\u0275defineComponent":Ie,"\u0275\u0275defineDirective":Ve,"\u0275\u0275defineInjectable":mt,"\u0275\u0275defineInjector":bt,"\u0275\u0275defineNgModule":je,"\u0275\u0275definePipe":Re,"\u0275\u0275directiveInject":nu,"\u0275\u0275getFactoryOf":Dn,"\u0275\u0275getInheritedFactory":function(t){return et((function(){var e=Object.getPrototypeOf(t.prototype).constructor,i=e[Xt]||Dn(e);return null!==i?i:function(t){return new t}}))},"\u0275\u0275inject":ae,"\u0275\u0275injectAttribute":ru,"\u0275\u0275invalidFactory":ou,"\u0275\u0275invalidFactoryDep":se,"\u0275\u0275injectPipeChangeDetectorRef":Sc,"\u0275\u0275templateRefExtractor":function(t,e){return Pa(Kl,wl,t,e)},"\u0275\u0275NgOnChangesFeature":sl,"\u0275\u0275ProvidersFeature":function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(i){i.providersResolver=function(i,n){return function(t,e,i){var n=vi();if(n.firstCreatePass){var r=Xe(t);hl(i,n.data,n.blueprint,r,!0),hl(e,n.data,n.blueprint,r,!1)}}(i,n?n(t):t,e)}}},"\u0275\u0275CopyDefinitionFeature":function(t){var e,i=Ju(t.type);e=Xe(t)?i.\u0275cmp:i.\u0275dir;var n,r=t,o=_createForOfIteratorHelper(rl);try{for(o.s();!(n=o.n()).done;){var a=n.value;r[a]=e[a]}}catch(h){o.e(h)}finally{o.f()}if(Xe(e)){var s,u=_createForOfIteratorHelper(ol);try{for(u.s();!(s=u.n()).done;){var l=s.value;r[l]=e[l]}}catch(h){u.e(h)}finally{u.f()}}},"\u0275\u0275InheritDefinitionFeature":function t(e){for(var i=Ju(e.type),n=!0,r=[e];i;){var o=void 0;if(Xe(e))o=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Error("Directives cannot inherit Components");o=i.\u0275dir}if(o){if(n){r.push(o);var a=e;a.inputs=tl(e.inputs),a.declaredInputs=tl(e.declaredInputs),a.outputs=tl(e.outputs);var s=o.hostBindings;s&&nl(e,s);var u=o.viewQuery,l=o.contentQueries;if(u&&el(e,u),l&&il(e,l),vt(e.inputs,o.inputs),vt(e.declaredInputs,o.declaredInputs),vt(e.outputs,o.outputs),Xe(o)&&o.data.animation){var h=e.data;h.animation=(h.animation||[]).concat(o.data.animation)}a.afterContentChecked=a.afterContentChecked||o.afterContentChecked,a.afterContentInit=e.afterContentInit||o.afterContentInit,a.afterViewChecked=e.afterViewChecked||o.afterViewChecked,a.afterViewInit=e.afterViewInit||o.afterViewInit,a.doCheck=e.doCheck||o.doCheck,a.onDestroy=e.onDestroy||o.onDestroy,a.onInit=e.onInit||o.onInit}var c=o.features;if(c)for(var p=0;p<c.length;p++){var d=c[p];d&&d.ngInherit&&d(e),d===t&&(n=!1)}}i=Object.getPrototypeOf(i)}!function(t){for(var e=0,i=null,n=t.length-1;n>=0;n--){var r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=en(r.hostAttrs,i=en(i,r.hostAttrs))}}(r)},"\u0275\u0275nextContext":function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Hi(t)},"\u0275\u0275namespaceHTML":function(){fi.lFrame.currentNamespace=null},"\u0275\u0275namespaceMathML":function(){fi.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"},"\u0275\u0275namespaceSVG":function(){fi.lFrame.currentNamespace="http://www.w3.org/2000/svg"},"\u0275\u0275enableBindings":function(){fi.bindingsEnabled=!0},"\u0275\u0275disableBindings":function(){fi.bindingsEnabled=!1},"\u0275\u0275elementStart":su,"\u0275\u0275elementEnd":uu,"\u0275\u0275element":lu,"\u0275\u0275elementContainerStart":hu,"\u0275\u0275elementContainerEnd":cu,"\u0275\u0275elementContainer":function(t,e,i){hu(t,e,i),cu()},"\u0275\u0275pureFunction0":function(t,e,i){var n=Pi()+t,r=yi();return r[n]===Hr?Hs(r,n,i?e.call(i):e()):zs(r,n)},"\u0275\u0275pureFunction1":function(t,e,i,n){return tc(yi(),Pi(),t,e,i,n)},"\u0275\u0275pureFunction2":function(t,e,i,n,r){return ec(yi(),Pi(),t,e,i,n,r)},"\u0275\u0275pureFunction3":function(t,e,i,n,r,o){return ic(yi(),Pi(),t,e,i,n,r,o)},"\u0275\u0275pureFunction4":function(t,e,i,n,r,o,a){return nc(yi(),Pi(),t,e,i,n,r,o,a)},"\u0275\u0275pureFunction5":function(t,e,i,n,r,o,a,s){var u=Pi()+t,l=yi(),h=Ks(l,u,i,n,r,o);return Us(l,u+4,a)||h?Hs(l,u+5,s?e.call(s,i,n,r,o,a):e(i,n,r,o,a)):zs(l,u+5)},"\u0275\u0275pureFunction6":function(t,e,i,n,r,o,a,s,u){var l=Pi()+t,h=yi(),c=Ks(h,l,i,n,r,o);return Ws(h,l+4,a,s)||c?Hs(h,l+6,u?e.call(u,i,n,r,o,a,s):e(i,n,r,o,a,s)):zs(h,l+6)},"\u0275\u0275pureFunction7":function(t,e,i,n,r,o,a,s,u,l){var h=Pi()+t,c=yi(),p=Ks(c,h,i,n,r,o);return Gs(c,h+4,a,s,u)||p?Hs(c,h+7,l?e.call(l,i,n,r,o,a,s,u):e(i,n,r,o,a,s,u)):zs(c,h+7)},"\u0275\u0275pureFunction8":function(t,e,i,n,r,o,a,s,u,l,h){var c=Pi()+t,p=yi(),d=Ks(p,c,i,n,r,o);return Ks(p,c+4,a,s,u,l)||d?Hs(p,c+8,h?e.call(h,i,n,r,o,a,s,u,l):e(i,n,r,o,a,s,u,l)):zs(p,c+8)},"\u0275\u0275pureFunctionV":function(t,e,i,n){return rc(yi(),Pi(),t,e,i,n)},"\u0275\u0275getCurrentView":function(){return yi()},"\u0275\u0275restoreView":function(t){fi.lFrame.contextLView=t},"\u0275\u0275listener":fu,"\u0275\u0275projection":function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,n=yi(),r=vi(),o=oo(r,n[6],t,1,null,i||null);null===o.projection&&(o.projection=e),wi(),bu||fa(r,n,o)},"\u0275\u0275updateSyntheticHostBinding":function t(e,i,n){var r=yi();if(Us(r,Oi(),i)){var o=vi(),a=Wi();mo(o,a,r,e,i,Uo(Ii(o.data),a,r),n,!0)}return t},"\u0275\u0275componentHostSyntheticListener":function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,o=mi(),a=yi(),s=vi();return gu(s,a,Uo(Ii(s.data),o,a),o,e,i,n,r),t},"\u0275\u0275pipeBind1":function(t,e,i){var n=yi(),r=ai(n,t);return ac(n,oc(n,t)?tc(n,Pi(),e,r.transform,i,r):r.transform(i))},"\u0275\u0275pipeBind2":function(t,e,i,n){var r=yi(),o=ai(r,t);return ac(r,oc(r,t)?ec(r,Pi(),e,o.transform,i,n,o):o.transform(i,n))},"\u0275\u0275pipeBind3":function(t,e,i,n,r){var o=yi(),a=ai(o,t);return ac(o,oc(o,t)?ic(o,Pi(),e,a.transform,i,n,r,a):a.transform(i,n,r))},"\u0275\u0275pipeBind4":function(t,e,i,n,r,o){var a=yi(),s=ai(a,t);return ac(a,oc(a,t)?nc(a,Pi(),e,s.transform,i,n,r,o,s):s.transform(i,n,r,o))},"\u0275\u0275pipeBindV":function(t,e,i){var n=yi(),r=ai(n,t);return ac(n,oc(n,t)?rc(n,Pi(),e,r.transform,i,r):r.transform.apply(r,i))},"\u0275\u0275projectionDef":function(t){var e=yi()[16][6];if(!e.projection)for(var i=t?t.length:1,n=e.projection=we(i,null),r=n.slice(),o=e.child;null!==o;){var a=t?mu(o,t):0;null!==a&&(r[a]?r[a].projectionNext=o:n[a]=o,r[a]=o),o=o.next}},"\u0275\u0275hostProperty":Qu,"\u0275\u0275property":function t(e,i,n){var r=yi();return Us(r,Oi(),i)&&mo(vi(),Wi(),r,e,i,r[11],n,!1),t},"\u0275\u0275propertyInterpolate":function t(e,i,n){return wu(e,"",i,"",n),t},"\u0275\u0275propertyInterpolate1":wu,"\u0275\u0275propertyInterpolate2":function t(e,i,n,r,o,a,s){var u=yi(),l=Zs(u,i,n,r,o,a);return l!==Hr&&mo(vi(),Wi(),u,e,l,u[11],s,!1),t},"\u0275\u0275propertyInterpolate3":function t(e,i,n,r,o,a,s,u,l){var h=yi(),c=Qs(h,i,n,r,o,a,s,u);return c!==Hr&&mo(vi(),Wi(),h,e,c,h[11],l,!1),t},"\u0275\u0275propertyInterpolate4":function t(e,i,n,r,o,a,s,u,l,h,c){var p=yi(),d=$s(p,i,n,r,o,a,s,u,l,h);return d!==Hr&&mo(vi(),Wi(),p,e,d,p[11],c,!1),t},"\u0275\u0275propertyInterpolate5":function t(e,i,n,r,o,a,s,u,l,h,c,p,d){var f=yi(),g=Js(f,i,n,r,o,a,s,u,l,h,c,p);return g!==Hr&&mo(vi(),Wi(),f,e,g,f[11],d,!1),t},"\u0275\u0275propertyInterpolate6":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f,g){var y=yi(),v=tu(y,i,n,r,o,a,s,u,l,h,c,p,d,f);return v!==Hr&&mo(vi(),Wi(),y,e,v,y[11],g,!1),t},"\u0275\u0275propertyInterpolate7":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v){var m=yi(),b=eu(m,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y);return b!==Hr&&mo(vi(),Wi(),m,e,b,m[11],v,!1),t},"\u0275\u0275propertyInterpolate8":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v,m,b){var _=yi(),w=iu(_,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v,m);return w!==Hr&&mo(vi(),Wi(),_,e,w,_[11],b,!1),t},"\u0275\u0275propertyInterpolateV":function t(e,i,n){var r=yi(),o=qs(r,i);return o!==Hr&&mo(vi(),Wi(),r,e,o,r[11],n,!1),t},"\u0275\u0275pipe":function(t,e){var i,n=vi(),r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(var i=e.length-1;i>=0;i--){var n=e[i];if(t===n.name)return n}throw new Error("The pipe '".concat(t,"' could not be found!"))}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];var o=i.factory||(i.factory=ze(i.type)),a=re(nu),s=dn(!1),u=o();return dn(s),re(a),function(t,e,i,n){var r=i+20;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}(n,yi(),t,u),u},"\u0275\u0275queryRefresh":mc,"\u0275\u0275viewQuery":function(t,e,i){bc(vi(),yi(),t,e,i,!1)},"\u0275\u0275staticViewQuery":function(t,e,i){bc(vi(),yi(),t,e,i,!0)},"\u0275\u0275staticContentQuery":function(t,e,i,n){wc(vi(),yi(),e,i,n,!0,mi(),t)},"\u0275\u0275loadQuery":xc,"\u0275\u0275contentQuery":_c,"\u0275\u0275reference":function(t){return ai(fi.lFrame.contextLView,t)},"\u0275\u0275classMap":function(t){Ru(xe,Lu,t,!0)},"\u0275\u0275classMapInterpolate1":function(t,e,i){Ru(xe,Lu,Xs(yi(),t,e,i),!0)},"\u0275\u0275classMapInterpolate2":function(t,e,i,n,r){Ru(xe,Lu,Zs(yi(),t,e,i,n,r),!0)},"\u0275\u0275classMapInterpolate3":function(t,e,i,n,r,o,a){Ru(xe,Lu,Qs(yi(),t,e,i,n,r,o,a),!0)},"\u0275\u0275classMapInterpolate4":function(t,e,i,n,r,o,a,s,u){Ru(xe,Lu,$s(yi(),t,e,i,n,r,o,a,s,u),!0)},"\u0275\u0275classMapInterpolate5":function(t,e,i,n,r,o,a,s,u,l,h){Ru(xe,Lu,Js(yi(),t,e,i,n,r,o,a,s,u,l,h),!0)},"\u0275\u0275classMapInterpolate6":function(t,e,i,n,r,o,a,s,u,l,h,c,p){Ru(xe,Lu,tu(yi(),t,e,i,n,r,o,a,s,u,l,h,c,p),!0)},"\u0275\u0275classMapInterpolate7":function(t,e,i,n,r,o,a,s,u,l,h,c,p,d,f){Ru(xe,Lu,eu(yi(),t,e,i,n,r,o,a,s,u,l,h,c,p,d,f),!0)},"\u0275\u0275classMapInterpolate8":function(t,e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y){Ru(xe,Lu,iu(yi(),t,e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y),!0)},"\u0275\u0275classMapInterpolateV":function(t){Ru(xe,Lu,qs(yi(),t),!0)},"\u0275\u0275styleMap":Mu,"\u0275\u0275styleMapInterpolate1":function(t,e,i){Mu(Xs(yi(),t,e,i))},"\u0275\u0275styleMapInterpolate2":function(t,e,i,n,r){Mu(Zs(yi(),t,e,i,n,r))},"\u0275\u0275styleMapInterpolate3":function(t,e,i,n,r,o,a){Mu(Qs(yi(),t,e,i,n,r,o,a))},"\u0275\u0275styleMapInterpolate4":function(t,e,i,n,r,o,a,s,u){Mu($s(yi(),t,e,i,n,r,o,a,s,u))},"\u0275\u0275styleMapInterpolate5":function(t,e,i,n,r,o,a,s,u,l,h){Mu(Js(yi(),t,e,i,n,r,o,a,s,u,l,h))},"\u0275\u0275styleMapInterpolate6":function(t,e,i,n,r,o,a,s,u,l,h,c,p){Mu(tu(yi(),t,e,i,n,r,o,a,s,u,l,h,c,p))},"\u0275\u0275styleMapInterpolate7":function(t,e,i,n,r,o,a,s,u,l,h,c,p,d,f){Mu(eu(yi(),t,e,i,n,r,o,a,s,u,l,h,c,p,d,f))},"\u0275\u0275styleMapInterpolate8":function(t,e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y){Mu(iu(yi(),t,e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y))},"\u0275\u0275styleMapInterpolateV":function(t){Mu(qs(yi(),t))},"\u0275\u0275styleProp":function t(e,i,n){return Vu(e,i,n,!1),t},"\u0275\u0275stylePropInterpolate1":function t(e,i,n,r,o){return Vu(e,Xs(yi(),i,n,r),o,!1),t},"\u0275\u0275stylePropInterpolate2":function t(e,i,n,r,o,a,s){return Vu(e,Zs(yi(),i,n,r,o,a),s,!1),t},"\u0275\u0275stylePropInterpolate3":function t(e,i,n,r,o,a,s,u,l){return Vu(e,Qs(yi(),i,n,r,o,a,s,u),l,!1),t},"\u0275\u0275stylePropInterpolate4":function t(e,i,n,r,o,a,s,u,l,h,c){return Vu(e,$s(yi(),i,n,r,o,a,s,u,l,h),c,!1),t},"\u0275\u0275stylePropInterpolate5":function t(e,i,n,r,o,a,s,u,l,h,c,p,d){return Vu(e,Js(yi(),i,n,r,o,a,s,u,l,h,c,p),d,!1),t},"\u0275\u0275stylePropInterpolate6":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f,g){return Vu(e,tu(yi(),i,n,r,o,a,s,u,l,h,c,p,d,f),g,!1),t},"\u0275\u0275stylePropInterpolate7":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v){return Vu(e,eu(yi(),i,n,r,o,a,s,u,l,h,c,p,d,f,g,y),v,!1),t},"\u0275\u0275stylePropInterpolate8":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v,m,b){return Vu(e,iu(yi(),i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v,m),b,!1),t},"\u0275\u0275stylePropInterpolateV":function t(e,i,n){return Vu(e,qs(yi(),i),n,!1),t},"\u0275\u0275styleSanitizer":function(t){!function(t){fi.lFrame.currentSanitizer=t}(t)},"\u0275\u0275classProp":function t(e,i){return Vu(e,i,null,!0),t},"\u0275\u0275select":function(t){Yr(vi(),yi(),t,xi())},"\u0275\u0275advance":Kr,"\u0275\u0275template":function(t,e,i,n,r,o,a,s){var u=yi(),l=vi(),h=t+20,c=l.firstCreatePass?function(t,e,i,n,r,o,a,s,u){var l=e.consts,h=oo(e,i[6],t,0,a||null,ci(l,s));bo(e,i,h,ci(l,u)),Gi(e,h);var c=h.tViews=go(2,-1,n,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l),p=yo(0,null,2,-1,null,null);return p.injectorIndex=h.injectorIndex,c.node=p,null!==e.queries&&(e.queries.template(e,h),c.queries=e.queries.embeddedTView(h)),h}(t,l,u,e,i,n,r,o,a):l.data[h];bi(c,!1);var p=u[11].createComment("");la(l,u,p,c),Or(p,u),jo(u,u[h]=Ao(p,u,p,c)),qe(c)&&co(l,u,c),null!=a&&po(u,c,s)},"\u0275\u0275text":qu,"\u0275\u0275textInterpolate":Xu,"\u0275\u0275textInterpolate1":Zu,"\u0275\u0275textInterpolate2":function t(e,i,n,r,o){var a=yi(),s=Zs(a,e,i,n,r,o);return s!==Hr&&Ko(a,zi(),s),t},"\u0275\u0275textInterpolate3":function t(e,i,n,r,o,a,s){var u=yi(),l=Qs(u,e,i,n,r,o,a,s);return l!==Hr&&Ko(u,zi(),l),t},"\u0275\u0275textInterpolate4":function t(e,i,n,r,o,a,s,u,l){var h=yi(),c=$s(h,e,i,n,r,o,a,s,u,l);return c!==Hr&&Ko(h,zi(),c),t},"\u0275\u0275textInterpolate5":function t(e,i,n,r,o,a,s,u,l,h,c){var p=yi(),d=Js(p,e,i,n,r,o,a,s,u,l,h,c);return d!==Hr&&Ko(p,zi(),d),t},"\u0275\u0275textInterpolate6":function t(e,i,n,r,o,a,s,u,l,h,c,p,d){var f=yi(),g=tu(f,e,i,n,r,o,a,s,u,l,h,c,p,d);return g!==Hr&&Ko(f,zi(),g),t},"\u0275\u0275textInterpolate7":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f,g){var y=yi(),v=eu(y,e,i,n,r,o,a,s,u,l,h,c,p,d,f,g);return v!==Hr&&Ko(y,zi(),v),t},"\u0275\u0275textInterpolate8":function t(e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v){var m=yi(),b=iu(m,e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y,v);return b!==Hr&&Ko(m,zi(),b),t},"\u0275\u0275textInterpolateV":function t(e){var i=yi(),n=qs(i,e);return n!==Hr&&Ko(i,zi(),n),t},"\u0275\u0275i18n":function(t,e,i){Fh(t,e,i),Vh()},"\u0275\u0275i18nAttributes":function(t,e){!function(t,e,i,n){for(var r=mi().index-20,o=[],a=0;a<n.length;a+=2)for(var s=n[a],u=n[a+1].split(gh),l=0;l<u.length;l++){var h=u[l];if(1&l)throw new Error("ICU expressions are not yet supported in attributes");if(""!==h)if(h.match(fh))e.firstCreatePass&&null===e.data[i+20]&&ye(Sh(h,r,s),o);else{var c=oi(e,r);3===c.type&&To(c,t,s,h,null,null);var p=null!==c.inputs&&c.inputs[s];p&&Go(e,t,p,s,h)}}e.firstCreatePass&&null===e.data[i+20]&&(e.data[i+20]=o)}(yi(),vi(),t,e)},"\u0275\u0275i18nExp":function t(e){return Us(yi(),Oi(),e)&&(Hh|=1<<zh),zh++,t},"\u0275\u0275i18nStart":Fh,"\u0275\u0275i18nEnd":Vh,"\u0275\u0275i18nApply":function(t){if(zh){var e,i=vi(),n=i.data[t+20],r=null;Array.isArray(n)?e=n:(e=n.update,r=n.icus);var o=ki()-zh-1,a=yi();!function t(e,i,n,r,o,a){for(var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=!1,l=0;l<e.length;l++){var h=e[l],c=e[++l];if(s||h&r)for(var p="",d=l+1;d<=l+c;d++){var f=e[d];if("string"==typeof f)p+=f;else if("number"==typeof f)if(f<0)p+=un(a[n-f]);else{var g=f>>>2,y=void 0,v=void 0;switch(3&f){case 1:var m=e[++d],b=e[++d];mo(o,oi(o,g),a,m,p,a[11],b,!1);break;case 0:Ko(a,g,p);break;case 2:if(y=i[e[++d]],null!==(v=oi(o,g)).activeCaseIndex)for(var _=y.remove[v.activeCaseIndex],w=0;w<_.length;w++){var x=_[w];switch(7&x){case 3:Bh(o,a,x>>>3,!1);break;case 6:var C=oi(o,_[w+1]>>>3).activeCaseIndex;null!==C&&ye(i[x>>>3].remove[C],_)}}var P=Uh(y,p);v.activeCaseIndex=-1!==P?P:null,P>-1&&(Nh(-1,y.create[P],o,a),u=!0);break;case 3:y=i[e[++d]],null!==(v=oi(o,g)).activeCaseIndex&&t(y.update[v.activeCaseIndex],i,n,r,o,a,u)}}}l+=c}}(e,r,o,Hh,i,a),Hh=0,zh=0}},"\u0275\u0275i18nPostprocess":function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t;if(yh.test(t)){var n={},r=[0];i=i.replace(vh,(function(t,e,i){var o=e||i,a=n[o]||[];if(a.length||(o.split("|").forEach((function(t){var e=t.match(xh),i=e?parseInt(e[1],10):0,n=wh.test(t);a.push([i,n,t])})),n[o]=a),!a.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(o));for(var s=r[r.length-1],u=0,l=0;l<a.length;l++)if(a[l][0]===s){u=l;break}var h=_slicedToArray(a[u],3),c=h[0],p=h[1],d=h[2];return p?r.pop():s!==c&&r.push(c),a.splice(u,1),d}))}return Object.keys(e).length?i=(i=(i=i.replace(mh,(function(t,i,n,r,o,a){return e.hasOwnProperty(n)?"".concat(i).concat(e[n]).concat(a):t}))).replace(bh,(function(t,i){return e.hasOwnProperty(i)?e[i]:t}))).replace(_h,(function(t,i){if(e.hasOwnProperty(i)){var n=e[i];if(!n.length)throw new Error("i18n postprocess: unmatched ICU - ".concat(t," with key: ").concat(i));return n.shift()}return t})):i},"\u0275\u0275resolveWindow":function(t){return{name:"window",target:t.ownerDocument.defaultView}},"\u0275\u0275resolveDocument":function(t){return{name:"document",target:t.ownerDocument}},"\u0275\u0275resolveBody":function(t){return{name:"body",target:t.ownerDocument.body}},"\u0275\u0275setComponentScope":function(t,e,i){var n=t.\u0275cmp;n.directiveDefs=function(){return e.map(Ae)},n.pipeDefs=function(){return i.map(Fe)}},"\u0275\u0275setNgModuleScope":function(t,e){return et((function(){var i=Ue(t,!0);i.declarations=e.declarations||Te,i.imports=e.imports||Te,i.exports=e.exports||Te}))},"\u0275\u0275sanitizeHtml":function(t){var e=Sr();return e?e.sanitize(mr.HTML,t)||"":Bn(t,"HTML")?Nn(t):yr($e(),un(t))},"\u0275\u0275sanitizeStyle":xr,"\u0275\u0275defaultStyleSanitizer":function(t,e,i){if(void 0===e&&void 0===i)return xr(t);var n=!0;return 1&(i=i||3)&&(n=kr(t)),2&i?n?xr(e):Nn(e):n},"\u0275\u0275sanitizeResourceUrl":Pr,"\u0275\u0275sanitizeScript":function(t){var e=Sr();if(e)return e.sanitize(mr.SCRIPT,t)||"";if(Bn(t,"Script"))return Nn(t);throw new Error("unsafe value used in a script context")},"\u0275\u0275sanitizeUrl":Cr,"\u0275\u0275sanitizeUrlOrResourceUrl":function(t,e,i){return function(t,e){return"src"===e&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===e&&("base"===t||"link"===t)?Pr:Cr}(e,i)(t)}},Dc=[],Tc=[],Ec=!1;function Ic(t){return Array.isArray(t)?t.every(Ic):!!At(t)}function Ac(t,e){var i=ve(e.declarations||Dc),n=Mc(t);i.forEach((function(e){e.hasOwnProperty(Wt)?Fc(Ne(e),n):e.hasOwnProperty(Gt)||e.hasOwnProperty(Kt)||(e.ngSelectorScope=t)}))}function Fc(t,e){t.directiveDefs=function(){return Array.from(e.compilation.directives).map((function(t){return t.hasOwnProperty(Wt)?Ne(t):Be(t)})).filter((function(t){return!!t}))},t.pipeDefs=function(){return Array.from(e.compilation.pipes).map((function(t){return He(t)}))},t.schemas=e.schemas,t.tView=null}function Mc(t){if(!Lc(t))throw new Error("".concat(t.name," does not have a module def (\u0275mod property)"));var e=Ue(t);if(null!==e.transitiveCompileScopes)return e.transitiveCompileScopes;var i={schemas:e.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return cn(e.imports).forEach((function(t){var e=t;if(!Lc(e))throw new Error("Importing ".concat(e.name," which does not have a \u0275mod property"));var n=Mc(e);n.exported.directives.forEach((function(t){return i.compilation.directives.add(t)})),n.exported.pipes.forEach((function(t){return i.compilation.pipes.add(t)}))})),cn(e.declarations).forEach((function(t){He(t)?i.compilation.pipes.add(t):i.compilation.directives.add(t)})),cn(e.exports).forEach((function(t){var e=t;if(Lc(e)){var n=Mc(e);n.exported.directives.forEach((function(t){i.compilation.directives.add(t),i.exported.directives.add(t)})),n.exported.pipes.forEach((function(t){i.compilation.pipes.add(t),i.exported.pipes.add(t)}))}else He(e)?i.exported.pipes.add(e):i.exported.directives.add(e)})),e.transitiveCompileScopes=i,i}function jc(t){return function(t){return void 0!==t.ngModule}(t)?t.ngModule:t}function Lc(t){return!!Ue(t)}function Vc(t,e){var i=null;Nc(t,e||{}),Object.defineProperty(t,Gt,{get:function(){if(null===i){var n=Rc(t,e||{});i=zt().compileDirective(Oc,n.sourceMapUrl,n.metadata)}return i},configurable:!1})}function Rc(t,e){var i=t&&t.name,n="ng:///".concat(i,"/\u0275dir.js"),r=zt(),o=Hc(t,e);return o.typeSourceSpan=r.createParseSourceSpan("Directive",i,n),o.usesInheritance&&zc(t),{metadata:o,sourceMapUrl:n}}function Nc(t,e){var i=null;Object.defineProperty(t,Xt,{get:function(){if(null===i){var n=Rc(t,e),r=zt();i=r.compileFactory(Oc,"ng:///".concat(t.name,"/\u0275fac.js"),Object.assign(Object.assign({},n.metadata),{injectFn:"directiveInject",target:r.R3FactoryTarget.Directive}))}return i},configurable:!1})}function Bc(t){return Object.getPrototypeOf(t.prototype)===Object.prototype}function Hc(t,e){var i,n=Na(),r=n.ownPropMetadata(t);return{name:t.name,type:t,typeArgumentCount:0,selector:void 0!==e.selector?e.selector:null,deps:Ba(t),host:e.host||De,propMetadata:r,inputs:e.inputs||Te,outputs:e.outputs||Te,queries:Uc(t,r,Wc),lifecycle:{usesOnChanges:n.hasLifecycleHook(t,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!Bc(t),exportAs:(i=e.exportAs,void 0===i?null:Yc(i)),providers:e.providers||null,viewQueries:Uc(t,r,Gc)}}function zc(t){for(var e=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;i&&i!==e;)Be(i)||Ne(i)||!Xc(i)||Vc(i,null),i=Object.getPrototypeOf(i)}function Uc(t,e,i){var n=[],r=function(r){if(e.hasOwnProperty(r)){var o=e[r];o.forEach((function(e){if(i(e)){if(!e.selector)throw new Error("Can't construct a query for the property \"".concat(r,'" of ')+'"'.concat(ln(t),"\" since the query selector wasn't defined."));if(o.some(Kc))throw new Error("Cannot combine @Input decorators with query decorators");n.push(function(t,e){return{propertyName:t,predicate:(i=e.selector,"string"==typeof i?Yc(i):At(i)),descendants:e.descendants,first:e.first,read:e.read?e.read:null,static:!!e.static};var i}(r,e))}}))}};for(var o in e)r(o);return n}function Wc(t){var e=t.ngMetadataName;return"ContentChild"===e||"ContentChildren"===e}function Gc(t){var e=t.ngMetadataName;return"ViewChild"===e||"ViewChildren"===e}function Kc(t){return"Input"===t.ngMetadataName}function Yc(t){return t.split(",").map((function(t){return t.trim()}))}new Map,new Map;var qc=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function Xc(t){var e=Na();if(qc.some((function(i){return e.hasLifecycleHook(t,i)})))return!0;var i=e.propMetadata(t);for(var n in i)for(var r=i[n],o=0;o<r.length;o++){var a=r[o],s=a.ngMetadataName;if(Kc(a)||Wc(a)||Gc(a)||"Output"===s||"HostBinding"===s||"HostListener"===s)return!0}return!1}function Zc(t,e){return{type:t,typeArgumentCount:0,name:t.name,deps:Ba(t),pipeName:e.name,pure:void 0===e.pure||e.pure}}var Qc=ot("Directive",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t}),void 0,void 0,(function(t,e){return np(t,e)}));ot("Component",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({changeDetection:ke.Default},t)}),Qc,void 0,(function(t,e){return ip(t,e)})),ot("Pipe",(function(t){return Object.assign({pure:!0},t)}),void 0,void 0,(function(t,e){return rp(t,e)}));var $c=ut("Input",(function(t){return{bindingPropertyName:t}})),Jc=ut("Output",(function(t){return{bindingPropertyName:t}})),tp=ut("HostBinding",(function(t){return{hostPropertyName:t}})),ep=ut("HostListener",(function(t,e){return{eventName:t,args:e}})),ip=function(t,e){var i=null;!function(t,e){As(e)&&(Es.set(t,e),Is.add(t))}(t,e),Nc(t,e),Object.defineProperty(t,Wt,{get:function(){if(null===i){var n=zt();if(As(e)){var r=["Component '".concat(t.name,"' is not resolved:")];throw e.templateUrl&&r.push(" - templateUrl: ".concat(e.templateUrl)),e.styleUrls&&e.styleUrls.length&&r.push(" - styleUrls: ".concat(JSON.stringify(e.styleUrls))),r.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(r.join("\n"))}var o=e.preserveWhitespaces;void 0===o&&(o=!1);var a=e.encapsulation;void 0===a&&(a=Oe.Emulated);var s=e.templateUrl||"ng:///".concat(t.name,"/template.html"),u=Object.assign(Object.assign({},Hc(t,e)),{typeSourceSpan:n.createParseSourceSpan("Component",t.name,s),template:e.template||"",preserveWhitespaces:o,styles:e.styles||Te,animations:e.animations,directives:[],changeDetection:e.changeDetection,pipes:new Map,encapsulation:a,interpolation:e.interpolation,viewProviders:e.viewProviders||null});if(u.usesInheritance&&zc(t),i=n.compileComponent(Oc,s,u),function(){if(!Ec){Ec=!0;try{for(var t=Tc.length-1;t>=0;t--){var e=Tc[t],i=e.moduleType,n=e.ngModule;n.declarations&&n.declarations.every(Ic)&&(Tc.splice(t,1),Ac(i,n))}}finally{Ec=!1}}}(),void 0!==t.ngSelectorScope){var l=Mc(t.ngSelectorScope);Fc(i,l)}}return i},configurable:!1})},np=Vc,rp=function(t,e){var i=null,n=null;Object.defineProperty(t,Xt,{get:function(){if(null===n){var i=Zc(t,e),r=zt();n=r.compileFactory(Oc,"ng:///".concat(i.name,"/\u0275fac.js"),Object.assign(Object.assign({},i),{injectFn:"directiveInject",target:r.R3FactoryTarget.Pipe}))}return n},configurable:!1}),Object.defineProperty(t,Kt,{get:function(){if(null===i){var n=Zc(t,e);i=zt().compilePipe(Oc,"ng:///".concat(n.name,"/\u0275pipe.js"),n)}return i},configurable:!1})};ot("NgModule",(function(t){return t}),void 0,void 0,(function(t,e){return op(t,e)}));var op=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var i=ve(e.declarations||Dc),n=null;Object.defineProperty(t,Yt,{configurable:!0,get:function(){return null===n&&((n=zt().compileNgModule(Oc,"ng:///".concat(t.name,"/\u0275mod.js"),{type:t,bootstrap:ve(e.bootstrap||Dc).map(At),declarations:i.map(At),imports:ve(e.imports||Dc).map(At).map(jc),exports:ve(e.exports||Dc).map(At).map(jc),schemas:e.schemas?ve(e.schemas):null,id:e.id||null})).schemas||(n.schemas=[])),n}});var r=null;Object.defineProperty(t,Pt,{get:function(){if(null===r){var i={name:t.name,type:t,deps:Ba(t),providers:e.providers||Dc,imports:[(e.imports||Dc).map(At),(e.exports||Dc).map(At)]};r=zt().compileInjector(Oc,"ng:///".concat(t.name,"/\u0275inj.js"),i)}return r},configurable:!1})}(t,e),function(t,e){Tc.push({moduleType:t,ngModule:e})}(t,e)},ap=new Qt("Application Initializer"),sp=function(){function t(e){var i=this;_classCallCheck(this,t),this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(t,e){i.resolve=t,i.reject=e}))}return _createClass(t,[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],i=function(){t.done=!0,t.resolve()};if(this.appInits)for(var n=0;n<this.appInits.length;n++){var r=this.appInits[n]();pu(r)&&e.push(r)}Promise.all(e).then((function(){i()})).catch((function(e){t.reject(e)})),0===e.length&&i(),this.initialized=!0}}}]),t}();sp.\u0275fac=function(t){return new(t||sp)(ae(ap,8))},sp.\u0275prov=mt({token:sp,factory:sp.\u0275fac}),sp.ctorParameters=function(){return[{type:Array,decorators:[{type:ht,args:[ap]},{type:ct}]}]};var up=new Qt("AppId"),lp={provide:up,useFactory:function(){return"".concat(hp()).concat(hp()).concat(hp())},deps:[]};function hp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var cp=new Qt("Platform Initializer"),pp=new Qt("Platform ID"),dp=new Qt("appBootstrapListener");new Qt("Application Packages Root URL");var fp=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"log",value:function(t){console.log(t)}},{key:"warn",value:function(t){console.warn(t)}}]),t}();fp.\u0275fac=function(t){return new(t||fp)},fp.\u0275prov=mt({token:fp,factory:fp.\u0275fac});var gp=new Qt("LocaleId"),yp=new Qt("DefaultCurrencyCode"),vp=(new Qt("Translations"),new Qt("TranslationsFormat"),{Error:0,Warning:1,Ignore:2});vp[vp.Error]="Error",vp[vp.Warning]="Warning",vp[vp.Ignore]="Ignore";var mp=function t(e,i){_classCallCheck(this,t),this.ngModuleFactory=e,this.componentFactories=i},bp=function(t){return new $h(t)},_p=bp,wp=function(t){return Promise.resolve(bp(t))},xp=function(t){var e=bp(t),i=cn(Ue(t).declarations).reduce((function(t,e){var i=Ne(e);return i&&t.push(new ih(i)),t}),[]);return new mp(e,i)},Cp=xp,Pp=function(t){return Promise.resolve(xp(t))},kp=function(){function t(){_classCallCheck(this,t),this.compileModuleSync=_p,this.compileModuleAsync=wp,this.compileModuleAndAllComponentsSync=Cp,this.compileModuleAndAllComponentsAsync=Pp}return _createClass(t,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(t){}},{key:"getModuleId",value:function(t){}}]),t}();kp.\u0275fac=function(t){return new(t||kp)},kp.\u0275prov=mt({token:kp,factory:kp.\u0275fac});var Sp=new Qt("compilerOptions"),Op=Promise.resolve(0);function Dp(t){"undefined"==typeof Zone?Op.then((function(){t&&t.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}var Tp=function(){function t(e){var i=e.enableLongStackTrace,n=void 0!==i&&i,r=e.shouldCoalesceEventChangeDetection,o=void 0!==r&&r;if(_classCallCheck(this,t),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new sc(!1),this.onMicrotaskEmpty=new sc(!1),this.onStable=new sc(!1),this.onError=new sc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var a,s;this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=o,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var t=Ht.requestAnimationFrame,e=Ht.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,s=!!(a=this).shouldCoalesceEventChangeDetection&&a.nativeRequestAnimationFrame&&function(){!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ht,(function(){t.lastRequestAnimationFrameId=-1,Fp(t),Ap(t)})),Fp(t))}(a)},a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:s},onInvokeTask:function(t,e,i,n,r,o){try{return Mp(a),t.invokeTask(i,n,r,o)}finally{s&&"eventTask"===n.type&&s(),jp(a)}},onInvoke:function(t,e,i,n,r,o,s){try{return Mp(a),t.invoke(i,n,r,o,s)}finally{jp(a)}},onHasTask:function(t,e,i,n){t.hasTask(i,n),e===i&&("microTask"==n.change?(a._hasPendingMicrotasks=n.microTask,Fp(a),Ap(a)):"macroTask"==n.change&&(a.hasPendingMacrotasks=n.macroTask))},onHandleError:function(t,e,i,n){return t.handleError(i,n),a.runOutsideAngular((function(){return a.onError.emit(n)})),!1}})}return _createClass(t,[{key:"run",value:function(t,e,i){return this._inner.run(t,e,i)}},{key:"runTask",value:function(t,e,i,n){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+n,t,Ip,Ep,Ep);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}},{key:"runGuarded",value:function(t,e,i){return this._inner.runGuarded(t,e,i)}},{key:"runOutsideAngular",value:function(t){return this._outer.run(t)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),t}();function Ep(){}var Ip={};function Ap(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular((function(){return t.onStable.emit(null)}))}finally{t.isStable=!0}}}function Fp(t){t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Mp(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function jp(t){t._nesting--,Ap(t)}var Lp=function(){function t(){_classCallCheck(this,t),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new sc,this.onMicrotaskEmpty=new sc,this.onStable=new sc,this.onError=new sc}return _createClass(t,[{key:"run",value:function(t,e,i){return t.apply(e,i)}},{key:"runGuarded",value:function(t,e,i){return t.apply(e,i)}},{key:"runOutsideAngular",value:function(t){return t()}},{key:"runTask",value:function(t,e,i,n){return t.apply(e,i)}}]),t}(),Vp=function(){function t(e){var i=this;_classCallCheck(this,t),this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run((function(){i.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return _createClass(t,[{key:"_watchAngularEvents",value:function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.subscribe({next:function(){Tp.assertNotInAngularZone(),Dp((function(){t._isZoneStable=!0,t._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var t=this;if(this.isStable())Dp((function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1}));else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}})):[]}},{key:"addCallback",value:function(t,e,i){var n=this,r=-1;e&&e>0&&(r=setTimeout((function(){n._callbacks=n._callbacks.filter((function(t){return t.timeoutId!==r})),t(n._didWork,n.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:i})}},{key:"whenStable",value:function(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,i){return[]}}]),t}();Vp.\u0275fac=function(t){return new(t||Vp)(ae(Tp))},Vp.\u0275prov=mt({token:Vp,factory:Vp.\u0275fac}),Vp.ctorParameters=function(){return[{type:Tp}]};var Rp=function(){function t(){_classCallCheck(this,t),this._applications=new Map,Bp.addToWindow(this)}return _createClass(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Bp.findTestabilityInTree(this,t,e)}}]),t}();Rp.\u0275fac=function(t){return new(t||Rp)},Rp.\u0275prov=mt({token:Rp,factory:Rp.\u0275fac}),Rp.ctorParameters=function(){return[]};var Np,Bp=new(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,i){return null}}]),t}()),Hp=function(t,e,i){var n=t.get(Sp,[]).concat(e),r=new $h(i);if(0===Es.size)return Promise.resolve(r);var o,a,s=(o=n.map((function(t){return t.providers})),a=[],o.forEach((function(t){return t&&a.push.apply(a,_toConsumableArray(t))})),a);if(0===s.length)return Promise.resolve(r);var u=zt(),l=ss.create({providers:s}).get(u.ResourceLoader);return function(t){var e=[],i=new Map;function n(e){var n=i.get(e);if(!n){var r=t(e);i.set(e,n=r.then(Fs))}return n}return Es.forEach((function(t,i){var r=[];t.templateUrl&&r.push(n(t.templateUrl).then((function(e){t.template=e})));var o=t.styleUrls,a=t.styles||(t.styles=[]),s=t.styles.length;o&&o.forEach((function(e,i){a.push(""),r.push(n(e).then((function(n){a[s+i]=n,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)})))}));var u=Promise.all(r).then((function(){return function(t){Is.delete(t)}(i)}));e.push(u)})),Es=new Map,Promise.all(e).then((function(){}))}((function(t){return Promise.resolve(l.get(t))})).then((function(){return r}))},zp=new Qt("AllowMultipleToken"),Up=function t(e,i){_classCallCheck(this,t),this.name=e,this.token=i};function Wp(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(e),r=new Qt(n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Gp();if(!o||o.injector.get(zp,!1))if(t)t(i.concat(e).concat({provide:r,useValue:!0}));else{var a=i.concat(e).concat({provide:r,useValue:!0},{provide:Ya,useValue:"platform"});!function(t){if(Np&&!Np.destroyed&&!Np.injector.get(zp,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Np=t.get(Kp);var e=t.get(cp,null);e&&e.forEach((function(t){return t()}))}(ss.create({providers:a,name:n}))}return function(t){var e=Gp();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Gp(){return Np&&!Np.destroyed?Np:null}var Kp=function(){function t(e){_classCallCheck(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(t,[{key:"bootstrapModuleFactory",value:function(t,e){var i,n,r=this,o=(i=e?e.ngZone:void 0,n=e&&e.ngZoneEventCoalescing||!1,"noop"===i?new Lp:("zone.js"===i?void 0:i)||new Tp({enableLongStackTrace:Wn(),shouldCoalesceEventChangeDetection:n})),a=[{provide:Tp,useValue:o}];return o.run((function(){var e=ss.create({providers:a,parent:r.injector,name:t.moduleType.name}),i=t.create(e),n=i.injector.get(An,null);if(!n)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy((function(){return Xp(r._modules,i)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(t){n.handleError(t)}})})),function(t,e,n){try{var o=((a=i.injector.get(sp)).runInitializers(),a.donePromise.then((function(){return Xh(i.injector.get(gp,"en-US")||"en-US"),r._moduleDoBootstrap(i),i})));return pu(o)?o.catch((function(i){throw e.runOutsideAngular((function(){return t.handleError(i)})),i})):o}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var a}(n,o)}))}},{key:"bootstrapModule",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Yp({},i);return Hp(this.injector,n,t).then((function(t){return e.bootstrapModuleFactory(t,n)}))}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(qp);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(Dt(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();function Yp(t,e){return Array.isArray(e)?e.reduce(Yp,t):Object.assign(Object.assign({},t),e)}Kp.\u0275fac=function(t){return new(t||Kp)(ae(ss))},Kp.\u0275prov=mt({token:Kp,factory:Kp.\u0275fac}),Kp.ctorParameters=function(){return[{type:ss}]};var qp=function(){function t(e,i,n,r,o,a){var s=this;_classCallCheck(this,t),this._zone=e,this._console=i,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Wn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new x((function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){t.next(s._stable),t.complete()}))})),l=new x((function(t){var e;s._zone.runOutsideAngular((function(){e=s._zone.onStable.subscribe((function(){Tp.assertNotInAngularZone(),Dp((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))}))}))}));var i=s._zone.onUnstable.subscribe((function(){Tp.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),i.unsubscribe()}}));this.isStable=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=Number.POSITIVE_INFINITY,r=null,o=e[e.length-1];return T(o)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof o&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof x?e[0]:K(n)(Y(e,r))}(u,l.pipe((function(t){return q()((e=tt,function(t){var i;i="function"==typeof e?e:function(){return e};var n=Object.create(t,$);return n.source=t,n.subjectFactory=i,n})(t));var e})))}return _createClass(t,[{key:"bootstrap",value:function(t,e){var i,n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");i=t instanceof ml?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);var r=i.isBoundToModule?void 0:this._injector.get(de),o=e||i.selector,a=i.create(ss.NULL,[],o,r);a.onDestroy((function(){n._unloadComponent(a)}));var s=a.injector.get(Vp,null);return s&&a.injector.get(Rp).registerApplication(a.location.nativeElement,s),this._loadComponent(a),Wn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(e=i.n()).done;){e.value.detectChanges()}}catch(o){i.e(o)}finally{i.f()}if(this._enforceNoNewChanges){var n,r=_createForOfIteratorHelper(this._views);try{for(r.s();!(n=r.n()).done;){n.value.checkNoChanges()}}catch(o){r.e(o)}finally{r.f()}}}catch(a){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Xp(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(dp,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))}},{key:"_unloadComponent",value:function(t){this.detachView(t.hostView),Xp(this.components,t)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(t){return t.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),t}();function Xp(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}qp.\u0275fac=function(t){return new(t||qp)(ae(Tp),ae(fp),ae(ss),ae(An),ae(_l),ae(sp))},qp.\u0275prov=mt({token:qp,factory:qp.\u0275fac}),qp.ctorParameters=function(){return[{type:Tp},{type:fp},{type:ss},{type:An},{type:_l},{type:sp}]};var Zp=function t(){_classCallCheck(this,t)},Qp=function t(){_classCallCheck(this,t)},$p={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Jp=function(){function t(e,i){_classCallCheck(this,t),this._compiler=e,this._config=i||$p}return _createClass(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,n=_slicedToArray(t.split("#"),2),r=n[0],o=n[1];return void 0===o&&(o="default"),i("zn8P")(r).then((function(t){return t[o]})).then((function(t){return td(t,r,o)})).then((function(t){return e._compiler.compileModuleAsync(t)}))}},{key:"loadFactory",value:function(t){var e=_slicedToArray(t.split("#"),2),n=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),i("zn8P")(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then((function(t){return t[r+o]})).then((function(t){return td(t,n,r)}))}}]),t}();function td(t,e,i){if(!t)throw new Error("Cannot find '".concat(i,"' in '").concat(e,"'"));return t}Jp.\u0275fac=function(t){return new(t||Jp)(ae(kp),ae(Qp,8))},Jp.\u0275prov=mt({token:Jp,factory:Jp.\u0275fac}),Jp.ctorParameters=function(){return[{type:kp},{type:Qp,decorators:[{type:ct}]}]},new Map;var ed=Wp(null,"core",[{provide:pp,useValue:"unknown"},{provide:Kp,deps:[ss]},{provide:Rp,deps:[]},{provide:fp,deps:[]}]),id=[{provide:qp,useClass:qp,deps:[Tp,fp,ss,An,_l,sp]},{provide:eh,deps:[Tp],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:sp,useClass:sp,deps:[[new ct,ap]]},{provide:kp,useClass:kp,deps:[]},lp,{provide:Bl,useFactory:function(){return Wl},deps:[]},{provide:Hl,useFactory:function(){return Gl},deps:[]},{provide:gp,useFactory:function(t){return Xh(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new ht(gp),new ct,new dt]]},{provide:yp,useValue:"USD"}],nd=function t(e){_classCallCheck(this,t)};nd.\u0275mod=je({type:nd}),nd.\u0275inj=bt({factory:function(t){return new(t||nd)(ae(qp))},providers:id}),nd.ctorParameters=function(){return[{type:qp}]};var rd={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};rd[rd.CreateViewNodes]="CreateViewNodes",rd[rd.CheckNoChanges]="CheckNoChanges",rd[rd.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",rd[rd.CheckAndUpdate]="CheckAndUpdate",rd[rd.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",rd[rd.Destroy]="Destroy",new Map,new Map,new Map;var od={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};od[od.create]="create",od[od.detectChanges]="detectChanges",od[od.checkNoChanges]="checkNoChanges",od[od.destroy]="destroy",od[od.handleEvent]="handleEvent";var ad=null;function sd(){return ad}var ud=new Qt("DocumentToken"),ld=function t(){_classCallCheck(this,t)};ld.\u0275fac=function(t){return new(t||ld)},ld.\u0275prov=mt({factory:function(){return ae(cd)},token:ld,providedIn:"platform"});var hd=new Qt("Location Initialized"),cd=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._doc=t,n._init(),n}return _createClass(i,[{key:"_init",value:function(){this.location=sd().getLocation(),this._history=sd().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return sd().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){sd().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}},{key:"onHashChange",value:function(t){sd().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}},{key:"pushState",value:function(t,e,i){pd()?this._history.pushState(t,e,i):this.location.hash=i}},{key:"replaceState",value:function(t,e,i){pd()?this._history.replaceState(t,e,i):this.location.hash=i}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),i}(ld);function pd(){return!!window.history.pushState}function dd(t,e){if(0==t.length)return e;if(0==e.length)return t;var i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function fd(t){var e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-("/"===t[i-1]?1:0);return t.slice(0,n)+t.slice(i)}function gd(t){return t&&"?"!==t[0]?"?"+t:t}cd.\u0275fac=function(t){return new(t||cd)(ae(ud))},cd.ctorParameters=function(){return[{type:void 0,decorators:[{type:ht,args:[ud]}]}]},cd.\u0275prov=mt({factory:function(){return new cd(ae(ud))},token:cd,providedIn:"platform"});var yd=function t(){_classCallCheck(this,t)};yd.\u0275fac=function(t){return new(t||yd)},yd.\u0275prov=mt({factory:function(t){var e=ae(ud).location;return new md(ae(ld),e&&e.origin||"")},token:yd,providedIn:"root"});var vd=new Qt("appBaseHref"),md=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;if(_classCallCheck(this,i),(r=e.call(this))._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,_possibleConstructorReturn(r)}return _createClass(i,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return dd(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+gd(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?"".concat(e).concat(i):e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+gd(n));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+gd(n));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),i}(yd);md.\u0275fac=function(t){return new(t||md)(ae(ld),ae(vd,8))},md.\u0275prov=mt({token:md,factory:md.\u0275fac}),md.ctorParameters=function(){return[{type:ld},{type:String,decorators:[{type:ct},{type:ht,args:[vd]}]}]};var bd=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this))._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return _createClass(i,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=dd(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+gd(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+gd(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),i}(yd);bd.\u0275fac=function(t){return new(t||bd)(ae(ld),ae(vd,8))},bd.\u0275prov=mt({token:bd,factory:bd.\u0275fac}),bd.ctorParameters=function(){return[{type:ld},{type:String,decorators:[{type:ct},{type:ht,args:[vd]}]}]};var _d=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._subject=new sc,this._urlChangeListeners=[],this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=fd(wd(r)),this._platformStrategy.onPopState((function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})}))}return _createClass(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+gd(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,wd(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+gd(e)),i)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+gd(e)),i)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(i){return i(t,e)}))}},{key:"subscribe",value:function(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}]),t}();function wd(t){return t.replace(/\/index.html$/,"")}_d.\u0275fac=function(t){return new(t||_d)(ae(yd),ae(ld))},_d.normalizeQueryParams=gd,_d.joinWithSlash=dd,_d.stripTrailingSlash=fd,_d.ctorParameters=function(){return[{type:yd},{type:ld}]},_d.\u0275prov=mt({factory:function(){return new _d(ae(yd),ae(ld))},token:_d,providedIn:"root"});var xd={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Cd={Decimal:0,Percent:1,Currency:2,Scientific:3};Cd[Cd.Decimal]="Decimal",Cd[Cd.Percent]="Percent",Cd[Cd.Currency]="Currency",Cd[Cd.Scientific]="Scientific";var Pd={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};Pd[Pd.Zero]="Zero",Pd[Pd.One]="One",Pd[Pd.Two]="Two",Pd[Pd.Few]="Few",Pd[Pd.Many]="Many",Pd[Pd.Other]="Other";var kd={Format:0,Standalone:1};kd[kd.Format]="Format",kd[kd.Standalone]="Standalone";var Sd={Narrow:0,Abbreviated:1,Wide:2,Short:3};Sd[Sd.Narrow]="Narrow",Sd[Sd.Abbreviated]="Abbreviated",Sd[Sd.Wide]="Wide",Sd[Sd.Short]="Short";var Od={Short:0,Medium:1,Long:2,Full:3};Od[Od.Short]="Short",Od[Od.Medium]="Medium",Od[Od.Long]="Long",Od[Od.Full]="Full";var Dd={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};Dd[Dd.Decimal]="Decimal",Dd[Dd.Group]="Group",Dd[Dd.List]="List",Dd[Dd.PercentSign]="PercentSign",Dd[Dd.PlusSign]="PlusSign",Dd[Dd.MinusSign]="MinusSign",Dd[Dd.Exponential]="Exponential",Dd[Dd.SuperscriptingExponent]="SuperscriptingExponent",Dd[Dd.PerMille]="PerMille",Dd[Dd.Infinity]="Infinity",Dd[Dd.NaN]="NaN",Dd[Dd.TimeSeparator]="TimeSeparator",Dd[Dd.CurrencyDecimal]="CurrencyDecimal",Dd[Dd.CurrencyGroup]="CurrencyGroup";var Td={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};function Ed(t,e){return Vd(ah(t)[lh.DateFormat],e)}function Id(t,e){return Vd(ah(t)[lh.TimeFormat],e)}function Ad(t,e){return Vd(ah(t)[lh.DateTimeFormat],e)}function Fd(t,e){var i=ah(t),n=i[lh.NumberSymbols][e];if(void 0===n){if(e===Dd.CurrencyDecimal)return i[lh.NumberSymbols][Dd.Decimal];if(e===Dd.CurrencyGroup)return i[lh.NumberSymbols][Dd.Group]}return n}function Md(t,e){return ah(t)[lh.NumberFormats][e]}Td[Td.Sunday]="Sunday",Td[Td.Monday]="Monday",Td[Td.Tuesday]="Tuesday",Td[Td.Wednesday]="Wednesday",Td[Td.Thursday]="Thursday",Td[Td.Friday]="Friday",Td[Td.Saturday]="Saturday";var jd=sh;function Ld(t){if(!t[lh.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[lh.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function Vd(t,e){for(var i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function Rd(t){var e=_slicedToArray(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function Nd(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",n=function(t){return ah(t)[lh.Currencies]}(i)[t]||xd[t]||[],r=n[1];return"narrow"===e&&"string"==typeof r?r:n[0]||t}var Bd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Hd={},zd=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Ud={Short:0,ShortGMT:1,Long:2,Extended:3};Ud[Ud.Short]="Short",Ud[Ud.ShortGMT]="ShortGMT",Ud[Ud.Long]="Long",Ud[Ud.Extended]="Extended";var Wd={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};Wd[Wd.FullYear]="FullYear",Wd[Wd.Month]="Month",Wd[Wd.Date]="Date",Wd[Wd.Hours]="Hours",Wd[Wd.Minutes]="Minutes",Wd[Wd.Seconds]="Seconds",Wd[Wd.FractionalSeconds]="FractionalSeconds",Wd[Wd.Day]="Day";var Gd={DayPeriods:0,Days:1,Months:2,Eras:3};function Kd(t,e,i,n){var r=function(t){if(ef(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();var e,i=parseFloat(t);if(!isNaN(t-i))return new Date(i);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var n=_slicedToArray(t.split("-").map((function(t){return+t})),3),r=n[0],o=n[1],a=n[2];return new Date(r,o-1,a)}if(e=t.match(Bd))return function(t){var e=new Date(0),i=0,n=0,r=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-i,s=Number(t[5]||0)-n,u=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,u,l),e}(e)}var s=new Date(t);if(!ef(s))throw new Error('Unable to convert "'.concat(t,'" into a date'));return s}(t);e=function t(e,i){var n=function(t){return ah(t)[lh.LocaleId]}(e);if(Hd[n]=Hd[n]||{},Hd[n][i])return Hd[n][i];var r="";switch(i){case"shortDate":r=Ed(e,Od.Short);break;case"mediumDate":r=Ed(e,Od.Medium);break;case"longDate":r=Ed(e,Od.Long);break;case"fullDate":r=Ed(e,Od.Full);break;case"shortTime":r=Id(e,Od.Short);break;case"mediumTime":r=Id(e,Od.Medium);break;case"longTime":r=Id(e,Od.Long);break;case"fullTime":r=Id(e,Od.Full);break;case"short":var o=t(e,"shortTime"),a=t(e,"shortDate");r=Yd(Ad(e,Od.Short),[o,a]);break;case"medium":var s=t(e,"mediumTime"),u=t(e,"mediumDate");r=Yd(Ad(e,Od.Medium),[s,u]);break;case"long":var l=t(e,"longTime"),h=t(e,"longDate");r=Yd(Ad(e,Od.Long),[l,h]);break;case"full":var c=t(e,"fullTime"),p=t(e,"fullDate");r=Yd(Ad(e,Od.Full),[c,p])}return r&&(Hd[n][i]=r),r}(i,e)||e;for(var o,a=[];e;){if(!(o=zd.exec(e))){a.push(e);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;e=s}var u=r.getTimezoneOffset();n&&(u=tf(n,u),r=function(t,e,i){var n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(tf(e,n)-n))}(r,n));var l="";return a.forEach((function(t){var e=function(t){if(Jd[t])return Jd[t];var e;switch(t){case"G":case"GG":case"GGG":e=Zd(Gd.Eras,Sd.Abbreviated);break;case"GGGG":e=Zd(Gd.Eras,Sd.Wide);break;case"GGGGG":e=Zd(Gd.Eras,Sd.Narrow);break;case"y":e=Xd(Wd.FullYear,1,0,!1,!0);break;case"yy":e=Xd(Wd.FullYear,2,0,!0,!0);break;case"yyy":e=Xd(Wd.FullYear,3,0,!1,!0);break;case"yyyy":e=Xd(Wd.FullYear,4,0,!1,!0);break;case"M":case"L":e=Xd(Wd.Month,1,1);break;case"MM":case"LL":e=Xd(Wd.Month,2,1);break;case"MMM":e=Zd(Gd.Months,Sd.Abbreviated);break;case"MMMM":e=Zd(Gd.Months,Sd.Wide);break;case"MMMMM":e=Zd(Gd.Months,Sd.Narrow);break;case"LLL":e=Zd(Gd.Months,Sd.Abbreviated,kd.Standalone);break;case"LLLL":e=Zd(Gd.Months,Sd.Wide,kd.Standalone);break;case"LLLLL":e=Zd(Gd.Months,Sd.Narrow,kd.Standalone);break;case"w":e=$d(1);break;case"ww":e=$d(2);break;case"W":e=$d(1,!0);break;case"d":e=Xd(Wd.Date,1);break;case"dd":e=Xd(Wd.Date,2);break;case"E":case"EE":case"EEE":e=Zd(Gd.Days,Sd.Abbreviated);break;case"EEEE":e=Zd(Gd.Days,Sd.Wide);break;case"EEEEE":e=Zd(Gd.Days,Sd.Narrow);break;case"EEEEEE":e=Zd(Gd.Days,Sd.Short);break;case"a":case"aa":case"aaa":e=Zd(Gd.DayPeriods,Sd.Abbreviated);break;case"aaaa":e=Zd(Gd.DayPeriods,Sd.Wide);break;case"aaaaa":e=Zd(Gd.DayPeriods,Sd.Narrow);break;case"b":case"bb":case"bbb":e=Zd(Gd.DayPeriods,Sd.Abbreviated,kd.Standalone,!0);break;case"bbbb":e=Zd(Gd.DayPeriods,Sd.Wide,kd.Standalone,!0);break;case"bbbbb":e=Zd(Gd.DayPeriods,Sd.Narrow,kd.Standalone,!0);break;case"B":case"BB":case"BBB":e=Zd(Gd.DayPeriods,Sd.Abbreviated,kd.Format,!0);break;case"BBBB":e=Zd(Gd.DayPeriods,Sd.Wide,kd.Format,!0);break;case"BBBBB":e=Zd(Gd.DayPeriods,Sd.Narrow,kd.Format,!0);break;case"h":e=Xd(Wd.Hours,1,-12);break;case"hh":e=Xd(Wd.Hours,2,-12);break;case"H":e=Xd(Wd.Hours,1);break;case"HH":e=Xd(Wd.Hours,2);break;case"m":e=Xd(Wd.Minutes,1);break;case"mm":e=Xd(Wd.Minutes,2);break;case"s":e=Xd(Wd.Seconds,1);break;case"ss":e=Xd(Wd.Seconds,2);break;case"S":e=Xd(Wd.FractionalSeconds,1);break;case"SS":e=Xd(Wd.FractionalSeconds,2);break;case"SSS":e=Xd(Wd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Qd(Ud.Short);break;case"ZZZZZ":e=Qd(Ud.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Qd(Ud.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Qd(Ud.Long);break;default:return null}return Jd[t]=e,e}(t);l+=e?e(r,i,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),l}function Yd(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,i){return null!=e&&i in e?e[i]:t}))),t}function qd(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=i));for(var a=String(t);a.length<e;)a="0"+a;return n&&(a=a.substr(a.length-e)),o+a}function Xd(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,u=function(t,e){switch(t){case Wd.FullYear:return e.getFullYear();case Wd.Month:return e.getMonth();case Wd.Date:return e.getDate();case Wd.Hours:return e.getHours();case Wd.Minutes:return e.getMinutes();case Wd.Seconds:return e.getSeconds();case Wd.FractionalSeconds:return e.getMilliseconds();case Wd.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}(t,o);if((i>0||u>-i)&&(u+=i),t===Wd.Hours)0===u&&-12===i&&(u=12);else if(t===Wd.FractionalSeconds)return s=e,qd(u,3).substr(0,s);var l=Fd(a,Dd.MinusSign);return qd(u,e,l,n,r)}}function Zd(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kd.Format,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,o){return function(t,e,i,n,r,o){switch(i){case Gd.Months:return function(t,e,i){var n=ah(t),r=Vd([n[lh.MonthsFormat],n[lh.MonthsStandalone]],e);return Vd(r,i)}(e,r,n)[t.getMonth()];case Gd.Days:return function(t,e,i){var n=ah(t),r=Vd([n[lh.DaysFormat],n[lh.DaysStandalone]],e);return Vd(r,i)}(e,r,n)[t.getDay()];case Gd.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(o){var u,l=function(t){var e=ah(t);return Ld(e),(e[lh.ExtraData][2]||[]).map((function(t){return"string"==typeof t?Rd(t):[Rd(t[0]),Rd(t[1])]}))}(e),h=function(t,e,i){var n=ah(t);Ld(n);var r=Vd([n[lh.ExtraData][0],n[lh.ExtraData][1]],e)||[];return Vd(r,i)||[]}(e,r,n);if(l.forEach((function(t,e){if(Array.isArray(t)){var i=t[0],n=i.hours,r=i.minutes,o=t[1],l=o.hours,c=o.minutes;a>=n&&s>=r&&(a<l||a===l&&s<c)&&(u=h[e])}else{var p=t.hours,d=t.minutes;p===a&&d===s&&(u=h[e])}})),u)return u}return function(t,e,i){var n=ah(t),r=Vd([n[lh.DayPeriodsFormat],n[lh.DayPeriodsStandalone]],e);return Vd(r,i)}(e,r,n)[a<12?0:1];case Gd.Eras:return function(t,e){return Vd(ah(t)[lh.Eras],e)}(e,n)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(i))}}(r,o,t,e,i,n)}}function Qd(t){return function(e,i,n){var r=-1*n,o=Fd(i,Dd.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Ud.Short:return(r>=0?"+":"")+qd(a,2,o)+qd(Math.abs(r%60),2,o);case Ud.ShortGMT:return"GMT"+(r>=0?"+":"")+qd(a,1,o);case Ud.Long:return"GMT"+(r>=0?"+":"")+qd(a,2,o)+":"+qd(Math.abs(r%60),2,o);case Ud.Extended:return 0===n?"Z":(r>=0?"+":"")+qd(a,2,o)+":"+qd(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function $d(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,n){var r,o,a,s;if(e){var u=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,l=i.getDate();r=1+Math.floor((l+u)/7)}else{var h=(o=i.getFullYear(),a=new Date(o,0,1).getDay(),new Date(o,0,1+(a<=4?4:11)-a)),c=(s=i,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-h.getTime();r=1+Math.round(c/6048e5)}return qd(r,t,Fd(n,Dd.MinusSign))}}Gd[Gd.DayPeriods]="DayPeriods",Gd[Gd.Days]="Days",Gd[Gd.Months]="Months",Gd[Gd.Eras]="Eras";var Jd={};function tf(t,e){t=t.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function ef(t){return t instanceof Date&&!isNaN(t.valueOf())}var nf=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function rf(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",u=!1;if(isFinite(t)){var l=function(t){var e,i,n,r,o,a=Math.abs(t)+"",s=0;for((i=a.indexOf("."))>-1&&(a=a.replace(".","")),(n=a.search(/e/i))>0?(i<0&&(i=n),i+=+a.slice(n+1),a=a.substring(0,n)):i<0&&(i=a.length),n=0;"0"===a.charAt(n);n++);if(n===(o=a.length))e=[0],i=1;else{for(o--;"0"===a.charAt(o);)o--;for(i-=n,e=[],r=0;n<=o;n++,r++)e[r]=Number(a.charAt(n))}return i>22&&(e=e.splice(0,21),s=i-1,i=1),{digits:e,exponent:s,integerLen:i}}(t);a&&(l=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));var h=e.minInt,c=e.minFrac,p=e.maxFrac;if(o){var d=o.match(nf);if(null===d)throw new Error("".concat(o," is not a valid digit info"));var f=d[1],g=d[3],y=d[5];null!=f&&(h=sf(f)),null!=g&&(c=sf(g)),null!=y?p=sf(y):null!=g&&c>p&&(p=c)}!function(t,e,i){if(e>i)throw new Error("The minimum number of digits after fraction (".concat(e,") is higher than the maximum (").concat(i,")."));var n=t.digits,r=n.length-t.integerLen,o=Math.min(Math.max(e,r),i),a=o+t.integerLen,s=n[a];if(a>0){n.splice(Math.max(t.integerLen,a));for(var u=a;u<n.length;u++)n[u]=0}else{r=Math.max(0,r),t.integerLen=1,n.length=Math.max(1,a=o+1),n[0]=0;for(var l=1;l<a;l++)n[l]=0}if(s>=5)if(a-1<0){for(var h=0;h>a;h--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[a-1]++;for(;r<Math.max(0,o);r++)n.push(0);var c=0!==o,p=e+t.integerLen,d=n.reduceRight((function(t,e,i,n){return e+=t,n[i]=e<10?e:e-10,c&&(0===n[i]&&i>=p?n.pop():c=!1),e>=10?1:0}),0);d&&(n.unshift(d),t.integerLen++)}(l,c,p);var v=l.digits,m=l.integerLen,b=l.exponent,_=[];for(u=v.every((function(t){return!t}));m<h;m++)v.unshift(0);for(;m<0;m++)v.unshift(0);m>0?_=v.splice(m,v.length):(_=v,v=[0]);var w=[];for(v.length>=e.lgSize&&w.unshift(v.splice(-e.lgSize,v.length).join(""));v.length>e.gSize;)w.unshift(v.splice(-e.gSize,v.length).join(""));v.length&&w.unshift(v.join("")),s=w.join(Fd(i,n)),_.length&&(s+=Fd(i,r)+_.join("")),b&&(s+=Fd(i,Dd.Exponential)+"+"+b)}else s=Fd(i,Dd.Infinity);return s=t<0&&!u?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}function of(t,e,i,n,r){var o=af(Md(e,Cd.Currency),Fd(e,Dd.MinusSign));return o.minFrac=function(t){var e,i=xd[t];return i&&(e=i[2]),"number"==typeof e?e:2}(n),o.maxFrac=o.minFrac,rf(t,o,e,Dd.CurrencyGroup,Dd.CurrencyDecimal,r).replace("\xa4",i).replace("\xa4","").trim()}function af(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),r=n[0],o=n[1],a=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=a[0],u=a[1]||"";i.posPre=s.substr(0,s.indexOf("#"));for(var l=0;l<u.length;l++){var h=u.charAt(l);"0"===h?i.minFrac=i.maxFrac=l+1:"#"===h?i.maxFrac=l+1:i.posSuf+=h}var c=s.split(",");if(i.gSize=c[1]?c[1].length:0,i.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){var p=r.length-i.posPre.length-i.posSuf.length,d=o.indexOf("#");i.negPre=o.substr(0,d).replace(/'/g,""),i.negSuf=o.substr(d+p).replace(/'/g,"")}else i.negPre=e+i.posPre,i.negSuf=i.posSuf;return i}function sf(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var uf=function t(){_classCallCheck(this,t)};function lf(t,e,i,n){var r="=".concat(t);if(e.indexOf(r)>-1)return r;if(r=i.getPluralCategory(t,n),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(t,'"'))}var hf=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).locale=t,n}return _createClass(i,[{key:"getPluralCategory",value:function(t,e){switch(jd(e||this.locale)(t)){case Pd.Zero:return"zero";case Pd.One:return"one";case Pd.Two:return"two";case Pd.Few:return"few";case Pd.Many:return"many";default:return"other"}}}]),i}(uf);function cf(t,e){e=encodeURIComponent(e);var i,n=_createForOfIteratorHelper(t.split(";"));try{for(n.s();!(i=n.n()).done;){var r=i.value,o=r.indexOf("="),a=_slicedToArray(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===e)return decodeURIComponent(u)}}catch(l){n.e(l)}finally{n.f()}return null}hf.\u0275fac=function(t){return new(t||hf)(ae(gp))},hf.\u0275prov=mt({token:hf,factory:hf.\u0275fac}),hf.ctorParameters=function(){return[{type:String,decorators:[{type:ht,args:[gp]}]}]};var pf=function(){function t(e,i,n,r){_classCallCheck(this,t),this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(t,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Dt(t.item)));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(i){return e._toggleClass(i,!!t[i])})))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))}},{key:"_toggleClass",value:function(t,e){var i=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?i._renderer.addClass(i._ngEl.nativeElement,t):i._renderer.removeClass(i._ngEl.nativeElement,t)}))}},{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Ns(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),t}();pf.\u0275fac=function(t){return new(t||pf)(nu(Bl),nu(Hl),nu(wl),nu(kl))},pf.\u0275dir=Ve({type:pf,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),pf.ctorParameters=function(){return[{type:Bl},{type:Hl},{type:wl},{type:kl}]},pf.propDecorators={klass:[{type:$c,args:["class"]}],ngClass:[{type:$c,args:["ngClass"]}]};var df=function(){function t(e){_classCallCheck(this,t),this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}return _createClass(t,[{key:"ngOnChanges",value:function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var i=e.get(de);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(i.injector)}else this._moduleRef=null;var n=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(_l)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),t}();df.\u0275fac=function(t){return new(t||df)(nu(ql))},df.\u0275dir=Ve({type:df,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[sl]}),df.ctorParameters=function(){return[{type:ql}]},df.propDecorators={ngComponentOutlet:[{type:$c}],ngComponentOutletInjector:[{type:$c}],ngComponentOutletContent:[{type:$c}],ngComponentOutletNgModuleFactory:[{type:$c}]};var ff=function(){function t(e,i,n,r){_classCallCheck(this,t),this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}return _createClass(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),gf=function(){function t(e,i,n){_classCallCheck(this,t),this._viewContainer=e,this._template=i,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(t,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(t){var e=this,i=[];t.forEachOperation((function(t,n,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new ff(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new yf(t,o);i.push(a)}else if(null==r)e._viewContainer.remove(null===n?void 0:n);else if(null!==n){var s=e._viewContainer.get(n);e._viewContainer.move(s,r);var u=new yf(t,s);i.push(u)}}));for(var n=0;n<i.length;n++)this._perViewChange(i[n].view,i[n].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.context.ngForOf=this._ngForOf}t.forEachIdentityChange((function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item}))}},{key:"_perViewChange",value:function(t,e){t.context.$implicit=e.item}},{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",set:function(t){Wn()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(t),". ")+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t},get:function(){return this._trackByFn}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}}],[{key:"ngTemplateContextGuard",value:function(t,e){return!0}}]),t}();gf.\u0275fac=function(t){return new(t||gf)(nu(ql),nu(Kl),nu(Bl))},gf.\u0275dir=Ve({type:gf,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),gf.ctorParameters=function(){return[{type:ql},{type:Kl},{type:Bl}]},gf.propDecorators={ngForOf:[{type:$c}],ngForTrackBy:[{type:$c}],ngForTemplate:[{type:$c}]};var yf=function t(e,i){_classCallCheck(this,t),this.record=e,this.view=i},vf=function(){function t(e,i){_classCallCheck(this,t),this._viewContainer=e,this._context=new mf,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}return _createClass(t,[{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}},{key:"ngIf",set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}},{key:"ngIfThen",set:function(t){bf("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(t){bf("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}}],[{key:"ngTemplateContextGuard",value:function(t,e){return!0}}]),t}();vf.\u0275fac=function(t){return new(t||vf)(nu(ql),nu(Kl))},vf.\u0275dir=Ve({type:vf,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),vf.ctorParameters=function(){return[{type:ql},{type:Kl}]},vf.propDecorators={ngIf:[{type:$c}],ngIfThen:[{type:$c}],ngIfElse:[{type:$c}]};var mf=function t(){_classCallCheck(this,t),this.$implicit=null,this.ngIf=null};function bf(t,e){if(e&&!e.createEmbeddedView)throw new Error("".concat(t," must be a TemplateRef, but received '").concat(Dt(e),"'."))}var _f=function(){function t(e,i){_classCallCheck(this,t),this._viewContainerRef=e,this._templateRef=i,this._created=!1}return _createClass(t,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}]),t}(),wf=function(){function t(){_classCallCheck(this,t),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return _createClass(t,[{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}},{key:"_matchCase",value:function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}},{key:"_updateDefaultCases",value:function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}},{key:"ngSwitch",set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}}]),t}();wf.\u0275fac=function(t){return new(t||wf)},wf.\u0275dir=Ve({type:wf,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),wf.propDecorators={ngSwitch:[{type:$c}]};var xf=function(){function t(e,i,n){_classCallCheck(this,t),this.ngSwitch=n,n._addCase(),this._view=new _f(e,i)}return _createClass(t,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),t}();xf.\u0275fac=function(t){return new(t||xf)(nu(ql),nu(Kl),nu(wf,1))},xf.\u0275dir=Ve({type:xf,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),xf.ctorParameters=function(){return[{type:ql},{type:Kl},{type:wf,decorators:[{type:ft}]}]},xf.propDecorators={ngSwitchCase:[{type:$c}]};var Cf=function t(e,i,n){_classCallCheck(this,t),n._addDefault(new _f(e,i))};Cf.\u0275fac=function(t){return new(t||Cf)(nu(ql),nu(Kl),nu(wf,1))},Cf.\u0275dir=Ve({type:Cf,selectors:[["","ngSwitchDefault",""]]}),Cf.ctorParameters=function(){return[{type:ql},{type:Kl},{type:wf,decorators:[{type:ft}]}]};var Pf=function(){function t(e){_classCallCheck(this,t),this._localization=e,this._caseViews={}}return _createClass(t,[{key:"addCase",value:function(t,e){this._caseViews[t]=e}},{key:"_updateView",value:function(){this._clearViews();var t=Object.keys(this._caseViews),e=lf(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])}},{key:"_clearViews",value:function(){this._activeView&&this._activeView.destroy()}},{key:"_activateView",value:function(t){t&&(this._activeView=t,this._activeView.create())}},{key:"ngPlural",set:function(t){this._switchValue=t,this._updateView()}}]),t}();Pf.\u0275fac=function(t){return new(t||Pf)(nu(uf))},Pf.\u0275dir=Ve({type:Pf,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),Pf.ctorParameters=function(){return[{type:uf}]},Pf.propDecorators={ngPlural:[{type:$c}]};var kf=function t(e,i,n,r){_classCallCheck(this,t),this.value=e;var o=!isNaN(Number(e));r.addCase(o?"=".concat(e):e,new _f(n,i))};kf.\u0275fac=function(t){return new(t||kf)(ru("ngPluralCase"),nu(Kl),nu(ql),nu(Pf,1))},kf.\u0275dir=Ve({type:kf,selectors:[["","ngPluralCase",""]]}),kf.ctorParameters=function(){return[{type:String,decorators:[{type:gt,args:["ngPluralCase"]}]},{type:Kl},{type:ql},{type:Pf,decorators:[{type:ft}]}]};var Sf=function(){function t(e,i,n){_classCallCheck(this,t),this._ngEl=e,this._differs=i,this._renderer=n,this._ngStyle=null,this._differ=null}return _createClass(t,[{key:"ngDoCheck",value:function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}},{key:"_setStyle",value:function(t,e){var i=_slicedToArray(t.split("."),2),n=i[0],r=i[1];null!=(e=null!=e&&r?"".concat(e).concat(r):e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}},{key:"_applyChanges",value:function(t){var e=this;t.forEachRemovedItem((function(t){return e._setStyle(t.key,null)})),t.forEachAddedItem((function(t){return e._setStyle(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._setStyle(t.key,t.currentValue)}))}},{key:"ngStyle",set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}}]),t}();Sf.\u0275fac=function(t){return new(t||Sf)(nu(wl),nu(Hl),nu(kl))},Sf.\u0275dir=Ve({type:Sf,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Sf.ctorParameters=function(){return[{type:wl},{type:Hl},{type:kl}]},Sf.propDecorators={ngStyle:[{type:$c,args:["ngStyle"]}]};var Of=function(){function t(e){_classCallCheck(this,t),this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return _createClass(t,[{key:"ngOnChanges",value:function(t){if(this._shouldRecreateView(t)){var e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}},{key:"_shouldRecreateView",value:function(t){var e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}},{key:"_hasContextShapeChanged",value:function(t){var e=Object.keys(t.previousValue||{}),i=Object.keys(t.currentValue||{});if(e.length===i.length){var n,r=_createForOfIteratorHelper(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(-1===e.indexOf(o))return!0}}catch(a){r.e(a)}finally{r.f()}return!1}return!0}},{key:"_updateExistingContext",value:function(t){for(var e=0,i=Object.keys(t);e<i.length;e++){var n=i[e];this._viewRef.context[n]=this.ngTemplateOutletContext[n]}}}]),t}();function Df(t,e){return Error("InvalidPipeArgument: '".concat(e,"' for pipe '").concat(Dt(t),"'"))}Of.\u0275fac=function(t){return new(t||Of)(nu(ql))},Of.\u0275dir=Ve({type:Of,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[sl]}),Of.ctorParameters=function(){return[{type:ql}]},Of.propDecorators={ngTemplateOutletContext:[{type:$c}],ngTemplateOutlet:[{type:$c}]};var Tf=new(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"createSubscription",value:function(t,e){return t.then(e,(function(t){throw t}))}},{key:"dispose",value:function(t){}},{key:"onDestroy",value:function(t){}}]),t}()),Ef=new(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"createSubscription",value:function(t,e){return t.subscribe({next:e,error:function(t){throw t}})}},{key:"dispose",value:function(t){t.unsubscribe()}},{key:"onDestroy",value:function(t){t.unsubscribe()}}]),t}()),If=function(){function t(e){_classCallCheck(this,t),this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):Vs(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,Rs.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)}},{key:"_subscribe",value:function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,(function(i){return e._updateLatestValue(t,i)}))}},{key:"_selectStrategy",value:function(e){if(pu(e))return Tf;if(du(e))return Ef;throw Df(t,e)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}]),t}();If.\u0275fac=function(t){return new(t||If)(Sc())},If.\u0275pipe=Re({name:"async",type:If,pure:!1}),If.ctorParameters=function(){return[{type:Oa}]};var Af=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw Df(t,e);return e.toLowerCase()}}]),t}();Af.\u0275fac=function(t){return new(t||Af)},Af.\u0275pipe=Re({name:"lowercase",type:Af,pure:!0});var Ff=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,Mf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw Df(t,e);return e.replace(Ff,(function(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()}))}}]),t}();Mf.\u0275fac=function(t){return new(t||Mf)},Mf.\u0275pipe=Re({name:"titlecase",type:Mf,pure:!0});var jf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw Df(t,e);return e.toUpperCase()}}]),t}();jf.\u0275fac=function(t){return new(t||jf)},jf.\u0275pipe=Re({name:"uppercase",type:jf,pure:!0});var Lf=function(){function t(e){_classCallCheck(this,t),this.locale=e}return _createClass(t,[{key:"transform",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return Kd(e,i,r||this.locale,n)}catch(o){throw Df(t,o.message)}}}]),t}();Lf.\u0275fac=function(t){return new(t||Lf)(nu(gp))},Lf.\u0275pipe=Re({name:"date",type:Lf,pure:!0}),Lf.ctorParameters=function(){return[{type:String,decorators:[{type:ht,args:[gp]}]}]};var Vf=/#/g,Rf=function(){function t(e){_classCallCheck(this,t),this._localization=e}return _createClass(t,[{key:"transform",value:function(e,i,n){if(null==e)return"";if("object"!=typeof i||null===i)throw Df(t,i);return i[lf(e,Object.keys(i),this._localization,n)].replace(Vf,e.toString())}}]),t}();Rf.\u0275fac=function(t){return new(t||Rf)(nu(uf))},Rf.\u0275pipe=Re({name:"i18nPlural",type:Rf,pure:!0}),Rf.ctorParameters=function(){return[{type:uf}]};var Nf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(e,i){if(null==e)return"";if("object"!=typeof i||"string"!=typeof e)throw Df(t,i);return i.hasOwnProperty(e)?i[e]:i.hasOwnProperty("other")?i.other:""}}]),t}();Nf.\u0275fac=function(t){return new(t||Nf)},Nf.\u0275pipe=Re({name:"i18nSelect",type:Nf,pure:!0});var Bf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return JSON.stringify(t,null,2)}}]),t}();Bf.\u0275fac=function(t){return new(t||Bf)},Bf.\u0275pipe=Re({name:"json",type:Bf,pure:!1});var Hf=function(){function t(e){_classCallCheck(this,t),this.differs=e,this.keyValues=[]}return _createClass(t,[{key:"transform",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zf;if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());var n=this.differ.diff(t);return n&&(this.keyValues=[],n.forEachItem((function(t){e.keyValues.push({key:t.key,value:t.currentValue})})),this.keyValues.sort(i)),this.keyValues}}]),t}();function zf(t,e){var i=t.key,n=e.key;if(i===n)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(null===i)return 1;if(null===n)return-1;if("string"==typeof i&&"string"==typeof n)return i<n?-1:1;if("number"==typeof i&&"number"==typeof n)return i-n;if("boolean"==typeof i&&"boolean"==typeof n)return i<n?-1:1;var r=String(i),o=String(n);return r==o?0:r<o?-1:1}Hf.\u0275fac=function(t){return new(t||Hf)(nu(Hl))},Hf.\u0275pipe=Re({name:"keyvalue",type:Hf,pure:!1}),Hf.ctorParameters=function(){return[{type:Hl}]};var Uf=function(){function t(e){_classCallCheck(this,t),this._locale=e}return _createClass(t,[{key:"transform",value:function(e,i,n){if(Kf(e))return null;n=n||this._locale;try{return function(t,e,i){return rf(t,af(Md(e,Cd.Decimal),Fd(e,Dd.MinusSign)),e,Dd.Group,Dd.Decimal,i)}(Yf(e),n,i)}catch(r){throw Df(t,r.message)}}}]),t}();Uf.\u0275fac=function(t){return new(t||Uf)(nu(gp))},Uf.\u0275pipe=Re({name:"number",type:Uf,pure:!0}),Uf.ctorParameters=function(){return[{type:String,decorators:[{type:ht,args:[gp]}]}]};var Wf=function(){function t(e){_classCallCheck(this,t),this._locale=e}return _createClass(t,[{key:"transform",value:function(e,i,n){if(Kf(e))return null;n=n||this._locale;try{return function(t,e,i){return rf(t,af(Md(e,Cd.Percent),Fd(e,Dd.MinusSign)),e,Dd.Group,Dd.Decimal,i,!0).replace(new RegExp("%","g"),Fd(e,Dd.PercentSign))}(Yf(e),n,i)}catch(r){throw Df(t,r.message)}}}]),t}();Wf.\u0275fac=function(t){return new(t||Wf)(nu(gp))},Wf.\u0275pipe=Re({name:"percent",type:Wf,pure:!0}),Wf.ctorParameters=function(){return[{type:String,decorators:[{type:ht,args:[gp]}]}]};var Gf=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";_classCallCheck(this,t),this._locale=e,this._defaultCurrencyCode=i}return _createClass(t,[{key:"transform",value:function(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(Kf(e))return null;o=o||this._locale,"boolean"==typeof n&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),n=n?"symbol":"code");var a=i||this._defaultCurrencyCode;"code"!==n&&(a="symbol"===n||"symbol-narrow"===n?Nd(a,"symbol"===n?"wide":"narrow",o):n);try{return of(Yf(e),o,a,i,r)}catch(s){throw Df(t,s.message)}}}]),t}();function Kf(t){return null==t||""===t||t!=t}function Yf(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error("".concat(t," is not a number"));return t}Gf.\u0275fac=function(t){return new(t||Gf)(nu(gp),nu(yp))},Gf.\u0275pipe=Re({name:"currency",type:Gf,pure:!0}),Gf.ctorParameters=function(){return[{type:String,decorators:[{type:ht,args:[gp]}]},{type:String,decorators:[{type:ht,args:[yp]}]}]};var qf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(e,i,n){if(null==e)return e;if(!this.supports(e))throw Df(t,e);return e.slice(i,n)}},{key:"supports",value:function(t){return"string"==typeof t||Array.isArray(t)}}]),t}();qf.\u0275fac=function(t){return new(t||qf)},qf.\u0275pipe=Re({name:"slice",type:qf,pure:!1});var Xf=function t(){_classCallCheck(this,t)};Xf.\u0275mod=je({type:Xf}),Xf.\u0275inj=bt({factory:function(t){return new(t||Xf)},providers:[{provide:uf,useClass:hf}]}),new Dl("9.1.9");var Zf=function t(){_classCallCheck(this,t)};Zf.\u0275prov=mt({token:Zf,providedIn:"root",factory:function(){return new Qf(ae(ud),window,ae(An))}});var Qf=function(){function t(e,i,n){_classCallCheck(this,t),this.document=e,this.window=i,this.errorHandler=n,this.offset=function(){return[0,0]}}return _createClass(t,[{key:"setOffset",value:function(t){Array.isArray(t)?this.offset=function(){return t}:this.offset=t}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var e=this.document.querySelector("#".concat(t));if(e)return void this.scrollToElement(e);var i=this.document.querySelector("[name='".concat(t,"']"));if(i)return void this.scrollToElement(i)}catch(n){this.errorHandler.handleError(n)}}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],n-r[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}]),t}();Ht.Node&&Ht.Node.prototype.contains;var $f,Jf=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"getProperty",value:function(t,e){return t[e]}},{key:"log",value:function(t){window.console&&window.console.log&&window.console.log(t)}},{key:"logGroup",value:function(t){window.console&&window.console.group&&window.console.group(t)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(t,e,i){return t.addEventListener(e,i,!1),function(){t.removeEventListener(e,i,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){return t.parentNode&&t.parentNode.removeChild(t),t}},{key:"getValue",value:function(t){return t.value}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(t){var e,i=tg||(tg=document.querySelector("base"))?tg.getAttribute("href"):null;return null==i?null:(e=i,$f||($f=document.createElement("a")),$f.setAttribute("href",e),"/"===$f.pathname.charAt(0)?$f.pathname:"/"+$f.pathname)}},{key:"resetBaseElement",value:function(){tg=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(t){return cf(document.cookie,t)}}],[{key:"makeCurrent",value:function(){var t;t=new i,ad||(ad=t)}}]),i}(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.call(this)}return _createClass(i,[{key:"supportsDOMEvents",value:function(){return!0}}]),i}(function(){return function t(){_classCallCheck(this,t)}}())),tg=null,eg=new Qt("TRANSITION_ID"),ig=[{provide:ap,useFactory:function(t,e,i){return function(){i.get(sp).donePromise.then((function(){var i=sd();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter((function(e){return e.getAttribute("ng-transition")===t})).forEach((function(t){return i.remove(t)}))}))}},deps:[eg,ud,ss],multi:!0}],ng=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addToWindow",value:function(t){Ht.getAngularTestability=function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},Ht.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Ht.getAllAngularRootElements=function(){return t.getAllRootElements()},Ht.frameworkStabilizers||(Ht.frameworkStabilizers=[]),Ht.frameworkStabilizers.push((function(t){var e=Ht.getAllAngularTestabilities(),i=e.length,n=!1,r=function(e){n=n||e,0==--i&&t(n)};e.forEach((function(t){t.whenStable(r)}))}))}},{key:"findTestabilityInTree",value:function(t,e,i){if(null==e)return null;var n=t.getTestability(e);return null!=n?n:i?sd().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,Bp=e}}]),t}();new ct;var rg=new Qt("EventManagerPlugins"),og=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._zone=i,this._eventNameToPlugin=new Map,e.forEach((function(t){return t.manager=n})),this._plugins=e.slice().reverse()}return _createClass(t,[{key:"addEventListener",value:function(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}},{key:"addGlobalEventListener",value:function(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var i=this._plugins,n=0;n<i.length;n++){var r=i[n];if(r.supports(t))return this._eventNameToPlugin.set(t,r),r}throw new Error("No event manager plugin found for event ".concat(t))}}]),t}();og.\u0275fac=function(t){return new(t||og)(ae(rg),ae(Tp))},og.\u0275prov=mt({token:og,factory:og.\u0275fac}),og.ctorParameters=function(){return[{type:Array,decorators:[{type:ht,args:[rg]}]},{type:Tp}]};var ag=function(){function t(e){_classCallCheck(this,t),this._doc=e}return _createClass(t,[{key:"addGlobalEventListener",value:function(t,e,i){var n=sd().getGlobalEventTarget(this._doc,t);if(!n)throw new Error("Unsupported event target ".concat(n," for event ").concat(e));return this.addEventListener(n,e,i)}}]),t}(),sg=function(){function t(){_classCallCheck(this,t),this._stylesSet=new Set}return _createClass(t,[{key:"addStyles",value:function(t){var e=this,i=new Set;t.forEach((function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),i.add(t))})),this.onStylesAdded(i)}},{key:"onStylesAdded",value:function(t){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),t}();sg.\u0275fac=function(t){return new(t||sg)},sg.\u0275prov=mt({token:sg,factory:sg.\u0275fac});var ug=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return _createClass(i,[{key:"_addStylesToHost",value:function(t,e){var i=this;t.forEach((function(t){var n=i._doc.createElement("style");n.textContent=t,i._styleNodes.add(e.appendChild(n))}))}},{key:"addHost",value:function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}},{key:"removeHost",value:function(t){this._hostNodes.delete(t)}},{key:"onStylesAdded",value:function(t){var e=this;this._hostNodes.forEach((function(i){return e._addStylesToHost(t,i)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(t){return sd().remove(t)}))}}]),i}(sg);ug.\u0275fac=function(t){return new(t||ug)(ae(ud))},ug.\u0275prov=mt({token:ug,factory:ug.\u0275fac}),ug.ctorParameters=function(){return[{type:void 0,decorators:[{type:ht,args:[ud]}]}]};var lg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},hg=/%COMP%/g;function cg(t,e,i){for(var n=0;n<e.length;n++){var r=e[n];Array.isArray(r)?cg(t,r,i):(r=r.replace(hg,t),i.push(r))}return i}function pg(t){return function(e){if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var dg=function(){function t(e,i,n){_classCallCheck(this,t),this.eventManager=e,this.sharedStylesHost=i,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new fg(e)}return _createClass(t,[{key:"createRenderer",value:function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Oe.Emulated:var i=this.rendererByCompId.get(e.id);return i||(i=new gg(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i;case Oe.Native:case Oe.ShadowDom:return new yg(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var n=cg(e.id,e.styles,[]);this.sharedStylesHost.addStyles(n),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),t}();dg.\u0275fac=function(t){return new(t||dg)(ae(og),ae(ug),ae(up))},dg.\u0275prov=mt({token:dg,factory:dg.\u0275fac}),dg.ctorParameters=function(){return[{type:og},{type:ug},{type:String,decorators:[{type:ht,args:[up]}]}]};var fg=function(){function t(e){_classCallCheck(this,t),this.eventManager=e,this.data=Object.create(null)}return _createClass(t,[{key:"destroy",value:function(){}},{key:"createElement",value:function(t,e){return e?document.createElementNS(lg[e]||e,t):document.createElement(t)}},{key:"createComment",value:function(t){return document.createComment(t)}},{key:"createText",value:function(t){return document.createTextNode(t)}},{key:"appendChild",value:function(t,e){t.appendChild(e)}},{key:"insertBefore",value:function(t,e,i){t&&t.insertBefore(e,i)}},{key:"removeChild",value:function(t,e){t&&t.removeChild(e)}},{key:"selectRootElement",value:function(t,e){var i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error('The selector "'.concat(t,'" did not match any elements'));return e||(i.textContent=""),i}},{key:"parentNode",value:function(t){return t.parentNode}},{key:"nextSibling",value:function(t){return t.nextSibling}},{key:"setAttribute",value:function(t,e,i,n){if(n){e=n+":"+e;var r=lg[n];r?t.setAttributeNS(r,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}},{key:"removeAttribute",value:function(t,e,i){if(i){var n=lg[i];n?t.removeAttributeNS(n,e):t.removeAttribute("".concat(i,":").concat(e))}else t.removeAttribute(e)}},{key:"addClass",value:function(t,e){t.classList.add(e)}},{key:"removeClass",value:function(t,e){t.classList.remove(e)}},{key:"setStyle",value:function(t,e,i,n){n&Pl.DashCase?t.style.setProperty(e,i,n&Pl.Important?"important":""):t.style[e]=i}},{key:"removeStyle",value:function(t,e,i){i&Pl.DashCase?t.style.removeProperty(e):t.style[e]=""}},{key:"setProperty",value:function(t,e,i){t[e]=i}},{key:"setValue",value:function(t,e){t.nodeValue=e}},{key:"listen",value:function(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,pg(i)):this.eventManager.addEventListener(t,e,pg(i))}}]),t}();"@".charCodeAt(0);var gg=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;_classCallCheck(this,i),(a=e.call(this,t)).component=r;var s,u=cg(o+"-"+r.id,r.styles,[]);return n.addStyles(u),a.contentAttr=(s=o+"-"+r.id,"_ngcontent-%COMP%".replace(hg,s)),a.hostAttr=function(t){return"_nghost-%COMP%".replace(hg,t)}(o+"-"+r.id),a}return _createClass(i,[{key:"applyToHost",value:function(t){_get(_getPrototypeOf(i.prototype),"setAttribute",this).call(this,t,this.hostAttr,"")}},{key:"createElement",value:function(t,e){var n=_get(_getPrototypeOf(i.prototype),"createElement",this).call(this,t,e);return _get(_getPrototypeOf(i.prototype),"setAttribute",this).call(this,n,this.contentAttr,""),n}}]),i}(fg),yg=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;_classCallCheck(this,i),(a=e.call(this,t)).sharedStylesHost=n,a.hostEl=r,a.component=o,o.encapsulation===Oe.ShadowDom?a.shadowRoot=r.attachShadow({mode:"open"}):a.shadowRoot=r.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=cg(o.id,o.styles,[]),u=0;u<s.length;u++){var l=document.createElement("style");l.textContent=s[u],a.shadowRoot.appendChild(l)}return a}return _createClass(i,[{key:"nodeOrShadowRoot",value:function(t){return t===this.hostEl?this.shadowRoot:t}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(t,e){return _get(_getPrototypeOf(i.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(t),e)}},{key:"insertBefore",value:function(t,e,n){return _get(_getPrototypeOf(i.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(t),e,n)}},{key:"removeChild",value:function(t,e){return _get(_getPrototypeOf(i.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(t),e)}},{key:"parentNode",value:function(t){return this.nodeOrShadowRoot(_get(_getPrototypeOf(i.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(t)))}}]),i}(fg),vg=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){return _classCallCheck(this,i),e.call(this,t)}return _createClass(i,[{key:"supports",value:function(t){return!0}},{key:"addEventListener",value:function(t,e,i){var n=this;return t.addEventListener(e,i,!1),function(){return n.removeEventListener(t,e,i)}}},{key:"removeEventListener",value:function(t,e,i){return t.removeEventListener(e,i)}}]),i}(ag);vg.\u0275fac=function(t){return new(t||vg)(ae(ud))},vg.\u0275prov=mt({token:vg,factory:vg.\u0275fac}),vg.ctorParameters=function(){return[{type:void 0,decorators:[{type:ht,args:[ud]}]}]};var mg={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},bg=new Qt("HammerGestureConfig"),_g=new Qt("HammerLoader"),wg=function(){function t(){_classCallCheck(this,t),this.events=[],this.overrides={}}return _createClass(t,[{key:"buildHammer",value:function(t){var e=new Hammer(t,this.options);for(var i in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(i).set(this.overrides[i]);return e}}]),t}();wg.\u0275fac=function(t){return new(t||wg)},wg.\u0275prov=mt({token:wg,factory:wg.\u0275fac});var xg=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t))._config=n,a.console=r,a.loader=o,a}return _createClass(i,[{key:"supports",value:function(t){return!(!mg.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn('The "'.concat(t,'" event cannot be bound because Hammer.JS is not ')+"loaded and no custom loader has been specified."),1))}},{key:"addEventListener",value:function(t,e,i){var n=this,r=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){var o=!1,a=function(){o=!0};return this.loader().then((function(){if(!window.Hammer)return n.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});o||(a=n.addEventListener(t,e,i))})).catch((function(){n.console.warn('The "'.concat(e,'" event cannot be bound because the custom ')+"Hammer.JS loader failed."),a=function(){}})),function(){a()}}return r.runOutsideAngular((function(){var o=n._config.buildHammer(t),a=function(t){r.runGuarded((function(){i(t)}))};return o.on(e,a),function(){o.off(e,a),"function"==typeof o.destroy&&o.destroy()}}))}},{key:"isCustomEvent",value:function(t){return this._config.events.indexOf(t)>-1}}]),i}(ag);xg.\u0275fac=function(t){return new(t||xg)(ae(ud),ae(bg),ae(fp),ae(_g,8))},xg.\u0275prov=mt({token:xg,factory:xg.\u0275fac}),xg.ctorParameters=function(){return[{type:void 0,decorators:[{type:ht,args:[ud]}]},{type:wg,decorators:[{type:ht,args:[bg]}]},{type:fp},{type:void 0,decorators:[{type:ct},{type:ht,args:[_g]}]}]};var Cg=[{provide:rg,useClass:xg,multi:!0,deps:[ud,bg,fp,[new ct,_g]]},{provide:bg,useClass:wg,deps:[]}],Pg=function t(){_classCallCheck(this,t)};Pg.\u0275mod=je({type:Pg}),Pg.\u0275inj=bt({factory:function(t){return new(t||Pg)},providers:Cg});var kg=["alt","control","meta","shift"],Sg={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Og={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Dg={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Tg=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){return _classCallCheck(this,i),e.call(this,t)}return _createClass(i,[{key:"supports",value:function(t){return null!=i.parseEventName(t)}},{key:"addEventListener",value:function(t,e,n){var r=i.parseEventName(e),o=i.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return sd().onAndCancel(t,r.domEventName,o)}))}}],[{key:"parseEventName",value:function(t){var e=t.toLowerCase().split("."),n=e.shift();if(0===e.length||"keydown"!==n&&"keyup"!==n)return null;var r=i._normalizeKey(e.pop()),o="";if(kg.forEach((function(t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),o+=t+".")})),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=n,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",i=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Og.hasOwnProperty(e)&&(e=Og[e]))}return Sg[e]||e}(t);return" "===(i=i.toLowerCase())?i="space":"."===i&&(i="dot"),kg.forEach((function(n){n!=i&&(0,Dg[n])(t)&&(e+=n+".")})),e+=i}},{key:"eventCallback",value:function(t,e,n){return function(r){i.getEventFullKey(r)===t&&n.runGuarded((function(){return e(r)}))}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),i}(ag);Tg.\u0275fac=function(t){return new(t||Tg)(ae(ud))},Tg.\u0275prov=mt({token:Tg,factory:Tg.\u0275fac}),Tg.ctorParameters=function(){return[{type:void 0,decorators:[{type:ht,args:[ud]}]}]};var Eg=function t(){_classCallCheck(this,t)};Eg.\u0275fac=function(t){return new(t||Eg)},Eg.\u0275prov=mt({factory:function(){return ae(Ig)},token:Eg,providedIn:"root"});var Ig=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._doc=t,n}return _createClass(i,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case mr.NONE:return e;case mr.HTML:return Bn(e,"HTML")?Nn(e):yr(this._doc,String(e));case mr.STYLE:return Bn(e,"Style")?Nn(e):wr(e);case mr.SCRIPT:if(Bn(e,"Script"))return Nn(e);throw new Error("unsafe value used in a script context");case mr.URL:return Hn(e),Bn(e,"URL")?Nn(e):qn(String(e));case mr.RESOURCE_URL:if(Bn(e,"ResourceURL"))return Nn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return new Mn(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return new jn(t)}},{key:"bypassSecurityTrustScript",value:function(t){return new Ln(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return new Vn(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return new Rn(t)}}]),i}(Eg);Ig.\u0275fac=function(t){return new(t||Ig)(ae(ud))},Ig.ctorParameters=function(){return[{type:void 0,decorators:[{type:ht,args:[ud]}]}]},Ig.\u0275prov=mt({factory:function(){return t=ae($t),new Ig(t.get(ud));var t},token:Ig,providedIn:"root"});var Ag=Wp(ed,"browser",[{provide:pp,useValue:"browser"},{provide:cp,useValue:function(){Jf.makeCurrent(),ng.init()},multi:!0},{provide:ud,useFactory:function(){return function(t){Qe=t}(document),document},deps:[]}]),Fg=[[],{provide:Ya,useValue:"root"},{provide:An,useFactory:function(){return new An},deps:[]},{provide:rg,useClass:vg,multi:!0,deps:[ud,Tp,pp]},{provide:rg,useClass:Tg,multi:!0,deps:[ud]},[],{provide:dg,useClass:dg,deps:[og,ug,up]},{provide:Cl,useExisting:dg},{provide:sg,useExisting:ug},{provide:ug,useClass:ug,deps:[ud]},{provide:Vp,useClass:Vp,deps:[Tp]},{provide:og,useClass:og,deps:[rg,Tp]},[]],Mg=function(){function t(e){if(_classCallCheck(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:up,useValue:e.appId},{provide:eg,useExisting:up},ig]}}}]),t}();Mg.\u0275mod=je({type:Mg}),Mg.\u0275inj=bt({factory:function(t){return new(t||Mg)(ae(Mg,12))},providers:Fg,imports:[Xf,nd]}),Mg.ctorParameters=function(){return[{type:void 0,decorators:[{type:ct},{type:dt},{type:ht,args:[Mg]}]}]};var jg=function(){function t(e){_classCallCheck(this,t),this._doc=e,this._dom=sd()}return _createClass(t,[{key:"addTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?this._getOrCreateElement(t,e):null}},{key:"addTags",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?t.reduce((function(t,n){return n&&t.push(e._getOrCreateElement(n,i)),t}),[]):[]}},{key:"getTag",value:function(t){return t&&this._doc.querySelector("meta[".concat(t,"]"))||null}},{key:"getTags",value:function(t){if(!t)return[];var e=this._doc.querySelectorAll("meta[".concat(t,"]"));return e?[].slice.call(e):[]}},{key:"updateTag",value:function(t,e){if(!t)return null;e=e||this._parseSelector(t);var i=this.getTag(e);return i?this._setMetaElementAttributes(t,i):this._getOrCreateElement(t,!0)}},{key:"removeTag",value:function(t){this.removeTagElement(this.getTag(t))}},{key:"removeTagElement",value:function(t){t&&this._dom.remove(t)}},{key:"_getOrCreateElement",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var i=this._parseSelector(t),n=this.getTag(i);if(n&&this._containsAttributes(t,n))return n}var r=this._dom.createElement("meta");return this._setMetaElementAttributes(t,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}},{key:"_setMetaElementAttributes",value:function(t,e){return Object.keys(t).forEach((function(i){return e.setAttribute(i,t[i])})),e}},{key:"_parseSelector",value:function(t){var e=t.name?"name":"property";return"".concat(e,'="').concat(t[e],'"')}},{key:"_containsAttributes",value:function(t,e){return Object.keys(t).every((function(i){return e.getAttribute(i)===t[i]}))}}]),t}();jg.\u0275fac=function(t){return new(t||jg)(ae(ud))},jg.ctorParameters=function(){return[{type:void 0,decorators:[{type:ht,args:[ud]}]}]},jg.\u0275prov=mt({factory:function(){return new jg(ae(ud))},token:jg,providedIn:"root"});var Lg=function(){function t(e){_classCallCheck(this,t),this._doc=e}return _createClass(t,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(t){this._doc.title=t||""}}]),t}();Lg.\u0275fac=function(t){return new(t||Lg)(ae(ud))},Lg.ctorParameters=function(){return[{type:void 0,decorators:[{type:ht,args:[ud]}]}]},Lg.\u0275prov=mt({factory:function(){return new Lg(ae(ud))},token:Lg,providedIn:"root"}),"undefined"!=typeof window&&window;var Vg=function(){function t(){_classCallCheck(this,t),this.store={},this.onSerializeCallbacks={}}return _createClass(t,[{key:"get",value:function(t,e){return void 0!==this.store[t]?this.store[t]:e}},{key:"set",value:function(t,e){this.store[t]=e}},{key:"remove",value:function(t){delete this.store[t]}},{key:"hasKey",value:function(t){return this.store.hasOwnProperty(t)}},{key:"onSerialize",value:function(t,e){this.onSerializeCallbacks[t]=e}},{key:"toJson",value:function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store)}}],[{key:"init",value:function(e){var i=new t;return i.store=e,i}}]),t}();Vg.\u0275fac=function(t){return new(t||Vg)},Vg.\u0275prov=mt({token:Vg,factory:Vg.\u0275fac});var Rg=function t(){_classCallCheck(this,t)};function Ng(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[e.length-1];return T(n)?(e.pop(),H(e,n)):Y(e)}function Bg(t,e){return U(t,e,1)}function Hg(t,e){return function(i){return i.lift(new zg(t,e))}}Rg.\u0275mod=je({type:Rg}),Rg.\u0275inj=bt({factory:function(t){return new(t||Rg)},providers:[{provide:Vg,useFactory:function(t,e){var i,n,r=t.getElementById(e+"-state"),o={};if(r&&r.textContent)try{o=JSON.parse((i=r.textContent,n={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"},i.replace(/&[^;]+;/g,(function(t){return n[t]}))))}catch(a){console.warn("Exception while restoring TransferState for app "+e,a)}return Vg.init(o)},deps:[ud,up]}]}),new Dl("9.1.9");var zg=function(){function t(e,i){_classCallCheck(this,t),this.predicate=e,this.thisArg=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ug(t,this.predicate,this.thisArg))}}]),t}(),Ug=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).predicate=n,o.thisArg=r,o.count=0,o}return _createClass(i,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}]),i}(y),Wg=function t(){_classCallCheck(this,t)},Gg=function t(){_classCallCheck(this,t)},Kg=function(){function t(e){var i=this;_classCallCheck(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){i.headers=new Map,e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),r=n.toLowerCase(),o=t.slice(e+1).trim();i.maybeSetNormalizedName(n,r),i.headers.has(r)?i.headers.get(r).push(o):i.headers.set(r,[o])}}))}:function(){i.headers=new Map,Object.keys(e).forEach((function(t){var n=e[t],r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(i.headers.set(r,n),i.maybeSetNormalizedName(t,r))}))}:this.headers=new Map}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(i){e.headers.set(i,t.headers.get(i)),e.normalizedNames.set(i,t.normalizedNames.get(i))}))}},{key:"clone",value:function(e){var i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);var n=("a"===t.op?this.headers.get(e):void 0)||[];n.push.apply(n,_toConsumableArray(i)),this.headers.set(e,n);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter((function(t){return-1===r.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(i){return t(e.normalizedNames.get(i),e.headers.get(i))}))}}]),t}(),Yg=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return qg(t)}},{key:"encodeValue",value:function(t){return qg(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function qg(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Xg=function(){function t(){var e,i,n,r=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,t),this.updates=null,this.cloneFrom=null,this.encoder=o.encoder||new Yg,o.fromString){if(o.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=o.fromString,i=this.encoder,n=new Map,e.length>0&&e.split("&").forEach((function(t){var e=t.indexOf("="),r=_slicedToArray(-1==e?[i.decodeKey(t),""]:[i.decodeKey(t.slice(0,e)),i.decodeValue(t.slice(e+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)})),n)}else o.fromObject?(this.map=new Map,Object.keys(o.fromObject).forEach((function(t){var e=o.fromObject[t];r.map.set(t,Array.isArray(e)?e:[e])}))):this.map=null}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map((function(e){var i=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return i+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")}},{key:"clone",value:function(e){var i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat([e]),i}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var i=("a"===e.op?t.map.get(e.param):void 0)||[];i.push(e.value),t.map.set(e.param,i);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var n=t.map.get(e.param)||[],r=n.indexOf(e.value);-1!==r&&n.splice(r,1),n.length>0?t.map.set(e.param,n):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function Zg(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Qg(t){return"undefined"!=typeof Blob&&t instanceof Blob}function $g(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Jg=function(){function t(e,i,n,r){var o;if(_classCallCheck(this,t),this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new Kg),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=i;else{var s=i.indexOf("?"),u=-1===s?"?":s<i.length-1?"&":"";this.urlWithParams=i+u+a}}else this.params=new Xg,this.urlWithParams=i}return _createClass(t,[{key:"serializeBody",value:function(){return null===this.body?null:Zg(this.body)||Qg(this.body)||$g(this.body)||"string"==typeof this.body?this.body:this.body instanceof Xg?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||$g(this.body)?null:Qg(this.body)?this.body.type||null:Zg(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Xg?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce((function(t,i){return t.set(i,e.setHeaders[i])}),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((function(t,i){return t.set(i,e.setParams[i])}),l)),new t(i,n,o,{params:l,headers:u,reportProgress:s,responseType:r,withCredentials:a})}}]),t}(),ty={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};ty[ty.Sent]="Sent",ty[ty.UploadProgress]="UploadProgress",ty[ty.ResponseHeader]="ResponseHeader",ty[ty.DownloadProgress]="DownloadProgress",ty[ty.Response]="Response",ty[ty.User]="User";var ey=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,t),this.headers=e.headers||new Kg,this.status=void 0!==e.status?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},iy=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(t=e.call(this,n)).type=ty.ResponseHeader,t}return _createClass(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(ey),ny=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(t=e.call(this,n)).type=ty.Response,t.body=void 0!==n.body?n.body:null,t}return _createClass(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(ey),ry=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.status>=200&&n.status<300?n.message="Http failure during parsing for ".concat(t.url||"(unknown url)"):n.message="Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),n.error=t.error||null,n}return i}(ey);function oy(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var ay=function(){function t(e){_classCallCheck(this,t),this.handler=e}return _createClass(t,[{key:"request",value:function(t,e){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof Jg)i=t;else{var o=void 0;o=r.headers instanceof Kg?r.headers:new Kg(r.headers);var a=void 0;r.params&&(a=r.params instanceof Xg?r.params:new Xg({fromObject:r.params})),i=new Jg(t,e,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Ng(i).pipe(Bg((function(t){return n.handler.handle(t)})));if(t instanceof Jg||"events"===r.observe)return s;var u=s.pipe(Hg((function(t){return t instanceof ny})));switch(r.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return u.pipe(R((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return u.pipe(R((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return u.pipe(R((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return u.pipe(R((function(t){return t.body})))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Xg).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,oy(i,e))}},{key:"post",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,oy(i,e))}},{key:"put",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,oy(i,e))}}]),t}();ay.\u0275fac=function(t){return new(t||ay)(ae(Wg))},ay.\u0275prov=mt({token:ay,factory:ay.\u0275fac}),ay.ctorParameters=function(){return[{type:Wg}]};var sy=function(){function t(e,i){_classCallCheck(this,t),this.next=e,this.interceptor=i}return _createClass(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),uy=new Qt("HTTP_INTERCEPTORS"),ly=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();ly.\u0275fac=function(t){return new(t||ly)},ly.\u0275prov=mt({token:ly,factory:ly.\u0275fac});var hy=0,cy=function t(){_classCallCheck(this,t)},py=function(){function t(e,i){_classCallCheck(this,t),this.callbackMap=e,this.document=i}return _createClass(t,[{key:"nextCallback",value:function(){return"ng_jsonp_callback_".concat(hy++)}},{key:"handle",value:function(t){var e=this;if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new x((function(i){var n=e.nextCallback(),r=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"=".concat(n,"$1")),o=e.document.createElement("script");o.src=r;var a=null,s=!1,u=!1;e.callbackMap[n]=function(t){delete e.callbackMap[n],u||(a=t,s=!0)};var l=function(){o.parentNode&&o.parentNode.removeChild(o),delete e.callbackMap[n]},h=function(t){u||(l(),s?(i.next(new ny({body:a,status:200,statusText:"OK",url:r})),i.complete()):i.error(new ry({url:r,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")})))},c=function(t){u||(l(),i.error(new ry({error:t,status:0,statusText:"JSONP Error",url:r})))};return o.addEventListener("load",h),o.addEventListener("error",c),e.document.body.appendChild(o),i.next({type:ty.Sent}),function(){u=!0,o.removeEventListener("load",h),o.removeEventListener("error",c),l()}}))}}]),t}();py.\u0275fac=function(t){return new(t||py)(ae(cy),ae(ud))},py.\u0275prov=mt({token:py,factory:py.\u0275fac}),py.ctorParameters=function(){return[{type:cy},{type:void 0,decorators:[{type:ht,args:[ud]}]}]};var dy=function(){function t(e){_classCallCheck(this,t),this.jsonp=e}return _createClass(t,[{key:"intercept",value:function(t,e){return"JSONP"===t.method?this.jsonp.handle(t):e.handle(t)}}]),t}();dy.\u0275fac=function(t){return new(t||dy)(ae(py))},dy.\u0275prov=mt({token:dy,factory:dy.\u0275fac}),dy.ctorParameters=function(){return[{type:py}]};var fy=/^\)\]\}',?\n/,gy=function t(){_classCallCheck(this,t)},yy=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();yy.\u0275fac=function(t){return new(t||yy)},yy.\u0275prov=mt({token:yy,factory:yy.\u0275fac}),yy.ctorParameters=function(){return[]};var vy=function(){function t(e){_classCallCheck(this,t),this.xhrFactory=e}return _createClass(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new x((function(i){var n=e.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((function(t,e){return n.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&n.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();n.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new Kg(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new iy({headers:r,status:e,statusText:i,url:o})},l=function(){var e=u(),r=e.headers,o=e.status,a=e.statusText,s=e.url,l=null;204!==o&&(l=void 0===n.response?n.responseText:n.response),0===o&&(o=l?200:0);var h=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var c=l;l=l.replace(fy,"");try{l=""!==l?JSON.parse(l):null}catch(p){l=c,h&&(h=!1,l={error:p,text:l})}}h?(i.next(new ny({body:l,headers:r,status:o,statusText:a,url:s||void 0})),i.complete()):i.error(new ry({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},h=function(t){var e=u().url,r=new ry({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:e||void 0});i.error(r)},c=!1,p=function(e){c||(i.next(u()),c=!0);var r={type:ty.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),i.next(r)},d=function(t){var e={type:ty.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),i.next(e)};return n.addEventListener("load",l),n.addEventListener("error",h),t.reportProgress&&(n.addEventListener("progress",p),null!==a&&n.upload&&n.upload.addEventListener("progress",d)),n.send(a),i.next({type:ty.Sent}),function(){n.removeEventListener("error",h),n.removeEventListener("load",l),t.reportProgress&&(n.removeEventListener("progress",p),null!==a&&n.upload&&n.upload.removeEventListener("progress",d)),n.abort()}}))}}]),t}();vy.\u0275fac=function(t){return new(t||vy)(ae(gy))},vy.\u0275prov=mt({token:vy,factory:vy.\u0275fac}),vy.ctorParameters=function(){return[{type:gy}]};var my=new Qt("XSRF_COOKIE_NAME"),by=new Qt("XSRF_HEADER_NAME"),_y=function t(){_classCallCheck(this,t)},wy=function(){function t(e,i,n){_classCallCheck(this,t),this.doc=e,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=cf(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();wy.\u0275fac=function(t){return new(t||wy)(ae(ud),ae(pp),ae(my))},wy.\u0275prov=mt({token:wy,factory:wy.\u0275fac}),wy.ctorParameters=function(){return[{type:void 0,decorators:[{type:ht,args:[ud]}]},{type:String,decorators:[{type:ht,args:[pp]}]},{type:String,decorators:[{type:ht,args:[my]}]}]};var xy=function(){function t(e,i){_classCallCheck(this,t),this.tokenService=e,this.headerName=i}return _createClass(t,[{key:"intercept",value:function(t,e){var i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);var n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}]),t}();xy.\u0275fac=function(t){return new(t||xy)(ae(_y),ae(by))},xy.\u0275prov=mt({token:xy,factory:xy.\u0275fac}),xy.ctorParameters=function(){return[{type:_y},{type:String,decorators:[{type:ht,args:[by]}]}]};var Cy=function(){function t(e,i){_classCallCheck(this,t),this.backend=e,this.injector=i,this.chain=null}return _createClass(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(uy,[]);this.chain=e.reduceRight((function(t,e){return new sy(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}();Cy.\u0275fac=function(t){return new(t||Cy)(ae(Gg),ae(ss))},Cy.\u0275prov=mt({token:Cy,factory:Cy.\u0275fac}),Cy.ctorParameters=function(){return[{type:Gg},{type:ss}]};var Py=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:xy,useClass:ly}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:my,useValue:e.cookieName}:[],e.headerName?{provide:by,useValue:e.headerName}:[]]}}}]),t}();Py.\u0275mod=je({type:Py}),Py.\u0275inj=bt({factory:function(t){return new(t||Py)},providers:[xy,{provide:uy,useExisting:xy,multi:!0},{provide:_y,useClass:wy},{provide:my,useValue:"XSRF-TOKEN"},{provide:by,useValue:"X-XSRF-TOKEN"}]});var ky=function t(){_classCallCheck(this,t)};ky.\u0275mod=je({type:ky}),ky.\u0275inj=bt({factory:function(t){return new(t||ky)},providers:[ay,{provide:Wg,useClass:Cy},vy,{provide:Gg,useExisting:vy},yy,{provide:gy,useExisting:yy}],imports:[[Py.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]});var Sy=function t(){_classCallCheck(this,t)};Sy.\u0275mod=je({type:Sy}),Sy.\u0275inj=bt({factory:function(t){return new(t||Sy)},providers:[py,{provide:cy,useFactory:function(){return"object"==typeof window?window:{}}},{provide:uy,useClass:dy,multi:!0}]});var Oy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._value=t,n}return _createClass(i,[{key:"_subscribe",value:function(t){var e=_get(_getPrototypeOf(i.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new P;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(i.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),i}(O),Dy=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),Ty={},Ey=function(){function t(e){_classCallCheck(this,t),this.resultSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Iy(t,this.resultSelector))}}]),t}(),Iy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return _createClass(i,[{key:"_next",value:function(t){this.values.push(Ty),this.observables.push(t)}},{key:"_complete",value:function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var i=0;i<e;i++){var n=t[i];this.add(L(this,n,n,i))}}}},{key:"notifyComplete",value:function(t){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(t,e,i,n,r){var o=this.values,a=o[i],s=this.toRespond?a===Ty?--this.toRespond:this.toRespond:0;o[i]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))}},{key:"_tryResultSelector",value:function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}]),i}(V),Ay=new x((function(t){return t.complete()}));function Fy(t){return t?function(t){return new x((function(e){return t.schedule((function(){return e.complete()}))}))}(t):Ay}function My(t){return new x((function(e){var i;try{i=t()}catch(n){return void e.error(n)}return(i?z(i):Fy()).subscribe(e)}))}function jy(){return K(1)}var Ly=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}();function Vy(t){return function(e){return 0===t?Fy():e.lift(new Ry(t))}}var Ry=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new Ly}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ny(t,this.total))}}]),t}(),Ny=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).total=n,r.ring=new Array,r.count=0,r}return _createClass(i,[{key:"_next",value:function(t){var e=this.ring,i=this.total,n=this.count++;e.length<i?e.push(t):e[n%i]=t}},{key:"_complete",value:function(){var t=this.destination,e=this.count;if(e>0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,r=0;r<i;r++){var o=e++%i;t.next(n[o])}t.complete()}}]),i}(y);function By(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uy;return function(e){return e.lift(new Hy(t))}}var Hy=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new zy(t,this.errorFactory))}}]),t}(),zy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).errorFactory=n,r.hasValue=!1,r}return _createClass(i,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),i}(y);function Uy(){return new Dy}function Wy(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Gy(t))}}var Gy=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ky(t,this.defaultValue))}}]),t}(),Ky=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).defaultValue=n,r.isEmpty=!0,r}return _createClass(i,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),i}(y);function Yy(t,e){var i=arguments.length>=2;return function(n){return n.pipe(t?Hg((function(e,i){return t(e,i,n)})):b,Vy(1),i?Wy(e):By((function(){return new Dy})))}}function qy(t){return function(e){var i=new Xy(t),n=e.lift(i);return i.caught=n}}var Xy=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Zy(t,this.selector,this.caught))}}]),t}(),Zy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).selector=n,o.caught=r,o}return _createClass(i,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(o){return void _get(_getPrototypeOf(i.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var n=new E(this,void 0,void 0);this.add(n);var r=L(this,e,void 0,void 0,n);r!==n&&this.add(r)}}}]),i}(V);function Qy(t){return function(e){return 0===t?Fy():e.lift(new $y(t))}}var $y=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new Ly}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Jy(t,this.total))}}]),t}(),Jy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).total=n,r.count=0,r}return _createClass(i,[{key:"_next",value:function(t){var e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}]),i}(y);function tv(t,e){var i=arguments.length>=2;return function(n){return n.pipe(t?Hg((function(e,i){return t(e,i,n)})):b,Qy(1),i?Wy(e):By((function(){return new Dy})))}}var ev=function(){function t(e,i,n){_classCallCheck(this,t),this.predicate=e,this.thisArg=i,this.source=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new iv(t,this.predicate,this.thisArg,this.source))}}]),t}(),iv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t)).predicate=n,a.thisArg=r,a.source=o,a.index=0,a.thisArg=r||_assertThisInitialized(a),a}return _createClass(i,[{key:"notifyComplete",value:function(t){this.destination.next(t),this.destination.complete()}},{key:"_next",value:function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),i}(y);function nv(t,e){return"function"==typeof e?function(i){return i.pipe(nv((function(i,n){return z(t(i,n)).pipe(R((function(t,r){return e(i,t,n,r)})))})))}:function(e){return e.lift(new rv(t))}}var rv=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new ov(t,this.project))}}]),t}(),ov=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).project=n,r.index=0,r}return _createClass(i,[{key:"_next",value:function(t){var e,i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}},{key:"_innerSub",value:function(t,e,i){var n=this.innerSubscription;n&&n.unsubscribe();var r=new E(this,e,i),o=this.destination;o.add(r),this.innerSubscription=L(this,t,void 0,void 0,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||_get(_getPrototypeOf(i.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(i.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,i,n,r){this.destination.next(e)}}]),i}(V);function av(){return jy()(Ng.apply(void 0,arguments))}function sv(t,e){var i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new uv(t,e,i))}}var uv=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.accumulator=e,this.seed=i,this.hasSeed=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new lv(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),lv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t)).accumulator=n,a._seed=r,a.hasSeed=o,a.index=0,a}return _createClass(i,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,i=this.index++;try{e=this.accumulator(this.seed,t,i)}catch(n){this.destination.error(n)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),i}(y);function hv(){}function cv(t,e,i){return function(n){return n.lift(new pv(t,e,i))}}var pv=function(){function t(e,i,n){_classCallCheck(this,t),this.nextOrObserver=e,this.error=i,this.complete=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new dv(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),dv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o,a){var s;return _classCallCheck(this,i),(s=e.call(this,t))._tapNext=hv,s._tapError=hv,s._tapComplete=hv,s._tapError=o||hv,s._tapComplete=a||hv,r(n)?(s._context=_assertThisInitialized(s),s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||hv,s._tapError=n.error||hv,s._tapComplete=n.complete||hv),s}return _createClass(i,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),i}(y),fv=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new gv(t,this.callback))}}]),t}(),gv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).add(new d(n)),r}return i}(y),yv=function t(e,i){_classCallCheck(this,t),this.id=e,this.url=i},vv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,i),(r=e.call(this,t,n)).navigationTrigger=o,r.restoredState=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(yv),mv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).urlAfterRedirects=r,o}return _createClass(i,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),i}(yv),bv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).reason=r,o}return _createClass(i,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(yv),_v=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).error=r,o}return _createClass(i,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),i}(yv),wv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(yv),xv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(yv),Cv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this,t,n)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),i}(yv),Pv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(yv),kv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(yv),Sv=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),Ov=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),Dv=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Tv=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Ev=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Iv=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Av=function(){function t(e,i,n){_classCallCheck(this,t),this.routerEvent=e,this.position=i,this.anchor=n}return _createClass(t,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),t}(),Fv=function t(){_classCallCheck(this,t)};Fv.\u0275fac=function(t){return new(t||Fv)},Fv.\u0275cmp=Ie({type:Fv,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&lu(0,"router-outlet")},directives:function(){return[Nb]},encapsulation:2});var Mv=function(){function t(e){_classCallCheck(this,t),this.params=e||{}}return _createClass(t,[{key:"has",value:function(t){return this.params.hasOwnProperty(t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function jv(t){return new Mv(t)}function Lv(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Vv(t,e,i){var n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.length<t.length))return null;for(var r={},o=0;o<n.length;o++){var a=n[o],s=t[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}var Rv=function t(e,i){_classCallCheck(this,t),this.routes=e,this.module=i};function Nv(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=0;i<t.length;i++){var n=t[i];Bv(n,Hv(e,n))}}function Bv(t,e){if(!t)throw new Error("\n Invalid configuration of route '".concat(e,"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n "));if(Array.isArray(t))throw new Error("Invalid configuration of route '".concat(e,"': Array cannot be specified"));if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error("Invalid configuration of route '".concat(e,"': a componentless route without children or loadChildren cannot have a named outlet set"));if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and children cannot be used together"));if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and loadChildren cannot be used together"));if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"': children and loadChildren cannot be used together"));if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and component cannot be used together"));if(t.path&&t.matcher)throw new Error("Invalid configuration of route '".concat(e,"': path and matcher cannot be used together"));if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"'. One of the following must be provided: component, redirectTo, children or loadChildren"));if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '".concat(e,"': routes must have either a path or a matcher specified"));if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '".concat(e,"': path cannot start with a slash"));if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){throw new Error("Invalid configuration of route '{path: \"".concat(e,'", redirectTo: "').concat(t.redirectTo,"\"}': please provide 'pathMatch'. ").concat("The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'."))}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '".concat(e,"': pathMatch can only be set to 'prefix' or 'full'"));t.children&&Nv(t.children,e)}function Hv(t,e){return e?t||e.path?t&&!e.path?"".concat(t,"/"):!t&&e.path?e.path:"".concat(t,"/").concat(e.path):"":t}function zv(t){var e=t.children&&t.children.map(zv),i=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!i.component&&(e||i.loadChildren)&&i.outlet&&"primary"!==i.outlet&&(i.component=Fv),i}function Uv(t,e){var i,n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;for(var o=0;o<n.length;o++)if(!Wv(t[i=n[o]],e[i]))return!1;return!0}function Wv(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every((function(t){return e.indexOf(t)>-1})):t===e}function Gv(t){return Array.prototype.concat.apply([],t)}function Kv(t){return t.length>0?t[t.length-1]:null}function Yv(t,e){for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)}function qv(t){return du(t)?t:pu(t)?z(Promise.resolve(t)):Ng(t)}function Xv(t,e,i){return i?function(t,e){return Uv(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!Jv(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(var n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(i){return Wv(t[i],e[i])}))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,r){if(i.segments.length>r.length)return!!Jv(i.segments.slice(0,r.length),r)&&!n.hasChildren();if(i.segments.length===r.length){if(!Jv(i.segments,r))return!1;for(var o in n.children){if(!i.children[o])return!1;if(!t(i.children[o],n.children[o]))return!1}return!0}var a=r.slice(0,i.segments.length),s=r.slice(i.segments.length);return!!Jv(i.segments,a)&&!!i.children.primary&&e(i.children.primary,n,s)}(e,i,i.segments)}(t.root,e.root)}var Zv=function(){function t(e,i,n){_classCallCheck(this,t),this.root=e,this.queryParams=i,this.fragment=n}return _createClass(t,[{key:"toString",value:function(){return nm.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=jv(this.queryParams)),this._queryParamMap}}]),t}(),Qv=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.segments=e,this.children=i,this.parent=null,Yv(i,(function(t,e){return t.parent=n}))}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return rm(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),$v=function(){function t(e,i){_classCallCheck(this,t),this.path=e,this.parameters=i}return _createClass(t,[{key:"toString",value:function(){return hm(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=jv(this.parameters)),this._parameterMap}}]),t}();function Jv(t,e){return t.length===e.length&&t.every((function(t,i){return t.path===e[i].path}))}function tm(t,e){var i=[];return Yv(t.children,(function(t,n){"primary"===n&&(i=i.concat(e(t,n)))})),Yv(t.children,(function(t,n){"primary"!==n&&(i=i.concat(e(t,n)))})),i}var em=function t(){_classCallCheck(this,t)},im=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new gm(t);return new Zv(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,i,n;return"".concat("/".concat(function t(e,i){if(!e.hasChildren())return rm(e);if(i){var n=e.children.primary?t(e.children.primary,!1):"",r=[];return Yv(e.children,(function(e,i){"primary"!==i&&r.push("".concat(i,":").concat(t(e,!1)))})),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var o=tm(e,(function(i,n){return"primary"===n?[t(e.children.primary,!1)]:["".concat(n,":").concat(t(i,!1))]}));return"".concat(rm(e),"/(").concat(o.join("//"),")")}(t.root,!0)),(i=t.queryParams,n=Object.keys(i).map((function(t){var e=i[t];return Array.isArray(e)?e.map((function(e){return"".concat(am(t),"=").concat(am(e))})).join("&"):"".concat(am(t),"=").concat(am(e))})),n.length?"?".concat(n.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),nm=new im;function rm(t){return t.segments.map((function(t){return hm(t)})).join("/")}function om(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function am(t){return om(t).replace(/%3B/gi,";")}function sm(t){return om(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function um(t){return decodeURIComponent(t)}function lm(t){return um(t.replace(/\+/g,"%20"))}function hm(t){return"".concat(sm(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(sm(t),"=").concat(sm(e[t]))})).join("")));var e}var cm=/^[^\/()?;=#]+/;function pm(t){var e=t.match(cm);return e?e[0]:""}var dm=/^[^=?&#]+/,fm=/^[^?&#]+/,gm=function(){function t(e){_classCallCheck(this,t),this.url=e,this.remaining=e}return _createClass(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qv([],{}):new Qv([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Qv(t,e)),i}},{key:"parseSegment",value:function(){var t=pm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new $v(um(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=pm(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=pm(this.remaining);n&&(i=n,this.capture(i))}t[um(e)]=um(i)}}},{key:"parseQueryParam",value:function(t){var e,i,n=(e=this.remaining,(i=e.match(dm))?i[0]:"");if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(fm);return e?e[0]:""}(this.remaining);o&&(r=o,this.capture(r))}var a=lm(n),s=lm(r);if(t.hasOwnProperty(a)){var u=t[a];Array.isArray(u)||(u=[u],t[a]=u),u.push(s)}else t[a]=s}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=pm(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new Qv([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),ym=function(){function t(e){_classCallCheck(this,t),this._root=e}return _createClass(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=vm(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=vm(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=mm(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))}},{key:"pathFromRoot",value:function(t){return mm(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function vm(t,e){if(t===e.value)return e;var i,n=_createForOfIteratorHelper(e.children);try{for(n.s();!(i=n.n()).done;){var r=vm(t,i.value);if(r)return r}}catch(o){n.e(o)}finally{n.f()}return null}function mm(t,e){if(t===e.value)return[e];var i,n=_createForOfIteratorHelper(e.children);try{for(n.s();!(i=n.n()).done;){var r=mm(t,i.value);if(r.length)return r.unshift(e),r}}catch(o){n.e(o)}finally{n.f()}return[]}var bm=function(){function t(e,i){_classCallCheck(this,t),this.value=e,this.children=i}return _createClass(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function _m(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var wm=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).snapshot=n,Om(_assertThisInitialized(r),t),r}return _createClass(i,[{key:"toString",value:function(){return this.snapshot.toString()}}]),i}(ym);function xm(t,e){var i=function(t,e){var i=new km([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Sm("",new bm(i,[]))}(t,e),n=new Oy([new $v("",{})]),r=new Oy({}),o=new Oy({}),a=new Oy({}),s=new Oy(""),u=new Cm(n,r,a,s,o,"primary",e,i.root);return u.snapshot=i.root,new wm(new bm(u,[]),i)}var Cm=function(){function t(e,i,n,r,o,a,s,u){_classCallCheck(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return _createClass(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(R((function(t){return jv(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(R((function(t){return jv(t)})))),this._queryParamMap}}]),t}();function Pm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",i=t.pathFromRoot,n=0;if("always"!==e)for(n=i.length-1;n>=1;){var r=i[n],o=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function(t){return t.reduce((function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(i.slice(n))}var km=function(){function t(e,i,n,r,o,a,s,u,l,h,c){_classCallCheck(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=h,this._resolve=c}return _createClass(t,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(t){return t.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=jv(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=jv(this.queryParams)),this._queryParamMap}}]),t}(),Sm=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,n)).url=t,Om(_assertThisInitialized(r),n),r}return _createClass(i,[{key:"toString",value:function(){return Dm(this._root)}}]),i}(ym);function Om(t,e){e.value._routerState=t,e.children.forEach((function(e){return Om(t,e)}))}function Dm(t){var e=t.children.length>0?" { ".concat(t.children.map(Dm).join(", ")," } "):"";return"".concat(t.value).concat(e)}function Tm(t){if(t.snapshot){var e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Uv(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Uv(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(var i=0;i<t.length;++i)if(!Uv(t[i],e[i]))return!1;return!0}(e.url,i.url)||t.url.next(i.url),Uv(e.data,i.data)||t.data.next(i.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Em(t,e){var i,n,r=Uv(t.params,e.params)&&(Jv(i=t.url,n=e.url)&&i.every((function(t,e){return Uv(t.parameters,n[e].parameters)}))),o=!t.parent!=!e.parent;return r&&!o&&(!t.parent||Em(t.parent,e.parent))}function Im(t,e,i,n,r){if(0===i.length)return Fm(e.root,e.root,e,n,r);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Mm(!0,0,t);var e=0,i=!1,n=t.reduce((function(t,n,r){if("object"==typeof n&&null!=n){if(n.outlets){var o={};return Yv(n.outlets,(function(t,e){o[e]="string"==typeof t?t.split("/"):t})),[].concat(_toConsumableArray(t),[{outlets:o}])}if(n.segmentPath)return[].concat(_toConsumableArray(t),[n.segmentPath])}return"string"!=typeof n?[].concat(_toConsumableArray(t),[n]):0===r?(n.split("/").forEach((function(n,r){0==r&&"."===n||(0==r&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))})),t):[].concat(_toConsumableArray(t),[n])}),[]);return new Mm(i,e,n)}(i);if(o.toRoot())return Fm(e.root,new Qv([],{}),e,n,r);var a=function(t,e,i){if(t.isAbsolute)return new jm(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new jm(i.snapshot._urlSegment,!0,0);var n=Am(t.commands[0])?0:1,r=i.snapshot._lastPathIndex+n;return function(t,e,i){for(var n=t,r=e,o=i;o>r;){if(o-=r,!(n=n.parent))throw new Error("Invalid number of '../'");r=n.segments.length}return new jm(n,!1,r-o)}(i.snapshot._urlSegment,r,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?Rm(a.segmentGroup,a.index,o.commands):Vm(a.segmentGroup,a.index,o.commands);return Fm(a.segmentGroup,s,e,n,r)}function Am(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Fm(t,e,i,n,r){var o={};return n&&Yv(n,(function(t,e){o[e]=Array.isArray(t)?t.map((function(t){return"".concat(t)})):"".concat(t)})),i.root===t?new Zv(e,o,r):new Zv(function t(e,i,n){var r={};return Yv(e.children,(function(e,o){r[o]=e===i?n:t(e,i,n)})),new Qv(e.segments,r)}(i.root,t,e),o,r)}var Mm=function(){function t(e,i,n){if(_classCallCheck(this,t),this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&Am(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(r&&r!==Kv(n))throw new Error("{outlets:{}} has to be the last command")}return _createClass(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),jm=function t(e,i,n){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=i,this.index=n};function Lm(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function Vm(t,e,i){if(t||(t=new Qv([],{})),0===t.segments.length&&t.hasChildren())return Rm(t,e,i);var n=function(t,e,i){for(var n=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r<t.segments.length;){if(n>=i.length)return o;var a=t.segments[r],s=Lm(i[n]),u=n<i.length-1?i[n+1]:null;if(r>0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!zm(s,u,a))return o;n+=2}else{if(!zm(s,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){var o=new Qv(t.segments.slice(0,n.pathIndex),{});return o.children.primary=new Qv(t.segments.slice(n.pathIndex),t.children),Rm(o,0,r)}return n.match&&0===r.length?new Qv(t.segments,{}):n.match&&!t.hasChildren()?Nm(t,e,i):n.match?Rm(t,0,r):Nm(t,e,i)}function Rm(t,e,i){if(0===i.length)return new Qv(t.segments,{});var n=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(i),r={};return Yv(n,(function(i,n){null!==i&&(r[n]=Vm(t.children[n],e,i))})),Yv(t.children,(function(t,e){void 0===n[e]&&(r[e]=t)})),new Qv(t.segments,r)}function Nm(t,e,i){for(var n=t.segments.slice(0,e),r=0;r<i.length;){if("object"==typeof i[r]&&void 0!==i[r].outlets){var o=Bm(i[r].outlets);return new Qv(n,o)}if(0===r&&Am(i[0])){var a=t.segments[e];n.push(new $v(a.path,i[0])),r++}else{var s=Lm(i[r]),u=r<i.length-1?i[r+1]:null;s&&u&&Am(u)?(n.push(new $v(s,Hm(u))),r+=2):(n.push(new $v(s,{})),r++)}}return new Qv(n,{})}function Bm(t){var e={};return Yv(t,(function(t,i){null!==t&&(e[i]=Nm(new Qv([],{}),0,t))})),e}function Hm(t){var e={};return Yv(t,(function(t,i){return e[i]="".concat(t)})),e}function zm(t,e,i){return t==i.path&&Uv(e,i.parameters)}var Um=function(){function t(e,i,n,r){_classCallCheck(this,t),this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r}return _createClass(t,[{key:"activate",value:function(t){var e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Tm(this.futureState.root),this.activateChildRoutes(e,i,t)}},{key:"deactivateChildRoutes",value:function(t,e,i){var n=this,r=_m(e);t.children.forEach((function(t){var e=t.value.outlet;n.deactivateRoutes(t,r[e],i),delete r[e]})),Yv(r,(function(t,e){n.deactivateRouteAndItsChildren(t,i)}))}},{key:"deactivateRoutes",value:function(t,e,i){var n=t.value,r=e?e.value:null;if(n===r)if(n.component){var o=i.getContext(n.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}},{key:"deactivateRouteAndItsChildren",value:function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}},{key:"detachAndStoreRouteSubtree",value:function(t,e){var i=e.getContext(t.value.outlet);if(i&&i.outlet){var n=i.outlet.detach(),r=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:n,route:t,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(t,e){var i=this,n=e.getContext(t.value.outlet);if(n){var r=_m(t),o=t.value.component?n.children:e;Yv(r,(function(t,e){return i.deactivateRouteAndItsChildren(t,o)})),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(t,e,i){var n=this,r=_m(e);t.children.forEach((function(t){n.activateRoutes(t,r[t.value.outlet],i),n.forwardEvent(new Iv(t.value.snapshot))})),t.children.length&&this.forwardEvent(new Tv(t.value.snapshot))}},{key:"activateRoutes",value:function(t,e,i){var n=t.value,r=e?e.value:null;if(Tm(n),n===r)if(n.component){var o=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,i);else if(n.component){var a=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){var s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Wm(s.route)}else{var u=function(t){for(var e=t.parent;e;e=e.parent){var i=e.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig;if(i&&i.component)return null}return null}(n.snapshot),l=u?u.module.componentFactoryResolver:null;a.attachRef=null,a.route=n,a.resolver=l,a.outlet&&a.outlet.activateWith(n,l),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,i)}}]),t}();function Wm(t){Tm(t.value),t.children.forEach(Wm)}function Gm(t){return"function"==typeof t}function Km(t){return t instanceof Zv}var Ym=function t(e){_classCallCheck(this,t),this.segmentGroup=e||null},qm=function t(e){_classCallCheck(this,t),this.urlTree=e};function Xm(t){return new x((function(e){return e.error(new Ym(t))}))}function Zm(t){return new x((function(e){return e.error(new qm(t))}))}function Qm(t){return new x((function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))}))}var $m=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.configLoader=i,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(de)}return _createClass(t,[{key:"apply",value:function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(R((function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)}))).pipe(qy((function(e){if(e instanceof qm)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Ym)throw t.noMatchError(e);throw e})))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(R((function(i){return e.createUrlTree(i,t.queryParams,t.fragment)}))).pipe(qy((function(t){if(t instanceof Ym)throw e.noMatchError(t);throw t})))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,i){var n=t.segments.length>0?new Qv([],{primary:t}):t;return new Zv(n,e,i)}},{key:"expandSegmentGroup",value:function(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(R((function(t){return new Qv([],t)}))):this.expandSegment(t,i,e,i.segments,n,!0)}},{key:"expandChildren",value:function(t,e,i){var n=this;return function(i,r){if(0===Object.keys(i).length)return Ng({});var o=[],a=[],s={};return Yv(i,(function(i,r){var u,l,h=(u=r,l=i,n.expandSegmentGroup(t,e,l,u)).pipe(R((function(t){return s[r]=t})));"primary"===r?o.push(h):a.push(h)})),Ng.apply(null,o.concat(a)).pipe(jy(),Yy(),R((function(){return s})))}(i.children)}},{key:"expandSegment",value:function(t,e,i,n,r,o){var a=this;return Ng.apply(void 0,_toConsumableArray(i)).pipe(R((function(s){return a.expandSegmentAgainstRoute(t,e,i,s,n,r,o).pipe(qy((function(t){if(t instanceof Ym)return Ng(null);throw t})))})),jy(),tv((function(t){return!!t})),qy((function(t,i){if(t instanceof Dy||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,n,r))return Ng(new Qv([],{}));throw new Ym(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,i){return 0===e.length&&!t.children[i]}},{key:"expandSegmentAgainstRoute",value:function(t,e,i,n,r,o,a){return ib(n)!==o?Xm(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,o):Xm(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,i,n){var r=this,o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Zm(o):this.lineralizeSegments(i,o).pipe(U((function(i){var o=new Qv(i,{});return r.expandSegment(t,o,e,i,n,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,o){var a=this,s=Jm(e,n,r),u=s.matched,l=s.consumedSegments,h=s.lastChild,c=s.positionalParamSegments;if(!u)return Xm(e);var p=this.applyRedirectCommands(l,n.redirectTo,c);return n.redirectTo.startsWith("/")?Zm(p):this.lineralizeSegments(n,p).pipe(U((function(n){return a.expandSegment(t,e,i,n.concat(r.slice(h)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,i,n){var r=this;if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(R((function(t){return i._loadedConfig=t,new Qv(n,{})}))):Ng(new Qv(n,{}));var o=Jm(e,i,n),a=o.matched,s=o.consumedSegments,u=o.lastChild;if(!a)return Xm(e);var l=n.slice(u);return this.getChildConfig(t,i,n).pipe(U((function(t){var i=t.module,n=t.routes,o=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some((function(i){return eb(t,e,i)&&"primary"!==ib(i)}))}(t,i,n)?{segmentGroup:tb(new Qv(e,function(t,e){var i={};i.primary=e;var n,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;""===o.path&&"primary"!==ib(o)&&(i[ib(o)]=new Qv([],{}))}}catch(a){r.e(a)}finally{r.f()}return i}(n,new Qv(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some((function(i){return eb(t,e,i)}))}(t,i,n)?{segmentGroup:tb(new Qv(t.segments,function(t,e,i,n){var r,o={},a=_createForOfIteratorHelper(i);try{for(a.s();!(r=a.n()).done;){var s=r.value;eb(t,e,s)&&!n[ib(s)]&&(o[ib(s)]=new Qv([],{}))}}catch(u){a.e(u)}finally{a.f()}return Object.assign(Object.assign({},n),o)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,s,l,n),a=o.segmentGroup,u=o.slicedSegments;return 0===u.length&&a.hasChildren()?r.expandChildren(i,n,a).pipe(R((function(t){return new Qv(s,t)}))):0===n.length&&0===u.length?Ng(new Qv(s,{})):r.expandSegment(i,a,n,u,"primary",!0).pipe(R((function(t){return new Qv(s.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,i){var n=this;return e.children?Ng(new Rv(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ng(e._loadedConfig):function(t,e,i){var n,r=e.canLoad;return r&&0!==r.length?z(r).pipe(R((function(n){var r,o=t.get(n);if(function(t){return t&&Gm(t.canLoad)}(o))r=o.canLoad(e,i);else{if(!Gm(o))throw new Error("Invalid CanLoad guard");r=o(e,i)}return qv(r)}))).pipe(jy(),(n=function(t){return!0===t},function(t){return t.lift(new ev(n,void 0,t))})):Ng(!0)}(t.injector,e,i).pipe(U((function(i){return i?n.configLoader.load(t.injector,e).pipe(R((function(t){return e._loadedConfig=t,t}))):function(t){return new x((function(e){return e.error(Lv("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Ng(new Rv([],t))}},{key:"lineralizeSegments",value:function(t,e){for(var i=[],n=e.root;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Ng(i);if(n.numberOfChildren>1||!n.children.primary)return Qm(t.redirectTo);n=n.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,i,n){var r=this.createSegmentGroup(t,e.root,i,n);return new Zv(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var i={};return Yv(t,(function(t,n){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);i[n]=e[r]}else i[n]=t})),i}},{key:"createSegmentGroup",value:function(t,e,i,n){var r=this,o=this.createSegments(t,e.segments,i,n),a={};return Yv(e.children,(function(e,o){a[o]=r.createSegmentGroup(t,e,i,n)})),new Qv(o,a)}},{key:"createSegments",value:function(t,e,i,n){var r=this;return e.map((function(e){return e.path.startsWith(":")?r.findPosParam(t,e,n):r.findOrReturn(e,i)}))}},{key:"findPosParam",value:function(t,e,i){var n=i[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return n}},{key:"findOrReturn",value:function(t,e){var i,n=0,r=_createForOfIteratorHelper(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.path===t.path)return e.splice(n),o;n++}}catch(a){r.e(a)}finally{r.f()}return t}}]),t}();function Jm(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(e.matcher||Vv)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function tb(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Qv(t.segments.concat(e.segments),e.children)}return t}function eb(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function ib(t){return t.outlet||"primary"}var nb=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},rb=function t(e,i){_classCallCheck(this,t),this.component=e,this.route=i};function ob(t,e,i){var n=t._root;return function t(e,i,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=_m(i);return e.children.forEach((function(e){!function(e,i,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,s=i?i.value:null,u=n?n.getContext(e.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Jv(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Jv(t.url,e.url)||!Uv(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Em(t,e)||!Uv(t.queryParams,e.queryParams);case"paramsChange":default:return!Em(t,e)}}(s,a,a.routeConfig.runGuardsAndResolvers);if(l?o.canActivateChecks.push(new nb(r)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?t(e,i,u?u.children:null,r,o):t(e,i,n,r,o),l){var h=u&&u.outlet&&u.outlet.component||null;o.canDeactivateChecks.push(new rb(h,s))}}else s&&sb(i,u,o),o.canActivateChecks.push(new nb(r)),a.component?t(e,null,u?u.children:null,r,o):t(e,null,n,r,o)}(e,a[e.value.outlet],n,r.concat([e.value]),o),delete a[e.value.outlet]})),Yv(a,(function(t,e){return sb(t,n.getContext(e),o)})),o}(n,e?e._root:null,i,[n.value])}function ab(t,e,i){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var i=e.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function sb(t,e,i){var n=_m(t),r=t.value;Yv(n,(function(t,n){r.component?sb(t,e?e.children.getContext(n):null,i):sb(t,e,i)})),r.component&&e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new rb(e.outlet.component,r)):i.canDeactivateChecks.push(new rb(null,r))}var ub=Symbol("INITIAL_VALUE");function lb(){return nv((function(t){return(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=null,r=null;return T(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),Y(e,r).lift(new Ey(n))}).apply(void 0,_toConsumableArray(t.map((function(t){return t.pipe(Qy(1),function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[e.length-1];return T(n)?(e.pop(),function(t){return av(e,t,n)}):function(t){return av(e,t)}}(ub))})))).pipe(sv((function(t,e){var i=!1;return e.reduce((function(t,n,r){if(t!==ub)return t;if(n===ub&&(i=!0),!i){if(!1===n)return n;if(r===e.length-1||Km(n))return n}return t}),t)}),ub),Hg((function(t){return t!==ub})),R((function(t){return Km(t)?t:!0===t})),Qy(1))}))}function hb(t,e){return null!==t&&e&&e(new Ev(t)),Ng(!0)}function cb(t,e){return null!==t&&e&&e(new Dv(t)),Ng(!0)}function pb(t,e,i){var n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Ng(n.map((function(n){return My((function(){var r,o=ab(n,e,i);if(function(t){return t&&Gm(t.canActivate)}(o))r=qv(o.canActivate(e,t));else{if(!Gm(o))throw new Error("Invalid CanActivate guard");r=qv(o(e,t))}return r.pipe(tv())}))}))).pipe(lb()):Ng(!0)}function db(t,e,i){var n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return My((function(){return Ng(e.guards.map((function(r){var o,a=ab(r,e.node,i);if(function(t){return t&&Gm(t.canActivateChild)}(a))o=qv(a.canActivateChild(n,t));else{if(!Gm(a))throw new Error("Invalid CanActivateChild guard");o=qv(a(n,t))}return o.pipe(tv())}))).pipe(lb())}))}));return Ng(r).pipe(lb())}var fb=function t(){_classCallCheck(this,t)},gb=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.rootComponentType=e,this.config=i,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(t,[{key:"recognize",value:function(){try{var t=mb(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new km([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new bm(i,e),r=new Sm(this.url,n);return this.inheritParamsAndData(r._root),Ng(r)}catch(o){return new x((function(t){return t.error(o)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,i=t.value,n=Pm(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}},{key:"processChildren",value:function(t,e){var i,n=this,r=tm(e,(function(e,i){return n.processSegmentGroup(t,e,i)}));return i={},r.forEach((function(t){var e=i[t.value.outlet];if(e){var n=e.url.map((function(t){return t.toString()})).join("/"),r=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(n,"' and '").concat(r,"'."))}i[t.value.outlet]=t.value})),r.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)})),r}},{key:"processSegment",value:function(t,e,i,n){var r,o=_createForOfIteratorHelper(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;try{return this.processSegmentAgainstRoute(a,e,i,n)}catch(s){if(!(s instanceof fb))throw s}}}catch(u){o.e(u)}finally{o.f()}if(this.noLeftoversInUrl(e,i,n))return[];throw new fb}},{key:"noLeftoversInUrl",value:function(t,e,i){return 0===e.length&&!t.children[i]}},{key:"processSegmentAgainstRoute",value:function(t,e,i,n){if(t.redirectTo)throw new fb;if((t.outlet||"primary")!==n)throw new fb;var r,o=[],a=[];if("**"===t.path){var s=i.length>0?Kv(i).parameters:{};r=new km(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wb(t),n,t.component,t,yb(e),vb(e)+i.length,xb(t))}else{var u=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new fb;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(e.matcher||Vv)(i,t,e);if(!n)throw new fb;var r={};Yv(n.posParams,(function(t,e){r[e]=t.path}));var o=n.consumed.length>0?Object.assign(Object.assign({},r),n.consumed[n.consumed.length-1].parameters):r;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:o}}(e,t,i);o=u.consumedSegments,a=i.slice(u.lastChild),r=new km(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wb(t),n,t.component,t,yb(e),vb(e)+o.length,xb(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=mb(e,o,a,l,this.relativeLinkResolution),c=h.segmentGroup,p=h.slicedSegments;if(0===p.length&&c.hasChildren()){var d=this.processChildren(l,c);return[new bm(r,d)]}if(0===l.length&&0===p.length)return[new bm(r,[])];var f=this.processSegment(l,c,p,"primary");return[new bm(r,f)]}}]),t}();function yb(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function vb(t){for(var e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)i+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return i-1}function mb(t,e,i,n,r){if(i.length>0&&function(t,e,i){return i.some((function(i){return bb(t,e,i)&&"primary"!==_b(i)}))}(t,i,n)){var o=new Qv(e,function(t,e,i,n){var r={};r.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;var o,a=_createForOfIteratorHelper(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==_b(s)){var u=new Qv([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,r[_b(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return r}(t,e,n,new Qv(i,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some((function(i){return bb(t,e,i)}))}(t,i,n)){var a=new Qv(t.segments,function(t,e,i,n,r,o){var a,s={},u=_createForOfIteratorHelper(n);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(bb(t,i,l)&&!r[_b(l)]){var h=new Qv([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[_b(l)]=h}}}catch(c){u.e(c)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(t,e,i,n,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}var s=new Qv(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function bb(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function _b(t){return t.outlet||"primary"}function wb(t){return t.data||{}}function xb(t){return t.resolve||{}}function Cb(t,e,i,n){var r=ab(t,e,n);return r.resolve?qv(r.resolve(e,i)):qv(r(e,i))}function Pb(t){return function(e){return e.pipe(nv((function(e){var i=t(e);return i?z(i).pipe(R((function(){return e}))):z([e])})))}}var kb=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}(),Sb=new Qt("ROUTES"),Ob=function(){function t(e,i,n,r){_classCallCheck(this,t),this.loader=e,this.compiler=i,this.onLoadStartListener=n,this.onLoadEndListener=r}return _createClass(t,[{key:"load",value:function(t,e){var i=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(R((function(n){i.onLoadEndListener&&i.onLoadEndListener(e);var r=n.create(t);return new Rv(Gv(r.injector.get(Sb)).map(zv),r)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?z(this.loader.load(t)):qv(t()).pipe(U((function(t){return t instanceof fe?Ng(t):z(e.compiler.compileModuleAsync(t))})))}}]),t}(),Db=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function Tb(t){throw t}function Eb(t,e,i){return e.parse("/")}function Ib(t,e){return Ng(null)}var Ab=function(){function t(e,i,n,r,o,a,s,u){var l=this;_classCallCheck(this,t),this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=n,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new O,this.errorHandler=Tb,this.malformedUriErrorHandler=Eb,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ib,afterPreactivation:Ib},this.urlHandlingStrategy=new Db,this.routeReuseStrategy=new kb,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(de),this.console=o.get(fp);var h=o.get(Tp);this.isNgZoneEnabled=h instanceof Tp,this.resetConfig(u),this.currentUrlTree=new Zv(new Qv([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ob(a,s,(function(t){return l.triggerEvent(new Sv(t))}),(function(t){return l.triggerEvent(new Ov(t))})),this.routerState=xm(this.currentUrlTree,this.rootComponentType),this.transitions=new Oy({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(t,[{key:"setupNavigations",value:function(t){var e=this,i=this.events;return t.pipe(Hg((function(t){return 0!==t.id})),R((function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),nv((function(t){var n,r,o,a,s=!1,u=!1;return Ng(t).pipe(cv((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),nv((function(t){var n,r,o,a,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ng(t).pipe(nv((function(t){var n=e.transitions.getValue();return i.next(new vv(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==e.transitions.getValue()?Ay:[t]})),nv((function(t){return Promise.resolve(t)})),(n=e.ngModule.injector,r=e.configLoader,o=e.urlSerializer,a=e.config,function(t){return t.pipe(nv((function(t){return function(t,e,i,n,r){return new $m(t,e,i,n,r).apply()}(n,r,o,t.extractedUrl,a).pipe(R((function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})})))})))}),cv((function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,e,i,n,r){return function(o){return o.pipe(U((function(o){return function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new gb(t,e,i,n,r,o).recognize()}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,r).pipe(R((function(t){return Object.assign(Object.assign({},o),{targetSnapshot:t})})))})))}}(e.rootComponentType,e.config,(function(t){return e.serializeUrl(t)}),e.paramsInheritanceStrategy,e.relativeLinkResolution),cv((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),cv((function(t){var n=new wv(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);i.next(n)})));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.id,l=t.extractedUrl,h=t.source,c=t.restoredState,p=t.extras,d=new vv(u,e.serializeUrl(l),h,c);i.next(d);var f=xm(l,e.rootComponentType).snapshot;return Ng(Object.assign(Object.assign({},t),{targetSnapshot:f,urlAfterRedirects:l,extras:Object.assign(Object.assign({},p),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Ay})),Pb((function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.beforePreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),cv((function(t){var i=new xv(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})),R((function(t){return Object.assign(Object.assign({},t),{guards:ob(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})})),function(t,e){return function(i){return i.pipe(U((function(i){var n=i.targetSnapshot,r=i.currentSnapshot,o=i.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Ng(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return z(t).pipe(U((function(t){return function(t,e,i,n,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Ng(o.map((function(o){var a,s=ab(o,e,r);if(function(t){return t&&Gm(t.canDeactivate)}(s))a=qv(s.canDeactivate(t,e,i,n));else{if(!Gm(s))throw new Error("Invalid CanDeactivate guard");a=qv(s(t,e,i,n))}return a.pipe(tv())}))).pipe(lb()):Ng(!0)}(t.component,t.route,i,e,n)})),tv((function(t){return!0!==t}),!0))}(s,n,r,t).pipe(U((function(i){return i&&"boolean"==typeof i?function(t,e,i,n){return z(e).pipe(Bg((function(e){return z([cb(e.route.parent,n),hb(e.route,n),db(t,e.path,i),pb(t,e.route,i)]).pipe(jy(),tv((function(t){return!0!==t}),!0))})),tv((function(t){return!0!==t}),!0))}(n,a,t,e):Ng(i)})),R((function(t){return Object.assign(Object.assign({},i),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),cv((function(t){if(Km(t.guardsResult)){var i=Lv('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw i.url=t.guardsResult,i}})),cv((function(t){var i=new Cv(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(i)})),Hg((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var n=new bv(t.id,e.serializeUrl(t.extractedUrl),"");return i.next(n),t.resolve(!1),!1}return!0})),Pb((function(t){if(t.guards.canActivateChecks.length)return Ng(t).pipe(cv((function(t){var i=new Pv(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})),(i=e.paramsInheritanceStrategy,n=e.ngModule.injector,function(t){return t.pipe(U((function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;return r.length?z(r).pipe(Bg((function(t){return function(t,e,i,n){return function(t,e,i,n){var r=Object.keys(t);if(0===r.length)return Ng({});if(1===r.length){var o=r[0];return Cb(t[o],e,i,n).pipe(R((function(t){return _defineProperty({},o,t)})))}var a={};return z(r).pipe(U((function(r){return Cb(t[r],e,i,n).pipe(R((function(t){return a[r]=t,t})))}))).pipe(Yy(),R((function(){return a})))}(t._resolve,t,e,n).pipe(R((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Pm(t,i).resolve),null})))}(t.route,e,i,n)})),function(t,e){return arguments.length>=2?function(i){return _(sv(t,e),Vy(1),Wy(e))(i)}:function(e){return _(sv((function(e,i,n){return t(e,i,n+1)})),Vy(1))(e)}}((function(t,e){return t})),R((function(e){return t}))):Ng(t)})))}),cv((function(t){var i=new kv(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})));var i,n})),Pb((function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.afterPreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),R((function(t){var i=function(t,e,i){var n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=i.value;var o=function(e,i,n){return i.children.map((function(i){var r,o=_createForOfIteratorHelper(n.children);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(e.shouldReuseRoute(a.value.snapshot,i.value))return t(e,i,a)}}catch(s){o.e(s)}finally{o.f()}return t(e,i)}))}(e,i,n);return new bm(r,o)}var a=e.retrieve(i.value);if(a){var s=a.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)t(e.children[n],i.children[n])}(i,s),s}var u,l=(u=i.value,new Cm(new Oy(u.url),new Oy(u.params),new Oy(u.queryParams),new Oy(u.fragment),new Oy(u.data),u.outlet,u.component,u)),h=i.children.map((function(i){return t(e,i)}));return new bm(l,h)}(t,e._root,i?i._root:void 0);return new wm(n,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:i})})),cv((function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),(r=e.rootContexts,o=e.routeReuseStrategy,a=function(t){return e.triggerEvent(t)},R((function(t){return new Um(o,t.targetRouterState,t.currentRouterState,a).activate(r),t}))),cv({next:function(){s=!0},complete:function(){s=!0}}),(n=function(){if(!s&&!u){e.resetUrlToCurrentUrlTree();var n=new bv(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId));i.next(n),t.resolve(!1)}e.currentNavigation=null},function(t){return t.lift(new fv(n))}),qy((function(n){if(u=!0,(s=n)&&s.ngNavigationCancelingError){var r=Km(n.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new bv(t.id,e.serializeUrl(t.extractedUrl),n.message);i.next(o),r?setTimeout((function(){var i=e.urlHandlingStrategy.merge(n.url,e.rawUrlTree),r={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy};return e.scheduleNavigation(i,"imperative",null,r,{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new _v(t.id,e.serializeUrl(t.extractedUrl),n);i.next(a);try{t.resolve(e.errorHandler(n))}catch(l){t.reject(l)}}var s;return Ay})))})))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(e){var i=t.parseUrl(e.url),n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout((function(){t.scheduleNavigation(i,n,r,{replaceUrl:!0})}),0)})))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Nv(t),this.config=t.map(zv),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.relativeTo,n=e.queryParams,r=e.fragment,o=e.preserveQueryParams,a=e.queryParamsHandling,s=e.preserveFragment;Wn()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=i||this.routerState.root,l=s?this.currentUrlTree.fragment:r,h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=n||null}else h=o?this.currentUrlTree.queryParams:n||null;return null!==h&&(h=this.removeEmptyProps(h)),Im(u,this.currentUrlTree,t,h,l)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Wn()&&this.isNgZoneEnabled&&!Tp.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var i=Km(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e<t.length;e++){var i=t[e];if(null==i)throw new Error("The requested path contains ".concat(i," segment at index ").concat(e))}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(i){e=this.malformedUriErrorHandler(i,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){if(Km(t))return Xv(this.currentUrlTree,t,e);var i=this.parseUrl(t);return Xv(this.currentUrlTree,i,e)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce((function(e,i){var n=t[i];return null!=n&&(e[i]=n),e}),{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new mv(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(t,e,i,n,r){var o,a,s,u=this.getTransition();if(u&&"imperative"!==e&&"imperative"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(u&&"hashchange"==e&&"popstate"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(u&&"popstate"==e&&"hashchange"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise((function(t,e){o=t,a=e}));var l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(t){return Promise.reject(t)}))}},{key:"setBrowserUrl",value:function(t,e,i,n){var r=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(r,"",Object.assign(Object.assign({},n),{navigationId:i}))}},{key:"resetStateAndUrl",value:function(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),t}();Ab.\u0275fac=function(t){ou()},Ab.\u0275dir=Ve({type:Ab});var Fb=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.router=e,this.route=i,this.commands=[],null==n&&r.setAttribute(o.nativeElement,"tabindex","0")}return _createClass(t,[{key:"onClick",value:function(){var t={skipLocationChange:jb(this.skipLocationChange),replaceUrl:jb(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}},{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"preserveQueryParams",set:function(t){Wn()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:jb(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:jb(this.preserveFragment)})}}]),t}();Fb.\u0275fac=function(t){return new(t||Fb)(nu(Ab),nu(Cm),ru("tabindex"),nu(kl),nu(wl))},Fb.\u0275dir=Ve({type:Fb,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&fu("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),Fb.ctorParameters=function(){return[{type:Ab},{type:Cm},{type:String,decorators:[{type:gt,args:["tabindex"]}]},{type:kl},{type:wl}]},Fb.propDecorators={queryParams:[{type:$c}],fragment:[{type:$c}],queryParamsHandling:[{type:$c}],preserveFragment:[{type:$c}],skipLocationChange:[{type:$c}],replaceUrl:[{type:$c}],state:[{type:$c}],routerLink:[{type:$c}],preserveQueryParams:[{type:$c}],onClick:[{type:ep,args:["click"]}]};var Mb=function(){function t(e,i,n){var r=this;_classCallCheck(this,t),this.router=e,this.route=i,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe((function(t){t instanceof mv&&r.updateTargetUrlAndHref()}))}return _createClass(t,[{key:"ngOnChanges",value:function(t){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(t,e,i,n){if(0!==t||e||i||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:jb(this.skipLocationChange),replaceUrl:jb(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"preserveQueryParams",set:function(t){Wn()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:jb(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:jb(this.preserveFragment)})}}]),t}();function jb(t){return""===t||!!t}Mb.\u0275fac=function(t){return new(t||Mb)(nu(Ab),nu(Cm),nu(yd))},Mb.\u0275dir=Ve({type:Mb,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&fu("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(Qu("href",e.href,Cr),Ys("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[sl]}),Mb.ctorParameters=function(){return[{type:Ab},{type:Cm},{type:yd}]},Mb.propDecorators={target:[{type:tp,args:["attr.target"]},{type:$c}],queryParams:[{type:$c}],fragment:[{type:$c}],queryParamsHandling:[{type:$c}],preserveFragment:[{type:$c}],skipLocationChange:[{type:$c}],replaceUrl:[{type:$c}],state:[{type:$c}],href:[{type:tp}],routerLink:[{type:$c}],preserveQueryParams:[{type:$c}],onClick:[{type:ep,args:["click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]]}]};var Lb=function(){function t(e,i,n,r,o){var a=this;_classCallCheck(this,t),this.router=e,this.element=i,this.renderer=n,this.link=r,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe((function(t){t instanceof mv&&a.update()}))}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this.links.changes.subscribe((function(e){return t.update()})),this.linksWithHrefs.changes.subscribe((function(e){return t.update()})),this.update()}},{key:"ngOnChanges",value:function(t){this.update()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"update",value:function(){var t=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.classes.forEach((function(i){e?t.renderer.addClass(t.element.nativeElement,i):t.renderer.removeClass(t.element.nativeElement,i)})))}))}},{key:"isLinkActive",value:function(t){var e=this;return function(i){return t.isActive(i.urlTree,e.routerLinkActiveOptions.exact)}}},{key:"hasActiveLinks",value:function(){var t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}},{key:"routerLinkActive",set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter((function(t){return!!t}))}}]),t}();Lb.\u0275fac=function(t){return new(t||Lb)(nu(Ab),nu(wl),nu(kl),nu(Fb,8),nu(Mb,8))},Lb.\u0275dir=Ve({type:Lb,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(_c(i,Fb,!0),_c(i,Mb,!0)),2&t&&(mc(n=xc())&&(e.links=n),mc(n=xc())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[sl]}),Lb.ctorParameters=function(){return[{type:Ab},{type:wl},{type:kl},{type:Fb,decorators:[{type:ct}]},{type:Mb,decorators:[{type:ct}]}]},Lb.propDecorators={links:[{type:Ts,args:[Fb,{descendants:!0}]}],linksWithHrefs:[{type:Ts,args:[Mb,{descendants:!0}]}],routerLinkActiveOptions:[{type:$c}],routerLinkActive:[{type:$c}]};var Vb=function t(){_classCallCheck(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new Rb,this.attachRef=null},Rb=function(){function t(){_classCallCheck(this,t),this.contexts=new Map}return _createClass(t,[{key:"onChildOutletCreated",value:function(t,e){var i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new Vb,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),Nb=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.parentContexts=e,this.location=i,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new sc,this.deactivateEvents=new sc,this.name=r||"primary",e.onChildOutletCreated(this.name,this)}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t}},{key:"attach",value:function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}},{key:"deactivate",value:function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}},{key:"activateWith",value:function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var i=t._futureSnapshot.routeConfig.component,n=(e=e||this.resolver).resolveComponentFactory(i),r=this.parentContexts.getOrCreateContext(this.name).children,o=new Bb(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}}]),t}();Nb.\u0275fac=function(t){return new(t||Nb)(nu(Rb),nu(ql),nu(_l),ru("name"),nu(Oa))},Nb.\u0275dir=Ve({type:Nb,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),Nb.ctorParameters=function(){return[{type:Rb},{type:ql},{type:_l},{type:String,decorators:[{type:gt,args:["name"]}]},{type:Oa}]},Nb.propDecorators={activateEvents:[{type:Jc,args:["activate"]}],deactivateEvents:[{type:Jc,args:["deactivate"]}]};var Bb=function(){function t(e,i,n){_classCallCheck(this,t),this.route=e,this.childContexts=i,this.parent=n}return _createClass(t,[{key:"get",value:function(t,e){return t===Cm?this.route:t===Rb?this.childContexts:this.parent.get(t,e)}}]),t}(),Hb=function t(){_classCallCheck(this,t)},zb=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return Ng(null)}}]),t}(),Ub=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=new Ob(i,n,(function(t){return e.triggerEvent(new Sv(t))}),(function(t){return e.triggerEvent(new Ov(t))}))}return _createClass(t,[{key:"setUpPreloading",value:function(){var t=this;this.subscription=this.router.events.pipe(Hg((function(t){return t instanceof mv})),Bg((function(){return t.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var t=this.injector.get(de);return this.processRoutes(t,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"processRoutes",value:function(t,e){var i,n=[],r=_createForOfIteratorHelper(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;n.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?n.push(this.preloadConfig(t,o)):o.children&&n.push(this.processRoutes(t,o.children))}}catch(s){r.e(s)}finally{r.f()}return z(n).pipe(K(),R((function(t){})))}},{key:"preloadConfig",value:function(t,e){var i=this;return this.preloadingStrategy.preload(e,(function(){return i.loader.load(t.injector,e).pipe(U((function(t){return e._loadedConfig=t,i.processRoutes(t.module,t.routes)})))}))}}]),t}();Ub.\u0275fac=function(t){return new(t||Ub)(ae(Ab),ae(Zp),ae(kp),ae(ss),ae(Hb))},Ub.\u0275prov=mt({token:Ub,factory:Ub.\u0275fac}),Ub.ctorParameters=function(){return[{type:Ab},{type:Zp},{type:kp},{type:ss},{type:Hb}]};var Wb=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.router=e,this.viewportScroller=i,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return _createClass(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof vv?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof mv&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof Av&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new Av(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();Wb.\u0275fac=function(t){ou()},Wb.\u0275dir=Ve({type:Wb});var Gb=new Qt("ROUTER_CONFIGURATION"),Kb=new Qt("ROUTER_FORROOT_GUARD"),Yb=[_d,{provide:em,useClass:im},{provide:Ab,useFactory:function(t,e,i,n,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,h=new Ab(null,t,e,i,n,r,o,Gv(a));if(u&&(h.urlHandlingStrategy=u),l&&(h.routeReuseStrategy=l),s.errorHandler&&(h.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(h.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var c=sd();h.events.subscribe((function(t){c.logGroup("Router Event: ".concat(t.constructor.name)),c.log(t.toString()),c.log(t),c.logGroupEnd()}))}return s.onSameUrlNavigation&&(h.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(h.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(h.relativeLinkResolution=s.relativeLinkResolution),h},deps:[em,Rb,_d,ss,Zp,kp,Sb,Gb,[function(){return function t(){_classCallCheck(this,t)}}(),new ct],[function(){return function t(){_classCallCheck(this,t)}}(),new ct]]},Rb,{provide:Cm,useFactory:function(t){return t.routerState.root},deps:[Ab]},{provide:Zp,useClass:Jp},Ub,zb,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe(qy((function(){return Ng(null)})))}}]),t}(),{provide:Gb,useValue:{enableTracing:!1}}];function qb(){return new Up("Router",Ab)}var Xb=function(){function t(e,i){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,i){return{ngModule:t,providers:[Yb,Jb(e),{provide:Kb,useFactory:$b,deps:[[Ab,new ct,new dt]]},{provide:Gb,useValue:i||{}},{provide:yd,useFactory:Qb,deps:[ld,[new ht(vd),new ct],Gb]},{provide:Wb,useFactory:Zb,deps:[Ab,Zf,Gb]},{provide:Hb,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:zb},{provide:Up,multi:!0,useFactory:qb},[t_,{provide:ap,multi:!0,useFactory:e_,deps:[t_]},{provide:n_,useFactory:i_,deps:[t_]},{provide:dp,multi:!0,useExisting:n_}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Jb(e)]}}}]),t}();function Zb(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Wb(t,e,i)}function Qb(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.useHash?new bd(t,e):new md(t,e)}function $b(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Jb(t){return[{provide:Os,multi:!0,useValue:t},{provide:Sb,multi:!0,useValue:t}]}Xb.\u0275mod=je({type:Xb}),Xb.\u0275inj=bt({factory:function(t){return new(t||Xb)(ae(Kb,8),ae(Ab,8))}}),Xb.ctorParameters=function(){return[{type:void 0,decorators:[{type:ct},{type:ht,args:[Kb]}]},{type:Ab,decorators:[{type:ct}]}]};var t_=function(){function t(e){_classCallCheck(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new O}return _createClass(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(hd,Promise.resolve(null)).then((function(){var e=null,i=new Promise((function(t){return e=t})),n=t.injector.get(Ab),r=t.injector.get(Gb);if(t.isLegacyDisabled(r)||t.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(r.initialNavigation,"'"));n.hooks.afterPreactivation=function(){return t.initNavigation?Ng(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()}return i}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Gb),i=this.injector.get(Ub),n=this.injector.get(Wb),r=this.injector.get(Ab),o=this.injector.get(qp);t===o.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}},{key:"isLegacyDisabled",value:function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}]),t}();function e_(t){return t.appInitializer.bind(t)}function i_(t){return t.bootstrapListener.bind(t)}t_.\u0275fac=function(t){return new(t||t_)(ae(ss))},t_.\u0275prov=mt({token:t_,factory:t_.\u0275fac}),t_.ctorParameters=function(){return[{type:ss}]};var n_=new Qt("Router Initializer");new Dl("9.1.9");var r_=function t(){_classCallCheck(this,t)};r_.\u0275mod=je({type:r_}),r_.\u0275inj=bt({factory:function(t){return new(t||r_)},imports:[[Xb.forRoot([])],Xb]});var o_=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){this.title="Australian Game of Thrones",this.subtitle="A Cluster and Cloud Computing (COMP90024) Project",this.uni="University of Melbourne"}}]),t}();o_.\u0275fac=function(t){return new(t||o_)},o_.\u0275cmp=Ie({type:o_,selectors:[["app-jumbotron"]],decls:10,vars:2,consts:[[1,"jumbotron"],[1,"display-4"],[1,"lead"],[1,"my-4"],["href","#credits","role","button",1,"btn","btn-primary","btn-lg"]],template:function(t,e){1&t&&(su(0,"div",0),su(1,"h1",1),qu(2),uu(),su(3,"p",2),qu(4),uu(),lu(5,"hr",3),su(6,"p"),qu(7,"University of Melbourne"),uu(),su(8,"a",4),qu(9,"Credits"),uu(),uu()),2&t&&(Kr(2),Xu(e.title),Kr(2),Xu(e.subtitle))},styles:[""]});var a_=function(t,e){return(a_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function s_(t,e){function i(){this.constructor=t}a_(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function u_(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))}function l_(t,e){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h_(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c_(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,o=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){r={error:s}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}function p_(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c_(arguments[e]));return t}var d_=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value/100},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"percent",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this._value+"%"},t}();function f_(t){return new d_(t)}function g_(t){return Number(t)!==t}function y_(t){return{}.toString.call(t)}function v_(t){if("string"==typeof t)return t;if("number"==typeof t)return""+t;throw new Error("Expected a string or number but got "+y_(t))}function m_(t){return!!t}function b_(t){if(w_(t)&&!S_(t)){var e=Number(t);return g_(e)&&k_(t)&&""!=t?b_(t.replace(/[^0-9.\-]+/g,"")):e}return t}function __(t){if(w_(t)&&!k_(t)){if(S_(t))return v_(t);if(O_(t))return t.toString()}return t}function w_(t){return null!=t}function x_(t){if(w_(t))return t;throw new Error("Value doesn't exist")}function C_(t,e){return w_(t)?t:e}function P_(t){return"[object Date]"===y_(t)}function k_(t){return"string"==typeof t}function S_(t){return"number"==typeof t&&Number(t)==t}function O_(t){return"object"==typeof t&&null!=t}function D_(t){return Array.isArray(t)}var T_=Math.PI,E_=T_/2,I_=T_/180,A_=180/T_;function F_(t,e,i){return w_(t)?L_(t=b_(t),e,i):t}function M_(t,e,i){if(!S_(e)||e<=0){var n=Math.round(t);return i&&n-t==.5&&n--,n}var r=Math.pow(10,e);return Math.round(t*r)/r}function j_(t,e){if(!S_(e)||e<=0)return Math.ceil(t);var i=Math.pow(10,e);return Math.ceil(t*i)/i}function L_(t,e,i){if(S_(e)){if(S_(i)&&i<e){var n=i;i=e,e=n}t<e&&(t=e)}return S_(i)&&t>i&&(t=i),t}function V_(t){return M_(Math.sin(I_*t),10)}function R_(t){return M_(Math.cos(I_*t),10)}function N_(t,e){return S_(t)?S_(e)&&e>t?e:t:S_(e)?e:null}function B_(t,e){return S_(t)?S_(e)&&e<t?e:t:S_(e)?e:null}function H_(t,e){var i=x_(t.start),n=x_(e.start),r=x_(t.end),o=x_(e.end);return Math.max(i,n)<=Math.min(r,o)}function z_(t,e){return t?(e||(e={x:0,y:0}),Math.sqrt(Math.pow(Math.abs(t.x-e.x),2)+Math.pow(Math.abs(t.y-e.y),2))):0}function U_(t,e,i,n,r){if(!t)return 0;e||(e={x:0,y:0});var o=0,a=t;if(r>0)for(var s=0;s<=r;s++){var u=X_(t,e,i,n,s/r);o+=z_(a,u),a=u}return o}function W_(t,e,i,n){var r=z_(e,n),o=z_(t,i);return Math.abs(o/r)}function G_(t,e,i){return S_(i)||(i=.5),{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function K_(t,e){e||(e={x:2*t.x,y:2*t.y});var i=e.x-t.x,n=e.y-t.y,r=Math.atan2(n,i)*A_;return r<0&&(r+=360),J_(r)}function Y_(t){if(t){var e=t.length;if(0!==e){for(var i,n=void 0,r=void 0,o=void 0,a=0;a<e;a++){var s=t[a];(!S_(r)||s.x>r)&&(r=s.x),(!S_(n)||s.x<n)&&(n=s.x),(!S_(i)||s.y<i)&&(i=s.y),(!S_(o)||s.y>o)&&(o=s.y)}return{x:n,y:i,width:r-n,height:o-i}}}return{x:0,y:0,width:0,height:0}}function q_(t){var e=t.length;if(0!==e){for(var i=void 0,n=void 0,r=void 0,o=void 0,a=0;a<e;a++){var s=t[a];i=B_(s.x,i),n=B_(s.y,n),r=N_(s.x+s.width,r),o=N_(s.y+s.height,o)}return{x:i,y:n,width:r-i,height:o-n}}}function X_(t,e,i,n,r){var o={x:0,y:0},a=1-r,s=a*a,u=s*a;return o.x=t.x*u+3*i.x*s*r+3*n.x*a*r*r+e.x*r*r*r,o.y=t.y*u+3*i.y*s*r+3*n.y*a*r*r+e.y*r*r*r,o}function Z_(t,e,i,n,r,o){return r=$_(r),o=$_(o),{x:(-t.x+e.x/r+i.x)*r,y:(-t.y+e.y/o+i.y)*o}}function Q_(t,e,i,n,r,o){return r=$_(r),o=$_(o),{x:(e.x+i.x/r-n.x)*r,y:(e.y+i.y/o-n.y)*o}}function $_(t){return 1-t+1e-5}function J_(t){return 360==t?360:t%360}function tw(t,e,i){var n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE,a=-Number.MAX_VALUE,s=[];S_(i)||(i=1),s.push(ew(i,t)),s.push(ew(i,e));for(var u=Math.min(90*Math.floor(t/90),90*Math.floor(e/90)),l=Math.max(90*Math.ceil(t/90),90*Math.ceil(e/90)),h=u;h<=l;h+=90)h>=t&&h<=e&&s.push(ew(i,h));for(var c=0;c<s.length;c++){var p=s[c];p.x<n&&(n=p.x),p.y<r&&(r=p.y),p.x>o&&(o=p.x),p.y>a&&(a=p.y)}return{x:n,y:r,width:o-n,height:a-r}}function ew(t,e){return{x:t*R_(e),y:t*V_(e)}}function iw(t,e){for(var i=t.length,n=0;n<i;++n)if(t[n]===e)return n;return-1}function nw(t,e){for(var i=t.length,n=0;n<i;++n)if(e(t[n]))return!0;return!1}function rw(t,e){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=e(t[r],r);return n}function ow(t,e){for(var i=t.length,n=0;n<i;++n)e(t[n],n)}function aw(t,e){for(var i=t.length,n=0;n<i&&e(t[n],n);++n);}function sw(t,e){var i=!1,n=t.indexOf(e);if(-1!==n){i=!0,t.splice(n,1);for(var r=t.length;n<r;)t[n]===e?(t.splice(n,1),--r):++n}return i}function uw(t,e,i){var n=iw(t,e);-1!==n&&dw(t,n),null==i?t.push(e):pw(t,i,e)}function lw(t,e,i){S_(i)?0===i?t.unshift(e):t.splice(i,0,e):t.push(e)}function hw(t){return Array.isArray(t)?t:[t]}function cw(t){for(var e=t.length,i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}function pw(t,e,i){t.splice(e,0,i)}function dw(t,e){t.splice(e,1)}function fw(t,e,i){for(var n=0,r=t.length,o=!1;n<r;){var a=n+r>>1,s=e(i,t[a]);s<0?r=a:0===s?(o=!0,n=a+1):n=a+1}return{found:o,index:o?n-1:n}}function gw(t,e){for(var i=t.length,n=0;n<i;++n)if(e(t[n],n))return n;return-1}function yw(t,e){var i=gw(t,e);if(-1!==i)return t[i]}function vw(t,e){for(var i=t.length,n=0;n<i;)e(t[n])?++n:(t.splice(n,1),--i)}var mw=function(){function t(t){this._disposed=!1,this._dispose=t}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._dispose())},t}(),bw=function(t){function e(e){return t.call(this,(function(){ow(e,(function(t){t.dispose()}))}))||this}return s_(e,t),e}(mw),_w=function(t){function e(){var e=t.call(this,(function(){w_(e._disposer)&&(e._disposer.dispose(),e._disposer=void 0)}))||this;return e}return s_(e,t),e.prototype.get=function(){return this._value},e.prototype.set=function(t,e){w_(this._disposer)&&this._disposer.dispose(),this._disposer=e,this._value=t},e.prototype.reset=function(){this.set(void 0,void 0)},e}(mw),ww=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._counter=0,e}return s_(e,t),e.prototype.increment=function(){var t=this;return++this._counter,new mw((function(){--t._counter,0===t._counter&&t.dispose()}))},e}(mw),xw=!1,Cw=[],Pw=[],kw=[],Sw=[],Ow="function"==typeof requestAnimationFrame?function(t){requestAnimationFrame(t)}:function(t){setTimeout(t,1e3/60)};function Dw(){for(var t=Date.now(),e=Cw.length,i=0;i<e;++i)Cw[i](t);for(function(t,e){for(var i=t.length,n=e;n<i;++n)t[n-e]=t[n];t.length=i-e}(Cw,e),i=0;i<Pw.length;++i)Pw[i](t);for(Pw.length=0,i=0;i<kw.length;++i)kw[i](t);kw.length=0,0===Cw.length&&0===Pw.length?xw=!1:Ow(Dw)}function Tw(){xw||(xw=!0,Ow(Dw))}function Ew(t){kw.push(t),Tw()}var Iw=function(){function t(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{ow(t,(function(t){t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}},t.prototype.hasListeners=function(){return 0!==this._listeners.length},t.prototype.hasListenersByType=function(t){return nw(this._listeners,(function(e){return(null===e.type||e.type===t)&&!e.killed}))},t.prototype.enable=function(){this._enabled=!0},t.prototype.disable=function(){this._enabled=!1},t.prototype.enableType=function(t){delete this._disabled[t]},t.prototype.disableType=function(t,e){void 0===e&&(e=1/0),this._disabled[t]=e},t.prototype._removeListener=function(t){if(0===this._iterating){var e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)},t.prototype._removeExistingListener=function(t,e,i,n){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((function(r){r.once!==t||r.type!==e||null!=i&&r.callback!==i||r.context!==n||r.disposer.dispose()}))},t.prototype.isEnabled=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&null==this._disabled[t]},t.prototype.has=function(t,e,i){return-1!==gw(this._listeners,(function(n){return!0!==n.once&&n.type===t&&(null==e||n.callback===e)&&n.context===i}))},t.prototype._shouldDispatch=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");var e=this._disabled[t];return S_(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled},t.prototype._eachListener=function(t){var e=this;++this._iterating;try{ow(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(ow(this._killed,(function(t){e._removeListener(t)})),this._killed.length=0)}},t.prototype.dispatchImmediately=function(t,e){this._shouldDispatch(t)&&this._eachListener((function(i){i.killed||null!==i.type&&i.type!==t||i.dispatch(t,e)}))},t.prototype.dispatch=function(t,e){this._shouldDispatch(t)&&this._eachListener((function(i){var n;i.killed||null!==i.type&&i.type!==t||(n=function(){i.killed||i.dispatch(t,e)},Sw.push(n))}))},t.prototype._on=function(t,e,i,n,r,o){var a=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);var s={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new mw((function(){s.killed=!0,a._removeListener(s)}))};return this._listeners.push(s),s},t.prototype.onAll=function(t,e,i){return void 0===i&&(i=!0),this._on(!1,null,t,e,i,(function(i,n){return t.call(e,i,n)})).disposer},t.prototype.on=function(t,e,i,n){return void 0===n&&(n=!0),this._on(!1,t,e,i,n,(function(t,n){return e.call(i,n)})).disposer},t.prototype.once=function(t,e,i,n){void 0===n&&(n=!0);var r=this._on(!0,t,e,i,n,(function(t,n){r.disposer.dispose(),e.call(i,n)}));return r.disposer},t.prototype.off=function(t,e,i){this._removeExistingListener(!1,t,e,i)},t.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");ow(t._listeners,(function(t){!t.killed&&t.shouldClone&&(null===t.type?e.onAll(t.callback,t.context):t.once?e.once(t.type,t.callback,t.context):e.on(t.type,t.callback,t.context))}))},t}(),Aw=function(t){function e(e){var i=t.call(this)||this;return i.target=e,i}return s_(e,t),e.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");ow(t._listeners,(function(i){i.context!==t.target&&!i.killed&&i.shouldClone&&(null===i.type?e.onAll(i.callback,i.context):i.once?e.once(i.type,i.callback,i.context):e.on(i.type,i.callback,i.context))}))},e}(Iw);function Fw(t){var e=[];for(var i in t)Mw(t,i)&&e.push(i);return e}function Mw(t,e){return{}.hasOwnProperty.call(t,e)}function jw(t,e){for(var i in t)if(Mw(t,i)&&!e(i,t[i]))break}function Lw(t,e){jw(t,(function(t,i){return e(t,i),!0}))}function Vw(t,e,i){ow(function(t,e){return Fw(t).sort(e)}(t,i),(function(i){e(i,t[i])}))}function Rw(t,e){return Object.assign({},t,e)}function Nw(t,e,i){ow(i,(function(i){w_(t[i])&&(e[i]=t[i])}))}function Bw(t,e){Nw(t,e,Fw(t))}function Hw(t){return function(e){for(var i=t.length,n=0;n<i&&e(t[n]);++n);}}function zw(t){var e=[];return t((function(t){return e.push(t),!0})),e}function Uw(t,e){t(e)}function Ww(t,e){t((function(t){return e(t),!0}))}function Gw(t,e){return function(i){return t((function(t){return i(e(t))}))}}function Kw(t){return function(e){var i=0;t((function(t){return e([i++,t])}))}}function Yw(t,e){var i;return t((function(t){return!e(t)||(i=t,!1)})),i}function qw(t,e){var i=!1;return t((function(t){return!e(t)||(i=!0,!1)})),i}var Xw=function(){function t(t,e){this.createNewItems=!1,this.list=t,this._create=e,this.reset()}return t.prototype.reset=function(){this._listCopy=zw(this.list.iterator())},t.prototype.clear=function(){this._listCopy.length=0},t.prototype.getFirst=function(){return this.returnItem(0)},t.prototype.getLast=function(){return this.returnItem(this._listCopy.length-1)},t.prototype.find=function(t){var e=gw(this._listCopy,t);if(-1!==e){var i=this._listCopy[e];return sw(this._listCopy,i),i}return this.getLast()},t.prototype.removeItem=function(t){return sw(this._listCopy,t)},t.prototype.returnItem=function(t){if(t>=0&&t<this._listCopy.length){var e=this._listCopy[t];return sw(this._listCopy,e),e}if(this.createNewItems)return this._create()},t.prototype.iterator=function(){return Hw(this._listCopy)},t}();function Zw(t,e){return new Array(e+1).join(t)}var Qw=function(t){function e(e){var i=e.events.on("removed",(function(t){t.oldValue.dispose()}),void 0,!1);return t.call(this,(function(){i.dispose(),Ww(e.iterator(),(function(t){t[1].dispose()}))}))||this}return s_(e,t),e}(mw),$w=function(){function t(){this.events=new Iw,this._dictionary={}}return t.prototype.hasKey=function(t){return Mw(this._dictionary,t)},t.prototype.getKey=function(t){return this._dictionary[t]},t.prototype.insertKey=function(t,e){if(Mw(this._dictionary,t))throw new Error("Key "+t+" already exists in dictionary");this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},t.prototype.setKey=function(t,e){if(Mw(this._dictionary,t)){var i=this._dictionary[t];i!==e&&(this._dictionary[t]=e,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))}else this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},t.prototype.updateKey=function(t,e){if(!Mw(this._dictionary,t))throw new Error("Key "+t+" doesn't exist in dictionary");var i=this._dictionary[t],n=e(i);i!==n&&(this._dictionary[t]=n,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:n}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))},t.prototype.removeKey=function(t){if(Mw(this._dictionary,t)){var e=this._dictionary[t];delete this._dictionary[t],this.events.isEnabled("removeKey")&&this.events.dispatchImmediately("removeKey",{type:"removeKey",target:this,key:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e})}},t.prototype.insertKeyIfEmpty=function(t,e){return this.hasKey(t)||this.insertKey(t,e()),this.getKey(t)},t.prototype.clear=function(){var t=this;this.events.isEnabled("removed")&&Lw(this._dictionary,(function(e,i){t.events.dispatchImmediately("removed",{type:"removed",target:t,oldValue:i})})),this._dictionary={},this.events.isEnabled("cleared")&&this.events.dispatchImmediately("cleared",{type:"cleared",target:this})},t.prototype.copyFrom=function(t){var e=this;Ww(t.iterator(),(function(t){e.setKey(t[0],t[1])}))},t.prototype.iterator=function(){return t=this._dictionary,function(e){for(var i in t)if(Mw(t,i)&&!e([i,t[i]]))break};var t},t.prototype[Symbol.iterator]=function(){var t,e,i,n;return l_(this,(function(r){switch(r.label){case 0:for(e in t=[],this._dictionary)t.push(e);i=0,r.label=1;case 1:return i<t.length?(n=t[i],Mw(this._dictionary,n)?[4,[n,this._dictionary[n]]]:[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return i++,[3,1];case 4:return[2]}}))},t.prototype.each=function(t){Ww(this.iterator(),(function(e){var i=c_(e,2),n=i[0],r=i[1];return t(n,r)}))},t.prototype.sortedIterator=function(){return t=function(t,e){return(i=t[0])===(n=e[0])?0:i<n?-1:1;var i,n},Hw(zw(this.iterator()).sort(t));var t},t}(),Jw=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return s_(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;Ww(t.iterator(),(function(t){e.setKey(t[0],t[1].clone())}))},e.prototype.create=function(t){var e=this;return this.insertKeyIfEmpty(t,(function(){return e.template.clone()}))},e}($w),tx=new(function(){function t(){this._storage=new $w,this.ttl=1e3}return t.prototype.set=function(t,e,i,n){var r=this._storage.insertKeyIfEmpty(t,(function(){return new $w})),o={touched:(new Date).getTime(),ttl:S_(n)?n:this.ttl,value:i};r.setKey(e,o)},t.prototype.get=function(t,e,i){if(void 0===i&&(i=void 0),this._storage.hasKey(t)){var n=this._storage.getKey(t);if(n.hasKey(e)){var r=n.getKey(e);return r.ttl&&r.touched+r.ttl<(new Date).getTime()&&(r.expired=!0),r.expired?(n.removeKey(e),i):r.value}return i}return i},t.prototype.clear=function(t){t?this._storage.removeKey(t):this._storage.clear()},t}()),ex=new(function(){function t(){var t=this;this.events=new Iw,this.themes=[],this.loadedThemes={},this._uidCount=0,this.registeredClasses={},this._placeholders={},this.invalidSprites={},this.invalidDatas={},this.invalidRawDatas=[],this.invalidDataItems=[],this.invalidDataRange=[],this.invalidPositions={},this.invalidLayouts={},this.baseSprites=[],this.baseSpritesByUid={},this.queue=[],this.uid=this.getUniqueId(),this.invalidSprites.noBase=[],this.invalidDatas.noBase=[],this.invalidLayouts.noBase=[],this.invalidPositions.noBase=[],addEventListener("beforeprint",(function(){ow(t.baseSprites,(function(t){var e=t.paper.svg;e.setAttribute("viewBox","0 0 "+e.clientWidth+" "+e.clientHeight)}))})),addEventListener("afterprint",(function(){ow(t.baseSprites,(function(t){t.paper.svg.removeAttribute("viewBox")}))}))}return t.prototype.getUniqueId=function(){var t=this._uidCount;return this._uidCount+=1,"id-"+t},Object.defineProperty(t.prototype,"map",{get:function(){return this._map||(this._map=new $w),this._map},enumerable:!0,configurable:!0}),t.prototype.setCache=function(t,e,i){tx.set(this.uid,t,e,i)},t.prototype.getCache=function(t,e){return void 0===e&&(e=void 0),tx.get(this.uid,t,e)},t.prototype.dispatch=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatch(t,{type:t,target:this})):this.events.dispatch(t,{type:t,target:this}))},t.prototype.dispatchImmediately=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatchImmediately(t,e)):this.events.dispatchImmediately(t,{type:t,target:this}))},t.prototype.getPlaceholder=function(t){return w_(this._placeholders[t])||(this._placeholders[t]="__amcharts_"+t+"_"+function(t){for(var e="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<8;n++)e+=i.charAt(Math.floor(Math.random()*i.length));return e}()+"__"),this._placeholders[t]},t.prototype.addToInvalidComponents=function(t){t.baseId?uw(this.invalidDatas[t.baseId],t):uw(this.invalidDatas.noBase,t)},t.prototype.removeFromInvalidComponents=function(t){t.baseId&&sw(this.invalidDatas[t.baseId],t),sw(this.invalidDatas.noBase,t)},t.prototype.addToInvalidSprites=function(t){t.baseId?lw(this.invalidSprites[t.baseId],t):lw(this.invalidSprites.noBase,t)},t.prototype.removeFromInvalidSprites=function(t){t.baseId&&sw(this.invalidSprites[t.baseId],t),sw(this.invalidSprites.noBase,t)},t.prototype.addToInvalidPositions=function(t){t.baseId?lw(this.invalidPositions[t.baseId],t):lw(this.invalidPositions.noBase,t)},t.prototype.removeFromInvalidPositions=function(t){t.baseId&&sw(this.invalidPositions[t.baseId],t),sw(this.invalidPositions.noBase,t)},t.prototype.addToInvalidLayouts=function(t){t.baseId?lw(this.invalidLayouts[t.baseId],t):lw(this.invalidLayouts.noBase,t)},t.prototype.removeFromInvalidLayouts=function(t){t.baseId&&sw(this.invalidLayouts[t.baseId],t),sw(this.invalidLayouts.noBase,t)},t}());function ix(t,e){var i=ex.registeredClasses[e];return null!=i&&t instanceof i}var nx=function(){function t(t,e,i){this._array=t,this._start=e,this._end=i}return t.prototype.iterator=function(){var t=this;return function(e){if(t._start!==t._end)if(t._start<t._end)for(var i=t._start;i<t._end&&e(t._array[i]);++i);else for(i=t._start-1;i>=t._end&&e(t._array[i]);--i);}},t.prototype.backwards=function(){return new t(this._array,this._end,this._start)},t.prototype.range=function(e,i){if(e<=i){if(this._start===this._end)return this;if(this._start<this._end){var n=i-e;return e=Math.max(this._start+e,this._start),i=Math.min(e+n,this._end),new t(this._array,e,i)}return n=i-e,e=Math.max(this._start-e,this._end),i=Math.max(e-n,this._end),new t(this._array,e,i)}throw new Error("Start index must be lower than end index")},t}(),rx=(function(t){function e(e,i,n){var r=t.call(this,[e.events.on("inserted",(function(t){var i=t.newValue,n=r._getKey(i),o=0;Uw(e.iterator(),(function(t){return t!==i&&(r._getKey(t)===n&&++o,!0)})),r._insert(i,n,o)}),void 0,!1),e.events.on("removed",(function(t){r._remove(t.oldValue)}),void 0,!1)])||this;return r._keys=[],r._groups={},r._getKey=i,r._sort=n,Ww(e.iterator(),(function(t){r._insert(t,i(t))})),r}s_(e,t),e.prototype._insert=function(t,e,i){if(null==this._groups[e]){this._groups[e]=[];var n=fw(this._keys,this._sort,e),r=n.found,o=n.index;if(r)throw new Error("Key already exists: "+e);pw(this._keys,o,e)}null==i?this._groups[e].push(t):pw(this._groups[e],i,t)},e.prototype._remove=function(t){var e=this._getKey(t),i=this._groups[e];if(null!=i&&(sw(i,t),0===i.length)){delete this._groups[e];var n=fw(this._keys,this._sort,e),r=n.found,o=n.index;if(!r)throw new Error("Key doesn't exist: "+e);dw(this._keys,o)}},e.prototype.iterator=function(){var t,e=this;return t=Gw(Hw(this._keys),(function(t){return Hw(e._groups[t])})),function(e){var i=!0,n=function(t){return i=e(t)};t((function(t){return t(n),i}))}}}(bw),function(t){function e(e,i){void 0===i&&(i=!0);var n=this;if(i){var r=e.events.on("removed",(function(t){t.oldValue.dispose()}),void 0,!1);n=t.call(this,(function(){r.dispose(),Ww(e.iterator(),(function(t){t.dispose()}))}))||this}else n=t.call(this,(function(){Ww(e.iterator(),(function(t){t.dispose()}))}))||this;return n}return s_(e,t),e}(mw));function ox(t,e){if(!(t>=0&&t<e))throw new Error("Index out of bounds: "+t)}var ax=function(){function t(t){void 0===t&&(t=[]),this.events=new Iw,this._values=t}return Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){return-1!==this._values.indexOf(t)},t.prototype.removeValue=function(t){for(var e=0,i=this._values.length;e<i;)this._values[e]===t?(this.removeIndex(e),--i):++e},t.prototype.indexOf=function(t){return iw(this._values,t)},Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.hasIndex=function(t){return t>=0&&t<this._values.length},t.prototype.getIndex=function(t){return this._values[t]},t.prototype.setIndex=function(t,e){ox(t,this._values.length);var i=this._values[t];return i!==e&&(this._values[t]=e,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})),i},t.prototype.insertIndex=function(t,e){ox(t,this._values.length+1),pw(this._values,t,e),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:t,newValue:e}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})},t.prototype._sortQuicksort=function(t,e,i){if(t<e){var n=this._sortPartition(t,e,i);this._sortQuicksort(t,n,i),this._sortQuicksort(n+1,e,i)}},t.prototype._sortPartition=function(t,e,i){for(var n=this._values,r=n[t],o=t-1,a=e+1;;){do{++o}while(i(n[o],r)<0);do{--a}while(i(n[a],r)>0);if(o>=a)return a;this.swap(o,a)}},t.prototype.sort=function(t){this._sortQuicksort(0,this._values.length-1,t)},t.prototype.swap=function(t,e){var i=this._values.length;if(ox(t,i),ox(e,i),t!==e){var n=this._values[t],r=this._values[e];this._values[t]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:n,newValue:r}),this._values[e]=n,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:e,oldValue:r,newValue:n})}},t.prototype.removeIndex=function(t){ox(t,this._values.length);var e=this._values[t];return dw(this._values,t),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}),e},t.prototype.moveValue=function(t,e){var i=this.indexOf(t);if(-1!==i){var n=this._values[i];dw(this._values,i),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:i,oldValue:n})}null==e?(e=this._values.length,this._values.push(t)):pw(this._values,e,t),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),-1===i&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t})},t.prototype.push=function(t){var e=this._values.push(t)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t}),t},t.prototype.unshift=function(t){this.insertIndex(0,t)},t.prototype.pushAll=function(t){var e=this;ow(t,(function(t){e.push(t)}))},t.prototype.copyFrom=function(t){this.pushAll(t._values)},t.prototype.pop=function(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)},t.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},t.prototype.setAll=function(t){var e=this,i=cw(this._values);this._values.length=0,ow(t,(function(t){e._values.push(t)})),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:i,newArray:this._values}),this.events.isEnabled("removed")&&ow(i,(function(t){e.events.dispatchImmediately("removed",{type:"removed",target:e,oldValue:t})})),this.events.isEnabled("inserted")&&ow(this._values,(function(t){e.events.dispatchImmediately("inserted",{type:"inserted",target:e,newValue:t})}))},t.prototype.clear=function(){this.setAll([])},t.prototype.iterator=function(){return Hw(this._values)},t.prototype[Symbol.iterator]=function(){var t,e;return l_(this,(function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e<t?[4,this._values[e]]:[3,4];case 2:i.sent(),i.label=3;case 3:return++e,[3,1];case 4:return[2]}}))},t.prototype.each=function(t){ow(this._values,t)},t.prototype.range=function(t,e){if(t<=e){var i=e-t;return t=Math.max(t,0),e=Math.min(t+i,this._values.length),new nx(this._values,t,e)}throw new Error("Start index must be lower than end index")},t.prototype.backwards=function(){return new nx(this._values,this._values.length,0)},t}(),sx=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return s_(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;Ww(t.iterator(),(function(t){e.push(t.clone())}))},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.push(e),e},e.prototype.clone=function(){for(var t=new e(this.template),i=this.values,n=i.length,r=0;r<n;++r)t.push(i[r].clone());return t},e}(ax),ux=function(){function t(t){this._values=[],this.events=new Iw,null!=t&&this.setAll(t)}return Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),t.prototype._insert=function(t){return this._values.push(t),this._values.length-1},Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(t){return iw(this._values,t)},t.prototype.contains=function(t){return-1!==this.indexOf(t)},t.prototype.getIndex=function(t){return this._values[t]},Object.defineProperty(t.prototype,"first",{get:function(){return this._values[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._values[this._values.length-1]},enumerable:!0,configurable:!0}),t.prototype.insert=function(t){var e=this._insert(t);this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,index:e,newValue:t})},t.prototype.remove=function(t){var e=this.indexOf(t);if(-1!==e){var i=this._values[e];dw(this._values,e),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,index:e,oldValue:i})}},t.prototype.setAll=function(t){var e=this;!function(t,e){for(var i=t.length;i--;)e(t[i],i)}(this._values,(function(t,i){e._values.pop(),e.events.isEnabled("removed")&&e.events.dispatchImmediately("removed",{type:"removed",target:e,index:i,oldValue:t})})),ow(t,(function(t){e.insert(t)}))},t.prototype.clear=function(){this.setAll([])},t.prototype.slice=function(e,i){var n=new t;return n._values=this._values.slice(e,i),n},t.prototype.findClosestIndex=function(t,e,i){void 0===i&&(i="any");var n,r,o=-1,a=0;return Uw(this.iterator(),(function(s){var u=e(s);if("any"===i){if(u===t)return o=a,!1;var l=Math.abs(t-u);(!w_(r)||r>l)&&(o=a,n=u,r=l)}else"left"===i&&u<t?(!w_(n)||n<u)&&(o=a,n=u):"right"===i&&u>=t&&(!w_(n)||n>=u)&&(o=a,n=u);return++a,!0})),-1===o&&("left"===i?o=0:"right"===i&&(o=this.length-1)),o},t.prototype.iterator=function(){return Hw(this._values)},t.prototype[Symbol.iterator]=function(){var t,e;return l_(this,(function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e<t?[4,this._values[e]]:[3,4];case 2:i.sent(),i.label=3;case 3:return++e,[3,1];case 4:return[2]}}))},t.prototype.each=function(t){ow(this._values,t)},t}(),lx=function(t){function e(e){var i=t.call(this)||this;return i._ordering=e,i}return s_(e,t),e.prototype._insert=function(t){var e=fw(this._values,this._ordering,t).index;return pw(this._values,e,t),e},e.prototype.indexOf=function(t){var e=fw(this._values,this._ordering,t),i=e.found,n=e.index;return i?n:-1},e.prototype.update=function(t){var e=iw(this._values,t);if(-1!==e){var i=this._values.length-1;(0===e||this._ordering(this._values[e-1],t)<0)&&(e===i||this._ordering(t,this._values[e+1])<0)||(dw(this._values,e),this._insert(t))}},e}(ux),hx=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return s_(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;Ww(t.iterator(),(function(t){e.insert(t.clone())}))},e.prototype.slice=function(t,i){var n=new e(this.template);return n._values=this._values.slice(t,i),n},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.insert(e),e},e}(ux),cx=function(t){function e(e,i){var n=t.call(this,i)||this;return n.template=e,n}return s_(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;Ww(t.iterator(),(function(t){e.insert(t.clone())}))},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.insert(e),e},e}(lx);function px(t,e){return t===e?0:t<e?-1:1}function dx(t,e){return 0===t?e:t}var fx=new(function(){function t(){this._callbackId=0,this._callbacks=new lx((function(t,e){return dx(px(t.priority,e.priority),px(t.id,e.id))}))}return t.prototype.addAll=function(t,e,i,n,r){void 0===n&&(n=0),this._callbacks.insert({id:++this._callbackId,key:e,callback:i,priority:n,scope:r,type:t})},t.prototype.isEnabled=function(t,e){return nw(this._callbacks.values,(function(i){return i.key===e&&t instanceof i.type}))},t.prototype.applyAll=function(t,e,i){var n=this._callbacks.values,r=n.length;if(0==r)return i;for(var o=0;o<r;++o){var a=n[o];a.key===e&&t instanceof a.type&&(i=a.callback.call(a.scope,i,t,e))}return i},t}()),gx=function(){function t(t){this._callbackId=0,this._callbacks=new lx((function(t,e){return dx(px(t.priority,e.priority),px(t.id,e.id))})),this._disabled={},this.object=t,this.events=this._callbacks.events}return t.prototype.add=function(t,e,i,n){void 0===i&&(i=0),this._callbacks.insert({id:++this._callbackId,key:t,callback:e,priority:i,scope:n})},t.prototype.has=function(t,e,i,n){return void 0===i&&(i=0),qw(this._callbacks.iterator(),(function(r){return r.key===t&&r.callback===e&&r.priority===i&&r.scope===n}))},t.prototype.remove=function(t,e){var i=this;ow(zw(this._callbacks.iterator()),(function(n){n.key!==t||S_(e)&&e!==n.priority||i._callbacks.remove(n)}))},t.prototype.enableKey=function(t){delete this._disabled[t]},t.prototype.disableKey=function(t,e){void 0===e&&(e=1/0),this._disabled[t]=e},t.prototype._hasListenersByType=function(t){return nw(this._callbacks.values,(function(e){return e.key===t}))},t.prototype.isEnabled=function(t){return null==this._disabled[t]&&(this._hasListenersByType(t)||fx.isEnabled(this.object,t))},t.prototype._shouldDispatch=function(t){var e=this._disabled[t];return!S_(e)||(e<=1?delete this._disabled[t]:--this._disabled[t],!1)},t.prototype.apply=function(t,e){if(this._shouldDispatch(t)){var i=this._callbacks.values,n=i.length;if(n>0)for(var r=0;r<n;++r){var o=i[r];o.key===t&&(e=o.callback.call(o.scope,e,this.object,t))}return fx.applyAll(this.object,t,e)}return e},t.prototype.keys=function(){return zw(Gw(this._callbacks.iterator(),(function(t){return t.key})))},t.prototype.copyFrom=function(t){var e=this;Ww(t._callbacks.iterator(),(function(t){e.add(t.key,t.callback,t.priority,t.scope)}))},t.prototype.clear=function(){this._callbacks.clear()},t}(),yx={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgrey:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},grey:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgrey:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function vx(t){return 1==t.length?"0"+t:""+t}function mx(t,e,i){return i=L_(i,0,1),t?e?{r:t.r+Math.round((e.r-t.r)*i),g:t.g+Math.round((e.g-t.g)*i),b:t.b+Math.round((e.b-t.b)*i),a:(t.a||1)+Math.round(((e.a||1)-(t.a||1))*i)}:t:e||t}function bx(t,e){var i=e>0?255-t:t;return Math.round(i*e)}function _x(t){var e,i,n,r=t.h,o=t.s,a=t.l;if(0==o)e=i=n=a;else{var s=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},u=a<.5?a*(1+o):a+o-a*o,l=2*a-u;e=s(l,u,r+1/3),i=s(l,u,r),n=s(l,u,r-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*n)}}function wx(t){var e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),o=Math.min(e,i,n),a=0,s=0,u=(r+o)/2;if(r===o)a=s=0;else{var l=r-o;switch(s=u>.5?l/(2-r-o):l/(r+o),r){case e:a=(i-n)/l+(i<n?6:0);break;case i:a=(n-e)/l+2;break;case n:a=(e-i)/l+4}a/=6}return{h:a,s:s,l:u}}var xx=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"rgb",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._value?"#"+vx((t=this._value).r.toString(16))+vx(t.g.toString(16))+vx(t.b.toString(16)):"none";var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rgba",{get:function(){return this._value?w_((t=this._value).a)&&1!==t.a?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":"rgb("+t.r+","+t.g+","+t.b+")":"none";var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return null!=this._value&&null!=this._value.a?this._value.a:1},set:function(t){this._value&&(this._value.a=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return this._lightColor||(this._lightColor=new t({r:255,g:255,b:255})),this._lightColor},set:function(t){this._lightColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"darkColor",{get:function(){return this._darkColor||(this._darkColor=new t({r:0,g:0,b:0})),this._darkColor},set:function(t){this._darkColor=t},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.alpha<1?this.rgba:this.hex},t.prototype.lighten=function(e){return new t(function(t,e){return t?{r:Math.max(0,Math.min(255,t.r+bx(t.r,e))),g:Math.max(0,Math.min(255,t.g+bx(t.g,e))),b:Math.max(0,Math.min(255,t.b+bx(t.b,e))),a:t.a}:t}(this.rgb,e))},t.prototype.brighten=function(e){return new t(function(t,e){if(t){var i=bx(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}(this.rgb,e))},t.prototype.saturate=function(e){return new t(function(t,e){if(null==t||1==e)return t;var i=wx(t);return i.s=e,_x(i)}(this.rgb,e))},Object.defineProperty(t.prototype,"alternative",{get:function(){if(null!=this.rgb)return(299*(t=this.rgb).r+587*t.g+114*t.b)/1e3>=128?this.darkColor:this.lightColor;throw new Error("Color does not exist");var t},enumerable:!0,configurable:!0}),t}();function Cx(t,e){if(!w_(t))return new xx(void 0);if("string"==typeof t){var i="_color_"+t+"_"+(e||"1"),n=ex.getCache(i);if(n)return new xx({r:n.r,g:n.g,b:n.b,a:n.a});var r=function(t,e){var i;return yx[t]?i=yx[t]:"#"===t.charAt(0)?i=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,n){return e+e+i+i+n+n}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:void 0}(t):t.match(/^rgba?\(/)&&(i=function(t){var e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(!(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i)))return;return{r:parseInt(e[1]),g:parseInt(e[2]),b:parseInt(e[3]),a:parseFloat(e[4])}}(t)),i||(i={r:0,g:0,b:0,a:1}),w_(e)&&(i.a=e),i}(t,e);return ex.setCache(i,r),new xx(r)}return t instanceof xx?(w_(e)&&(t.alpha=e),t):new xx(t)}function Px(t){return w_(t)&&!function(t){return t instanceof xx}(t)?function(t){return Cx(t)}(t):t}var kx=function(){function t(){this._disposed=!1,this._disposers=[],this.className="BaseObject"}return t.prototype.debug=function(){},Object.defineProperty(t.prototype,"uid",{get:function(){return this._uid||(this._uid=ex.getUniqueId(),ex.map.setKey(this._uid,this)),this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"map",{get:function(){return this._map||(this._map=new $w),this._map},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"delayedMap",{get:function(){return this._delayedMap||(this._delayedMap=new $w),this._delayedMap},enumerable:!0,configurable:!0}),t.prototype.addDelayedMap=function(t,e){var i=this.delayedMap;i.hasKey(e)||i.setKey(e,[]),i.getKey(e).push({property:t,target:this})},t.prototype.processDelayedMap=function(){var t=this;this.delayedMap.each((function(e,i){if(t.map.hasKey(e)){var n=t.map.getKey(e);ow(i,(function(t){t.target[t.property]=n})),t.delayedMap.removeKey(e)}}))},t.prototype.applyTheme=function(){var t=this;if(ex){var e=this.getCurrentThemes();e&&ow(e,(function(e,i){e(t)}))}},Object.defineProperty(t.prototype,"themes",{get:function(){return this._themes},set:function(t){this._themes=t},enumerable:!0,configurable:!0}),t.prototype.getCurrentThemes=function(){return this.themes||ex.themes},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._disposers;for(this._disposers=null;0!==t.length;)t.shift().dispose();this.clearCache(),this.clonedFrom&&this.clonedFrom.clones.removeValue(this);var e=this._uid;null!=e&&ex.map.removeKey(e)}},t.prototype.addDisposer=function(t){this._disposers.push(t)},t.prototype.removeDispose=function(t){if(!this._disposed){var e=iw(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()},t.prototype.clone=function(t){t||(t="clone-"+ex.getUniqueId());var e=new this.constructor;return e.cloneId=t,e.copyFrom(this),e},Object.defineProperty(t.prototype,"clones",{get:function(){return this._clones||(this._clones=new ax),this._clones},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(t){t.clones.push(this),this.clonedFrom=t},Object.defineProperty(t.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t},enumerable:!0,configurable:!0}),t.prototype.setCache=function(t,e,i){tx.set(this.uid,t,e,i)},t.prototype.getCache=function(t,e){return void 0===e&&(e=void 0),tx.get(this.uid,t,e)},t.prototype.clearCache=function(){tx.clear(this.uid)},t.prototype.setTimeout=function(t,e){var i=this,n=setTimeout((function(){i.removeDispose(r),t()}),e),r=new mw((function(){clearTimeout(n)}));return this._disposers.push(r),r},t.prototype.setInterval=function(t,e){var i=this,n=setInterval((function(){i.removeDispose(r),t()}),e),r=new mw((function(){clearTimeout(n)}));return this._disposers.push(r),r},Object.defineProperty(t.prototype,"config",{set:function(t){try{this.processConfig(t)}catch(e){this.raiseCriticalError(e)}},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(e){var i=this;if(e){var n=this;if(Vw(e,(function(e,r){var o,a=r;if("callback"==e&&"function"==typeof r&&r.call(n),i.hasProperty(e))if(!O_(a)||!w_(a.type)||O_(n[e])&&w_(n[e].className)&&!a.forceCreate&&n[e].className==a.type||i.asIs(e)?o=n[e]:(o=i.createClassInstance(a.type))?n[e]=o:o=n[e],o instanceof gx)i.processAdapters(o,a);else if(o instanceof Iw)i.processEvents(o,a);else if("locale"==e&&k_(a))window["am4lang_"+a]&&(n[e]=window["am4lang_"+a]);else if("parent"==e&&k_(a)){var s=i.map.getKey(a);s?n[e]=s:i.addDelayedMap("parent",a)}else if(i.asIs(e))n[e]=a;else if(i.asFunction(e)&&k_(a)){if(!w_(ex.registeredClasses[a]))throw Error("Invalid easing function: "+a);n[e]=ex.registeredClasses[a]}else if(a instanceof t)n[e]=a;else if(o instanceof t)o.config=a;else if(o instanceof sx||o instanceof hx||o instanceof cx){if(D_(a))o instanceof sx?i.processListTemplate(a,o):i.processOrderedTemplate(a,o);else if(O_(a))if(a instanceof t)o.template=a;else{var u;u=w_(a.template)?a.template:a,o.template instanceof t?o.template.config=u:Lw(u,(function(e,n){var r=o.template[e];r instanceof gx?i.processAdapters(r,n):r instanceof Iw?i.processEvents(r,n):r instanceof Jw?i.processDictionaryTemplate(r,n):o.template[e]instanceof t?o.template[e].config=n:O_(n)&&w_(n.type)?(r=i.createClassInstance(n.type))?(r instanceof t&&(r.config=n),o.template[e]=r):o.template[e]=n:r instanceof ax?i.processList(n,r):o.template[e]=i.maybeColorOrPercent(n)})),w_(a.values)&&(o instanceof sx?i.processListTemplate(a.values,o):i.processOrderedTemplate(a.values,o))}}else o instanceof ax?"children"==e?i.processList(a,o,i):i.processList(a,o):o instanceof Jw?i.processDictionaryTemplate(o,a):o instanceof $w?i.processDictionary(o,a):o instanceof xx||o instanceof d_?n[e]=i.maybeColorOrPercent(a):O_(o)&&O_(a)?Bw(a,o):(a=i.maybeColorOrPercent(a),n[e]=a);else i.isReserved(e)||(n[e]=a)}),this.configOrder),this.processingErrors.length){var r=this.processingErrors.join("\n");throw this._processingErrors=[],Error(r)}}},t.prototype.maybeColorOrPercent=function(t){if(k_(t)){if(t.match(/^[\-]?[0-9.]+\%$/))return f_(b_(t));if(t.match(/^\#[0-9abcdef]{3,}$/i))return Cx(t)}return t},t.prototype.processAdapters=function(t,e){var i=this;D_(e)?ow(e,(function(e,n){t.add(e.key,e.callback,e.priority||0,i)})):O_(e)&&Lw(e,(function(e,i){t.has(e,i)||t.add(e,i)}))},t.prototype.processEvents=function(t,e){var i=this;O_(e)?Lw(e,(function(e,i){t.has(e,i)||t.on(e,i)})):D_(e)&&ow(e,(function(e,n){t.on(e.type,e.callback,i)}))},t.prototype.processDictionaryTemplate=function(e,i){O_(i)&&Lw(i,(function(i,n){var r;(r="template"==i?e.template:e.hasKey(i)?e.getKey(i):e.create(i))instanceof t?r.config=n:O_(r)&&O_(n)?Bw(n,r):r.setKey(i,n)}))},t.prototype.processDictionary=function(t,e){O_(e)&&Lw(e,(function(e,i){t.setKey(e,i)}))},t.prototype.processListTemplate=function(e,i){var n=this;for(ow(e,(function(e,r){var o,a=n.getConfigEntryType(e);if(i.hasIndex(r)&&!e.forceCreate)o=i.getIndex(r);else{if(e instanceof t)return void i.push(e);o=a?i.create(a):i.create()}e===o||O_(e)&&(o instanceof t?o.config=e:O_(o)&&O_(e)?Bw(e,o):i.setIndex(i.indexOf(o),e))}));e.length>i.length;)i.pop()},t.prototype.processOrderedTemplate=function(e,i){var n=this;ow(e,(function(e,r){var o,a=n.getConfigEntryType(e);o=a?i.create(a):i.create(),O_(e)&&(o instanceof t?o.config=e:O_(o)&&O_(e)?Bw(e,o):i.insert(e))}))},t.prototype.processList=function(e,i,n){var r=this;D_(e)||(e=[e]);var o=i.length;for(ow(e,(function(e,a){if(O_(e)){var s=void 0;if(a<o&&!e.forceCreate)s=i.getIndex(a);else{if(e instanceof t)return void i.push(e);s=r.createEntryInstance(e),n?s.parent=n:i.push(s)}s instanceof t?s.config=e:O_(s)&&O_(e)&&Bw(e,s)}else i.hasIndex(a)?i.setIndex(a,e):i.push(e)}));e.length>i.length;)i.pop()},t.prototype.configOrder=function(t,e){return t==e?0:"language"==t?-1:"language"==e?1:0},t.prototype.asIs=function(t){return-1!=iw(["locale"],t)},t.prototype.asFunction=function(t){return!1},t.prototype.createClassInstance=function(t){if(w_(ex.registeredClasses[t]))return new ex.registeredClasses[t];throw Error('Invalid type: "'+t+'".')},t.prototype.createEntryInstance=function(t){var e;return w_(t.type)&&(e=this.createClassInstance(t.type)),e||t},t.prototype.getConfigEntryType=function(t){if(w_(t.type)){if(w_(ex.registeredClasses[t.type]))return ex.registeredClasses[t.type];throw Error('Invalid type: "'+t.type+'".')}},t.prototype.hasProperty=function(t){return t in this},t.prototype.isReserved=function(t){return-1!==["type","forceCreate"].indexOf(t)},Object.defineProperty(t.prototype,"processingErrors",{get:function(){return this._processingErrors||(this._processingErrors=[]),this._processingErrors},enumerable:!0,configurable:!0}),t}(),Sx=function(t){function e(){var e=t.call(this)||this;return e.className="BaseObjectEvents",e}return s_(e,t),Object.defineProperty(e.prototype,"events",{get:function(){return this._eventDispatcher||(this._eventDispatcher=new Iw,this._disposers.push(this._eventDispatcher)),this._eventDispatcher},enumerable:!0,configurable:!0}),e.prototype.dispatch=function(t,e){this._eventDispatcher&&this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatch(t,{type:t,target:this})):this.events.dispatch(t,{type:t,target:this}))},e.prototype.dispatchImmediately=function(t,e){this._eventDispatcher&&this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatchImmediately(t,e)):this.events.dispatchImmediately(t,{type:t,target:this}))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e._eventDispatcher&&this.events.copyFrom(e._eventDispatcher)},e}(kx);function Ox(t,e){return Lw(t,(function(t,i){w_(i)&&(e[t]=i)})),e}function Dx(t){return/^[^#]*/.exec(t)[0]}function Tx(){var t="#";if(/apple/i.test(navigator.vendor)){var e=document.baseURI;if(e){e=Dx(e);var i=Dx(location.href);e!==i&&(t=i+t)}}return t}function Ex(t,e){return Lw(t,(function(t,i){w_(i)&&!w_(e[t])&&(e[t]=i)})),e}function Ix(t){return w_(t)&&""!==t.toString()}function Ax(t,e){return S_(t)?t:null!=t&&S_(t.value)&&S_(e)?e*t.value:0}function Fx(t){return JSON.stringify(t)}function Mx(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function jx(t,e,i,n){if(t.length<=e)return[t];var r=[];if(i)for(var o=-1,a=t.replace(/([,;:!?\\\/\.]+[\s]+|[\s])/g,"__\xa7\xa7\xa7__$1__\xa7\xa7\xa7__").split("__\xa7\xa7\xa7__"),s=0;s<a.length;s++){var u=a[s],l=u.length;if(0!==l){var h;if(l>e){if(n&&(u=Rx(u)),h=u.match(new RegExp(".{1,"+e+"}","g"))){if(n)for(var c=0;c<h.length;c++)h[c]=Rx(h[c]);r=r.concat(h)}}else-1===o&&(r.push(""),o=0),r[o].length+l+1>e&&""!==r[o]&&(r.push(""),o++),r[o]+=u;o=r.length-1}}else if(h=t.match(new RegExp(".{1,"+e+"}","g"))){if(n)for(c=0;c<h.length;c++)h[c]=Rx(h[c]);r=h}return 1==r.length&&i&&r[0].length>e&&(r=[]),r}function Lx(t,e,i,n,r){return t.length<=e?t:((e-=i.length)<1&&(e=1),(jx(t,e,n,r)[0]||"")+i)}function Vx(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function Rx(t){return t.split("").reverse().join("")}function Nx(t,e,i){return void 0===e&&(e=0),void 0===i&&(i="0"),"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function Bx(t){return t.replace(/\/(date|number|duration)$/i,"")}function Hx(t){return t?t.replace(/<[^>]*>/g,""):t}function zx(t){return t?Hx(t.replace(/[\n\r]+/g,". ")):t}function Ux(t){if(P_(t))return new Date(t);if(S_(t))return new Date(t);var e=Number(t);return S_(e)?new Date(e):new Date(t)}function Wx(t){if(P_(t))return t.getTime();if(S_(t))return t;if(k_(t)){var e=Number(t);return S_(e)?e:void 0}}function Gx(t,e){void 0===e&&(e=!1);var i=new Date(t.getFullYear(),0,0),n=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(n/864e5)}function Kx(t,e){void 0===e&&(e=!1);var i=Gx(t,e)-1,n=Math.floor((i-(t.getDay()||7)+10)/7);return 0===n?n=53:53===n&&(n=1),n}function Yx(t,e){void 0===e&&(e=!1);var i=Kx(new Date(t.getFullYear(),t.getMonth(),1),e),n=Kx(t,e);return 1==n&&(n=53),n-i+1}function qx(t,e){return t>12?t-=12:0===t&&(t=12),w_(e)?t+(e-1):t}function Xx(t,e,i,n){if(void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=!1),n)return e?"Coordinated Universal Time":"UTC";var r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),o}function Zx(t,e,i){return t>i?i:t<e?e:t}function Qx(t,e,i){var n=i-e;return(t>i||t<e)&&(t=e+(t-n*Math.floor(t/n))),t}function $x(t,e){var i=t.x,n=t.y,r=[];if(e){for(;w_(e.parent);)r.push(e),e=e.parent;r.reverse();for(var o=0;o<r.length;o++){var a=r[o],s=a.rotation,u=i-a.pixelX-a.ex,l=n-a.pixelY-a.ey;a.dx&&(i-=a.dx),a.dy&&(n-=a.dy);var h=a.scale;a.group&&(h=a.group.scale),i=(R_(-s)*u-V_(-s)*l)/h-a.pixelPaddingLeft,n=(R_(-s)*l+V_(-s)*u)/h-a.pixelPaddingTop}}return{x:i,y:n}}function Jx(t,e){var i=t.x,n=t.y;if(e)for(;w_(e.parent);){var r=e.rotation;i+=e.pixelPaddingLeft+e.ex,n+=e.pixelPaddingTop+e.ey;var o=e.scale;e.group&&(o=e.group.scale);var a=e.pixelX+(i*R_(r)-n*V_(r))*o,s=e.pixelY+(i*V_(r)+n*R_(r))*o;e.dx&&(a+=e.dx),e.dy&&(s+=e.dy),i=a,n=s,e=e.parent}return{x:i,y:n}}function tC(t,e,i){return $x(Jx(t,e),i)}function eC(t,e){var i=Jx(t,e),n=Jx({x:t.x+t.width,y:t.y+t.height},e);return{x:i.x,y:i.y,width:n.x-i.x,height:n.y-i.y}}function iC(t,e,i){try{var n=e.getBoundingClientRect();return S_(i)||(i=1),{x:(t.x-n.left)/i,y:(t.y-n.top)/i}}catch(r){return t}}function nC(t,e){return e&&e.htmlContainer?$x(iC(t,x_(e.htmlContainer),e.svgContainer.cssScale),e):t}function rC(t,e){return e&&e.htmlContainer?function(t,e){try{var i=e.getBoundingClientRect();return{x:t.x+i.left,y:t.y+i.top}}catch(n){return t}}(Jx(t,e),x_(e.htmlContainer)):t}var oC=/^([a-zA-Z][a-zA-Z0-9\+\.\-]*:)?(?:(\/\/)([^\@]+\@)?([^\/\?\#\:]*)(\:[0-9]+)?)?([^\?\#]*)(\?[^\#]*)?(\#.*)?$/;function aC(t){var e=oC.exec(t);return{protocol:e&&e[1]||"",separator:e&&e[2]||"",authority:e&&e[3]||"",domain:e&&e[4]||"",port:e&&e[5]||"",path:e&&e[6]||"",query:e&&e[7]||"",hash:e&&e[8]||""}}function sC(t){return t.protocol+t.separator+t.authority+t.domain+t.port+t.path+t.query+t.hash}function uC(t){return""===t.protocol&&""===t.separator&&""===t.authority&&""===t.domain&&""===t.port}function lC(t,e){var i=aC(t),n=aC(e);if(uC(i))throw new Error("Left URL is not absolute");if(uC(n)){if(""!==n.path)if("/"===n.path[0])i.path=n.path;else{var r=i.path.split(/\//),o=n.path.split(/\//);if(0===r.length?0!==o.length&&r.push(""):r.length>1&&r.pop(),function(t,e){for(var i=e.length,n=0;n<i;++n)t.push(e[n])}(r,o),i.path=r.join("/"),""!==i.path&&"/"!==i.path[0])throw new Error("URL path must start with /")}return i.query=n.query,i.hash=n.hash,sC(i)}return sC(n)}function hC(t){return+t}function cC(t,e){return Math.pow(t,e)}function pC(t,e){return 1-Math.pow(1-t,e)}function dC(t,e){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}function fC(t){return pC(t,3)}function gC(t){return t*t*t}function yC(t){return--t*t*t+1}function vC(t){return(t=+t)<4/11?7.5625*t*t:t<8/11?7.5625*(t-=6/11)*t+3/4:t<10/11?7.5625*(t-=9/11)*t+15/16:7.5625*(t-=21/22)*t+63/64}ex.registeredClasses["ease.linear"]=hC,ex.registeredClasses["ease.quadIn"]=function(t){return t*t},ex.registeredClasses["ease.quadOut"]=function(t){return t*(2-t)},ex.registeredClasses["ease.quadInOut"]=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2},ex.registeredClasses["ease.polyIn"]=cC,ex.registeredClasses["ease.polyOut"]=pC,ex.registeredClasses["ease.polyInOut"]=dC,ex.registeredClasses["ease.polyIn3"]=function(t){return cC(t,3)},ex.registeredClasses["ease.polyOut3"]=fC,ex.registeredClasses["ease.polyInOut3"]=function(t){return dC(t,3)},ex.registeredClasses["ease.expIn"]=function(t){return Math.pow(2,10*t-10)},ex.registeredClasses["ease.expOut"]=function(t){return 1-Math.pow(2,-10*t)},ex.registeredClasses["ease.expInOut"]=function(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2},ex.registeredClasses["ease.sinIn"]=function(t){return 1-Math.cos(t*E_)},ex.registeredClasses["ease.sinOut"]=function(t){return Math.sin(t*E_)},ex.registeredClasses["ease.sinInOut"]=function(t){return(1-Math.cos(T_*t))/2},ex.registeredClasses["ease.cubicIn"]=gC,ex.registeredClasses["ease.cubicOut"]=yC,ex.registeredClasses["ease.cubicInOut"]=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2},ex.registeredClasses["ease.circleIn"]=function(t){return 1-Math.sqrt(1-t*t)},ex.registeredClasses["ease.circleOut"]=function(t){return Math.sqrt(1- --t*t)},ex.registeredClasses["ease.circleInOut"]=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2},ex.registeredClasses["ease.bounceIn"]=function(t){return 1-vC(1-t)},ex.registeredClasses["ease.bounceOut"]=vC,ex.registeredClasses["ease.bounceInOut"]=function(t){return((t*=2)<=1?1-vC(1-t):vC(t-1)+1)/2};var mC=.3/(2*Math.PI),bC=Math.asin(1)*mC;ex.registeredClasses["ease.elasticIn"]=function(t){return 1*Math.pow(2,10*--t)*Math.sin((bC-t)/mC)},ex.registeredClasses["ease.elasticOut"]=function(t){return 1-1*Math.pow(2,-10*(t=+t))*Math.sin((t+bC)/mC)},ex.registeredClasses["ease.elasticInOut"]=function(t){return((t=2*t-1)<0?1*Math.pow(2,10*t)*Math.sin((bC-t)/mC):2-1*Math.pow(2,-10*t)*Math.sin((bC+t)/mC))/2};var _C=function(t){function e(){var e=t.call(this)||this;return e.transitionDuration=0,e.transitionEasing=yC,e.properties={},e.propertyFields={},e.filters=new ax,e.isTemplate=!1,e.className="SpriteState",e._disposers.push(new rx(e.filters)),e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"adapter",{get:function(){var t=this;return this._adapterO||(this._adapterO=new gx(this),this._adapterO.events.on("inserted",(function(e){t[e.newValue.key]=t[e.newValue.key]}),void 0,!1),this._adapterO.events.on("removed",(function(e){t[e.newValue.key]=t[e.newValue.key]}),void 0,!1)),this._adapterO},enumerable:!0,configurable:!0}),e.prototype.getPropertyValue=function(t){var e=this.properties[t],i=this.sprite;if(i){var n=this.propertyFields[t];if(w_(n)&&(i.dataItem&&(e=i.dataItem.dataContext[n]),null==e&&(e="__unset")),w_(e))this._adapterO&&(e=this._adapterO.apply(t,e));else{var r=i.getPropertyValue(t);(e=this._adapterO?this._adapterO.apply(t,r):r)==r&&(e=void 0)}}return e},e.prototype.copyFrom=function(t){t&&t!=this&&(this.transitionDuration=t.transitionDuration,this.transitionEasing=t.transitionEasing,Ox(t.properties,this.properties),Ox(t.propertyFields,this.propertyFields),this.filters.copyFrom(t.filters),t._adapterO&&this.adapter.copyFrom(t._adapterO))},Object.defineProperty(e.prototype,"allValues",{get:function(){var t=this,e={};return Lw(this.properties,(function(i,n){e[i]=t.getPropertyValue(i)})),this._adapterO&&Lw(this._adapterO.keys(),(function(i,n){var r=t.getPropertyValue(n);e[n]=r})),Lw(this.propertyFields,(function(i){var n=t.getPropertyValue(i);e[i]=n})),e},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.properties={},this.filters.clear()},e.prototype.processConfig=function(e){w_(e)&&w_(e.properties)&&Lw(e.properties,(function(t,i){k_(i)&&(i.match(/^[0-9.\-]+\%$/)?e.properties[t]=f_(b_(i)):i.match(/^\#[0-9abcdef]{3,}$/i)&&(e.properties[t]=Px(i)))})),t.prototype.processConfig.call(this,e)},e.prototype.asFunction=function(e){return"transitionEasing"==e||t.prototype.asIs.call(this,e)},e}(kx);ex.registeredClasses.SpriteState=_C;var wC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._interactionEvents=new $w,e}return s_(e,t),e.prototype._dispatchSpriteEvent=function(t){if(!this.target.disabled&&!this.target.isTemplate&&this.target.events.isEnabled(t.type)){var e=Rw(t,{target:this.target});this.target.events.dispatchImmediately(e.type,e)}},e.prototype._dispatchSpritePointEvent=function(t){if(!this.target.disabled&&!this.target.isTemplate&&this.target.events.isEnabled(t.type)){var e=Rw(t,{target:this.target,spritePoint:nC(t.point,this.target),svgPoint:this.target.getSvgPoint(t.point)});this.target.events.dispatchImmediately(e.type,e)}},e.prototype._addInteractionObjectEvent=function(t,e,i,n){var r=this,o=n+"-"+t;return this._interactionEvents.insertKeyIfEmpty(o,(function(){var a=r.target.interactions.events.on(t,e,i,n);return new ww((function(){r._interactionEvents.removeKey(o),a.dispose()}))})).increment()},e.prototype._on=function(e,i,n,r,o,a){var s=t.prototype._on.call(this,e,i,n,r,o,a),u=[s.disposer];switch(i){case"hit":case"track":case"doublehit":case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":u.push(this._addInteractionObjectEvent(i,this._dispatchSpritePointEvent,this,o));break;case"rightclick":case"down":case"up":case"drag":case"dragged":case"dragstart":case"dragstop":case"over":case"out":case"swipe":case"swipeleft":case"swiperight":case"resize":case"focus":case"blur":case"toggled":u.push(this._addInteractionObjectEvent(i,this._dispatchSpriteEvent,this,o))}switch(i){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"toggled":this.target.togglable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":this.target.hoverable=!0;case"out":this.target.hoverable=!0;break;case"focus":case"blur":this.target.focusable=!0}return s.disposer=new bw(u),s},e}(Aw),xC=function(){function t(){}return t.opacity=1,t.strokeOpacity=1,t.strokeWidth=1,t.fillOpacity=1,t.fill=Cx("#000000"),t.stroke=Cx("#000000"),t.focusable=void 0,t.tabindex=0,t}(),CC={verbose:!0,commercialLicense:!1,classNamePrefix:"amcharts-",autoSetClassName:!1,minPolylineStep:.5,onlyShowOnViewport:!1,queue:!1,licenses:[],suppressErrors:!1,animationsEnabled:!0,nonce:""};function PC(t,e,i){return e+(i-e)*t}function kC(t,e,i){return new d_(PC(t,e.percent,i.percent))}function SC(t,e,i){var n=new xx(mx(e.rgb,i.rgb,t));return e.alpha!=i.alpha&&(n.alpha=e.alpha+(i.alpha-e.alpha)*t),n}function OC(t,e){return e+t.charAt(0).toUpperCase()+t.substr(1)}var DC,TC=function(){function t(t){this._disposer=new mw((function(){for(;0!==t.length;)t[0].dispose()}))}return t.prototype.isDisposed=function(){return this._disposer.isDisposed()},t.prototype.dispose=function(){this._disposer.dispose()},t}(),EC=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.duration=0,o.easing=hC,o.progress=0,o._loop=0,o._pause=!1,o._delayTimeout=null,o._time=0,o._isFinished=!1,o.className="Animation",!1===CC.animationsEnabled&&(n=0),o.object=e,o.animationOptions=hw(i),o.duration=n,r&&(o.easing=r),o.applyTheme(),o}return s_(e,t),e.prototype.debug=function(){},e.prototype.dispose=function(){t.prototype.dispose.call(this),this.pause()},e.prototype.delay=function(t){var e=this;if(t>0){this.pause(),uw(this.object.animations,this);var i=setTimeout((function(){e._delayTimeout=null,e.start()}),t);this._delayTimeout=new mw((function(){clearTimeout(i)}))}return this},e.prototype._start=function(){this._isFinished=!1,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),this.stopSameAnimations(),this._pause=!1,uw(GP.animations,this),uw(this.object.animations,this),GP.requestFrame()},e.prototype.start=function(){this._start(),this._startTime=Date.now(),this._time=0,this.staticOptions=[];for(var t=this.animationOptions.length-1;t>=0;t--){var e=this.animationOptions[t];if(w_(e.from)||(e.childObject?e.from=e.childObject[e.property]:(e.from=this.object[e.property],w_(e.from)||(e.from=xC[e.property]))),e.from==e.to)sw(this.animationOptions,e);else if(!w_(e.from)||!(e.from instanceof d_)&&e.to instanceof d_||e.from instanceof d_&&!(e.to instanceof d_))this.staticOptions.push(e),sw(this.animationOptions,e);else if(S_(e.to))if(e.updateMethod=PC,e.from instanceof d_){var i=this.object[OC(e.property,"pixel")];isNaN(i)?(this.staticOptions.push(e),sw(this.animationOptions,e)):e.from=i}else isNaN(e.from)&&(this.staticOptions.push(e),sw(this.animationOptions,e));else e.to instanceof xx?e.from?e.updateMethod=SC:(this.staticOptions.push(e),sw(this.animationOptions,e)):e.to instanceof d_?(e.updateMethod=kC,isNaN(e.from)||(i=this.object[OC(e.property,"relative")],isNaN(i)||(e.from=f_(100*i)))):(this.staticOptions.push(e),sw(this.animationOptions,e))}if(this.applyStaticOptions(),this.events.isEnabled("animationstarted")){var n={type:"animationstarted",target:this,progress:this.progress};this.events.dispatchImmediately("animationstarted",n)}return this.update(),0===this.duration&&this.end(),this},e.prototype.loop=function(t){return S_(t)||(t=1/0),this._loop=t,this},e.prototype.pause=function(){return this._pause=!0,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),sw(GP.animations,this),sw(this.object.animations,this),this},e.prototype.resume=function(){return this._start(),this._startTime=Date.now()-this._time,this},e.prototype.end=function(){if(0==this._loop&&this.pause(),this.setProgress(1),this.applyStaticOptions(),this.events.isEnabled("animationended")){var t={type:"animationended",target:this,progress:this.progress};this.events.dispatchImmediately("animationended",t)}return this._loop>0?(this._loop--,this.start()):(this.stop(),this._isFinished=!0),this},e.prototype.kill=function(){this.pause(),this._isFinished=!0},e.prototype.isFinished=function(){return this._isFinished},e.prototype.applyStaticOptions=function(){var t=this;ow(this.staticOptions,(function(e){e.childObject?e.childObject[e.property]=1==t.progress?e.to:e.from:t.object[e.property]=1==t.progress?e.to:e.from}))},e.prototype.stop=function(t){if(this.pause(),!t&&this.events.isEnabled("animationstopped")){var e={type:"animationstopped",target:this,progress:this.progress};this.events.dispatchImmediately("animationstopped",e)}return this},e.prototype.setProgress=function(t){var e=this;if(this._time=this.duration*t,ow(this.animationOptions,(function(i){if(i.updateMethod&&w_(i.from)){var n=i.updateMethod(t,i.from,i.to);i.childObject?i.childObject[i.property]=n:e.object[i.property]=n}})),this.progress=t,this.events.isEnabled("animationprogress")){var i={type:"animationprogress",target:this,progress:this.progress};this.events.dispatchImmediately("animationprogress",i)}GP.requestFrame()},e.prototype.update=function(){if(!this._pause){var t=void 0;this._time=L_(Date.now()-this._startTime,0,this.duration);var e=this._time/this.duration;t=this.easing(e),(0==this.duration||!S_(t)||e>=1)&&(t=1),this.setProgress(t),1==M_(this._time/this.duration,6)&&this.end()}return this},Object.defineProperty(e.prototype,"delayed",{get:function(){return!!this._delayTimeout},enumerable:!0,configurable:!0}),e.prototype.stopSameAnimations=function(){var t=this;ow(cw(this.object.animations),(function(e){if(e!==t&&!e.delayed){var i=[];ow(t.animationOptions,(function(t){ow(e.animationOptions,(function(n){t.property==n.property&&t.childObject==n.childObject&&(i.push(n),0==e.animationOptions.length&&e.kill())}))})),ow(i,(function(t){sw(e.animationOptions,t)}))}}))},e.prototype.asFunction=function(e){return"easing"==e||t.prototype.asIs.call(this,e)},e}(Sx),IC="http://www.w3.org/2000/svg",AC="http://www.w3.org/2000/xmlns/",FC="http://www.w3.org/1999/xlink";function MC(t,e,i,n){return t.addEventListener(e,i,n||!1),new mw((function(){t.removeEventListener(e,i,n||!1)}))}function jC(t,e){if(t)if(t.classList)t.classList.add(e);else{var i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((function(t){return t!==e})).join(" ")+" "+e):t.setAttribute("class",e)}}function LC(t,e){if(t)if(t.classList)t.classList.remove(e);else{var i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((function(t){return t!==e})).join(" "))}}function VC(t,e,i){t.style[e]=i}function RC(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function NC(){var t=document.createElement("input");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}function BC(t,e){for(var i=e;;){if(t===i)return!0;if(null==i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function HC(t){for(var e=t;;){if(null==e.parentNode)return null!=e.host?e:null;e=e.parentNode}}function zC(t){for(var e=t.ownerDocument,i=t;;){if(null==i.parentNode)return i===e||null!=i.host?i:null;i=i.parentNode}}var UC=function(t){function e(e,i,n){var r=this,o=function(t){return null==t?(w_(DC)||((e=document.createElement("style")).type="text/css",""!=CC.nonce&&e.setAttribute("nonce",CC.nonce),document.head.appendChild(e),DC=e.sheet),DC):((e=document.createElement("style")).type="text/css",""!=CC.nonce&&e.setAttribute("nonce",CC.nonce),t.appendChild(e),e.sheet);var e}(e);return(r=t.call(this,(function(){var t=iw(o.cssRules,r._rule);if(-1===t)throw new Error("Could not dispose StyleRule");o.deleteRule(t)}))||this)._rule=function(t,e){var i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}(o,i),Lw(n,(function(t,e){r.setStyle(t,e)})),r}return s_(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this._rule.selectorText},set:function(t){this._rule.selectorText=t},enumerable:!0,configurable:!0}),e.prototype._setVendorPrefixName=function(t,e){var i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")},e.prototype.setStyle=function(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")},e}(mw),WC=0;function GC(t){var e=RC(t,"font-family");if(e)return e;var i=t.parentElement||t.parentNode;return i?GC(i):void 0}function KC(t){var e=RC(t,"font-size");if(e)return e;var i=t.parentElement||t.parentNode;return i?KC(i):void 0}function YC(t,e){var i=t.getBoundingClientRect(),n=D_(e)?e:e?[e]:[];if(n.length){for(var r=0;r<n.length;r++){var o=n[r];if(!YC(o))return!1;var a=o.getBoundingClientRect();if(i.top>=0&&i.left>=0&&i.top<=a.top+a.height&&i.left<=a.left+a.width)return!0}return!1}return i.top>=0&&i.left>=0&&i.top<=(window.innerHeight||document.documentElement.clientHeight)&&i.left<=(window.innerWidth||document.documentElement.clientWidth)}!function(t){function e(e,i,n){var r=this,o=w_(n)?n:"__style_"+ ++WC+"__";return(r=t.call(this,e,"."+o,i)||this)._className=o,r}s_(e,t),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t,this.selector="."+t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._className}}(UC);var qC=function(){function t(t){this._isDisposed=!1,this._x=0,this._y=0,this._rotationY=0,this._rotationX=0,this._rotation=0,this._scale=1,this.node="string"==typeof t?document.createElementNS(IC,t):t}return t.prototype.removeNode=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node)},Object.defineProperty(t.prototype,"transformString",{get:function(){if(this.node)return this._transformString},enumerable:!0,configurable:!0}),t.prototype.transform=function(){var t="translate("+this._x+","+this._y+")";if(1!=this._scale&&(t+=(t?" ":"")+"scale("+this._scale+")"),0!=this._rotation){var e="rotate("+this._rotation+")";this._rotationX&&this._rotationY&&(e="rotate("+this._rotation+" "+this._rotationX+" "+this._rotationY+")"),t+=(t?" ":"")+e}this._transformString=t,this.node.setAttribute("transform",t)},t.prototype.getBBox=function(){var t={width:0,height:0,x:0,y:0};if(this.node&&this.node.parentNode)try{var e=this.node.getBBox();t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height}catch(i){}return t},t.prototype.moveTo=function(t){if(t){var e=t.x,i=t.y;this._x==e&&this._y==i||(this._x=e,this._y=i,this.transform())}},Object.defineProperty(t.prototype,"content",{get:function(){return this.node.innerHTML||""},set:function(t){this.node.innerHTML=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.node.textContent||""},set:function(t){this.node.textContent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(t){this._x!=t&&(this._x=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(t){this._y!=t&&(this._y=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!=t&&(this._rotation=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotationX",{get:function(){return this._rotationX},set:function(t){this._rotationX!=t&&(this._rotationX=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotationY",{get:function(){return this._rotationY},set:function(t){this._rotationY!=t&&(this._rotationY=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale!=t&&(this._scale=t,this.transform())},enumerable:!0,configurable:!0}),t.prototype.removeAttr=function(t){this.node.removeAttribute(t)},t.prototype.attr=function(t){var e=this;return Lw(t,(function(t,i){w_(i)?e.node.setAttribute(t,i):e.node.removeAttribute(t)})),this},t.prototype.getAttr=function(t){return this.node.getAttribute(t)},t.prototype.attrNS=function(t,e,i){return this.node.setAttributeNS(t,e,i),this},t.prototype.getAttrNS=function(t,e){return this.node.getAttributeNS(t,e)},t.prototype.removeStyle=function(t){this.node.style[t]=null,delete this.node.style[t]},t.prototype.getStyle=function(t){return this.node.style[t]},t.prototype.addStyle=function(t){var e=this;return Lw(t,(function(t,i){w_(i)?e.node.style[t]=i:e.removeStyle(t)})),this},t.prototype.addClass=function(t){jC(this.node,t)},t.prototype.removeClass=function(t){LC(this.node,t)},t.prototype.setClass=function(t){this.node.setAttribute("class",t)},t.prototype.removeChildNodes=function(){for(;this.node.childNodes.length>0;)this.node.removeChild(this.node.firstChild)},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.dispose=function(){this.removeNode()},t}(),XC=function(t){function e(e){return t.call(this,e)||this}return s_(e,t),e.prototype.add=function(t){t&&this.node.appendChild(t.node)},e.prototype.addToBack=function(t){if(t){var e=this.node.childNodes[0];e?e!=t.node&&this.node.insertBefore(t.node,e):this.node.appendChild(t.node)}},e.prototype.removeElement=function(t){if(t)try{t.node&&t.node.parentNode==this.node&&this.node.removeChild(t.node)}catch(e){}},e.prototype.hasChild=function(t){for(var e=0;e<this.node.childNodes.length;e++)if(this.node.childNodes[e]==t.node)return!0;return!1},Object.defineProperty(e.prototype,"content",{get:function(){return this.node.innerHTML},set:function(t){this.node.innerHTML=t},enumerable:!0,configurable:!0}),e.prototype.removeChildren=function(){if(this.node.childNodes)for(;this.node.childNodes.length>0;){var t=this.node.firstChild;t&&t.parentNode&&t.parentNode.removeChild(t)}},e}(qC),ZC=function(t){function e(){var e=t.call(this)||this;return e._purposes={stroke:Cx("#e5e5e5"),fill:Cx("#f3f3f3"),primaryButton:Cx("#6794dc"),primaryButtonHover:Cx("#6771dc"),primaryButtonDown:Cx("#68dc75"),primaryButtonActive:Cx("#68dc75"),primaryButtonText:Cx("#FFFFFF"),primaryButtonStroke:Cx("#FFFFFF"),secondaryButton:Cx("#d9d9d9"),secondaryButtonHover:Cx("#d9d9d9").brighten(-.25),secondaryButtonDown:Cx("#d9d9d9").brighten(-.35),secondaryButtonActive:Cx("#d9d9d9").brighten(.35),secondaryButtonText:Cx("#000000"),secondaryButtonStroke:Cx("#FFFFFF"),grid:Cx("#000000"),background:Cx("#ffffff"),alternativeBackground:Cx("#000000"),text:Cx("#000000"),alternativeText:Cx("#FFFFFF"),disabledBackground:Cx("#999999"),positive:Cx("#67dc75"),negative:Cx("#dc6788")},e.className="InterfaceColorSet",e.applyTheme(),e}return s_(e,t),e.prototype.debug=function(){},e.prototype.getFor=function(t){return this._purposes[t]},e.prototype.setFor=function(t,e){this._purposes[t]=e},e}(kx);ex.registeredClasses.InterfaceColorSet=ZC;var QC=new $w,$C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domEvents={},e}return s_(e,t),e.prototype._addDOMEvent=function(t,e,i,n){var r=this;if(!this._domEvents[t]){var o=function(t){i.call(n,e,t)};this.target.element.addEventListener(t,o,!1),this._domEvents[t]=new ww((function(){delete r._domEvents[t],r.target.element.removeEventListener(t,o,!1)}))}return this._domEvents[t].increment()},e.prototype._dispatchKeyboardEvent=function(t,e){this.target.events.isEnabled(t)&&this.target.events.dispatchImmediately(t,{type:t,target:this.target,event:e})},e.prototype._on=function(e,i,n,r,o,a){var s=t.prototype._on.call(this,e,i,n,r,o,a),u=[s.disposer];switch(i){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":case"out":this.target.hoverable=!0;break;case"focus":case"blur":case"focusin":case"focusout":this.target.focusable=!0;break;case"keydown":case"keyup":case"keypress":case"input":u.push(this._addDOMEvent(i,i,this._dispatchKeyboardEvent,this))}return s.disposer=new bw(u),s},e}(Aw),JC=function(t){function e(e){var i=t.call(this)||this;return i._eventDispatcher=new $C(i),i.eventDisposers=new $w,i.replacedStyles=new $w,i._clickable=!1,i._contextMenuDisabled=!1,i._hoverable=!1,i._trackable=!1,i._draggable=!1,i._swipeable=!1,i._resizable=!1,i._wheelable=!1,i._inert=!1,i._isHover=!1,i.isRealHover=!1,i._isHoverByTouch=!1,i._isDown=!1,i._isFocused=!1,i._isTouchProtected=!1,i._inertiaOptions=new $w,i.inertias=new $w,i._hitOptions={},i._hoverOptions={},i._swipeOptions={},i._keyboardOptions={},i._mouseOptions={},i._cursorOptions={defaultStyle:[{property:"cursor",value:"default"}]},i._disposers.push(i._eventDispatcher),i._element=e,i.className="InteractionObject",i._disposers.push(new Qw(i.inertias)),i._disposers.push(new Qw(i.eventDisposers)),i.applyTheme(),i}return s_(e,t),Object.defineProperty(e.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHover",{get:function(){return this._isHover},set:function(t){this.isHover!=t&&(this._isHover=t,t?aP().overObjects.moveValue(this):(this.isRealHover=!1,aP().overObjects.removeValue(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHoverByTouch",{get:function(){return this._isHoverByTouch},set:function(t){this.isHoverByTouch!=t&&(this._isHoverByTouch=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overPointers",{get:function(){return this._overPointers||(this._overPointers=new ax),this._overPointers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDown",{get:function(){return this._isDown},set:function(t){this.isDown!=t&&(this._isDown=t,t?aP().downObjects.moveValue(this):aP().downObjects.removeValue(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"downPointers",{get:function(){return this._downPointers||(this._downPointers=new ax),this._downPointers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(t){this.isFocused!=t&&(this._isFocused=t,aP().focusedObject=t?this:void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTouchProtected",{get:function(){return this._isTouchProtected},set:function(t){this._isTouchProtected!=t&&(this._isTouchProtected=t,t?aP().unprepElement(this):(this.draggable||this.swipeable||this.trackable||this.resizable)&&aP().prepElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clickable",{get:function(){return this._clickable},set:function(t){this._clickable!==t&&(this._clickable=t,aP().processClickable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contextMenuDisabled",{get:function(){return this._contextMenuDisabled},set:function(t){this._contextMenuDisabled!==t&&(this._contextMenuDisabled=t,aP().processContextMenu(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverable",{get:function(){return this._hoverable},set:function(t){this._hoverable!==t&&(this._hoverable=t,aP().processHoverable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackable",{get:function(){return this._trackable},set:function(t){this._trackable!==t&&(this._trackable=t,aP().processTrackable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable},set:function(t){this._draggable!==t&&(this._draggable=t,aP().processDraggable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeable",{get:function(){return this._swipeable},set:function(t){this._swipeable!==t&&(this._swipeable=t,aP().processSwipeable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this._resizable},set:function(t){this._resizable!==t&&(this._resizable=t,aP().processResizable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wheelable",{get:function(){return this._wheelable},set:function(t){this._wheelable!==t&&(this._wheelable=t,aP().processWheelable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inert",{get:function(){return this._inert},set:function(t){this._inert!==t&&(this._inert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusable",{get:function(){return this._focusable},set:function(t){this._focusable!==t&&(this._focusable=t,this._focusable&&-1==this.tabindex&&(this._tabindex=1),aP().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return C_(this._tabindex,-1)},set:function(t){this._tabindex!==t&&(this._tabindex=t,t>-1&&(this.focusable=!0),aP().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},set:function(t){this._element=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalPosition",{get:function(){return this._originalPosition||{x:0,y:0}},set:function(t){this._originalPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalScale",{get:function(){return C_(this._originalScale,1)},set:function(t){this._originalScale!==t&&(this._originalScale=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalAngle",{get:function(){return C_(this._originalAngle,0)},set:function(t){this._originalAngle!==t&&(this._originalAngle=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inertiaOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("inertiaOptions",this._inertiaOptions):this._inertiaOptions},set:function(t){this._inertiaOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hitOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hitOptions",this._hitOptions):this._hitOptions},set:function(t){this._hitOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hoverOptions",this._hoverOptions):this._hoverOptions},set:function(t){this._hoverOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("swipeOptions",this._swipeOptions):this._swipeOptions},set:function(t){this._swipeOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyboardOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("keyboardOptions",this._keyboardOptions):this._keyboardOptions},set:function(t){this._keyboardOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mouseOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("mouseOptions",this._mouseOptions):this._mouseOptions},set:function(t){this._mouseOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("cursorOptions",this._cursorOptions):this._cursorOptions},set:function(t){this._cursorOptions=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.inertiaOptions=e.inertiaOptions,this.hitOptions=e.hitOptions,this.hoverOptions=e.hoverOptions,this.swipeOptions=e.swipeOptions,this.keyboardOptions=e.keyboardOptions,this.cursorOptions=e.cursorOptions,this.contextMenuDisabled=e.contextMenuDisabled,aP().applyCursorOverStyle(this)},e.prototype.setEventDisposer=function(t,e,i){var n=this.eventDisposers.getKey(t);e?null==n&&this.eventDisposers.setKey(t,i()):null!=n&&(n.dispose(),this.eventDisposers.removeKey(t))},e.prototype.dispose=function(){t.prototype.dispose.call(this);var e=aP();e.overObjects.removeValue(this),e.downObjects.removeValue(this),e.trackedObjects.removeValue(this),e.transformedObjects.removeValue(this),this.isHover&&this.wheelable&&e.unlockWheel(),e.focusedObject===this&&(e.focusedObject=void 0)},e}(Sx),tP=function(){function t(t,e){this._disposed=!1,this.directionX=0,this.directionY=0,this.interaction=t,this.keyboardEvent=e,this._startedOn=(new Date).getTime(),aP().processDragStart(t),GP.animations.push(this),this.update()}return t.prototype.update=function(){var t=this.interaction,e=aP().getKeyboardOption(t,"speed"),i=aP().getKeyboardOption(t,"accelleration"),n=aP().getKeyboardOption(t,"accellerationDelay"),r={x:0,y:0};this.keyboardEvent.shiftKey?(e*=.5,i=1):this.keyboardEvent.ctrlKey&&(e*=2);var o=(new Date).getTime()-this._startedOn,a=o-n;if(i>0&&a>0){var s=o/n;o=n,r.x+=this.directionX*(e*i*s*a),r.y+=this.directionY*(e*i*s*a)}r.x+=this.directionX*(e*o),r.y+=this.directionY*(e*o),aP().handleTransformMove(t,r,{x:0,y:0},this.keyboardEvent,!0,!1)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(aP().processDragStop(this.interaction),sw(GP.animations,this))},t}(),eP=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.animations=[],o.className="Inertia",o.interaction=e,o.type=i,o.point=n,o.startPoint=r,o._disposers.push(new TC(o.animations)),o}return s_(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this.point.x},set:function(t){S_(t)&&(this.point.x=t,this.handleMove())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.point.y},set:function(t){S_(t)&&(this.point.y=t,this.handleMove())},enumerable:!0,configurable:!0}),e.prototype.handleMove=function(){if(this.interaction.events.isEnabled("drag")){var t={type:"drag",target:this.interaction,shift:{x:this.x-this.startPoint.x,y:this.y-this.startPoint.y},startPoint:this.startPoint,point:{x:this.x,y:this.y},touch:!1};this.interaction.events.dispatchImmediately("drag",t)}},e.prototype.done=function(){this.interaction.inertias.removeKey(this.type),"move"===this.type&&aP().processDragStop(this.interaction),this.dispose()},e}(kx),iP=new(function(){function t(){}return t.prototype.getEventKey=function(t){var e;switch(t.keyCode||t.which){case 38:e="up";break;case 40:e="down";break;case 37:e="left";break;case 39:e="right";break;case 13:e="enter";break;case 27:e="esc";break;case 36:e="home";break;case 35:e="end";break;case 9:e="tab";break;case 17:e="ctrl";break;case 18:e="alt";break;case 16:e="shift";break;case 32:e="space";break;case 36:e="home";break;case 35:e="end";break;case 33:e="pgup";break;case 34:e="pgdn";break;case 45:e="ins";break;case 46:e="del";break;case 107:e="plus";break;case 109:e="minus";break;default:e="other"}return e},t.prototype.isKey=function(t,e){var i=this.getEventKey(t);return k_(e)&&(e=[e]),-1!==e.indexOf(i)},t.prototype.shiftKey=function(t){return t.shiftKey},t.prototype.ctrlKey=function(t){return t.ctrlKey},t.prototype.altKey=function(t){return t.altKey},t.prototype.metaKey=function(t){return t.metaKey},t}());function nP(){return(new Date).getTime()}var rP=function(t){function e(){var i=t.call(this)||this;return i._globalEventsAdded=!1,i._pointerEvents={pointerdown:"mousedown",pointerup:"mouseup",pointermove:"mousemove",pointercancel:"mouseup",pointerover:"mouseover",pointerout:"mouseout",wheel:"wheel"},i._usePointerEventsOnly=!1,i._useTouchEventsOnly=!1,i._addHoverEvents=!0,i._passiveSupported=!1,i._delayedEvents={out:[]},i.overObjects=new ax,i.downObjects=new ax,i.trackedObjects=new ax,i.transformedObjects=new ax,i.pointers=new $w,i.inertiaOptions=new $w,i.hitOptions={doubleHitTime:300,hitTolerance:10,noFocus:!0},i.hoverOptions={touchOutBehavior:"leave",touchOutDelay:1e3},i.swipeOptions={time:500,verticalThreshold:75,horizontalThreshold:30},i.keyboardOptions={speed:.1,accelleration:1.2,accellerationDelay:2e3},i.mouseOptions={sensitivity:1},i.className="Interaction",i.body=i.getInteraction(document.body),i._disposers.push(i.body),window.hasOwnProperty("PointerEvent")?(i._pointerEvents.pointerdown="pointerdown",i._pointerEvents.pointerup="pointerup",i._pointerEvents.pointermove="pointermove",i._pointerEvents.pointercancel="pointercancel",i._pointerEvents.pointerover="pointerover",i._pointerEvents.pointerout="pointerout"):window.hasOwnProperty("MSPointerEvent")?(i._pointerEvents.pointerdown="MSPointerDown",i._pointerEvents.pointerup="MSPointerUp",i._pointerEvents.pointermove="MSPointerMove",i._pointerEvents.pointercancel="MSPointerUp",i._pointerEvents.pointerover="MSPointerOver",i._pointerEvents.pointerout="MSPointerOut"):"undefined"!=typeof matchMedia&&matchMedia("(pointer:fine)").matches?"ontouchstart"in window&&(i._addHoverEvents=!1,i._useTouchEventsOnly=!0):window.navigator.userAgent.match(/MSIE /)||i.fullFF()?i._usePointerEventsOnly=!0:i._useTouchEventsOnly=!0,"onwheel"in document.createElement("div")?i._pointerEvents.wheel="wheel":w_(document.onmousewheel)&&(i._pointerEvents.wheel="mousewheel"),i.inertiaOptions.setKey("move",{time:100,duration:500,factor:1,easing:fC}),i.inertiaOptions.setKey("resize",{time:100,duration:500,factor:1,easing:fC}),i._passiveSupported=e.passiveSupported,i.applyTheme(),i}return s_(e,t),e.prototype.fullFF=function(){return window.navigator.userAgent.match(/Firefox/)&&!window.navigator.userAgent.match(/Android/)},e.prototype.debug=function(){},e.prototype.addGlobalEvents=function(){var t=this;this._globalEventsAdded||(this._useTouchEventsOnly||(this._disposers.push(MC(document,this._pointerEvents.pointerdown,(function(e){t.handleGlobalPointerDown(e)}))),this._disposers.push(MC(document,this._pointerEvents.pointermove,(function(e){t.handleGlobalPointerMove(e)}))),this._disposers.push(MC(document,this._pointerEvents.pointerup,(function(e){t.handleGlobalPointerUp(e)}))),this._disposers.push(MC(document,this._pointerEvents.pointercancel,(function(e){t.handleGlobalPointerUp(e,!0)}))),this._disposers.push(MC(document,"mouseenter",(function(e){w_(e.relatedTarget)||0!=e.buttons&&0!=e.which||t.handleDocumentLeave(e)})))),this._usePointerEventsOnly||(this._disposers.push(MC(document,"touchstart",(function(e){t.handleGlobalTouchStart(e)}))),this._disposers.push(MC(document,"touchmove",(function(e){t.handleGlobalTouchMove(e)}))),this._disposers.push(MC(document,"touchend",(function(e){t.handleGlobalTouchEnd(e)})))),this._disposers.push(MC(document,"keydown",(function(e){t.handleGlobalKeyDown(e)}))),this._disposers.push(MC(document,"keyup",(function(e){t.handleGlobalKeyUp(e)}))),this._globalEventsAdded=!0)},e.prototype.processClickable=function(t){this.processTouchable(t)},e.prototype.processContextMenu=function(t){t.contextMenuDisabled?t.eventDisposers.hasKey("contextMenuDisabled")||t.eventDisposers.setKey("contextMenuDisabled",MC(t.element,"contextmenu",(function(t){t.preventDefault()}))):t.eventDisposers.hasKey("contextMenuDisabled")&&t.eventDisposers.getKey("contextMenuDisabled").dispose()},e.prototype.processHoverable=function(t){var e=this;if(t.hoverable||t.trackable)this.addGlobalEvents(),this.applyCursorOverStyle(t),!t.eventDisposers.hasKey("hoverable")&&this._addHoverEvents&&t.eventDisposers.setKey("hoverable",new bw([MC(t.element,this._pointerEvents.pointerout,(function(i){return e.handlePointerOut(t,i)})),MC(t.element,this._pointerEvents.pointerover,(function(i){return e.handlePointerOver(t,i)}))])),t.trackable;else{var i=t.eventDisposers.getKey("hoverable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("hoverable"))}this.processTouchable(t)},e.prototype.processMovable=function(t){(t.draggable||t.swipeable||t.trackable||t.resizable)&&(this.isGlobalElement(t)||t.isTouchProtected||this.prepElement(t),this.applyCursorOverStyle(t)),this.processTouchable(t)},e.prototype.processTrackable=function(t){this.processHoverable(t),this.processMovable(t),t.trackable?this.trackedObjects.moveValue(t):this.trackedObjects.removeValue(t)},e.prototype.processDraggable=function(t){this.processMovable(t)},e.prototype.processSwipeable=function(t){this.processMovable(t)},e.prototype.processResizable=function(t){this.processMovable(t)},e.prototype.processWheelable=function(t){var e=this;if(t.wheelable)t.eventDisposers.hasKey("wheelable")||t.eventDisposers.setKey("wheelable",new bw([MC(t.element,this._pointerEvents.wheel,(function(i){return e.handleMouseWheel(t,i)}),!!this._passiveSupported&&{passive:!1}),t.events.on("out",(function(i){t.wheelable&&e.unlockWheel()})),t.events.on("over",(function(i){t.wheelable&&e.lockWheel()}))]));else{var i=t.eventDisposers.getKey("wheelable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("wheelable"))}},e.prototype.processFocusable=function(t){var e=this;if(!0===t.focusable&&t.tabindex>-1&&!this._useTouchEventsOnly)t.eventDisposers.hasKey("focusable")||t.eventDisposers.setKey("focusable",new bw([MC(t.element,"focus",(function(i){return e.handleFocus(t,i)})),MC(t.element,"blur",(function(i){return e.handleBlur(t,i)})),MC(t.element,this._pointerEvents.pointerdown,(function(i){return e.handleFocusBlur(t,i)})),MC(t.element,"touchstart",(function(i){return e.handleFocusBlur(t,i)}),!!this._passiveSupported&&{passive:!1})]));else{var i=t.eventDisposers.getKey("focusable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("focusable"))}},e.prototype.processTouchable=function(t){var e=this;if(t.clickable||t.hoverable||t.trackable||t.draggable||t.swipeable||t.resizable)this.addGlobalEvents(),t.eventDisposers.hasKey("touchable")||(this._useTouchEventsOnly||this._usePointerEventsOnly?this._useTouchEventsOnly?this._usePointerEventsOnly||t.eventDisposers.setKey("touchable",MC(t.element,"touchstart",(function(i){return e.handleTouchDown(t,i)}),!!this._passiveSupported&&{passive:!1})):t.eventDisposers.setKey("touchable",MC(t.element,this._pointerEvents.pointerdown,(function(i){return e.handlePointerDown(t,i)}))):t.eventDisposers.setKey("touchable",new bw([MC(t.element,this._pointerEvents.pointerdown,(function(i){return e.handlePointerDown(t,i)})),MC(t.element,"touchstart",(function(i){return e.handleTouchDown(t,i)}),!!this._passiveSupported&&{passive:!1})])));else{var i=t.eventDisposers.getKey("touchable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("touchable"))}},e.prototype.handleFocus=function(t,e){if(t.focusable){if(t.isFocused=!0,t.events.isEnabled("focus")&&!GP.isPaused){var i={type:"focus",target:t,event:e};t.events.dispatchImmediately("focus",i)}}else e.preventDefault()},e.prototype.handleFocusBlur=function(t,e){!1!==t.focusable&&this.getHitOption(t,"noFocus")&&t.events.once("focus",(function(){t.events.disableType("blur"),NC(),t.sprite&&t.sprite.handleBlur(),t.events.enableType("blur")}))},e.prototype.handleBlur=function(t,e){if(t.focusable){if(t.isFocused=!1,t.events.isEnabled("blur")&&!GP.isPaused){var i={type:"blur",target:t,event:e};t.events.dispatchImmediately("blur",i)}}else e.preventDefault()},e.prototype.handleGlobalKeyDown=function(t){if(this.focusedObject)if(iP.isKey(t,"esc"))NC();else if(this.focusedObject.draggable&&iP.isKey(t,["up","down","left","right"])){t.preventDefault();var e=this.focusedObject;if(e.eventDisposers.hasKey("interactionKeyboardObject"))return;var i=new tP(e,t);switch(e.eventDisposers.setKey("interactionKeyboardObject",i),iP.getEventKey(t)){case"up":i.directionY=-1;break;case"down":i.directionY=1;break;case"left":i.directionX=-1;break;case"right":i.directionX=1}}},e.prototype.handleGlobalKeyUp=function(t){if(this.focusedObject){var e=this.focusedObject.eventDisposers.getKey("interactionKeyboardObject");null!=e&&(t.preventDefault(),e.dispose(),this.focusedObject.eventDisposers.removeKey("interactionKeyboardObject"))}},e.prototype.handleGlobalPointerMove=function(t){var e=this.getPointer(t);if(e.point=this.getPointerPoint(t),this.events.isEnabled("track")&&!GP.isPaused){var i={type:"track",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("track",i)}this.addBreadCrumb(e,e.point),this.handleGlobalMove(e,t)},e.prototype.handleGlobalPointerDown=function(t){this.processDelayed();var e=this.getPointer(t);if(this.events.isEnabled("down")&&!GP.isPaused){var i={type:"down",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("down",i)}},e.prototype.preventTouchAction=function(t){t.defaultPrevented||t.preventDefault()},e.prototype.handleGlobalPointerUp=function(t,e){void 0===e&&(e=!1);var i=this.getPointer(t);if(this.events.isEnabled("up")&&!GP.isPaused){var n={type:"up",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(i,t,e)},e.prototype.handleGlobalTouchMove=function(t){for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(i.point=this.getPointerPoint(t.changedTouches[e]),this.events.isEnabled("track")&&!GP.isPaused){var n={type:"track",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("track",n)}this.addBreadCrumb(i,i.point),this.handleGlobalMove(i,t)}},e.prototype.handleGlobalTouchStart=function(t){this.processDelayed();for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(!this._usePointerEventsOnly&&this.events.isEnabled("down")&&!GP.isPaused){var n={type:"down",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("down",n)}}},e.prototype.handleGlobalTouchEnd=function(t){for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(this.events.isEnabled("up")&&!GP.isPaused){var n={type:"up",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(i,t)}},e.prototype.handlePointerDown=function(t,e){var i=this.getPointer(e);(i.touch||1==e.which||3==e.which)&&(i.button=e.which,this.resetPointer(i,e),this.handleDown(t,i,e))},e.prototype.handlePointerOver=function(t,e){var i=this.getPointer(e);this.handleOver(t,i,e)},e.prototype.handlePointerOut=function(t,e){var i=this.getPointer(e);this.handleOut(t,i,e)},e.prototype.handleMouseWheel=function(t,e){var i=this.getPointer(e);i.point=this.getPointerPoint(e);var n,r,o=1;if(1==e.deltaMode&&(o=50),o*=this.getMouseOption(t,"sensitivity"),!(e instanceof WheelEvent))throw new Error("Invalid event type");n=Math.round(-1*e.wheelDeltaX||e.deltaX)*o,r=Math.round(-1*e.wheelDeltaY||e.deltaY)*o,this.handleWheel(t,i,n,r,e)},e.prototype.handleTouchDown=function(t,e){for(var i=0;i<e.changedTouches.length;i++){var n=this.getPointer(e.changedTouches[i]);this.maybePreventDefault(t,e,n),this.resetPointer(n,e.changedTouches[i]),this.handleDown(t,n,e)}},e.prototype.handleHit=function(t,e,i){var n=nP();if(t.lastHit&&t.lastHit>=n-this.getHitOption(t,"doubleHitTime")){if(n-t.lastHit<100)return;if(t.lastHit=void 0,t.lastHitPointer=void 0,t.events.isEnabled("doublehit")&&!GP.isPaused){var r={type:"doublehit",target:t,point:e.point,event:i,touch:e.touch};t.events.dispatchImmediately("doublehit",r)}}else t.lastHit=n,t.lastHitPointer=e,3===e.button?t.events.isEnabled("rightclick")&&!GP.isPaused&&(r={type:"rightclick",target:t,event:i},t.events.dispatchImmediately("rightclick",r)):t.events.isEnabled("hit")&&!GP.isPaused&&(r={type:"hit",target:t,event:i,point:e.point,touch:e.touch},t.events.dispatchImmediately("hit",r))},e.prototype.handleOver=function(t,e,i,n){if(void 0===n&&(n=!1),t.hoverable&&(this.processDelayed(),t.overPointers.moveValue(e),!t.isRealHover&&(t.isHover=!0,t.isRealHover=!0,this.overObjects.moveValue(t),this.handleTrack(this.body,e,i,!0),t.events.isEnabled("over")&&!GP.isPaused))){var r={type:"over",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("over",r)}},e.prototype.handleOut=function(t,e,i,n,r){var o=this;if(void 0===n&&(n=!1),void 0===r&&(r=!1),t.hoverable&&(t.overPointers.removeValue(e),t.isHover&&(!t.hasDelayedOut||r))){if(n&&t.overPointers.length)return;if(e.touch&&!r&&!this.old(e)){var a=this.getHoverOption(t,"touchOutBehavior");if("leave"==a)return this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:i,keepUntil:nP()+500}),void(t.hasDelayedOut=!0);if("delay"==a&&this.getHoverOption(t,"touchOutDelay"))return void this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:i,keepUntil:nP()+500,timeout:this.setTimeout((function(){o.handleOut(t,e,i,!0)}),this.getHoverOption(t,"touchOutDelay"))})}if(t.isHover=!1,this.overObjects.removeValue(t),t.events.isEnabled("out")&&!GP.isPaused){var s={type:"out",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("out",s)}t.overPointers.clear(),t.hasDelayedOut=!1}},e.prototype.processDelayed=function(){for(var t;t=this._delayedEvents.out.pop();)t.timeout&&t.timeout.dispose(),this.handleOut(t.io,t.pointer,t.event,!1,!0)},e.prototype.handleDown=function(t,e,i){if(this.maybePreventDefault(t,i,e),t.inert&&this.stopInertia(t),this.handleOver(t,e,i,!0),t.downPointers.moveValue(e),this.applyCursorDownStyle(t,e),t.isDown||(!1!==t.focusable&&this.getHitOption(t,"noFocus")&&this.focusedObject&&NC(),t.isDown=!0,this.downObjects.moveValue(t),t.draggable&&this.processDragStart(t,e,i),t.resizable&&this.processResizeStart(t,e,i)),t.events.isEnabled("down")&&!GP.isPaused){var n={type:"down",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("down",n)}},e.prototype.handleGlobalUp=function(t,e,i){var n=this;void 0===i&&(i=!1);var r=this.downObjects.values.slice();r.sort((function(t,e){if(t&&e){var i=t.element.compareDocumentPosition(e.element);return i&Node.DOCUMENT_POSITION_CONTAINED_BY?1:i&Node.DOCUMENT_POSITION_CONTAINS?-1:0}return 0})),ow(r,(function(r){r&&r.downPointers.contains(t)&&n.handleUp(r,t,e,i)}))},e.prototype.handleDocumentLeave=function(t){var e=this;Ww(this.downObjects.backwards().iterator(),(function(i){i.downPointers.each((function(n){e.handleUp(i,n,t)}))}))},e.prototype.handleUp=function(t,e,i,n){if(void 0===n&&(n=!1),this.restoreCursorDownStyle(t,e),t.downPointers.removeValue(e),(e.touch||this._useTouchEventsOnly)&&this.handleOut(t,e,i,!0),t.isDown){if(0==t.downPointers.length&&(t.isDown=!1,this.downObjects.removeValue(t)),t.events.isEnabled("up")&&!GP.isPaused){var r={type:"up",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("up",r)}n||(t.swipeable&&this.swiped(t,e)?this.handleSwipe(t,e,i):(t.clickable&&!this.moved(e,this.getHitOption(t,"hitTolerance"))&&this.handleHit(t,e,i),t.inert&&this.moved(e,this.getHitOption(t,"hitTolerance"))?this.handleInertia(t,e):t.draggable&&this.processDragStop(t,e,i),t.resizable&&this.processResizeStop(t,e,i)))}},e.prototype.maybePreventDefault=function(t,e,i){!w_(e)||!(t.draggable||t.swipeable||t.trackable||t.resizable)||this.isGlobalElement(t)||!1===e.cancelable||t.isTouchProtected&&i&&i.touch||e.preventDefault()},e.prototype.handleGlobalMove=function(t,e){var i,n=this;if(!t.touch){var r="function"==typeof(i=t.lastEvent).composedPath?i.composedPath()[0]:i.target;Ww(this.overObjects.backwards().iterator(),(function(i){if(i&&i.overPointers.contains(t)&&i.hoverable){var o=!1;i.element&&t.lastEvent&&BC(i.element,r)||(o=!0),o&&n.handleOut(i,t,e,!0)}}))}Ww(this.transformedObjects.backwards().iterator(),(function(i){!i.downPointers.contains(t)||i.swipeable&&n.swiping(i,t)||!i.draggable&&!i.resizable||n.handleTransform(i,e)})),Ww(this.trackedObjects.backwards().iterator(),(function(i){i.overPointers.contains(t)||n.handleTrack(i,t,e)}))},e.prototype.handleTrack=function(t,e,i,n){if(void 0===n&&(n=!1),(n||this.moved(e,0))&&t.events.isEnabled("track")&&!GP.isPaused){var r={type:"track",target:t,event:i,point:e.point,pointer:e,touch:e.touch};t.events.dispatchImmediately("track",r)}},e.prototype.handleSwipe=function(t,e,i){if(t.events.isEnabled("swipe")&&!GP.isPaused){var n={type:"swipe",target:t,event:i,touch:e.touch};t.events.dispatchImmediately("swipe",n)}e.startPoint.x<e.point.x?t.events.isEnabled("swiperight")&&!GP.isPaused&&(n={type:"swiperight",target:t,event:i,touch:e.touch},t.events.dispatchImmediately("swiperight",n)):t.events.isEnabled("swipeleft")&&!GP.isPaused&&(n={type:"swipeleft",target:t,event:i,touch:e.touch},t.events.dispatchImmediately("swipeleft",n))},e.prototype.handleWheel=function(t,e,i,n,r){var o={x:i,y:n};t.events.isEnabled("wheel")&&!GP.isPaused&&t.events.dispatchImmediately("wheel",{type:"wheel",target:t,event:r,point:e.point,shift:o}),i<0?t.events.isEnabled("wheelleft")&&!GP.isPaused&&t.events.dispatchImmediately("wheelleft",{type:"wheelleft",target:t,event:r,point:e.point,shift:o}):i>0?t.events.isEnabled("swiperight")&&!GP.isPaused&&t.events.dispatchImmediately("wheelright",{type:"wheelright",target:t,event:r,point:e.point,shift:o}):n<0?t.events.isEnabled("wheelup")&&!GP.isPaused&&t.events.dispatchImmediately("wheelup",{type:"wheelup",target:t,event:r,point:e.point,shift:o}):n>0&&t.events.isEnabled("wheeldown")&&!GP.isPaused&&t.events.dispatchImmediately("wheeldown",{type:"wheeldown",target:t,event:r,point:e.point,shift:o})},e.prototype.handleInertia=function(t,e){t.draggable&&0===t.downPointers.length&&this.handleMoveInertia(t,e),t.resizable&&t.downPointers.length>1&&this.handleResizeInertia(t,e)},e.prototype.handleMoveInertia=function(t,e){var i=t,n={x:e.point.x,y:e.point.y},r={x:e.startPoint.x,y:e.startPoint.y},o=new eP(i,"move",n,r),a=this.getTrailPoint(e,nP()-this.getInertiaOption(t,"move","time"));if(void 0!==a){var s=this.getInertiaOption(t,"move","factor"),u=[{to:e.point.x+(e.point.x-a.point.x)*s,property:"x"},{to:e.point.y+(e.point.y-a.point.y)*s,property:"y"}],l=new EC(o,u,this.getInertiaOption(t,"move","duration"),this.getInertiaOption(t,"move","easing")).start();this._disposers.push(l.events.on("animationended",(function(t){o.done()}))),t.inertias.setKey("move",o)}else this.processDragStop(t,e,e.lastUpEvent)},e.prototype.handleResizeInertia=function(t,e){},e.prototype.handleTransform=function(t,e){var i,n,r,o=t.downPointers.getIndex(0),a=null,s=null;o&&(a=o.point,s=o.startPoint),r=n={x:t.originalPosition.x,y:t.originalPosition.y};for(var u=!0,l=1;l<t.downPointers.length;l++){var h=t.downPointers.getIndex(l);if(s.x!=h.startPoint.x&&s.y!=h.startPoint.y){u=!1,n=(i=h).point,r=i.startPoint;break}}var c=o&&this.moved(o,0);if(t.draggable&&o&&o.dragStartEvents&&o.dragStartEvents.length&&c&&t.events.isEnabled("dragstart")&&!GP.isPaused&&t.events.dispatchImmediately("dragstart",o.dragStartEvents.shift()),u&&t.draggable)this.handleTransformMove(t,a,s,e,c,o.touch);else{var p=i&&this.moved(i,0);t.draggable&&t.resizable?(this.handleTransformMove(t,a,s,e,c&&p,o.touch),this.handleTransformResize(t,a,s,n,r,e,c&&p,o.touch)):(t.draggable&&this.handleTransformMove(t,a,s,e,c,o.touch),!t.resizable||u&&!e.ctrlKey||this.handleTransformResize(t,a,s,n,r,e,c&&p,o.touch))}},e.prototype.handleTransformMove=function(t,e,i,n,r,o){if(r&&t.events.isEnabled("drag")&&!GP.isPaused&&(!t.isTouchProtected||!o)){var a={type:"drag",target:t,event:n,shift:{x:e.x-i.x,y:e.y-i.y},startPoint:i,point:e,touch:o};t.events.dispatchImmediately("drag",a)}},e.prototype.handleTransformResize=function(t,e,i,n,r,o,a,s){if(t.events.isEnabled("resize")&&!GP.isPaused&&(!t.isTouchProtected||!s)){var u={type:"resize",target:t,event:o,scale:W_(e,i,n,r),startPoint1:i,point1:e,startPoint2:r,point2:n,touch:s};t.events.dispatchImmediately("resize",u)}},e.prototype.processDragStart=function(t,e,i){this.transformedObjects.moveValue(t);var n={type:"dragstart",target:t,event:i,touch:!!e&&e.touch};e&&(e.dragTarget=t),e&&e.dragStartEvents?e.dragStartEvents.push(n):GP.isPaused||t.dispatchImmediately("dragstart",n)},e.prototype.processDragStop=function(t,e,i){if(e||(e=this.getDragPointer(t)),e&&(e.dragTarget=void 0),this.transformedObjects.removeValue(t),(!e||this.moved(e,0))&&t.events.isEnabled("dragstop")&&!GP.isPaused){var n={type:"dragstop",target:t,touch:!!e&&e.touch};t.events.dispatchImmediately("dragstop",n)}},e.prototype.processResizeStart=function(t,e,i){this.transformedObjects.moveValue(t)},e.prototype.processResizeStop=function(t,e,i){this.transformedObjects.removeValue(t)},e.prototype.dragStart=function(t,e){e||(e=this.getDragPointer(t)),e&&this.handleDown(t,e,e.lastDownEvent)},e.prototype.dragStop=function(t,e,i){e||(e=this.getDragPointer(t)),e&&!i&&this.handleGlobalUp(e,e.lastUpEvent,i)},e.prototype.getDragPointer=function(t){return t?t.downPointers.getIndex(0):this.transformedObjects.length?this.getDragPointer(this.transformedObjects.getIndex(0)):void 0},e.prototype.getPointerId=function(t){return(w_(t.identifier)?""+t.identifier:w_(t.pointerId)?""+t.pointerId:"m").replace("-","")},e.prototype.getPointerPoint=function(t){return{x:t.clientX,y:t.clientY}},e.prototype.getPointer=function(t){var e,i=this.getPointerId(t),n=this.getPointerPoint(t);return this.pointers.hasKey(i)?(e=this.pointers.getKey(i)).touch=this.isPointerTouch(t):(e={id:i,touch:this.isPointerTouch(t),startPoint:n,startTime:nP(),point:n,track:[],swipeCanceled:!1,dragStartEvents:[]},this.addBreadCrumb(e,n),this.pointers.setKey(i,e)),e.lastEvent=t,this.lastPointer=e,e},e.prototype.isPointerTouch=function(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&w_(t.pointerType))switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(w_(t.type)&&t.type.match(/^mouse/))return!1;return!0},e.prototype.resetPointer=function(t,e){var i=this.getPointerPoint(e);t.startTime=nP(),t.startPoint={x:i.x,y:i.y},t.point={x:i.x,y:i.y},t.track=[],t.swipeCanceled=!1},e.prototype.addBreadCrumb=function(t,e){t.track.push({timestamp:nP(),point:e})},e.prototype.lockDocument=function(){this.prepElement(this.body)},e.prototype.unlockDocument=function(){0==this.transformedObjects.length&&this.restoreAllStyles(this.body)},e.prototype.lockElement=function(t){this.prepElement(t)},e.prototype.unlockElement=function(t){this.restoreAllStyles(t)},e.prototype.lockWheel=function(){window.addEventListener(this._pointerEvents.wheel,this.wheelLockEvent,!!this._passiveSupported&&{passive:!1})},e.prototype.unlockWheel=function(){window.removeEventListener(this._pointerEvents.wheel,this.wheelLockEvent)},e.prototype.isLocalElement=function(t,e,i){var n=this.getCache("local_pointer_"+t.id);if(w_(n))return n;var r=zC(e)||document;if(r.elementFromPoint){var o=r.elementFromPoint(t.point.x,t.point.y),a=o&&BC(e,o);return this.setCache("local_pointer_"+t.id+"_"+i,a,100),a}return!1},e.prototype.wheelLockEvent=function(t){return t.preventDefault(),!1},e.prototype.prepElement=function(t){var e=t.element;if(e){for(var i=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],n=0;n<i.length;n++)i[n]in e.style&&this.setTemporaryStyle(t,i[n],"none");this.setTemporaryStyle(t,"tapHighlightColor","rgba(0, 0, 0, 0)")}},e.prototype.unprepElement=function(t){var e=t.element;if(e){for(var i=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],n=0;n<i.length;n++)i[n]in e.style&&this.restoreStyle(t,i[n]);this.restoreStyle(t,"tapHighlightColor")}},e.prototype.getHitOption=function(t,e){var i=t.hitOptions[e];return void 0===i&&(i=this.hitOptions[e]),i},e.prototype.getHoverOption=function(t,e){var i=t.hoverOptions[e];return void 0===i&&(i=this.hoverOptions[e]),i},e.prototype.getSwipeOption=function(t,e){var i=t.swipeOptions[e];return void 0===i&&(i=this.swipeOptions[e]),i},e.prototype.getKeyboardOption=function(t,e){var i=t.keyboardOptions[e];return void 0===i&&(i=this.keyboardOptions[e]),i},e.prototype.getMouseOption=function(t,e){var i=t.mouseOptions[e];return void 0===i&&(i=this.mouseOptions[e]),i},e.prototype.getInertiaOption=function(t,e,i){var n=t.inertiaOptions.getKey(e);return n&&w_(n[i])?n[i]:this.inertiaOptions.getKey(e)[i]},e.prototype.stopInertia=function(t){for(var e,i=["move","resize"],n=0;n<i.length;n++)if(e=i[n],t.inertias.hasKey(e)){var r=t.inertias.getKey(e);if(r){r.dispose();continue}}},e.prototype.swiping=function(t,e){var i=nP();return!(e.swipeCanceled||!t.swipeable)&&Math.abs(e.startPoint.y-e.point.y)<this.getSwipeOption(t,"verticalThreshold")&&e.startTime>i-this.getSwipeOption(t,"time")},e.prototype.swiped=function(t,e){var i=nP();return!e.swipeCanceled&&Math.abs(e.startPoint.x-e.point.x)>this.getSwipeOption(t,"horizontalThreshold")&&Math.abs(e.startPoint.y-e.point.y)<this.getSwipeOption(t,"verticalThreshold")&&e.startTime>i-this.getSwipeOption(t,"time")},e.prototype.applyCursorOverStyle=function(t){var e=t.cursorOptions;if(w_(e.overStyle))for(var i=0;i<e.overStyle.length;i++)VC(t.element,e.overStyle[i].property,e.overStyle[i].value)},e.prototype.applyCursorDownStyle=function(t,e){if(!e.touch){var i=t.cursorOptions.downStyle;if(t.downPointers.contains(e)&&w_(i))for(var n=0;n<i.length;n++)this.setTemporaryStyle(this.body,i[n].property,i[n].value),this.setTemporaryStyle(t,i[n].property,i[n].value)}},e.prototype.restoreCursorDownStyle=function(t,e){if(!e.touch){var i=t.cursorOptions.downStyle;if(t.downPointers.contains(e)&&w_(i))for(var n=0;n<i.length;n++)this.restoreStyle(this.body,i[n].property),this.restoreStyle(t,i[n].property)}},e.prototype.setGlobalStyle=function(t){for(var e=aP().body,i=D_(t)?t:[t],n=0;n<i.length;n++)this.setTemporaryStyle(e,i[n].property,i[n].value)},e.prototype.restoreGlobalStyle=function(t){for(var e=aP().body,i=D_(t)?t:[t],n=0;n<i.length;n++)this.restoreStyle(e,i[n].property)},e.prototype.isGlobalElement=function(t){return document.body===t.element},e.prototype.moved=function(t,e,i){void 0===i&&(i=300);var n=this.getShift(t);return Math.abs(n.x)>e||Math.abs(n.y)>e},e.prototype.old=function(t,e){return void 0===e&&(e=300),nP()-t.startTime>e},e.prototype.getShift=function(t){return{x:t.startPoint.x-t.point.x,y:t.startPoint.y-t.point.y}},e.prototype.getTrailPoint=function(t,e){for(var i,n=0;n<t.track.length;n++)if(t.track[n].timestamp>=e){i=t.track[n];break}return i},e.prototype.pointerExists=function(t,e){var i=!1;return t.each((function(t){t!=e&&(i=t.point.x==e.point.x&&t.point.y==e.point.y)})),i},e.prototype.getInteraction=function(t){return new JC(t)},e.prototype.setTemporaryStyle=function(t,e,i){var n=t.element;w_(n.style[e])&&!t.replacedStyles.hasKey(e)&&t.replacedStyles.setKey(e,n.style[e]),VC(n,e,i)},e.prototype.restoreStyle=function(t,e){t.replacedStyles.hasKey(e)?(t.element.style[e]=t.replacedStyles.getKey(e),t.replacedStyles.removeKey(e)):delete t.element.style[e]},e.prototype.restoreAllStyles=function(t){Ww(t.replacedStyles.iterator(),(function(e){var i=e[0],n=e[1];t.element.style[i]=n,t.replacedStyles.removeKey(i)}))},e.prototype.dispose=function(){this.isDisposed()||(t.prototype.dispose.call(this),this.restoreAllStyles(this.body),this.unlockWheel())},e.prototype.log=function(t,e,i){if(e.changedTouches)for(var n=0;n<e.changedTouches.length;n++)this.logTouch(t,e.type,e.changedTouches[n]);else{var r="";if(e.pointerType)switch(e.pointerType){case 2:r="touch";break;case 4:r="mouse";break;default:r=e.pointerType}else r="undefined"!=typeof TouchEvent&&e instanceof TouchEvent?"touch":e.type.match(/^mouse/)?"mouse":"???";var o;o=w_(e.identifier)?e.identifier:w_(e.pointerId)?e.pointerId:"???",i?console.log(t+" ("+i.uid+") "+e.type+" "+r+" "+o):console.log(t+" "+e.type+" "+r+" "+o)}},e.prototype.areTransformed=function(t){var e=this.transformedObjects.length;if(t)for(var i=D_(t)?t:[t],n=0;n<i.length;n++)this.transformedObjects.contains(i[n])&&e--;return e>0},e.prototype.logTouch=function(t,e,i){console.log(t+" "+e+" touch "+i.identifier)},Object.defineProperty(e,"passiveSupported",{get:function(){var t=this;if(null==this._passiveSupported)try{var e=Object.defineProperty({},"passive",{get:function(){t._passiveSupported=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(i){this._passiveSupported=!1}return this._passiveSupported},enumerable:!0,configurable:!0}),e}(Sx),oP=null;function aP(){return null==oP&&(oP=new rP),oP}var sP=function(t){function e(){var e=t.call(this)||this;return e.adapter=new gx(e),e._elements={},e._IOs={},e._content="",e._title="",e._classPrefix="ampopup",e._defaultStyles=!0,e._showCurtain=!1,e._draggable=!0,e._align="center",e._dynamicResize=!0,e._verticalAlign="middle",e._shift={x:0,y:0},e._tempShift={x:0,y:0},e._readerTitle="",e._closable=!0,e._cssLoaded=!1,e._fitTo="window",e.isTemplate=!1,e._sized=!1,e.className="Popup",e}return s_(e,t),e.prototype.open=function(){this.container&&(this._elements.wrapper&&this.container.appendChild(this._elements.wrapper),this._elements.curtain&&(this.container.appendChild(this._elements.curtain),this.showCurtain=this.showCurtain),this.positionElement(),this.dispatchImmediately("opened"))},e.prototype.close=function(){this._elements.wrapper&&this._elements.wrapper.parentElement&&this._elements.wrapper.parentElement.removeChild(this._elements.wrapper),this._elements.curtain&&this._elements.curtain.parentElement&&this._elements.curtain.parentElement.removeChild(this._elements.curtain),this.dispatchImmediately("closed"),this.releasePointers()},e.prototype.dispose=function(){this.close(),t.prototype.dispose.call(this)},e.prototype.positionElement=function(t){var e=this;void 0===t&&(t=!0),this._elements.wrapper&&setTimeout((function(){if(e._elements.wrapper){if(t||!e._sized){e._elements.wrapper.style.opacity="0.01",e._elements.wrapper.style.left="0",e._elements.wrapper.style.top="0",e._elements.wrapper.style.margin="0 0 0 0",e._elements.wrapper.style.width="",e._elements.wrapper.style.height="";var i=e._elements.wrapper.getBoundingClientRect();e._elements.wrapper.style.width=i.width+"px",e._elements.wrapper.style.height=i.height+"px",e._sized=!0}if(e.dynamicResize)for(var n=e._elements.wrapper.getElementsByTagName("img"),r=0;r<n.length;r++){var o=n[r];if(!o.complete){o.addEventListener("load",(function(){e.positionElement(!0)}));break}}setTimeout((function(){if(e._elements.wrapper){var i;switch(!t&&e._sized||!e._bbox?(i=e._elements.wrapper.getBoundingClientRect(),e._elements.wrapper.style.opacity=""):i=e._bbox,e.align){case"left":e._elements.wrapper.style.left="0",e._elements.wrapper.style.right="auto",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x);break;case"center":e._elements.wrapper.style.left="50%",e._elements.wrapper.style.right="auto",e._elements.wrapper.style.marginLeft=e.toStyle(Math.round(-i.width/2)+(e._shift.x+e._tempShift.x));break;case"right":e._elements.wrapper.style.left="auto",e._elements.wrapper.style.right="0",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x);break;default:e._elements.wrapper.style.left=e.toStyle(e.left)||"auto",e._elements.wrapper.style.right=e.toStyle(e.right)||"auto",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x)}switch(e.verticalAlign){case"top":e._elements.wrapper.style.top="0",e._elements.wrapper.style.bottom="auto",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y);break;case"middle":e._elements.wrapper.style.top="50%",e._elements.wrapper.style.bottom="auto",e._elements.wrapper.style.marginTop=e.toStyle(Math.round(-i.height/2)+(e._shift.y+e._tempShift.y));break;case"bottom":e._elements.wrapper.style.top="auto",e._elements.wrapper.style.bottom="0",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y);break;default:e._elements.wrapper.style.top=e.toStyle(e.top)||"auto",e._elements.wrapper.style.bottom=e.toStyle(e.bottom)||"auto",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y)}}}),1)}}),1)},e.prototype.setupDragging=function(){var t=this;this.draggable?(this._IOs.header.events.has("drag")||this._IOs.header.events.on("drag",(function(e){t._tempShift.x=e.shift.x,t._tempShift.y=e.shift.y,t.positionElement(!1)})),this._IOs.header.events.has("dragstop")||this._IOs.header.events.on("dragstop",(function(e){t._shift.x+=t._tempShift.x,t._shift.y+=t._tempShift.y,t._tempShift.x=0,t._tempShift.y=0,t.positionElement(!1)}))):this._IOs.header&&(aP().unprepElement(this._IOs.header),this._IOs.header.events.has("drag")&&this._IOs.header.events.off("drag"),this._IOs.header.events.has("dragstop")&&this._IOs.header.events.off("dragstop"))},e.prototype.toStyle=function(t){return w_(t)?S_(t)?t+"px":t.toString():null},Object.defineProperty(e.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",this._classPrefix)},set:function(t){this._classPrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classPrefixRaw",{get:function(){return this._classPrefix},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this.adapter.apply("content",this._content)},set:function(t){this._content!=t&&(this._content=t,this._elements.content||this.createContentElement(),this._elements.content.innerHTML=t,this.positionElement())},enumerable:!0,configurable:!0}),e.prototype.getClassNames=function(){return this.adapter.apply("classNames",{wrapperClass:this.classPrefix+"",headerClass:this.classPrefix+"-header",titleClass:this.classPrefix+"-title",contentClass:this.classPrefix+"-content",insideClass:this.classPrefix+"-inside",curtainClass:this.classPrefix+"-curtain",closeClass:this.classPrefix+"-close"})},e.prototype.createContentElement=function(){if(!this._elements.wrapper){var t=this.getClassNames(),e=document.createElement("div");e.className=t.contentClass,e.style.opacity="0.01";var i=document.createElement("a");i.className=t.closeClass;var n=document.createElement("div");n.className=t.headerClass;var r=document.createElement("div");r.innerHTML=this.title,r.className=t.titleClass,this.title||(r.style.display="none");var o=document.createElement("div");o.className=t.insideClass,o.innerHTML=this.content,this._IOs.wrapper=aP().getInteraction(e),this._IOs.header=aP().getInteraction(n),this._disposers.push(this._IOs.wrapper),this._IOs.wrapper.events.on("over",this.disablePointers,this),this._IOs.wrapper.events.on("out",this.releasePointers,this),this._IOs.close=aP().getInteraction(i),this._disposers.push(this._IOs.close),i.style.visibility="hidden",e.setAttribute("role","dialog"),n.appendChild(i),n.appendChild(r),e.appendChild(n),e.appendChild(o),this.container.appendChild(e),this._elements.wrapper=e,this._elements.header=n,this._elements.content=o,this._elements.title=r,this._elements.close=i,this.defaultStyles&&this.loadDefaultCSS(),this.createCurtainElement(),this.applyEvents(),this.applyReaderSettings(),this.setupDragging()}},Object.defineProperty(e.prototype,"title",{get:function(){return this.adapter.apply("title",this._title)},set:function(t){this._title!=t&&(this._title=t,this._elements.content||this.createContentElement(),this._elements.title.innerHTML=t,this.positionElement(),this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerTitle",{get:function(){return this.adapter.apply("readerTitle",""!=this._readerTitle?this._readerTitle:this.title)},set:function(t){this._readerTitle!=t&&(this._readerTitle=t,this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closable",{get:function(){return this.adapter.apply("closable",this._closable)},set:function(t){t!==this._closable&&(this._closable=t,this.applyEvents())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitTo",{get:function(){return this.adapter.apply("fitTo",this._fitTo)},set:function(t){t!=this._fitTo&&(this._fitTo=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",this._defaultStyles)},set:function(t){this._defaultStyles!=t&&(this._defaultStyles=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showCurtain",{get:function(){return this.adapter.apply("showCurtain",this._showCurtain)},set:function(t){this._showCurtain!=t&&(this._showCurtain=t,this._elements.curtain&&(this._elements.curtain.style.display=t?"block":"none"))},enumerable:!0,configurable:!0}),e.prototype.createCurtainElement=function(){var t=this.getClassNames(),e=document.createElement("div");e.className=t.curtainClass,this.container.appendChild(e),this._IOs.curtain=aP().getInteraction(e),this._disposers.push(this._IOs.curtain),this._IOs.curtain.events.on("over",this.disablePointers,this),this._IOs.curtain.events.on("out",this.releasePointers,this),e.style.display=this.showCurtain?"block":"none",this._elements.curtain=e},Object.defineProperty(e.prototype,"draggable",{get:function(){return this.adapter.apply("draggable",this._draggable)},set:function(t){this._draggable!=t&&(this._draggable=t,this.setupDragging())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dynamicResize",{get:function(){return this.adapter.apply("dynamicResize",this._dynamicResize)},set:function(t){this._dynamicResize!=t&&(this._dynamicResize=t,this.positionElement(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.adapter.apply("align",this._align)},set:function(t){this._align!=t&&(this._align=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",this._verticalAlign)},set:function(t){this._verticalAlign!=t&&(this._verticalAlign=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.adapter.apply("left",this._left)},set:function(t){this.left!=t&&(this._left=t,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.adapter.apply("right",this._right)},set:function(t){this.right!=t&&(this._right=t,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.adapter.apply("top",this._top)},set:function(t){this.top!=t&&(this._top=t,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.adapter.apply("bottom",this._bottom)},set:function(t){this.bottom!=t&&(this._bottom=t,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),e.prototype.loadDefaultCSS=function(){this._cssLoaded||(this._disposers.push(function(t,e){e||(e="ampopup");var i=new ZC,n=i.getFor("text"),r=i.getFor("background");r.alpha=.8;var o=i.getFor("alternativeBackground");return o.alpha=.05,QC.insertKeyIfEmpty(e,(function(){var i=new bw([new UC(t,"."+e,{overflow:"visible",position:"absolute",top:"0",left:"0","z-index":"2000"}),new UC(t,"."+e+"-curtain",{width:"100%",height:"100%",position:"absolute",top:"0",left:"0","z-index":"2001","background-color":r.hex,opacity:"0.5"}),new UC(t,"."+e+"-header",{display:"block",width:"100%","min-height":"1.8em",background:o.rgba}),new UC(t,"."+e+"-title",{"font-weight":"bold","font-size":"110%",padding:"0.5em 1.2em 0.5em 1em"}),new UC(t,"."+e+"-content",{background:r.hex,"background-color":r.rgba,color:n.hex,display:"inline-block",position:"absolute",top:"0",left:"0","max-width":"90%","max-height":"90%",overflow:"auto","z-index":"2002"}),new UC(t,"."+e+"-inside",{padding:"1em"}),new UC(t,"."+e+"-close",{display:"block",position:"absolute",top:"0.3em",right:"0.3em","background-color":"rgb(100, 100, 100)",background:"rgba(100, 100, 100, 0.1) url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmVyc2lvbj0iMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ0NS4yIDEwOS4ybC00Mi40LTQyLjRMMjU2IDIxMy42IDEwOS4yIDY2LjhsLTQyLjQgNDIuNEwyMTMuNiAyNTYgNjYuOCA0MDIuOGw0Mi40IDQyLjRMMjU2IDI5OC40bDE0Ni44IDE0Ni44IDQyLjQtNDIuNEwyOTguNCAyNTYiLz48L3N2Zz4=) no-repeat center","background-size":"80%",width:"1.2em",height:"1.2em",cursor:"pointer"})]);return new ww((function(){QC.removeKey(e),i.dispose()}))})).increment()}(HC(this.container),this.classPrefix)),Lw(this._elements,(function(t,e){e.style.display=""})),this._cssLoaded=!0)},e.prototype.applyEvents=function(){var t=this;if(this._IOs.close)if(this.closable){this._IOs.close.element.style.visibility="visible";var e=[aP().body.events.on("keyup",(function(e){iP.isKey(e.event,"esc")&&t.closable&&t.close()})),this._IOs.close.events.on("hit",(function(e){t.close()}))];e.push(this._IOs.curtain.events.on("hit",(function(e){t.showCurtain&&t.closable&&t.close()}))),this._disposers.push(new bw(e))}else this._IOs.close.element.style.visibility="hidden"},e.prototype.disablePointers=function(){this.sprite&&(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled,this.sprite.interactionsEnabled=!1)},e.prototype.releasePointers=function(){w_(this._spriteInteractionsEnabled)&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled,this._spriteInteractionsEnabled=void 0)},e.prototype.applyReaderSettings=function(){this.elements.wrapper.setAttribute("aria-label",this.readerTitle)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.container=e.container,this.sprite=e.sprite,this.classPrefix=e.classPrefixRaw,this.content=e.content,this.title=e.title,this.readerTitle=e.readerTitle,this.defaultStyles=e.defaultStyles,this.showCurtain=e.showCurtain,this.align=e.align,this.verticalAlign=e.verticalAlign,this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.adapter.copyFrom(e.adapter)},e}(Sx),uP=function(t){function e(){var e=t.call(this)||this;return e.adapter=new gx(e),e.className="Modal",e.showCurtain=!0,e.draggable=!1,e}return s_(e,t),e}(sP),lP=function(){function t(){var t=this;this._targets=[],this._observer=new ResizeObserver((function(e){ow(e,(function(e){ow(t._targets,(function(t){t.target===e.target&&t.callback()}))}))}))}return t.prototype.addTarget=function(t,e){this._observer.observe(t,{box:"content-box"}),this._targets.push({target:t,callback:e})},t.prototype.removeTarget=function(t){this._observer.unobserve(t),vw(this._targets,(function(e){return e.target!==t}))},t}(),hP=function(){function t(){this._targets=[]}return t.prototype.addTarget=function(e,i){var n=this;if(0===this._targets.length){var r=null;this._timer=requestAnimationFrame((function e(){var i=Date.now();(null===r||i>r+t.delay)&&(r=i,ow(n._targets,(function(t){var e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),n._timer=requestAnimationFrame(e)}))}var o=e.getBoundingClientRect();this._targets.push({target:e,callback:i,size:o})},t.prototype.removeTarget=function(t){vw(this._targets,(function(e){return e.target!==t})),0===this._targets.length&&cancelAnimationFrame(this._timer)},t.delay=200,t}(),cP=null,pP=function(){function t(t,e){this._disposed=!1,this._sensor=(null===cP&&(cP="undefined"!=typeof ResizeObserver?new lP:new hP),cP),this._element=t,this._sensor.addTarget(t,e)}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element))},t.prototype.reset=function(){console.warn("resizeSensor.reset() is no longer needed and can be removed")},t}(),dP=[],fP=function(){function t(t,e){var i=this;if(this._disposed=!1,this.autoResize=!0,this.nonExportableSprites=[],this._disposers=[],this.cssScale=1,this.htmlElement=t,!e){var n=!1;this.resizeSensor=new pP(t,(function(){i.autoResize&&!n&&i.measure()})),this._disposers.push(this.resizeSensor),this._disposers.push(MC(window,"beforeprint",(function(){n=!0}))),this._disposers.push(MC(window,"afterprint",(function(){n=!1})))}dP.push(this);var r=document.createElement("div"),o=r.style;o.width="100%",o.height="100%",o.position="relative",t.appendChild(r),this.SVGContainer=r}return t.prototype.measure=function(){var t,e,i,n,r,o,a=(t=this.htmlElement,e=getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),n=parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth),t.clientWidth-i-n),s=function(t){var e=getComputedStyle(t),i=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),n=parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth);return t.clientHeight-i-n}(this.htmlElement),u=this.container;u&&(this.width==a&&this.height==s||(this.width=a,this.height=s,a>0&&(u.maxWidth=a),s>0&&(u.maxHeight=s),r=this.SVGContainer,o=function(){try{var t=r.getBoundingClientRect(),e=t.left-Math.round(t.left),i=t.top-Math.round(t.top);0!==e&&Ew((function(){r.style.left=e+"px"})),0!==i&&Ew((function(){r.style.top=i+"px"}))}catch(n){}},Pw.push(o),Tw()),u.maxWidth||(u.maxWidth=0),u.maxHeight||(u.maxHeight=0),this.cssScale=1,this.checkTransform(this.htmlElement))},Object.defineProperty(t.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t,this.measure()},enumerable:!0,configurable:!0}),t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||sw(dP,this),ow(this._disposers,(function(t){t.dispose()}))},Object.defineProperty(t.prototype,"hideOverflow",{set:function(t){this.SVGContainer.style.overflow=t?"hidden":""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modal",{get:function(){return w_(this._modal)||(this._modal=new uP,this._modal.container=this.SVGContainer,this._disposers.push(this._modal)),this._modal},enumerable:!0,configurable:!0}),t.prototype.openModal=function(t,e){this.closeModal();var i=this.modal;return i.content=t,i.readerTitle=e||"",i.title=e||"",i.open(),i},t.prototype.closeModal=function(){this._modal&&this.modal.close()},Object.defineProperty(t.prototype,"popups",{get:function(){if(!w_(this._popups)){var t=new sP;t.container=this.SVGContainer,this._popups=new sx(t),this._disposers.push(new rx(this._popups)),this._disposers.push(this._popups.template)}return this._popups},enumerable:!0,configurable:!0}),t.prototype.openPopup=function(t,e){var i=this.popups.create();return i.content=t,w_(e)&&(i.title=e),i.open(),i},t.prototype.closeAllPopups=function(){this.popups.each((function(t){t.close()}))},Object.defineProperty(t.prototype,"readerAlertElement",{get:function(){if(!w_(this._readerAlertElement)){var t=document.createElement("div");t.setAttribute("role","alert"),t.style.zIndex="-100000",t.style.opacity="0",this.SVGContainer.appendChild(t),this._readerAlertElement=t}return this._readerAlertElement},enumerable:!0,configurable:!0}),t.prototype.readerAlert=function(t){this.readerAlertElement.innerHTML=t},t.prototype.checkTransform=function(t){if(window.getComputedStyle){if(t&&t.style){var e=window.getComputedStyle(t,null);if(e){var i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");if(i&&"none"!==i){var n=i.split("(")[1].split(")")[0].split(","),r=Number(n[0]),o=Number(n[1]),a=Math.sqrt(r*r+o*o);isNaN(a)||(this.cssScale*=a)}}}t.parentNode&&t.parentNode instanceof HTMLElement&&this.checkTransform(t.parentNode)}},t}(),gP=function(){function t(t,e){this.container=t,this.id=e;var i=document.createElementNS(IC,"svg");i.setAttribute("version","1.1"),i.setAttributeNS(AC,"xmlns",IC),i.setAttributeNS(AC,"xmlns:xlink",FC),i.setAttribute("role","group"),this.container.appendChild(i),this.defs=document.createElementNS(IC,"defs"),i.appendChild(this.defs),i.style.width="100%",i.style.height="100%",i.style.overflow="visible",this.svg=i}return t.prototype.add=function(t){return new qC(t)},t.prototype.addGroup=function(t){return new XC(t)},t.prototype.append=function(t){t&&this.svg.appendChild(t.node)},t.prototype.appendDef=function(t){t&&this.defs.appendChild(t.node)},t.prototype.foreignObject=function(){return new qC("foreignObject")},t.prototype.supportsForeignObject=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility","1.1")},t}(),yP=null;function vP(){if(null===yP){var t=document.createElement("div");t.hidden=!0,document.body.appendChild(t);var e=new fP(t,!0);yP=new gP(e.SVGContainer,"ghost")}return yP}var mP=function(t){function e(){var e=t.call(this)||this;e._elements=new ax,e.properties={},e.className="Pattern",e.width=10,e.height=10,e.x=0,e.y=0,e.patternUnits="userSpaceOnUse";var i=new ZC;return e.backgroundFill=i.getFor("background"),e.backgroundOpacity=0,e.fillOpacity=1,e.fill=i.getFor("alternativeBackground"),e.stroke=i.getFor("alternativeBackground"),e.strokeOpacity=1,e.strokeWidth=1,e.shapeRendering="crispEdges",e.rotation=0,e.element=e.paper.addGroup("pattern"),e.id="pattern-"+ex.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e._disposers.push(new rx(e._elements)),e.patternUnits=e.patternUnits,e.width=e.width,e.height=e.height,e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){var t=this,e=this.element;if(e){e.removeChildNodes();var i=this.paper.add("rect");i.attr({width:this.width,height:this.height,"shape-rendering":"crispEdges",fill:this.backgroundFill.hex,"fill-opacity":this.backgroundOpacity,stroke:this.backgroundFill.hex,"stroke-opacity":this.backgroundOpacity}),e.add(i),e.attr({x:this.x,y:this.y,width:this.width,height:this.height,stroke:this.stroke.hex,fill:this.fill.hex,"fill-opacity":this.fillOpacity,"stroke-opacity":this.strokeOpacity,"stroke-width":this.strokeWidth,"shape-rendering":this.shapeRendering,patternUnits:this.patternUnits,"stroke-dasharray":this.strokeDasharray}),Ww(this._elements.iterator(),(function(e){e.rotation=t.rotation,e.rotationX=t.properties.rotationX,e.rotationY=t.properties.rotationY,t.element.add(e)}))}},e.prototype.animate=function(t,e,i){return new EC(this,t,e,i).start()},e.prototype.addElement=function(t){this._elements.push(t),this._disposers.push(t)},e.prototype.removeElement=function(t){this._elements.removeValue(t),this.removeDispose(t)},Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillOpacity",{get:function(){return this.properties.fillOpacity},set:function(t){this.properties.fillOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this.properties.fill},set:function(t){this.properties.fill=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundFill",{get:function(){return this.properties.backgroundFill},set:function(t){this.properties.backgroundFill=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundOpacity",{get:function(){return this.properties.backgroundOpacity},set:function(t){this.properties.backgroundOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(t){this.properties.stroke=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeOpacity",{get:function(){return this.properties.strokeOpacity},set:function(t){this.properties.strokeOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(t){this.properties.strokeWidth=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shapeRendering",{get:function(){return this.properties.shapeRendering},set:function(t){this.properties.shapeRendering=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.properties.rotation},set:function(t){this.properties.rotation=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patternUnits",{get:function(){return this.properties.patternUnits},set:function(t){this.properties.patternUnits=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.properties.width},set:function(t){this.properties.width=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.properties.height},set:function(t){this.properties.height=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.properties.x},set:function(t){this.properties.x=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.properties.y},set:function(t){this.properties.y=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:vP()},set:function(t){this._paper!=t&&(this._paper=t,this.draw(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),Lw(e.properties,(function(t,e){i[t]=e}))},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new TC(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeDasharray",{get:function(){return this.properties.strokeDashArray},set:function(t){this.properties.strokeDashArray=t,this.draw()},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(e&&w_(e.elements)&&D_(e.elements))for(var i=0,n=e.elements.length;i<n;i++){var r=e.elements[i];if(w_(r.type)){var o=this.createEntryInstance(r);o instanceof kx&&(o.config=r),this.addElement(w_(r.typeProperty)?o[r.typeProperty]:o.element)}}t.prototype.processConfig.call(this,e)},e}(kx);ex.registeredClasses.Pattern=mP;var bP=function(t){function e(){var e=t.call(this)||this;return e._stops=new ax,e._rotation=0,e.className="LinearGradient",e._stops.events.on("setIndex",e.validate,e),e._stops.events.on("inserted",e.validate,e),e.element=e.paper.addGroup("linearGradient"),e.id="gradient-"+ex.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return s_(e,t),e.prototype.validate=function(){var t=this,e=(this._rotation+90)*I_,i=Math.round(50+50*Math.sin(e+Math.PI))+"%",n=Math.round(50+50*Math.cos(e))+"%",r=Math.round(50+50*Math.sin(e))+"%",o=Math.round(50+50*Math.cos(e+Math.PI))+"%",a=this.element;a.removeChildNodes(),a.attr({x1:i,x2:r,y1:n,y2:o}),Ww(Kw(this._stops.iterator()),(function(e){var i=e[0],n=e[1],r=n.offset;S_(r)||(r=i/(t._stops.length-1));var o=t.paper.add("stop");w_(n.color)&&o.attr({"stop-color":n.color.toString()}),S_(n.opacity)&&o.attr({"stop-opacity":n.opacity}),S_(r)&&o.attr({offset:r}),a.add(o)}))},e.prototype.clear=function(){this._stops.clear()},e.prototype.addColor=function(t,e,i){this._stops.push({color:t,opacity:e,offset:i})},Object.defineProperty(e.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:vP()},set:function(t){this._paper!=t&&(this._paper=t,this.validate(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation=t,this.validate()},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this._rotation=e.rotation},Object.defineProperty(e.prototype,"gradientUnits",{set:function(t){this.element.attr({gradientUnits:t})},enumerable:!0,configurable:!0}),e}(kx);ex.registeredClasses.LinearGradient=bP;var _P=function(t){function e(){var e=t.call(this)||this;return e._stops=new ax,e.element=e.paper.addGroup("radialGradient"),e.id="gradient-"+ex.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){var t,e=this,i=this.element;S_(this.cx)&&((t=this.cx)instanceof d_&&(t=t.percent+"%"),i.attr({cx:t})),S_(this.cy)&&((t=this.cy)instanceof d_&&(t=t.percent+"%"),i.attr({cy:t})),this.fx&&((t=this.fx)instanceof d_&&(t=t.percent+"%"),i.attr({fx:t})),this.fy&&((t=this.fy)instanceof d_&&(t=t.percent+"%"),i.attr({fy:t})),i.removeChildNodes(),Ww(Kw(this._stops.iterator()),(function(t){var n=t[0],r=t[1],o=r.offset;S_(o)||(o=n/(e._stops.length-1));var a=e.paper.add("stop");w_(r.color)&&a.attr({"stop-color":r.color.toString()}),S_(r.opacity)&&a.attr({"stop-opacity":r.opacity}),S_(o)&&a.attr({offset:o}),i.add(a)}))},e.prototype.addColor=function(t,e,i){this._stops.push({color:t,opacity:e,offset:i}),this.draw()},Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:vP()},set:function(t){this._paper!=t&&(this._paper=t,this.draw(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cx",{get:function(){return this._cx},set:function(t){this._cx=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cy",{get:function(){return this._cy},set:function(t){this._cy=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fx",{get:function(){return this._fx},set:function(t){this._fx=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fy",{get:function(){return this._fy},set:function(t){this._fy=t,this.draw()},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this.cx=e.cx,this.cy=e.cy,this.fx=e.fx,this.fy=e.fy},Object.defineProperty(e.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._stops.clear()},e}(kx);ex.registeredClasses.RadialGradient=_P;var wP,xP=function(){function t(){}return t.grab=[{property:"cursor",value:"move"},{property:"cursor",value:"grab"},{property:"cursor",value:"-webkit-grab"}],t.grabbing=[{property:"cursor",value:"move"},{property:"cursor",value:"grabbing"},{property:"cursor",value:"-webkit-grabbing"}],t.pointer=[{property:"cursor",value:"pointer"}],t.default=[{property:"cursor",value:"default"}],t.horizontalResize=[{property:"cursor",value:"ew-resize"}],t.verticalResize=[{property:"cursor",value:"ns-resize"}],t.notAllowed=[{property:"cursor",value:"not-allowed"}],t.text=[{property:"cursor",value:"text"}],t}(),CP={_decimalSeparator:".",_thousandSeparator:",",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){var e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""},PP=function(t){function e(){var e=t.call(this)||this;return e.adapter=new gx(e),e._locale=CP,e._defaultLocale=CP,e.className="Language",w_(CC.defaultLocale)&&(e.locale=CC.defaultLocale),e.applyTheme(),e}return s_(e,t),e.prototype.getLocale=function(t){return null==t&&(t=this._locale),this.adapter.apply("locale",{locale:t}).locale},e.prototype.translate=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];e=this.getLocale(e);var r=t,o=this.getTranslations(e),a=o[t];if(null===a)a="";else if(w_(a))a&&(r=a);else if(e!==this._defaultLocale)return this.translate.apply(this,p_([t,this._defaultLocale],i));if(i.length)for(var s=i.length,u=0;u<s;++u)r=r.split("%"+(u+1)).join(i[u]);return this.adapter.apply("translate",{translation:r,locale:e}).translation},e.prototype.translateAny=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.translate(t,e)},e.prototype.translateEmpty=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=this.translate.apply(this,p_([t,e],i));return r==t?"":r},e.prototype.translateFunc=function(t,e){e=this.getLocale(e);var i=this.getTranslations(e)[t];return null!=i?i:e!==this._defaultLocale?this.translateFunc(t,this._defaultLocale):function(){return""}},e.prototype.translateAll=function(t,e){var i=this;return this.isDefault()?t:rw(t,(function(t){return i.translate(t,e)}))},e.prototype.isDefault=function(){return this._defaultLocale===this._locale},Object.defineProperty(e.prototype,"locale",{get:function(){return this._locale},set:function(t){if(this._locale!=t&&(this._locale=t,this.events.isEnabled("localechanged"))){var e={type:"localechanged",locale:t,target:this};this.events.dispatchImmediately("localechanged",e)}},enumerable:!0,configurable:!0}),e.prototype.getTranslations=function(t){return this.adapter.apply("translations",{translations:t,locale:t}).translations},e}(Sx),kP=function(t){function e(){var e=t.call(this)||this;return e.adapter=new gx(e),e.className="TextFormatter",e.applyTheme(),e}return s_(e,t),e.prototype.debug=function(){},e.prototype.format=function(t,e){w_(e)||(e="svg");var i="",n=(t=this.escape(t)).match(/\[([^\]]*?)\]/gm);if(!n)return this.wrap(t,"",e);for(var r=t.split(/\[[^\[\]]*\]/),o=0,a=r.length;o<a;o++){var s=r[o];if(""!==s){s=this.adapter.apply("chunk",s);var u="";o>0&&(u=n[o-1].replace("[","").replace("]","")),i+=this.wrap(s,u,e)}}return i=this.unescape(i),this.cleanUp(i)},e.prototype.escape=function(t){return t.replace(/\[\[/g,ex.getPlaceholder("1")).replace(/([^\/]{1})\]\]/g,"$1"+ex.getPlaceholder("2")).replace(/\]\]/g,ex.getPlaceholder("2")).replace(/\{\{/g,ex.getPlaceholder("3")).replace(/\}\}/g,ex.getPlaceholder("4")).replace(/\'\'/g,ex.getPlaceholder("5"))},e.prototype.unescape=function(t){return t.replace(new RegExp(ex.getPlaceholder("1"),"g"),"[[").replace(new RegExp(ex.getPlaceholder("2"),"g"),"]]").replace(new RegExp(ex.getPlaceholder("3"),"g"),"{{").replace(new RegExp(ex.getPlaceholder("4"),"g"),"}}").replace(new RegExp(ex.getPlaceholder("5"),"g"),"'")},e.prototype.cleanUp=function(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")},e.prototype.wrap=function(t,e,i){switch(""!==e&&"/"!==e||(e=""),i){case"html":return this.wrapHtml(t,this.translateStyleShortcuts(e));default:return this.wrapSvg(t,this.translateStyleShortcuts(e))}},e.prototype.wrapSvg=function(t,e){return""===e?"<tspan>"+t+"</tspan>":"<tspan style='"+e+"'>"+t+"</tspan>"},e.prototype.getSvgElement=function(t,e){var i=new qC("tspan");return i.textContent=t,e&&i.node.setAttribute("style",e),i},e.prototype.wrapHtml=function(t,e){return""===e?"<span>"+t+"</span>":"<span style='"+this.styleSvgToHtml(e)+"'>"+t+"</span>"},e.prototype.getHtmlElement=function(t,e){var i=document.createElement("span");return i.innerHTML=t,e&&i.setAttribute("style",e),i},e.prototype.styleSvgToHtml=function(t){return t.replace(/fill:/,"color:")},e.prototype.translateStyleShortcuts=function(t){if(""==t||"[ ]"==t)return"";var e=ex.getCache("translateStyleShortcuts_"+t);if(e)return e;var i=t.match(/('[^']*')|("[^"]*")/gi);if(i)for(var n=0;n<i.length;n++)t=t.replace(i[n],i[n].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));var r=t.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w]+)|(\/)/gi);if(!r)return t;for(n=0;n<r.length;n++)r[n].match(/^bold$/i)?r[n]="font-weight:"+r[n]:"/"==r[n]?r[n]="":r[n].match(/:/)?r[n]=r[n].replace(/\+/g," "):r[n]="fill:"+r[n];var o=r.join(";");return ex.setCache("translateStyleShortcuts_"+t,o),o},e.prototype.chunk=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=[];t=this.escape(t);for(var r=e?t.split("'"):[t],o=0;o<r.length;o++){var a=r[o];if(""!==a)if(o%2==0)for(var s=(a=(a=a.replace(/\]\[/g,"]__\xa7\xa7\xa7__[")).replace(/\[\]/g,"[ ]")).split(/[\[\]]+/),u=0;u<s.length;u++)"__\xa7\xa7\xa7__"!==(l=this.cleanUp(this.unescape(s[u])))&&""!==l&&(u%2==0?n.push({type:"value",text:this.adapter.apply("chunk",l)}):n.push({type:i?"value":"format",text:"["+l+"]"}));else for(s=a.split(/[\[\]]+/),u=0;u<s.length;u++){var l;""!==(l=this.cleanUp(this.unescape(s[u])))&&(u%2==0?n.push({type:"text",text:l}):this.isImage(l)?n.push({type:"image",text:"["+l+"]"}):n.push({type:"format",text:"["+l+"]"}))}}return n},e.prototype.isImage=function(t){return!!t.match(/img[ ]?:/)},e}(kx);function SP(){return null==wP&&(wP=new kP),wP}ex.registeredClasses.TextFormatter=kP;var OP=function(t){function e(){var e=t.call(this)||this;return e._negativeBase=0,e._numberFormat="#,###.#####",e._outputFormat="svg",e._smallNumberThreshold=1,e.className="NumberFormatter",e.applyTheme(),e}return s_(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.language&&this.language.dispose()},Object.defineProperty(e.prototype,"language",{get:function(){return this._language||(this.sprite?this._language=this.sprite.language:this._language=new PP),this._language},set:function(t){this._language=t},enumerable:!0,configurable:!0}),e.prototype.format=function(t,e,i){var n;(void 0===e||k_(e)&&"number"===e.toLowerCase())&&(e=this._numberFormat);var r,o=Number(t);if(e instanceof Object)try{return this.intlLocales?new Intl.NumberFormat(this.intlLocales,e).format(o):new Intl.NumberFormat(void 0,e).format(o)}catch(u){return"Invalid"}else{e=Bx(e);var a=this.parseFormat(e,this.language),s=void 0;s=o>this._negativeBase?a.positive:o<this._negativeBase?a.negative:a.zero,w_(i)&&!s.mod&&(r=s,(s=JSON.parse(JSON.stringify(r))).decimals.active=0==o?0:i),n=s.template.split("__\xa7\xa7\xa7__").join(this.applyFormat(o,s))}return n},e.prototype.parseFormat=function(t,e){var i=this,n=this.getCache(t);if(w_(n))return n;var r={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1}},o=(t=t.replace("||","__\xa7\xa7\xa7\xa7__")).split("|");return r.positive.source=o[0],void 0===o[2]?r.zero=r.positive:r.zero.source=o[2],void 0===o[1]?r.negative=r.positive:r.negative.source=o[1],Lw(r,(function(t,e){if(!e.parsed)if(void 0===i.getCache(e.source)){var n=e.source;"number"===n.toLowerCase()&&(n=k_(i._numberFormat)?i._numberFormat:"#,###.#####");for(var o=SP().chunk(n,!0),a=0;a<o.length;a++){var s=o[a];if(s.text=s.text.replace("__\xa7\xa7\xa7\xa7__","|"),"value"===s.type){var u=s.text.match(/[#0.,]+[ ]?[abesABES%!]?[abesABES\u2030!]?/);if(u)if(null===u||""===u[0])e.template+=s.text;else{var l=u[0].match(/[abesABES%\u2030!]{2}|[abesABES%\u2030]{1}$/);l&&(e.mod=l[0].toLowerCase(),e.modSpacing=!!u[0].match(/[ ]{1}[abesABES%\u2030!]{1}$/));var h=u[0].split(".");if(""===h[0]);else{e.thousands.active=(h[0].match(/0/g)||[]).length,e.thousands.passive=(h[0].match(/\#/g)||[]).length+e.thousands.active;var c=h[0].split(",");1===c.length||(e.thousands.interval=x_(c.pop()).length,0===e.thousands.interval&&(e.thousands.interval=-1))}void 0===h[1]||(e.decimals.active=(h[1].match(/0/g)||[]).length,e.decimals.passive=(h[1].match(/\#/g)||[]).length+e.decimals.active),e.template+=s.text.split(u[0]).join("__\xa7\xa7\xa7__")}}else e.template+=s.text}i.setCache(e.source,e),e.parsed=!0}else r[t]=i.getCache(e.source)})),this.setCache(t,r),r},e.prototype.applyFormat=function(t,e){var i=t<0;t=Math.abs(t);var n="",r="",o=e.mod?e.mod.split(""):[];if(-1!==o.indexOf("b")){var a=this.applyPrefix(t,this.bytePrefixes,-1!==o.indexOf("!"));t=a[0],n=a[1],r=a[2],e.modSpacing&&(r=" "+r)}else if(-1!==o.indexOf("a")){var s=this.applyPrefix(t,t<this.smallNumberThreshold?this.smallNumberPrefixes:this.bigNumberPrefixes,-1!==o.indexOf("!"));t=s[0],n=s[1],r=s[2],e.modSpacing&&(r=" "+r)}else if(-1!==o.indexOf("%")){var u=B_(t.toString().length+2,21);t*=100,t=parseFloat(t.toPrecision(u)),r="%"}else-1!==o.indexOf("\u2030")&&(u=B_(t.toString().length+3,21),t*=1e3,t=parseFloat(t.toPrecision(u)),r="\u2030");if(-1!==o.indexOf("e")){var l;l=e.decimals.passive>=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(l[0]),r="e"+l[1],e.modSpacing&&(r=" "+r)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){var h=Math.pow(10,e.decimals.passive);t=Math.round(t*h)/h}var c="",p=function(t){if(g_(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";var e=t<0;t=Math.abs(t);var i,n=x_(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t)),r=n[1],o=n[2]||"";if(null==n[3])i=""===o?r:r+"."+o;else{var a,s=+n[3];i=t<1?"0."+Zw("0",a=s-1)+r+o:0==(a=s-o.length)?r+o:a<0?r+o.slice(0,a)+"."+o.slice(a):r+o+Zw("0",a)}return e?"-"+i:i}(t).split("."),d=p[0];if(d.length<e.thousands.active&&(d=Array(e.thousands.active-d.length+1).join("0")+d),e.thousands.interval>0){for(var f=[],g=d.split("").reverse().join(""),y=0,v=d.length;y<=v;y+=e.thousands.interval){var m=g.substr(y,e.thousands.interval).split("").reverse().join("");""!==m&&f.unshift(m)}d=f.join(e.thousands.separator)}c+=d,1===p.length&&p.push("");var b=p[1];return b.length<e.decimals.active&&(b+=Array(e.decimals.active-b.length+1).join("0")),""!==b&&(c+=e.decimals.separator+b),""===c&&(c="0"),0!==t&&i&&-1===o.indexOf("s")&&(c="-"+c),n&&(c=n+c),r&&(c+=r),c},e.prototype.applyPrefix=function(t,e,i){void 0===i&&(i=!1);for(var n=t,r="",o="",a=!1,s=1,u=0,l=e.length;u<l;u++)e[u].number<=t&&(0===e[u].number?n=0:(n=t/e[u].number,s=e[u].number),r=e[u].prefix,o=e[u].suffix,a=!0);return!a&&i&&e.length&&0!=t&&(n=t/e[0].number,r=e[0].prefix,o=e[0].suffix,a=!0),a&&(n=parseFloat(n.toPrecision(B_(s.toString().length+Math.floor(n).toString().replace(/[^0-9]*/g,"").length,21)))),[n,r,o]},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(e.prototype,"numberFormat",{get:function(){return this._numberFormat},set:function(t){this._numberFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(t){this._intlLocales=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"negativeBase",{get:function(){return this._negativeBase},set:function(t){this._negativeBase=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bigNumberPrefixes",{get:function(){return w_(this._bigNumberPrefixes)||(this._bigNumberPrefixes=[{number:1e3,suffix:this.language.translate("_big_number_suffix_3")},{number:1e6,suffix:this.language.translate("_big_number_suffix_6")},{number:1e9,suffix:this.language.translate("_big_number_suffix_9")},{number:1e12,suffix:this.language.translate("_big_number_suffix_12")},{number:1e15,suffix:this.language.translate("_big_number_suffix_15")},{number:1e18,suffix:this.language.translate("_big_number_suffix_18")},{number:1e21,suffix:this.language.translate("_big_number_suffix_21")},{number:1e24,suffix:this.language.translate("_big_number_suffix_24")}]),this._bigNumberPrefixes},set:function(t){this._bigNumberPrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"smallNumberPrefixes",{get:function(){return w_(this._smallNumberPrefixes)||(this._smallNumberPrefixes=[{number:1e-24,suffix:this.language.translate("_small_number_suffix_24")},{number:1e-21,suffix:this.language.translate("_small_number_suffix_21")},{number:1e-18,suffix:this.language.translate("_small_number_suffix_18")},{number:1e-15,suffix:this.language.translate("_small_number_suffix_15")},{number:1e-12,suffix:this.language.translate("_small_number_suffix_12")},{number:1e-9,suffix:this.language.translate("_small_number_suffix_9")},{number:1e-6,suffix:this.language.translate("_small_number_suffix_6")},{number:.001,suffix:this.language.translate("_small_number_suffix_3")}]),this._smallNumberPrefixes},set:function(t){this._smallNumberPrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"smallNumberThreshold",{get:function(){return this._smallNumberThreshold},set:function(t){this._smallNumberThreshold=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bytePrefixes",{get:function(){return w_(this._bytePrefixes)||(this._bytePrefixes=[{number:1,suffix:this.language.translate("_byte_suffix_B")},{number:1024,suffix:this.language.translate("_byte_suffix_KB")},{number:1048576,suffix:this.language.translate("_byte_suffix_MB")},{number:1073741824,suffix:this.language.translate("_byte_suffix_GB")},{number:1099511627776,suffix:this.language.translate("_byte_suffix_TB")},{number:0x4000000000000,suffix:this.language.translate("_byte_suffix_PB")}]),this._bytePrefixes},set:function(t){this._bytePrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e.prototype.escape=function(t){return t.replace("||","__\xa7\xa7\xa7\xa7__")},e.prototype.unescape=function(t){return t.replace("__\xa7\xa7\xa7\xa7__","|")},e}(kx);ex.registeredClasses.NumberFormatter=OP;var DP=function(t){function e(){var e=t.call(this)||this;return e._dateFormat="yyyy-MM-dd",e._inputDateFormat="yyyy-MM-dd",e._utc=!1,e._firstDayOfWeek=1,e.months=["January","February","March","April","May","June","July","August","September","October","November","December"],e.monthsShort=["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e.weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],e.weekdaysShort=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e._outputFormat="svg",e.capitalize=!0,e.className="DateFormatter",e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"language",{get:function(){return this._language},set:function(t){this._language=t,this.dateFormat=this._language.translate("_date")},enumerable:!0,configurable:!0}),e.prototype.format=function(t,e){var i,n;if(this.language||(this.sprite?this.language=this.sprite.language:this.language=new PP),void 0!==e&&""!==e||(e=this._dateFormat),n=k_(t)?this.parse(t):Ux(t),e instanceof Object)try{return this.intlLocales?new Intl.DateTimeFormat(this.intlLocales,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(o){return"Invalid"}else{e=Bx(e);var r=this.parseFormat(e);if(w_(this.timezoneOffset)&&n.setMinutes(n.getMinutes()+n.getTimezoneOffset()-this.timezoneOffset),!S_(n.getTime()))return this.language.translate("Invalid date");i=this.applyFormat(n,r,this.language),this.capitalize&&(i=i.replace(/^.{1}/,i.substr(0,1).toUpperCase()))}return i},e.prototype.parseFormat=function(t){var e=this.getCache(t);if(w_(e))return e;for(var i={template:"",parts:[]},n=SP().chunk(t,!0),r=0;r<n.length;r++){var o=n[r];if("value"===o.type){o.text.match(/^date$/i)&&k_(this._dateFormat)&&(o.text=this._dateFormat);var a=o.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(a)for(var s=0;s<a.length;s++)i.parts.push(a[s]),o.text=o.text.replace(a[s],"__\xa7\xa7\xa7__")}i.template+=o.text}return this.setCache(t,i),i},e.prototype.applyFormat=function(t,e,i){var n,r,o,a,s,u,l,h,c=e.template,p=t.getTimezoneOffset(),d=t.getTime();this.utc?(n=t.getUTCFullYear(),r=t.getUTCMonth(),o=t.getUTCDay(),a=t.getUTCDate(),s=t.getUTCHours(),u=t.getUTCMinutes(),l=t.getUTCSeconds(),h=t.getUTCMilliseconds()):(n=t.getFullYear(),r=t.getMonth(),o=t.getDay(),a=t.getDate(),s=t.getHours(),u=t.getMinutes(),l=t.getSeconds(),h=t.getMilliseconds());for(var f=0,g=e.parts.length;f<g;f++){var y="";switch(e.parts[f]){case"G":y=i.translate(n<0?"_era_bc":"_era_ad");break;case"yyyy":y=Math.abs(n).toString(),n<0&&(y+=i.translate("_era_bc"));break;case"yyy":case"yy":case"y":y=Math.abs(n).toString().substr(-e.parts[f].length),n<0&&(y+=i.translate("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":var v=n;1==Kx(t)&&o>1&&v--,y="YYYY"==e.parts[f]?Math.abs(v).toString():Math.abs(v).toString().substr(-e.parts[f].length),v<0&&(y+=i.translate("_era_bc"));break;case"u":break;case"MMMMM":y=i.translate(this.months[r]).substr(0,1);break;case"MMMM":y=i.translate(this.months[r]);break;case"MMM":y=i.translate(this.monthsShort[r]);break;case"MM":y=Nx(r+1,2,"0");break;case"M":y=(r+1).toString();break;case"ww":y=Nx(Kx(t,this.utc),2,"0");break;case"w":y=Kx(t,this.utc).toString();break;case"W":y=Yx(t,this.utc).toString();break;case"dd":y=Nx(a,2,"0");break;case"d":y=a.toString();break;case"DD":case"DDD":y=Nx(Gx(t,this.utc).toString(),e.parts[f].length,"0");break;case"D":y=Gx(t,this.utc).toString();break;case"F":case"g":break;case"t":y=i.translateFunc("_dateOrd").call(this,a);break;case"E":y=(o||7).toString();break;case"EE":y=Nx((o||7).toString(),2,"0");break;case"EEE":case"eee":y=i.translate(this.weekdaysShort[o]);break;case"EEEE":case"eeee":y=i.translate(this.weekdays[o]);break;case"EEEEE":case"eeeee":y=i.translate(this.weekdays[o]).substr(0,1);break;case"e":case"ee":y=(o-this.firstDayOfWeek+1).toString(),"ee"==e.parts[f]&&(y=Nx(y,2,"0"));break;case"a":y=s>=12?i.translate("PM"):i.translate("AM");break;case"aa":y=s>=12?i.translate("P.M."):i.translate("A.M.");break;case"aaa":y=s>=12?i.translate("P"):i.translate("A");break;case"h":y=qx(s).toString();break;case"hh":y=Nx(qx(s),2,"0");break;case"H":y=s.toString();break;case"HH":y=Nx(s,2,"0");break;case"K":y=qx(s,0).toString();break;case"KK":y=Nx(qx(s,0),2,"0");break;case"k":y=(s+1).toString();break;case"kk":y=Nx(s+1,2,"0");break;case"m":y=u.toString();break;case"mm":y=Nx(u,2,"0");break;case"s":y=l.toString();break;case"ss":y=Nx(l,2,"0");break;case"S":case"SS":case"SSS":y=Math.round(h/1e3*Math.pow(10,e.parts[f].length)).toString();break;case"x":y=d.toString();break;case"n":case"nn":case"nnn":y=Nx(h,e.parts[f].length,"0");break;case"z":y=Xx(t,!1,!1,this.utc);break;case"zz":y=Xx(t,!0,!1,this.utc);break;case"zzz":y=Xx(t,!1,!0,this.utc);break;case"zzzz":y=Xx(t,!0,!0,this.utc);break;case"Z":case"ZZ":var m=Math.abs(p)/60,b=Math.floor(m),_=60*m-60*b;this.utc&&(b=0,_=0),"Z"==e.parts[f]?(y="GMT",y+=p>0?"-":"+",y+=Nx(b,2)+":"+Nx(_,2)):(y=p>0?"-":"+",y+=Nx(b,2)+Nx(_,2));break;case"i":y=t.toISOString();break;case"I":y=t.toUTCString()}c=c.replace("__\xa7\xa7\xa7__",y)}return c},e.prototype.parse=function(t,e){if(w_(e)||(e=this.inputDateFormat),t instanceof Date)return t;if("number"==typeof t)return new Date(t);var i;"string"!=typeof t&&(t=t.toString()),this.language||(this.sprite?this.language=this.sprite.language:this.language=new PP);var n="";e=(e=Bx(e)).substr(0,t.length);for(var r=this.parseFormat(e),o={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},a={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this.utc},s=0,u=0,l=0;l<r.parts.length;l++){switch(u=l+s+1,r.parts[l]){case"yyyy":case"YYYY":n+="([0-9]{4})",o.year=u;break;case"yyy":case"YYY":n+="([0-9]{3})",o.year3=u;break;case"yy":case"YY":n+="([0-9]{2})",o.year2=u;break;case"y":case"Y":n+="([0-9]{1})",o.year1=u;break;case"MMMM":n+="("+this.getStringList(this.months).join("|")+")",o.monthLong=u;break;case"MMM":n+="("+this.getStringList(this.monthsShort).join("|")+")",o.monthShort=u;break;case"MM":case"M":n+="([0-9]{2}|[0-9]{1})",o.month=u;break;case"ww":case"w":n+="([0-9]{2}|[0-9]{1})",o.week=u;break;case"dd":case"d":n+="([0-9]{2}|[0-9]{1})",o.day=u;break;case"DDD":case"DD":case"D":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.yearDay=u;break;case"dddd":n+="("+this.getStringList(this.weekdays).join("|")+")",o.weekdayLong=u;break;case"ddd":n+="("+this.getStringList(this.weekdaysShort).join("|")+")",o.weekdayShort=u;break;case"aaa":case"aa":case"a":n+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",o.am=u;break;case"hh":case"h":n+="([0-9]{2}|[0-9]{1})",o.hour12Base1=u;break;case"HH":case"H":n+="([0-9]{2}|[0-9]{1})",o.hourBase0=u;break;case"KK":case"K":n+="([0-9]{2}|[0-9]{1})",o.hour12Base0=u;break;case"kk":case"k":n+="([0-9]{2}|[0-9]{1})",o.hourBase1=u;break;case"mm":case"m":n+="([0-9]{2}|[0-9]{1})",o.minute=u;break;case"ss":case"s":n+="([0-9]{2}|[0-9]{1})",o.second=u;break;case"SSS":case"SS":case"S":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=u,o.millisecondDigits=r.parts[l].length;break;case"nnn":case"nn":case"n":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=u;break;case"x":n+="([0-9]{1,})",o.timestamp=u;break;case"Z":n+="GMT([-+]+[0-9]{2}:[0-9]{2})",o.zone=u;break;case"ZZ":n+="([\\-+]+[0-9]{2}[0-9]{2})",o.zone=u;break;case"i":n+="([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{3})[0-9]*([Zz]?)",o.iso=u,s+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz":case"zzz":case"zz":case"z":case"t":s--}n+="[^0-9]*"}var h=new RegExp(n),c=t.match(h);if(c){if(o.year>-1&&(a.year=parseInt(c[o.year])),o.year3>-1){var p=parseInt(c[o.year3]);p+=1e3,a.year=p}if(o.year2>-1&&(p=parseInt(c[o.year2]),p+=p>50?1e3:2e3,a.year=p),o.year1>-1&&(p=parseInt(c[o.year1]),p=10*Math.floor((new Date).getFullYear()/10)+p,a.year=p),o.monthLong>-1&&(a.month=this.resolveMonth(c[o.monthLong])),o.monthShort>-1&&(a.month=this.resolveShortMonth(c[o.monthShort])),o.month>-1&&(a.month=parseInt(c[o.month])-1),o.week>-1&&-1===o.day&&(a.month=0,a.day=function(t,e,i,n){void 0===i&&(i=1),void 0===n&&(n=!1);var r=new Date(e,0,4,0,0,0,0);return n&&r.setUTCFullYear(e),7*t+i-((r.getDay()||7)+3)}(parseInt(c[o.week]),a.year,1,this.utc)),o.day>-1&&(a.day=parseInt(c[o.day])),o.yearDay>-1&&(a.month=0,a.day=parseInt(c[o.yearDay])),o.hourBase0>-1&&(a.hour=parseInt(c[o.hourBase0])),o.hourBase1>-1&&(a.hour=parseInt(c[o.hourBase1])-1),o.hour12Base0>-1&&(11==(p=parseInt(c[o.hour12Base0]))&&(p=0),o.am>-1&&!this.isAm(c[o.am])&&(p+=12),a.hour=p),o.hour12Base1>-1&&(12==(p=parseInt(c[o.hour12Base1]))&&(p=0),o.am>-1&&!this.isAm(c[o.am])&&(p+=12),a.hour=p),o.minute>-1&&(a.minute=parseInt(c[o.minute])),o.second>-1&&(a.second=parseInt(c[o.second])),o.millisecond>-1&&(p=parseInt(c[o.millisecond]),2==o.millisecondDigits?p*=10:1==o.millisecondDigits&&(p*=100),a.millisecond=p),o.timestamp>-1&&(a.timestamp=parseInt(c[o.timestamp])),o.zone>-1){var d=x_(c[o.zone].replace(/:/,"").match(/([+\-]?)([0-9]{2})([0-9]{2})/)),f=d[1],g=d[2],y=d[3],v=60*parseInt(g)+parseInt(y);"+"==f&&(v*=-1);var m=v-(new Date).getTimezoneOffset();a.offset=m}o.iso>-1&&("Z"!=c[o.iso+7]&&"z"!=c[o.iso+7]||(a.utc=!0),a.year=b_(c[o.iso+0]),a.month=b_(c[o.iso+1])-1,a.day=b_(c[o.iso+2]),a.hour=b_(c[o.iso+3]),a.minute=b_(c[o.iso+4]),a.second=b_(c[o.iso+5]),a.millisecond=b_(c[o.iso+6])),i=a.utc?new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond)):new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond)}else i=new Date(t);return i},e.prototype.resolveMonth=function(t){var e=this.months.indexOf(t);return e>-1||this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this.months).indexOf(t))>-1?e:0},e.prototype.resolveShortMonth=function(t){var e=this.monthsShort.indexOf(t);return e>-1||(e=this.months.indexOf(t))>-1||this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this.monthsShort).indexOf(t))>-1?e:0},e.prototype.isAm=function(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},e.prototype.getStringList=function(t){for(var e=[],i=0;i<t.length;i++)this.language?e.push(Mx(this.language.translate(t[i]))):e.push(Mx(t[i]));return e},Object.defineProperty(e.prototype,"dateFormat",{get:function(){return this._dateFormat},set:function(t){this._dateFormat=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputDateFormat",{get:function(){return this._inputDateFormat},set:function(t){this._inputDateFormat=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(t){this._intlLocales=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"utc",{get:function(){return this._utc},set:function(t){this._utc=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timezoneOffset",{get:function(){return this._timezoneOffset},set:function(t){this._timezoneOffset!=t&&(this._timezoneOffset=t,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(t){this._firstDayOfWeek=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e}(kx);ex.registeredClasses.DateFormatter=DP;var TP=function(t){function e(){var e=t.call(this)||this;return e._negativeBase=0,e._baseUnit="second",e._outputFormat="svg",e._unitValues={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},e._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"},e.className="DurationFormatter",e.applyTheme(),e}return s_(e,t),e.prototype.format=function(t,e,i){this.language||(this.sprite?this.language=this.sprite.language:this.language=new PP);var n=i||this._baseUnit;void 0!==e&&""!==e||(e=w_(this.durationFormat)?this.durationFormat:this.getFormat(b_(t),null,n)),e=Bx(e);var r,o=this.parseFormat(e,n),a=Number(t);r=a>this._negativeBase?o.positive:a<this._negativeBase?o.negative:o.zero;var s=this.applyFormat(a,r);return""!==r.color&&("svg"===this._outputFormat?s="<tspan fill='"+r.color+"'>"+s+"</tspan>":"html"===this._outputFormat&&(s="<span style='color: "+r.color+";'>"+s+"</span>")),s},e.prototype.parseFormat=function(t,e){var i=this,n=this.getCache(t);if(w_(n))return n;var r=e||this._baseUnit,o={positive:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1}},a=(t=t.replace("||","__\xa7\xa7\xa7\xa7__")).split("|");return o.positive.source=a[0],void 0===a[2]?o.zero=o.positive:o.zero.source=a[2],void 0===a[1]?o.negative=o.positive:o.negative.source=a[1],Lw(o,(function(t,e){if(!e.parsed)if(void 0===i.getCache(e.source)){var n,r=e.source;(n=e.source.match(/^\[([^\]]*)\]/))&&n.length&&""!==n[0]&&(r=e.source.substr(n[0].length),e.color=n[1]);for(var a=SP().chunk(r,!0),s=0;s<a.length;s++){var u=a[s];if(u.text=u.text.replace("__\xa7\xa7\xa7\xa7__","|"),"value"===u.type){u.text.match(/[yYMdDwhHKkmsSn]+a/)&&(e.absolute=!0,u.text=u.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));var l=u.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(l)for(var h=0;h<l.length;h++)w_(l[h])||(l[h]=i._unitAliases[l[h]]),e.parts.push(l[h]),u.text=u.text.replace(l[h],"__\xa7\xa7\xa7__")}e.template+=u.text}i.setCache(e.source,e),e.parsed=!0}else o[t]=i.getCache(e.source)})),this.setCache(t,o),o},e.prototype.applyFormat=function(t,e){var i=!e.absolute&&t<this._negativeBase;t=Math.abs(t);for(var n=this.toTimeStamp(t,e.baseUnit),r=e.template,o=0,a=e.parts.length;o<a;o++){var s=e.parts[o],u=this.toTimeUnit(s.substr(0,1)),l=s.length,h=Math.floor(n/this._unitValues[u]);r=r.replace("__\xa7\xa7\xa7__",Nx(h,l,"0")),n-=h*this._unitValues[u]}return i&&(r="-"+r),r},e.prototype.toTimeStamp=function(t,e){return t*this._unitValues[e]},e.prototype.toTimeUnit=function(t){switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(e.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(t){this._baseUnit=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e.prototype.getFormat=function(t,e,i){if(w_(this.durationFormat))return this.durationFormat;if(i||(i=this.baseUnit),w_(e)&&t!=e){t=Math.abs(t),e=Math.abs(e);var n=this.getValueUnit(N_(t,e),i);return this.durationFormats[i][n]}var r=this.getValueUnit(t,i);return this.durationFormats[i][r]},e.prototype.getValueUnit=function(t,e){var i;e||(e=this.baseUnit);var n=this.getMilliseconds(t,e);return jw(this._unitValues,(function(t,r){if(t==e||i){if(n/r<=1)return i||(i=t),!1;i=t}return!0})),i},e.prototype.getMilliseconds=function(t,e){return e||(e=this.baseUnit),t*this._unitValues[e]},Object.defineProperty(e.prototype,"durationFormat",{get:function(){return this._durationFormat},set:function(t){this._durationFormat!=t&&(this._durationFormat=t,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormats",{get:function(){return this._durationFormats||(this._durationFormats={millisecond:{millisecond:this.language.translate("_duration_millisecond"),second:this.language.translate("_duration_millisecond_second"),minute:this.language.translate("_duration_millisecond_minute"),hour:this.language.translate("_duration_millisecond_hour"),day:this.language.translate("_duration_millisecond_day"),week:this.language.translate("_duration_millisecond_week"),month:this.language.translate("_duration_millisecond_month"),year:this.language.translate("_duration_millisecond_year")},second:{second:this.language.translate("_duration_second"),minute:this.language.translate("_duration_second_minute"),hour:this.language.translate("_duration_second_hour"),day:this.language.translate("_duration_second_day"),week:this.language.translate("_duration_second_week"),month:this.language.translate("_duration_second_month"),year:this.language.translate("_duration_second_year")},minute:{minute:this.language.translate("_duration_minute"),hour:this.language.translate("_duration_minute_hour"),day:this.language.translate("_duration_minute_day"),week:this.language.translate("_duration_minute_week"),month:this.language.translate("_duration_minute_month"),year:this.language.translate("_duration_minute_year")},hour:{hour:this.language.translate("_duration_hour"),day:this.language.translate("_duration_hour_day"),week:this.language.translate("_duration_hour_week"),month:this.language.translate("_duration_hour_month"),year:this.language.translate("_duration_hour_year")},day:{day:this.language.translate("_duration_day"),week:this.language.translate("_duration_day_week"),month:this.language.translate("_duration_day_month"),year:this.language.translate("_duration_day_year")},week:{week:this.language.translate("_duration_week"),month:this.language.translate("_duration_week_month"),year:this.language.translate("_duration_week_year")},month:{month:this.language.translate("_duration_month"),year:this.language.translate("_duration_month_year")},year:{year:this.language.translate("_duration_year")}}),this._durationFormats},set:function(t){this._durationFormats=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),e}(kx);ex.registeredClasses.DurationFormatter=TP;var EP,IP=new $w,AP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._validateDisposer=null,e}return s_(e,t),e.prototype.invalidate=function(){null===this._validateDisposer&&(this._validateDisposer=ex.events.on("exitframe",this.validate,this))},e.prototype.validate=function(){null!==this._validateDisposer&&(this._validateDisposer.dispose(),this._validateDisposer=null)},e.prototype.dispose=function(){null!==this._validateDisposer&&(this._validateDisposer.dispose(),this._validateDisposer=null),t.prototype.dispose.call(this)},e}(Sx),FP=function(t){function e(){var e=t.call(this)||this;return e.adapter=new gx(e),e.closeDelay=1e3,e.closeOnClick=!0,e._language=new _w,e._menuTag="ul",e._itemTag="li",e._labelTag="a",e._iconTag="img",e._classPrefix="amexport",e._defaultStyles=!0,e._align="right",e._verticalAlign="top",e._tabindex=0,e._ignoreNextClose=!1,e._items=[{label:"...",menu:[{label:"Image",menu:[{type:"png",label:"PNG"},{type:"jpg",label:"JPG"},{type:"svg",label:"SVG"},{type:"pdf",label:"PDF"}]},{label:"Data",menu:[{type:"json",label:"JSON"},{type:"csv",label:"CSV"},{type:"xlsx",label:"XLSX"},{type:"html",label:"HTML"},{type:"pdfdata",label:"PDF"}]},{label:"Print",type:"print"}]}],e.className="ExportMenu",e._disposers.push(e._language),e.invalidate(),e.applyTheme(),e}return s_(e,t),e.prototype.validate=function(){this.draw(),t.prototype.validate.call(this)},e.prototype.draw=function(){var t=this;this._element?(this._element.innerHTML="",this._element.className=this.getMenuItemClass(0)):this._element=this.createMenuElement(0),this.defaultStyles&&(this._element.style.display="none"),x_(this._container).appendChild(this._element);for(var e=this.adapter.apply("items",{items:this._items}).items,i=e.length,n=0;n<i;n++)this.drawBranch(this._element,e[n],0);this._element=this.adapter.apply("menuElement",{menuElement:this._element}).menuElement,this._disposers.push(aP().body.events.on("down",(function(e){e.pointer.touch||(t._ignoreNextClose=!1),t.close()}))),this._disposers.push(aP().body.events.on("keyup",(function(e){var i=iP.getEventKey(e.event);switch(i){case"esc":t.close();break;case"up":case"down":case"left":case"right":t.moveSelection(i)}}))),this.defaultStyles&&this.loadDefaultCSS()},e.prototype.drawBranch=function(t,e,i){var n=this;if(!0!==(e=this.adapter.apply("branch",{branch:e,level:i}).branch).unsupported){e.ascendants||(e.ascendants=new ax);var r,o=e.type,a=this.createItemElement(i,o);e.icon?((r=this.createIconElement(i,o)).src=e.icon,e.label&&(r.title=e.label)):e.svg?(r=this.createSvgElement(i,o,e.svg),e.label&&(r.title=e.label)):(r=this.createLabelElement(i,o)).innerHTML=e.label?this.language.translate(e.label):"";var s=this.getReaderLabel(e,r.innerHTML);r.setAttribute("aria-label",s),a.appendChild(r),e.interactions=aP().getInteraction(r),e.element=a,this.typeClickable(o)&&(e.interactions.events.on("hit",(function(t){if(n.events.isEnabled("hit")){var i={type:"hit",event:t.event,target:n,branch:e};n.events.dispatchImmediately("hit",i)}})),e.interactions.events.on("keyup",(function(t){if(iP.isKey(t.event,"enter")&&n.events.isEnabled("enter")){var i={type:"enter",event:t.event,target:n,branch:e};n.events.dispatchImmediately("enter",i)}})));var u=this.getSubMenu(e);null!=u&&(e.interactions.events.on("keyup",(function(t){iP.isKey(t.event,"enter")&&(n.selectBranch(u[0]),n.setFocus(u[0]))})),e.interactions.events.on("hit",(function(t){n.selectBranch(e)}))),e.interactions.events.on("over",(function(t){if(t.pointer.touch&&(n._ignoreNextClose=!0),n.selectBranch(e),n.events.isEnabled("over")){var i={type:"over",event:t.event,target:n,branch:e};n.events.dispatchImmediately("over",i)}})),e.interactions.events.on("out",(function(t){if(t.pointer.touch||n.delayUnselectBranch(e),n.events.isEnabled("out")){var i={type:"out",event:t.event,target:n,branch:e};n.events.dispatchImmediately("out",i)}})),e.interactions.events.on("focus",(function(t){n.selectBranch(e)})),e.interactions.events.on("blur",(function(t){n.delayUnselectBranch(e)}));var l=i+1;if(e.menu){for(var h=this.createMenuElement(l),c=e.menu.length,p=0;p<c;p++){var d=new ax;e.menu[p].ascendants=d,e.ascendants.length&&d.copyFrom(e.ascendants),d.push(e),this.drawBranch(h,e.menu[p],l)}if(""==h.innerHTML)return;a.appendChild(h)}e.hidden&&this.hideBranch(e),e.id&&a.setAttribute("id",e.id),e.color&&(a.style.backgroundColor=e.color.hex),t.appendChild(a)}},e.prototype.createMenuElement=function(t){var e=document.createElement(this.menuTag);return e.className=this.getMenuItemClass(t),0===t&&e.setAttribute("role","menu"),e},e.prototype.getMenuItemClass=function(t){var e=this.classPrefix+"-menu "+this.classPrefix+"-menu-level-"+t;return 0===t&&(e+=" "+this.classPrefix+"-menu-root "+this.classPrefix+"-"+this.align+" "+this.classPrefix+"-"+this.verticalAlign),this.adapter.apply("menuClass",{className:e,level:t}).className},e.prototype.createItemElement=function(t,e){var i=document.createElement(this.itemTag),n=this.classPrefix+"-item "+this.classPrefix+"-item-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return i.className=this.adapter.apply("itemClass",{className:n,level:t,type:e}).className,i.setAttribute("role","menuitem"),i},e.prototype.createLabelElement=function(t,e){var i=document.createElement(this.labelTag),n=this.classPrefix+"-label "+this.classPrefix+"-label-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(n+=" "+this.classPrefix+"-clickable"),i.className=this.adapter.apply("labelClass",{className:n,level:t,type:e}).className,i.setAttribute("tabindex",this.tabindex.toString()),i.setAttribute("role","menuitem"),i},e.prototype.createIconElement=function(t,e){var i=document.createElement(this.iconTag),n=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(n+=" "+this.classPrefix+"-clickable"),i.className=this.adapter.apply("labelClass",{className:n,level:t,type:e}).className,i.setAttribute("tabindex",this.tabindex.toString()),i.setAttribute("role","menuitem"),i},e.prototype.createSvgElement=function(t,e,i){var n=(new DOMParser).parseFromString(i,"image/svg+xml").documentElement,r=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(r+=" "+this.classPrefix+"-clickable"),n.setAttribute("class",this.adapter.apply("labelClass",{className:r,level:t,type:e}).className),n.setAttribute("tabindex",this.tabindex.toString()),n.setAttribute("role","menuitem"),n},e.prototype.dispose=function(){this._disposed||(t.prototype.dispose.call(this),this._element&&this._element.parentNode&&this._element.parentNode.removeChild(this._element))},e.prototype.typeClickable=function(t){return w_(t)},e.prototype.hasSubMenu=function(t){return!(!t.menu||!t.menu.length)},e.prototype.getSubMenu=function(t){if(t.menu&&t.menu.length)return t.menu},e.prototype.getReaderLabel=function(t,e){return e=Hx(e),this.hasSubMenu(t)?e+=" ["+this.language.translate("Click, tap or press ENTER to open")+"]":"print"==t.type?e=this.language.translate("Click, tap or press ENTER to print."):this.typeClickable(t.type)&&(e=this.language.translate("Click, tap or press ENTER to export as %1.",void 0,e)),this.adapter.apply("rederLabel",{label:e,branch:t}).label},Object.defineProperty(e.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},set:function(t){this._items=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tag",{set:function(t){this._menuTag=t,this._itemTag="ul"==t?"li":"div",this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"menuTag",{get:function(){return this.adapter.apply("menuTag",{tag:this._menuTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemTag",{get:function(){return this.adapter.apply("itemTag",{tag:this._itemTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelTag",{get:function(){return this.adapter.apply("labelTag",{tag:this._labelTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconTag",{get:function(){return this.adapter.apply("iconTag",{tag:this._iconTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.adapter.apply("align",{align:this._align}).align},set:function(t){this._align=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",{verticalAlign:this._verticalAlign}).verticalAlign},set:function(t){this._verticalAlign=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",{classPrefix:this._classPrefix}).classPrefix},set:function(t){this._classPrefix=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",{defaultStyles:this._defaultStyles}).defaultStyles},set:function(t){this._defaultStyles!=t&&(this._defaultStyles=t,t&&this.loadDefaultCSS()),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.loadDefaultCSS=function(){var t,e,i,n;this._disposers.push((t=HC(this.container),e=this.classPrefix,i=e||"amexport",n=new ZC,IP.insertKeyIfEmpty(i,(function(){var e=new bw([new UC(t,"."+i+"-menu *",{"box-sizing":"border-box"}),new UC(t,"."+i+"-menu-level-0",{position:"absolute",top:"5px",right:"5px"}),new UC(t,"."+i+"-menu-level-0."+i+"-left",{right:"auto",left:"5px"}),new UC(t,"."+i+"-menu-level-0."+i+"-right",{right:"5px",left:"auto"}),new UC(t,"."+i+"-menu-level-0."+i+"-top",{top:"5px",bottom:"auto"}),new UC(t,"."+i+"-menu-level-0."+i+"-bottom",{top:"auto",bottom:"5px"}),new UC(t,"."+i+"-item."+i+"-item-level-0",{opacity:"0.3",width:"30px","min-height":"30px",transition:"all 100ms ease-in-out"}),new UC(t,"div:hover ."+i+"-item."+i+"-item-level-0, ."+i+"-item."+i+"-item-level-0.active",{opacity:"0.9"}),new UC(t,"."+i+"-item."+i+"-item-level-0 > a",{padding:"0","text-align":"center",overflow:"hidden"}),new UC(t,"."+i+"-item."+i+"-item-level-0:before",{display:"block"}),new UC(t,"."+i+"-item",{position:"relative",display:"block",opacity:"0","z-index":"1","border-radius":"3px","background-color":n.getFor("secondaryButton").hex,padding:"0",margin:"1px 1px 0 0",color:n.getFor("secondaryButton").alternative.hex,transition:"all 100ms ease-in-out, opacity 0.5s ease 0.5s"}),new UC(t,"."+i+"-left ."+i+"-item",{margin:"1px 0 0 1px"}),new UC(t,"."+i+"-item:hover, ."+i+"-item.active",{background:n.getFor("secondaryButtonHover").hex,color:n.getFor("secondaryButtonText").hex}),new UC(t,"."+i+"-item > ."+i+"-menu",{position:"absolute",top:"-1px",right:"0","margin-right":"100%"}),new UC(t,"."+i+"-left ."+i+"-item > ."+i+"-menu",{left:"0",right:"auto","margin-left":"100%","margin-right":"auto"}),new UC(t,"."+i+"-right ."+i+"-item > ."+i+"-menu",{left:"auto",right:"0","margin-left":"auto","margin-right":"100%"}),new UC(t,"."+i+"-top ."+i+"-item > ."+i+"-menu",{top:"-1px",bottom:"auto"}),new UC(t,"."+i+"-bottom ."+i+"-item > ."+i+"-menu",{top:"auto",bottom:"0"}),new UC(t,"."+i+"-item > ."+i+"-menu",{display:"none"}),new UC(t,"."+i+"-item:hover > ."+i+"-menu, ."+i+"-item.active > ."+i+"-menu",{display:"block"}),new UC(t,"."+i+"-item:hover > ."+i+"-menu > ."+i+"-item, ."+i+"-item.active > ."+i+"-menu > ."+i+"-item",{opacity:"1"}),new UC(t,"."+i+"-menu",{display:"block","list-style":"none",margin:"0",padding:"0"}),new UC(t,"."+i+"-label",{display:"block",cursor:"default",padding:"0.5em 1em"}),new UC(t,"."+i+"-icon",{display:"block",cursor:"default",padding:"0.2em 0.4em",width:"1.2em",height:"1.2em","min-width":"32px","min-height":"32px",margin:"auto auto","border-radius":"3px"}),new UC(t,"."+i+"-item-level-0 > ."+i+"-icon",{padding:"0.1em 0.2em"}),new UC(t,"."+i+"-clickable",{cursor:"pointer"})]);return new ww((function(){IP.removeKey(i),e.dispose()}))})).increment())),this._element&&(this._element.style.display="")},Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.adapter.apply("tabindex",{tabindex:this._tabindex}).tabindex},set:function(t){this._tabindex=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var t=this,e=this._language.get();return null==e&&(e=new PP,this._language.set(e,e.events.on("localechanged",(function(e){t.invalidate()})))),e},set:function(t){var e=this;this._language.set(t,t.events.on("localechanged",(function(t){e.invalidate()}))),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.close=function(){var t=this;if(this._ignoreNextClose)this._ignoreNextClose=!1;else{if(this.closeOnClick&&(this._element.style.pointerEvents="none",setTimeout((function(){t._element.style.pointerEvents="auto"}),100)),this._currentSelection&&(this.setBlur(this._currentSelection),this._currentSelection=void 0),this._element)for(var e=this._element.getElementsByClassName("active"),i=e.length-1;i>=0;i--)e[i]&&LC(e[i],"active");this.events.dispatchImmediately("closed",{type:"closed",target:this})}},e.prototype.selectBranch=function(t){var e=this;if(t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),jC(t.interactions.element.parentElement,"active"),this._currentSelection&&this._currentSelection!==t&&this._currentSelection.ascendants&&Ww(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){for(var i=!0,n=function(t){return i=e(t)},r=t.length,o=0;o<r&&(t[o](n),i);++o);}}(Hw([this._currentSelection]),this._currentSelection.ascendants.iterator()),(function(i){t.ascendants.contains(i)||t===i||e.unselectBranch(i,!0)})),Ww(t.ascendants.iterator(),(function(t){t.closeTimeout&&(e.removeDispose(t.closeTimeout),t.closeTimeout=void 0),jC(t.interactions.element.parentElement,"active")})),this._currentSelection=t,this.events.isEnabled("branchselected")){var i={type:"branchselected",target:this,branch:t};this.events.dispatchImmediately("branchselected",i)}},e.prototype.unselectBranch=function(t,e){if(LC(t.interactions.element.parentElement,"active"),this._currentSelection==t&&(this._currentSelection=void 0),this.events.isEnabled("branchunselected")){var i={type:"branchunselected",target:this,branch:t};this.events.dispatchImmediately("branchunselected",i)}},e.prototype.delayUnselectBranch=function(t,e){var i=this;t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),t.closeTimeout=this.setTimeout((function(){i.unselectBranch(t,e)}),this.closeDelay),!0!==e&&t.ascendants&&Ww(t.ascendants.iterator(),(function(t){i.delayUnselectBranch(t,!0)}))},e.prototype.moveSelection=function(t){if(this._currentSelection){var e;if("up"==t)e=this.getPrevSibling(this._currentSelection);else if("down"==t)e=this.getNextSibling(this._currentSelection);else if("left"==t&&"right"==this.align||"right"==t&&"left"==this.align){var i=this.getSubMenu(this._currentSelection);null!=i&&(e=i[0])}else("right"==t&&"right"==this.align||"left"==t&&"left"==this.align)&&(e=this.getParentItem(this._currentSelection));e&&e!==this._currentSelection&&(this.selectBranch(e),this.setFocus(e),this._currentSelection=e)}},e.prototype.getSiblings=function(t){var e=this.getParentItem(t);return e&&e.menu?e.menu:[]},e.prototype.getParentItem=function(t){return t.ascendants&&t.ascendants.length?t.ascendants.getIndex(t.ascendants.length-1):void 0},e.prototype.getNextSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var i=e.indexOf(t)+1;return e[i=e.length==i?0:i].unsupported?this.getNextSibling(e[i]):e[i]}return t},e.prototype.getPrevSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var i=e.indexOf(t)-1;return e[i=-1==i?e.length-1:i].unsupported?this.getPrevSibling(e[i]):e[i]}return t},e.prototype.setFocus=function(t){if(t.interactions)try{t.interactions.element.focus()}catch(e){}},e.prototype.setBlur=function(t){if(t.interactions)try{t.interactions.element.blur()}catch(e){}},e.prototype.hideBranch=function(t){t.element.style.display="none"},e.prototype.showBranch=function(t){t.element.style.display=""},e}(AP);function MP(t,e,i){return new Promise((function(n,r){var o=w_(i)&&"blob"==i.responseType,a=new XMLHttpRequest;if(a.onload=function(){if(200===a.status){var t,i;if(o)return t=a.response,void(u=t,new Promise((function(t,e){var i=new FileReader;i.onload=function(e){t(i.result)},i.onerror=function(t){e(t)},i.readAsText(u)}))).then((function(i){var r={xhr:a,error:!1,response:i,blob:t,type:a.getResponseHeader("Content-Type"),target:e};n(r)}));i=a.responseText||a.response;var s={xhr:a,error:!1,response:i,blob:t,type:a.getResponseHeader("Content-Type"),target:e};n(s)}else r({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:e});var u},a.onerror=function(){r({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:e})},a.open("GET",t,!0),i&&i.withCredentials&&(a.withCredentials=!0),w_(i)){if(w_(i.requestHeaders))for(var s=0;s<i.requestHeaders.length;s++){var u=i.requestHeaders[s];a.setRequestHeader(u.key,u.value)}w_(i.responseType)&&(a.responseType=i.responseType)}a.send()}))}var jP=/src: ([^;]+);/;function LP(t){return u_(this,void 0,void 0,(function(){var e;return l_(this,(function(i){switch(i.label){case 0:e=t.sheet,i.label=1;case 1:return i.trys.push([1,2,,4]),[2,e.cssRules];case 2:return i.sent(),[4,new Promise((function(i,n){t.addEventListener("load",(function(){i(e.cssRules)}),!0),t.addEventListener("error",(function(t){n(t)}),!0),setTimeout((function(){n(new Error("Timeout while waiting for <style> to load"))}),1e4)}))];case 3:return[2,i.sent()];case 4:return[2]}}))}))}function VP(t,e,i){return u_(this,void 0,void 0,(function(){var n,r,o,a;return l_(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,MP(e)];case 1:return n=s.sent(),[3,3];case 2:return r=s.sent(),console.error("Failed to load stylesheet",e,r),[2];case 3:(o=t.createElement("style")).textContent=n.response,t.head.appendChild(o),s.label=4;case 4:return s.trys.push([4,,7,8]),[4,LP(o)];case 5:return a=s.sent(),[4,RP(t,e,a,i)];case 6:return s.sent(),[3,8];case 7:return t.head.removeChild(o),[7];case 8:return[2]}}))}))}function RP(t,e,i,n){return u_(this,void 0,void 0,(function(){var r,o,a,s,u;return l_(this,(function(l){switch(l.label){case 0:for(r=[],o=i.length,a=0;a<o;a++)(s=i[a]).type===CSSRule.IMPORT_RULE?(u=s.href)&&(u=lC(e,u),r.push(VP(t,u,n))):n(e,s);return r.length?[4,Promise.all(r)]:[3,2];case 1:l.sent(),l.label=2;case 2:return[2]}}))}))}function NP(t){return u_(this,void 0,void 0,(function(){var e,i;return l_(this,(function(n){switch(n.label){case 0:(e=document.createElement("iframe")).src="about:blank",e.setAttribute("title",""),document.head.appendChild(e),n.label=1;case 1:return n.trys.push([1,,3,4]),i=e.contentDocument,[4,Promise.all(rw(document.styleSheets,(function(e){var n=e.href;return null==n?RP(i,location.href,e.cssRules,t):(n=lC(location.href,n),VP(i,n,t))})))];case 2:return n.sent(),[3,4];case 3:return document.head.removeChild(e),[7];case 4:return[2]}}))}))}var BP=function(t){function e(e){var i=t.call(this)||this;return i.adapter=new gx(i),i._formatOptions=new $w,i._extraSprites=[],i._validateSprites=[],i.dataFieldsOrder=[],i._dynamicDataFields=!0,i._removedObjects=new ax,i._hiddenObjects=[],i._objectsAlreadyHidden=!1,i._filePrefix="amCharts",i.useWebFonts=!0,i.useRetina=!0,i.useSimplifiedExport=!0,i.timeoutDelay=2e3,i._exportRunning=!1,i._container=e,i.className="Export",i._formatOptions.setKey("png",{}),i._formatOptions.setKey("jpg",{quality:.8}),i._formatOptions.setKey("gif",{}),i._formatOptions.setKey("svg",{}),i._formatOptions.setKey("pdf",{fontSize:14,imageFormat:"png",align:"left",addURL:!0,addColumnNames:!0}),i._formatOptions.setKey("json",{indent:2,useLocale:!0}),i._formatOptions.setKey("csv",{addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("xlsx",{addColumnNames:!0,useLocale:!0,emptyAs:""}),i._formatOptions.setKey("html",{addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("pdfdata",{fontSize:14,imageFormat:"png",addURL:!0,addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("print",{delay:500,printMethod:"iframe"}),i.adapter.add("options",(function(t){var e=i._formatOptions.getKey(t.type);return t.options?t.options=Rw(e,t.options):t.options=e,t})),i.applyTheme(),i.dispatchImmediately("inited"),i}return s_(e,t),Object.defineProperty(e.prototype,"menu",{get:function(){return this._menu},set:function(t){var e=this;this._menu&&this.removeDispose(this._menu),this._menu=t,this._menu.container=this.container,this._menu.language=this._language,this._menu.adapter.add("branch",(function(t){return t.branch.unsupported=!e.typeSupported(t.branch.type),t})),this._menu.events.on("hit",(function(t){e.export(t.branch.type,t.branch.options),e.menu.close()})),this._menu.events.on("enter",(function(t){e.export(t.branch.type,t.branch.options),e.menu.close()})),this._menu.events.on("over",(function(t){e._disablePointers()})),this._menu.events.on("out",(function(t){setTimeout((function(){e._releasePointers()}),10)})),this.dispatchImmediately("menucreated"),this._menu.adapter.add("classPrefix",(function(t){return t.classPrefix=CC.classNamePrefix+t.classPrefix,t})),this._disposers.push(this._menu)},enumerable:!0,configurable:!0}),e.prototype.typeSupported=function(t){var e=!0,i=this.getFormatOptions(t);return w_(i)&&i.disabled?e=!1:"pdf"===t||("xlsx"===t?e=!!this._hasData():("print"!=t||window.print)&&(-1===["json","csv","html","pdfdata"].indexOf(t)||this._hasData())||(e=!1)),this.adapter.apply("supported",{supported:e,type:t}).supported},e.prototype._hasData=function(){return this.data&&this.data.length},e.prototype._getFunction=function(t){switch(t){case"png":case"gif":case"jpg":return this.getImage;case"svg":return this.getSVG;case"pdf":case"pdfdata":return this.getPDF;case"xlsx":return this.getExcel;case"csv":return this.getCSV;case"json":return this.getJSON;case"html":return this.getHTML;case"print":return this.getPrint;default:return this.unsupported}},e.prototype.export=function(t,e){return u_(this,void 0,void 0,(function(){var i,n,r,o,a,s=this;return l_(this,(function(u){switch(u.label){case 0:return"custom"==t?(this.handleCustom(e),[2,!0]):(this._exportRunning=!0,this.events.isEnabled("exportstarted")&&(i={type:"exportstarted",target:this,format:t,options:e},this.events.dispatchImmediately("exportstarted",i)),this.showPreloader(),this.timeoutDelay&&(this.hideTimeout(),this._timeoutTimeout=this.setTimeout((function(){if(s.events.isEnabled("exporttimedout")){var i={type:"exporttimedout",target:s,format:t,options:e};s.events.dispatchImmediately("exporttimedout",i)}s.showTimeout()}),this.timeoutDelay)),this.hideNonExportableSprites(),n=this._getFunction(t),e=this.adapter.apply("options",{options:e,type:t}).options,[4,(n=this.adapter.apply("exportFunction",{func:n,type:t,options:e}).func).call(this,t,e)]);case 1:return r=u.sent(),this._exportRunning=!1,this._releasePointers(),this.restoreNonExportableSprites(),r?(this.events.isEnabled("exportfinished")&&(o={type:"exportfinished",target:this,format:t,options:e},this.events.dispatchImmediately("exportfinished",o)),this.hidePreloader(),this.hideTimeout(),this.menu&&this.menu.close(),"print"===t?[2,this.print(r,e,this.adapter.apply("title",{title:this.title,options:e}).title)]:"pdfdata"==t?[2,this.download(r,this.filePrefix+".pdf")]:[2,this.download(r,this.filePrefix+"."+t)]):(this.events.isEnabled("error")&&(a={type:"error",target:this,format:t,options:e},this.events.dispatchImmediately("error",a)),[2,!1])}}))}))},e.prototype.unsupported=function(t,e){return u_(this,void 0,void 0,(function(){return l_(this,(function(t){return[2,""]}))}))},e.prototype.handleCustom=function(t){w_(t)&&w_(t.callback)&&t.callback.call(t.callbackTarget||this,t)},e.prototype.getPrint=function(t,e){return u_(this,void 0,void 0,(function(){return l_(this,(function(t){return[2,this.getImage("png",e)]}))}))},e.prototype.getFontFamilies=function(){return u_(this,void 0,void 0,(function(){var t,e,i,n,r=this;return l_(this,(function(o){switch(o.label){case 0:return t=this.getDOMURL(),e=[],i=[],[4,NP((function(n,o){if(o.type===CSSRule.FONT_FACE_RULE){var a=o.cssText,s=jP.exec(a);if(null!==s){var u=s[1].split(/ *, */).map((function(i){return u_(r,void 0,void 0,(function(){var r,o,a,s,u,l;return l_(this,(function(h){switch(h.label){case 0:return null!==(r=/^url\(["']?([^"'\)]+)["']?\)([^,]*)$/.exec(i))?[3,1]:[2,i];case 1:o=r[2],a=lC(n,r[1]),h.label=2;case 2:return h.trys.push([2,7,,8]),[4,MP(a,void 0,{responseType:"blob"})];case 3:return s=h.sent(),null==window.navigator.msSaveOrOpenBlob?[3,4]:(u=t.createObjectURL(s.blob),e.push(u),[3,6]);case 4:return[4,(c=s.blob,new Promise((function(t,e){var i=new FileReader;i.onload=function(e){t(i.result)},i.onerror=function(t){e(t)},i.readAsDataURL(c)})))];case 5:u=h.sent(),h.label=6;case 6:return[2,'url("'+u+'")'+o];case 7:return l=h.sent(),console.error("Failed to load font",a,l),[2,null];case 8:return[2]}var c}))}))}));i.push(Promise.all(u).then((function(t){return 0===(t=t.filter((function(t){return null!=t}))).length?"":a.replace(jP,"src: "+t.join(", ")+";")})))}}}))];case 1:return o.sent(),[4,Promise.all(i)];case 2:return n=o.sent(),[2,{blobs:e,cssText:n.filter((function(t){return!!t})).join("\n")}]}}))}))},e.prototype.getImage=function(t,e,i){return u_(this,void 0,void 0,(function(){var n,r,o,a,s;return l_(this,(function(u){switch(u.label){case 0:return(n=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),w_(e)||(e=this.getFormatOptions(t)),[4,this.awaitValidSprites()];case 1:return u.sent(),[4,this.simplifiedImageExport()];case 2:if(!u.sent())return[3,10];u.label=3;case 3:return u.trys.push([3,7,,9]),[4,this.getCanvas(e)];case 4:return r=u.sent(),!1===i?[3,6]:[4,this.addExtras(r,e)];case 5:r=u.sent(),u.label=6;case 6:return o=r.toDataURL(this.getContentType(t),e.quality),this.disposeCanvas(r),n||this.restoreNonExportableSprites(),[2,o];case 7:return a=u.sent(),console.error(a.message+"\n"+a.stack),console.warn("Simple export failed, falling back to advanced export"),[4,this.getImageAdvanced(t,e,i)];case 8:return s=u.sent(),n||this.restoreNonExportableSprites(),[2,s];case 9:return[3,12];case 10:return[4,this.getImageAdvanced(t,e,i)];case 11:return s=u.sent(),n||this.restoreNonExportableSprites(),[2,s];case 12:return[2]}}))}))},e.prototype.addExtras=function(t,e,i){return u_(this,void 0,void 0,(function(){var n,r,o,a,s,u,l,h,c,p,d,f,g,y,v=this;return l_(this,(function(m){switch(m.label){case 0:return this.extraSprites.length?(n=0,r=0,o=t.width,a=t.height,s=0,u=0,[4,Promise.all(rw(this.extraSprites,(function(t){return u_(v,void 0,void 0,(function(){var l,h,c,p;return l_(this,(function(d){switch(d.label){case 0:return(l=t instanceof zP?{sprite:t,position:"bottom"}:t).position=l.position||"bottom",l.marginTop=l.marginTop||0,l.marginRight=l.marginRight||0,l.marginBottom=l.marginBottom||0,l.marginLeft=l.marginLeft||0,i?[4,l.sprite.exporting.getCanvasAdvanced(e)]:[3,2];case 1:return h=d.sent(),[3,4];case 2:return[4,l.sprite.exporting.getCanvas(e)];case 3:h=d.sent(),d.label=4;case 4:return c=h.width+l.marginLeft+l.marginRight,p=h.height+l.marginTop+l.marginBottom,"top"==l.position?(o=l.crop?a:N_(o,c),r+=p):"right"==l.position?(a=l.crop?a:N_(a,p),s+=c):"left"==l.position?(a=l.crop?a:N_(a,p),n+=c):"bottom"===l.position&&(o=l.crop?a:N_(o,c),u+=p),[2,{canvas:h,position:l.position,left:l.marginLeft,top:l.marginTop,width:c,height:p}]}}))}))})))]):[3,2];case 1:return l=m.sent(),(h=this.getDisposableCanvas()).width=n+o+s,h.height=r+a+u,c=h.getContext("2d"),(p=this.backgroundColor||this.findBackgroundColor(this.sprite.dom))&&(c.fillStyle=p.toString(),c.fillRect(0,0,h.width,h.height)),g=(d=n)+o,y=(f=r)+a,ow(l,(function(t){"top"==t.position?(f-=t.height,c.drawImage(t.canvas,n+t.left,f+t.top)):"right"==t.position?(c.drawImage(t.canvas,g+t.left,r+t.top),g+=t.width):"left"==t.position?(d-=t.width,c.drawImage(t.canvas,d+t.left,r+t.top)):"bottom"===t.position&&(c.drawImage(t.canvas,n+t.left,y+t.top),y+=t.height),v.disposeCanvas(t.canvas)})),c.drawImage(t,n,r),[2,h];case 2:return[2,t]}}))}))},e.prototype.getCanvas=function(t){return u_(this,void 0,void 0,(function(){var e,i,n,r,o,a,s,u,l,h,c,p,d,f,g,y;return l_(this,(function(v){switch(v.label){case 0:w_(t)||(t={}),e=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),i=this.getDOMURL(),n=null,r=null,v.label=1;case 1:return v.trys.push([1,,4,5]),a=this.sprite.pixelWidth,s=this.sprite.pixelHeight,u=GC(this.sprite.dom),l=KC(this.sprite.dom),o=this.getDisposableCanvas(),h=this.getPixelRatio(t),o.style.width=a+"px",o.style.height=s+"px",o.width=a*h,o.height=s*h,c=o.getContext("2d"),1!=h&&c.setTransform(h,0,0,h,0,0),e&&(c.fillStyle=e.toString(),c.fillRect(0,0,a,s)),p=[],this.useWebFonts&&p.push(this.getFontFamilies().then((function(t){return r=t.blobs,t.cssText}))),p.push(this.imagesToDataURI(this.sprite.dom,t)),p.push(this.prepForeignObjects(this.sprite.dom,t)),[4,Promise.all(p)];case 2:return d=v.sent(),f=this.normalizeSVG("<style>"+d[0]+"</style>"+this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,a,s,u,l),g=new Blob([f],{type:"image/svg+xml"}),n=i.createObjectURL(g),[4,this.loadNewImage(n,a,s,"anonymous")];case 3:return y=v.sent(),c.drawImage(y,0,0),[3,5];case 4:return null!==n&&i.revokeObjectURL(n),null!==r&&ow(r,(function(t){i.revokeObjectURL(t)})),this.restoreRemovedObjects(),[7];case 5:return[2,o]}}))}))},e.prototype.getCanvasAdvanced=function(t){return u_(this,void 0,void 0,(function(){var e,i,n,r,o,a,s,u,l,h;return l_(this,(function(c){switch(c.label){case 0:return w_(t)||(t={}),[4,this.imagesToDataURI(this.sprite.dom,t)];case 1:return c.sent(),e=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),[4,this.canvg];case 2:return i=c.sent(),n=this.sprite.pixelWidth,r=this.sprite.pixelHeight,o=GC(this.sprite.dom),a=KC(this.sprite.dom),s=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,n,r,o,a,e),u=this.getDisposableCanvas(),l=this.getPixelRatio(t),u.style.width=n*l+"px",u.style.height=r*l+"px",u.width=n*l,u.height=r*l,h={useCORS:!0},1!=l&&(h.ignoreDimensions=!0,h.scaleWidth=n*l,h.scaleHeight=r*l),[4,i.fromString(u.getContext("2d"),s,h).render()];case 3:return c.sent(),[2,u]}}))}))},e.prototype.getImageAdvanced=function(t,e,i){return u_(this,void 0,void 0,(function(){var n,r,o;return l_(this,(function(a){switch(a.label){case 0:return(n=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),w_(e)||(e=this.getFormatOptions(t)),[4,this.getCanvasAdvanced(e)];case 1:return r=a.sent(),!1===i?[3,3]:[4,this.addExtras(r,e,!0)];case 2:r=a.sent(),a.label=3;case 3:return o=r.toDataURL(this.getContentType(t),e.quality),this.disposeCanvas(r),n||this.restoreNonExportableSprites(),[2,o]}}))}))},e.prototype.getDisposableCanvas=function(){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="-10000px",document.body.appendChild(t),t},e.prototype.disposeCanvas=function(t){document.body.removeChild(t)},e.prototype.getPixelRatio=function(t){var e=t&&t.scale?t.scale:1;return(this.useRetina&&window.devicePixelRatio||1)*e},e.prototype.imagesToDataURI=function(t,i){return u_(this,void 0,void 0,(function(){var n,r,o,a,s,u;return l_(this,(function(l){switch(l.label){case 0:if(!(n=t.querySelectorAll("image")).length)return[3,2];for(r=[],o=n.length,a=0;a<o;a++)s=n[a],(u=s.getAttributeNS(e.XLINK,"href"))&&(-1!==u.indexOf("data:image")||(-1!==u.indexOf(".svg")?r.push(this.svgToDataURI(s,i)):r.push(this.imageToDataURI(s,i))));return[4,Promise.all(r)];case 1:return l.sent(),[2];case 2:return[2]}}))}))},e.prototype.prepForeignObjects=function(t,e){return u_(this,void 0,void 0,(function(){var e,i,n;return l_(this,(function(r){if((e=t.querySelectorAll("foreignObject")).length)for(i=e.length,n=0;n<i;n++)this.temporarilyRemoveObject(e[n]);return[2]}))}))},e.prototype.imageToDataURI=function(t,i){return u_(this,void 0,void 0,(function(){var n,r,o;return l_(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.loadNewImage(t.getAttributeNS(e.XLINK,"href"),null,null,"anonymous")];case 1:n=a.sent(),(r=document.createElement("canvas")).width=n.width,r.height=n.height,r.getContext("2d").drawImage(n,0,0);try{return o=r.toDataURL(),t.setAttribute("href",o),[2,o]}catch(s){return!1!==i.keepTainted&&this.temporarilyRemoveObject(t),[2,void 0]}return[3,3];case 2:return a.sent(),i&&!1===i.keepTainted||this.temporarilyRemoveObject(t),[2,void 0];case 3:return[2]}}))}))},e.prototype.svgToDataURI=function(t,i){return u_(this,void 0,void 0,(function(){var n,r,o,a;return l_(this,(function(s){switch(s.label){case 0:n=t.getAttributeNS(e.XLINK,"href"),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,MP(n)];case 2:return r=s.sent(),o=this.adapter.apply("charset",{charset:"base64",type:"svg",options:i}).charset,a=this.adapter.apply("svgToDataURI",{data:"data:"+this.getContentType("svg")+";"+o+","+btoa(r.response),options:i}).data,t.setAttributeNS(e.XLINK,"href",a),[2,a];case 3:return s.sent(),i&&!1===i.keepTainted||this.temporarilyRemoveObject(t),[2,void 0];case 4:return[2]}}))}))},e.prototype.temporarilyRemoveObject=function(t,e){var i=t.parentElement||t.parentNode;e||(e=this.sprite.paper.add("g").node),i.insertBefore(e,t),t.textContent,i.removeChild(t),this._removedObjects.push({element:t,placeholder:e})},e.prototype.restoreRemovedObjects=function(){for(var t;t=this._removedObjects.pop();)(t.placeholder.parentElement||t.placeholder.parentNode).insertBefore(t.element,t.placeholder)},e.prototype.simplifiedImageExport=function(){return u_(this,void 0,void 0,(function(){var t,e,i,n,r,o,a;return l_(this,(function(s){switch(s.label){case 0:if(!1===this.useSimplifiedExport)return[2,!1];if(!1===(t=ex.getCache("simplifiedImageExport"))||!0===t)return[2,t];s.label=1;case 1:s.trys.push([1,6,,7]),(e=document.createElement("canvas")).width=1,e.height=1,i=e.getContext("2d"),n=this.getDOMURL(),r=new Blob([this.normalizeSVG("<g></g>",{},1,1)],{type:"image/svg+xml"}),o=n.createObjectURL(r),a=void 0,s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.loadNewImage(o,1,1)];case 3:return a=s.sent(),[3,5];case 4:return s.sent(),[2,!1];case 5:i.drawImage(a,0,0),n.revokeObjectURL(o);try{return ex.setCache("simplifiedImageExport",!0),[2,!0]}catch(u){return ex.setCache("simplifiedImageExport",!1),[2,!1]}return[3,7];case 6:return s.sent(),ex.setCache("simplifiedImageExport",!1),[2,!1];case 7:return[2]}}))}))},e.prototype.loadNewImage=function(t,e,i,n){return new Promise((function(r,o){var a;function s(){if(n){var e=a.src;a.onerror=function(){o(new Error('Loading image "'+t+'" failed'))},a.removeAttribute("crossorigin"),a.src="",a.src=e}else o(new Error('Loading image "'+t+'" failed'))}a=e&&i?new Image(e,i):new Image,n&&a.setAttribute("crossOrigin",n),a.onload=function(){r(a)},a.onabort=s,a.onerror=s,a.src=t}))},e.prototype.getDOMURL=function(){return self.URL||self.webkitURL||self},e.prototype.getSVG=function(t,e){return u_(this,void 0,void 0,(function(){var i,n,r,o,a,s,u,l;return l_(this,(function(h){switch(h.label){case 0:return(i=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),[4,this.awaitValidSprites()];case 1:return h.sent(),n=this.sprite.pixelWidth,r=this.sprite.pixelHeight,o=GC(this.sprite.dom),a=KC(this.sprite.dom),s=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,n,r,o,a),u=this.adapter.apply("charset",{charset:"charset=utf-8",type:"svg",options:e}).charset,l=this.adapter.apply("getSVG",{data:"data:"+this.getContentType(t)+";"+u+","+encodeURIComponent(s),options:e}).data,i||this.restoreNonExportableSprites(),[2,l]}}))}))},e.prototype.normalizeSVG=function(t,e,i,n,r,o,a){var s="";i&&(s+='width="'+i+'px" '),n&&(s+='height="'+n+'px" ');var u="";r&&(u+="font-family: "+r.replace(/"/g,"")+";"),o&&(u+="font-size: "+o+";");var l=[],h=t.match(/<foreignObject[\s\S]*<\/foreignObject>/gi);if(h)for(var c=0;c<h.length;c++)t=t.replace(h[c],"__\xa7\xa7\xa7__"),l.push(h[c]);t.match(/<svg/)?""!==s&&(t=(t=(t=t.replace(/(<svg[^>]*)width="[^"]*"/,"$1")).replace(/(<svg[^>]*)height="[^"]*"/,"$1")).replace(/(<svg)/,"$1"+s)):t='<?xml version="1.0" encoding="utf-8"?><svg '+s+' style="'+u+'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+t+"</svg>",a&&(t=t.replace(/(<svg[^>]*>)/,'$1<rect width="100%" height="100%" fill="'+a.rgba+'"/>')),/MSIE |Trident\//.test(navigator.userAgent)&&(t=t.replace(/<feColorMatrix [^\/>]*\/>/gi,""));var p=new RegExp("url\\("+Mx(Tx()),"g");if(t=t.replace(p,"url(#"),l.length)for(c=0;c<l.length;c++)t=t.replace("__\xa7\xa7\xa7__",l[c]);return this.adapter.apply("normalizeSVG",{data:t,options:e}).data},e.prototype.serializeElement=function(t){return(new XMLSerializer).serializeToString(t)},e.prototype.getPDF=function(t,e){return u_(this,void 0,void 0,(function(){function i(t){var e={};e.normal=t.normal.path,d[t.normal.path]=t.normal.bytes,t.bold?(e.bold=t.bold.path,d[t.bold.path]=t.bold.bytes):e.bold=t.normal.path,t.italics?(e.italics=t.italics.path,d[t.italics.path]=t.italics.bytes):e.italics=t.normal.path,t.bolditalics?(e.bolditalics=t.bolditalics.path,d[t.bolditalics.path]=t.bolditalics.bytes):e.bolditalics=t.normal.path,p[t.name]=e}var n,r,o,a,s,u,l,h,c,p,d;return l_(this,(function(f){switch(f.label){case 0:return[4,this.getImage(e.imageFormat||"png",e)];case 1:return n=f.sent(),[4,this.pdfmake];case 2:return r=f.sent(),o=[30,30,30,30],a={pageSize:e.pageSize||"A4",pageOrientation:e.pageOrientation||"portrait",pageMargins:e.pageMargins||o,defaultStyle:{font:e.font?e.font.name:void 0},content:[]},s=this.adapter.apply("title",{title:this.title,options:e}).title,u=0,s&&(a.content.push({text:s,fontSize:e.fontSize,bold:!0,margin:[0,0,0,15]}),u+=50),e.addURL&&(a.content.push({text:this.language.translate("Saved from")+": "+document.location.href,fontSize:e.fontSize,margin:[0,0,0,15]}),u+=50),"pdfdata"!=t&&a.content.push({image:n,alignment:e.align||"left",fit:this.getPageSizeFit(a.pageSize,a.pageMargins,u)}),"pdfdata"==t||e.addData?(h=(l=a.content).push,c={},[4,this.getPDFData("pdf",e)]):[3,4];case 3:h.apply(l,[(c.table=f.sent(),c)]),f.label=4;case 4:return a=this.adapter.apply("pdfmakeDocument",{doc:a,options:e}).doc,p=null,d=null,e.font&&(p={},d={},i(e.font),e.extraFonts&&ow(e.extraFonts,i)),[4,new Promise((function(t,e){r.createPdf(a,null,p,d).getDataUrl((function(e){t(e)}))}))];case 5:return[2,f.sent()]}}))}))},e.prototype.getPDFData=function(t,e){return u_(this,void 0,void 0,(function(){var t,i,n,r,o,a,s=this;return l_(this,(function(u){if(t={body:[]},i=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"pdf"}).dataFields,n=this.data,e.pivot)r=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder,Vw(i,(function(i,r){var o=[];e.addColumnNames&&o.push(r);for(var a=n.length,u=0;u<a;u++){var l=n[u][i];o.push(s.convertToSpecialFormat(i,l,e,!0))}t.body.push(s.getPDFDataRow(o,e,void 0,!0))}),(function(t,e){var i=r.indexOf(t),n=r.indexOf(e);return i>n?1:i<n?-1:0}));else for(e.addColumnNames&&(t.body.push(this.getPDFDataRow(i,e,void 0,!0)),t.headerRows=1),o=n.length,a=0;a<o;a++)t.body.push(this.getPDFDataRow(n[a],e,i));return[2,this.adapter.apply("pdfmakeTable",{table:t,options:e}).table]}))}))},e.prototype.getPDFDataRow=function(t,e,i,n){var r=this;void 0===n&&(n=!1);var o=[];i||(i=t);var a=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder;return Vw(i,(function(i,a){var s=r.convertEmptyValue(i,t[i],e),u=n?s:r.convertToSpecialFormat(i,s,e);u=""+u,o.push(u)}),(function(t,e){var i=a.indexOf(t),n=a.indexOf(e);return i>n?1:i<n?-1:0})),o},e.prototype.getPageSizeFit=function(t,e,i){void 0===i&&(i=0);var n=[0,0,0,0];"number"==typeof e?n=[e,e,e,e]:2==e.length?n=[e[0],e[1],e[0],e[1]]:4==e.length&&(n=e);var r={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],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],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]}[t];return r[0]-=n[0]+n[2],r[1]-=n[1]+n[3]+i,r},e.prototype.getExcel=function(t,e){return u_(this,void 0,void 0,(function(){var i,n,r,o,a,s,u,l,h,c=this;return l_(this,(function(p){switch(p.label){case 0:return[4,this.xlsx];case 1:if(i=p.sent(),n=this.adapter.apply("xlsxWorkbookOptions",{options:{bookType:"xlsx",bookSST:!1,type:"base64"}}).options,r=this.normalizeExcelSheetName(this.adapter.apply("xlsxSheetName",{name:this.title||this.language.translate("Data")}).name),o={SheetNames:[r],Sheets:{}},a=[],s=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"xslx"}).dataFields,e.pivot)u=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder,Vw(s,(function(t,i){var n=[];e.addColumnNames&&n.push(i);for(var r=c.data.length,o=0;o<r;o++){var s=c.data[o][t];n.push(c.convertToSpecialFormat(t,s,e,!0))}a.push(c.getExcelRow(n,e,void 0,!0))}),(function(t,e){var i=u.indexOf(t),n=u.indexOf(e);return i>n?1:i<n?-1:0}));else for(e.addColumnNames&&a.push(this.getExcelRow(s,e,void 0,!0)),l=this.data.length,h=0;h<l;h++)a.push(this.getExcelRow(this.data[h],e,s));return o.Sheets[r]=i.utils.aoa_to_sheet(a),[2,this.adapter.apply("getExcel",{data:"data:"+this.getContentType(t)+";base64,"+i.write(o,n),options:e}).data]}}))}))},e.prototype.normalizeExcelSheetName=function(t){return Lx(t=t.replace(/([:\\\/?*\[\]]+)/g," "),31,"...",!0)},e.prototype.getExcelRow=function(t,e,i,n){var r=this;void 0===n&&(n=!1);var o=[];i||(i=t);var a=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder;return Vw(i,(function(i,a){var s=r.convertEmptyValue(i,t[i],e),u=n?s:r.convertToSpecialFormat(i,s,e,!0);o.push(u)}),(function(t,e){var i=a.indexOf(t),n=a.indexOf(e);return i>n?1:i<n?-1:0})),o},e.prototype.getCSV=function(t,e){return u_(this,void 0,void 0,(function(){var i,n,r,o,a,s,u,l,h,c=this;return l_(this,(function(p){if(i="",n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,r="",o=this.data,e.pivot)a=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder,Vw(n,(function(t,n){var a=[];e.addColumnNames&&a.push(n);for(var s=o.length,u=0;u<s;u++){var l=o[u][t];a.push(c.convertToSpecialFormat(t,l,e,!0))}i+=r+c.getCSVRow(a,e,void 0,!0),r="\n"}),(function(t,e){var i=a.indexOf(t),n=a.indexOf(e);return i>n?-1:i<n?1:0}));else{for(s=o.length,u=0;u<s;u++)l=this.getCSVRow(o[u],e,n),e.reverse?i=l+r+i:i+=r+l,r="\n";e.addColumnNames&&(i=this.getCSVRow(n,e,void 0,!0)+r+i)}return h=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,[2,this.adapter.apply("getCSV",{data:"data:"+this.getContentType(t)+";"+h+","+encodeURIComponent(i),options:e}).data]}))}))},e.prototype.getCSVRow=function(t,e,i,n){var r=this;void 0===n&&(n=!1);var o=e.separator||",",a=[];i||(i=t);var s=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder;return Vw(i,(function(i,s){var u=r.convertEmptyValue(i,t[i],e),l=n?u:r.convertToSpecialFormat(i,u,e);l=(l=""+l).replace(/"/g,'""'),(e.forceQuotes||l.search(new RegExp('"|\n|'+o,"g"))>=0)&&(l='"'+l+'"'),a.push(l)}),(function(t,e){var i=s.indexOf(t),n=s.indexOf(e);return i>n?1:i<n?-1:0})),a.join(o)},e.prototype.getHTML=function(t,e){return u_(this,void 0,void 0,(function(){var i,n,r,o,a,s,u,l=this;return l_(this,(function(h){if(i="<table>",e.tableClass&&(i='<table class="'+e.tableClass+'">'),n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"html"}).dataFields,r=this.data,e.pivot)o=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,Vw(n,(function(t,n){var o=[];e.addColumnNames&&o.push(n);for(var a=r.length,s=0;s<a;s++){var u=r[s][t];o.push(l.convertToSpecialFormat(t,u,e,!0))}i+="\n"+l.getHTMLRow(o,e,void 0,!0)}),(function(t,e){var i=o.indexOf(t),n=o.indexOf(e);return i>n?-1:i<n?1:0}));else for(e.addColumnNames&&(i+="\n"+this.getHTMLRow(n,e,void 0,!0,!0)),a=r.length,s=0;s<a;s++)i+="\n"+this.getHTMLRow(r[s],e,n);return i+="</table>",u=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,[2,this.adapter.apply("getHTML",{data:"data:"+this.getContentType(t)+";"+u+","+encodeURIComponent(i),options:e}).data]}))}))},e.prototype.getHTMLRow=function(t,e,i,n,r){var o=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var a="\t<tr>";e.rowClass&&(a='\t<tr class="'+e.rowClass+'">'),i||(i=t);var s=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,u=r?"th":"td",l=!0;return Vw(i,(function(i,r){var s=o.convertEmptyValue(i,t[i],e),h=n?s:o.convertToSpecialFormat(i,s,e);h=(h=""+h).replace(/[\u00A0-\u9999<>\&]/gim,(function(t){return"&#"+t.charCodeAt(0)+";"}));var c=u;e.pivot&&l&&(c="th"),e.cellClass?a+="\n\t\t<"+c+' class="'+e.cellClass+'">'+h+"</"+c+">":a+="\n\t\t<"+c+">"+h+"</"+c+">",l=!1}),(function(t,e){var i=s.indexOf(t),n=s.indexOf(e);return i>n?1:i<n?-1:0})),a+="\n\t</tr>"},e.prototype.getJSON=function(t,e){return u_(this,void 0,void 0,(function(){var i,n,r,o,a,s,u,l,h=this;return l_(this,(function(c){if(n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,this._dynamicDataFields)i=this.data;else for(i=[],r=this.data,o=function(t,o){var a=r[o];if("object"==typeof a){var s={};Lw(a,(function(t,i){w_(n[t])&&(s[n[t]]=h.convertToSpecialFormat(t,i,e))})),i.push(s)}},a=r.length,s=0;s<a;s++)o(0,s);return u=JSON.stringify(i,(function(t,i){return"object"==typeof i&&Lw(i,(function(t,n){i[t]=h.convertToSpecialFormat(t,n,e)})),i}),e.indent),l=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,[2,this.adapter.apply("getJSON",{data:"data:"+this.getContentType(t)+";"+l+","+encodeURIComponent(u),options:e}).data]}))}))},e.prototype.convertToSpecialFormat=function(t,e,i,n){if("number"==typeof e)if(this.isDateField(t))e=new Date(e);else{if(this.isDurationField(t))return this.durationFormatter.format(e,this.durationFormat);if(this.isNumberField(t)&&this.numberFormat)return this.numberFormatter.format(e,this.numberFormat)}return e instanceof Date?i.useTimestamps?e=e.getTime():i.useLocale?n||(e=e.toLocaleString()):e=this.dateFormatter.format(e,this.dateFormat):k_(e)&&this.isDateField(t)&&this.dateFormat&&(e=this.dateFormatter.format(this.dateFormatter.parse(e),this.dateFormat)),e},e.prototype.convertEmptyValue=function(t,e,i){return w_(e)?e:i.emptyAs},e.prototype.download=function(t,e){return u_(this,void 0,void 0,(function(){var i,n,r,o,a,s,u,l,h,c,p,d,f,g,y;return l_(this,(function(v){if(this.msBlobDownloadSupport()){if(d=t.split(";"),f=d.shift().replace(/data:/,""),t=decodeURIComponent(d.join(";").replace(/^[^,]*,/,"")),-1!=["image/svg+xml","application/json","text/csv"].indexOf(f))return i=new Blob([t],{type:f}),window.navigator.msSaveBlob(i,e),[2,!0];try{r=atob(t),t=r}catch(m){return[2,!1]}for(s=new Array(t.length),u=0;u<t.length;++u)l=t.charCodeAt(u),s[u]=l;h=new Blob([new Uint8Array(s)],{type:f}),window.navigator.msSaveBlob(h,e)}else if(this.blobDownloadSupport()){if((n=document.createElement("a")).download=e,document.body.appendChild(n),d=t.split(";"),f=d.shift().replace(/data:/,""),t=decodeURIComponent(d.join(";").replace(/^[^,]*,/,"")),-1!=["image/svg+xml","application/json","text/csv","text/html"].indexOf(f))return o=new Blob([t],{type:f}),a=window.URL.createObjectURL(o),n.href=a,n.download=e,n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(a)}),100),[2,!0];try{r=atob(t),t=r}catch(m){return[2,!1]}for(s=new Array(t.length),u=0;u<t.length;++u)l=t.charCodeAt(u),s[u]=l;h=new Blob([new Uint8Array(s)],{type:f}),c=window.URL.createObjectURL(h),n.href=c,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout((function(){window.URL.revokeObjectURL(c)}),100)}else this.linkDownloadSupport()?((p=document.createElement("a")).download=e,p.href=t,document.body.appendChild(p),p.click(),document.body.removeChild(p)):this.legacyIE()?4===(d=t.match(/^data:(.*);[ ]*([^,]*),(.*)$/)).length&&("base64"==d[2]?d[1].match(/^image\//)&&this.showModal('<img src="'+t+'" style="float: left; max-width: 50%; max-height: 80%; margin: 0 1em 0.5em 0; border: 1px solid #eee;" /><p>'+this.language.translate('To save the image, right-click thumbnail on the left and choose "Save picture as..."')+'</p><p style="text-align: center;"><small>'+this.language.translate("(Press ESC to close this message)")+"</small></p>",this.language.translate("Image Export Complete")):(f=void 0,e.match(/\.svg$/)?f="image/svg+xml":(f="text/plain",e+=".txt"),(g=document.createElement("iframe")).width="1px",g.height="1px",g.style.display="none",document.body.appendChild(g),(y=g.contentDocument).open(f,"replace"),y.write(decodeURIComponent(d[3])),y.close(),y.execCommand("SaveAs",!0,e),document.body.removeChild(g))):window.location.href=t;return[2,!0]}))}))},e.prototype.downloadSupport=function(){return this.linkDownloadSupport()||this.msBlobDownloadSupport()},e.prototype.linkDownloadSupport=function(){var t=ex.getCache("linkDownloadSupport");if(!1===t||!0===t)return t;var e=void 0!==document.createElement("a").download;return ex.setCache("linkDownloadSupport",e),e},e.prototype.blobDownloadSupport=function(){return w_(window.Blob)},e.prototype.msBlobDownloadSupport=function(){return w_(window.navigator.msSaveOrOpenBlob)},e.prototype.legacyIE=function(){var t=document.createElement("div");return t.innerHTML="\x3c!--[if lt IE 10]><i></i><![endif]--\x3e",1==t.getElementsByTagName("i").length},e.prototype.print=function(t,e,i){return u_(this,void 0,void 0,(function(){return l_(this,(function(n){return"css"==e.printMethod?[2,this.printViaCSS(t,e,i)]:[2,this.printViaIframe(t,e,i)]}))}))},e.prototype.printViaCSS=function(t,e,i){return u_(this,void 0,void 0,(function(){var n,r,o,a;return l_(this,(function(s){return n=document.documentElement.scrollTop||document.body.scrollTop,r=new UC(HC(this.container),"body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"}),i&&document&&document.title&&(o=document.title,document.title=i),(a=new Image).src=t,a.style.maxWidth="100%",a.style.display="block",a.style.position="relative",a.style.visibility="visible",a.style.opacity="1",a.style.clipPath="none",document.body.appendChild(a),this.setTimeout((function(){window.print()}),50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&e.delay<1e3?e.delay=1e3:e.delay<100&&(e.delay=100),this.setTimeout((function(){document.body.removeChild(a),r.dispose(),o&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n}),e.delay||500),[2,!0]}))}))},e.prototype.printViaIframe=function(t,e,i){return u_(this,void 0,void 0,(function(){var n,r;return l_(this,(function(o){return(n=document.createElement("iframe")).style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close(),(r=new Image).src=t,r.style.maxWidth="100%",i&&(n.contentWindow.document.title=i),n.contentWindow.document.body.appendChild(r),n.load=function(){n.contentWindow.document.body.appendChild(r)},this.setTimeout((function(){try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch(t){n.contentWindow.print()}}),e.delay||50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&e.delay<1e3?e.delay=1e3:e.delay<100&&(e.delay=100),this.setTimeout((function(){document.body.removeChild(n)}),e.delay+50||100),[2,!0]}))}))},e.prototype.findBackgroundColor=function(t){var e=1,i=RC(t,"background-color");if((i.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||"transparent"==i)&&(e=0),0==e){var n=t.parentElement;return n?this.findBackgroundColor(n):Cx("#fff")}return Cx(i,e)},Object.defineProperty(e.prototype,"container",{get:function(){return this.adapter.apply("container",{container:this._container}).container},set:function(t){this._container=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sprite",{get:function(){return this.adapter.apply("sprite",{sprite:this._sprite}).sprite},set:function(t){this._sprite=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraSprites",{get:function(){return this.adapter.apply("extraSprites",{extraSprites:this._extraSprites}).extraSprites},set:function(t){this._extraSprites=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validateSprites",{get:function(){return this.adapter.apply("validateSprites",{validateSprites:this._validateSprites}).validateSprites},set:function(t){this._validateSprites=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.adapter.apply("data",{data:this._data}).data},set:function(t){this._data=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataFields",{get:function(){return this._dataFields||this.generateDataFields(),this.adapter.apply("dataFields",{dataFields:this._dataFields}).dataFields},set:function(t){this._dataFields=t,this._dynamicDataFields=!1},enumerable:!0,configurable:!0}),e.prototype.handleDataUpdated=function(){this._dynamicDataFields&&(this._dataFields=void 0)},Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter||(this._dateFormatter=new DP,this._dateFormatter.language=this.language),this.adapter.apply("dateFormatter",{dateFormatter:this._dateFormatter}).dateFormatter},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormat",{get:function(){return this.adapter.apply("dateFormat",{dateFormat:this._dateFormat}).dateFormat},set:function(t){this._dateFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFields",{get:function(){return this._dateFields||(this._dateFields=new ax),this.adapter.apply("dateFields",{dateFields:this._dateFields}).dateFields},set:function(t){this._dateFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormatter",{get:function(){return this._numberFormatter||(this._numberFormatter=new OP,this._numberFormatter.language=this.language),this.adapter.apply("numberFormatter",{numberFormatter:this._numberFormatter}).numberFormatter},set:function(t){this._numberFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormat",{get:function(){return this.adapter.apply("numberFormat",{numberFormat:this._numberFormat}).numberFormat},set:function(t){this._numberFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFields",{get:function(){return this._numberFields||(this._numberFields=new ax),this.adapter.apply("numberFields",{numberFields:this._numberFields}).numberFields},set:function(t){this._numberFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormatter",{get:function(){return this._durationFormatter||(this._durationFormatter=new TP,this._durationFormatter.language=this.language),this.adapter.apply("durationFormatter",{durationFormatter:this._durationFormatter}).durationFormatter},set:function(t){this._durationFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormat",{get:function(){return this.adapter.apply("durationFormat",{durationFormat:this._durationFormat}).durationFormat},set:function(t){this._durationFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFields",{get:function(){return this._durationFields||(this._durationFields=new ax),this.adapter.apply("durationFields",{durationFields:this._durationFields}).durationFields},set:function(t){this._durationFields=t},enumerable:!0,configurable:!0}),e.prototype.generateDataFields=function(){var t=this;this._dataFields={},this.data.length&&ow(this.data,(function(e){Lw(e,(function(e,i){w_(t._dataFields[e])||(t._dataFields[e]=t.adapter.apply("dataFieldName",{name:e,field:e}).name)}))}))},e.prototype.isDateField=function(t){return this.adapter.apply("isDateField",{isDateField:this.dateFields.contains(t),field:t}).isDateField},e.prototype.isNumberField=function(t){return this.adapter.apply("isNumberField",{isNumberField:this.numberFields.contains(t),field:t}).isNumberField},e.prototype.isDurationField=function(t){return this.adapter.apply("isDurationField",{isDurationField:this.durationFields.contains(t),field:t}).isDurationField},e.prototype.getContentType=function(t){var e="";switch(t){case"png":case"gif":e="image/"+t;break;case"jpg":e="image/jpeg";break;case"svg":e="image/svg+xml";break;case"csv":e="text/csv";break;case"json":e="application/json";break;case"html":e="text/html";break;case"pdf":case"pdfdata":e="application/pdf";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}return this.adapter.apply("contentType",{contentType:e,type:t}).contentType},Object.defineProperty(e.prototype,"filePrefix",{get:function(){return this.adapter.apply("filePrefix",{filePrefix:this._filePrefix}).filePrefix},set:function(t){this._filePrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this.adapter.apply("backgroundColor",{backgroundColor:this._backgroundColor}).backgroundColor},set:function(t){this._backgroundColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.adapter.apply("title",{title:this._title}).title},set:function(t){this._title=t},enumerable:!0,configurable:!0}),e.prototype.showPreloader=function(){var t=this.preloader;t&&(t.progress=.5,t.label.text="...")},e.prototype.hidePreloader=function(){var t=this.preloader;t&&(t.progress=1)},Object.defineProperty(e.prototype,"preloader",{get:function(){return this._sprite&&this._sprite.parent&&this._sprite.parent.preloader?this._sprite.parent.preloader:void 0},enumerable:!0,configurable:!0}),e.prototype.showTimeout=function(){this.showModal(this.adapter.apply("timeoutMessage",{message:this.language.translate("Export operation took longer than expected. Something might have gone wrong.")}).message)},e.prototype.hideTimeout=function(){this._timeoutTimeout&&(this.removeDispose(this._timeoutTimeout),this._timeoutTimeout=null),this.hideModal()},Object.defineProperty(e.prototype,"language",{get:function(){return this._language||(this._language=new PP),this._language},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modal",{get:function(){return this._modal||(this._modal=new uP,this._modal.adapter.add("classPrefix",(function(t){return CC.classNamePrefix+t}))),this._modal},enumerable:!0,configurable:!0}),e.prototype.showModal=function(t,e){this.hideModal(),this.hidePreloader();var i=this.modal;i.container=this.sprite.svgContainer.SVGContainer,i.content=t,i.readerTitle=e,i.open()},e.prototype.hideModal=function(){this._modal&&this.modal.close()},e.prototype._canvg=function(){return u_(this,void 0,void 0,(function(){var t;return l_(this,(function(e){switch(e.label){case 0:return[4,i.e(1).then(i.bind(null,"iJDN"))];case 1:return null!=(t=e.sent()).default?[2,t.default]:[2,t]}}))}))},Object.defineProperty(e.prototype,"canvg",{get:function(){return this._canvg()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfmake",{get:function(){return null==EP&&(EP=function(){return u_(this,void 0,void 0,(function(){var t,e,n,r;return l_(this,(function(o){switch(o.label){case 0:return[4,Promise.all([i.e(3).then(i.t.bind(null,"5JmO",7)),i.e(3).then(i.bind(null,"b0eU"))])];case 1:return t=o.sent(),e=t[0],n=t[1],(r=window).pdfMake=r.pdfMake||{},r.pdfMake.vfs=n.default,e.vfs=n.default,[2,e]}}))}))}()),EP},enumerable:!0,configurable:!0}),e.prototype._xlsx=function(){return u_(this,void 0,void 0,(function(){return l_(this,(function(t){switch(t.label){case 0:return[4,i.e(7).then(i.t.bind(null,"EUZL",7))];case 1:return[2,t.sent()]}}))}))},Object.defineProperty(e.prototype,"xlsx",{get:function(){return this._xlsx()},enumerable:!0,configurable:!0}),e.prototype.setFormatOptions=function(t,e){this._formatOptions.setKey(t,e)},e.prototype.getFormatOptions=function(t){return this._formatOptions.getKey(t)},Object.defineProperty(e.prototype,"formatOptions",{get:function(){return this._formatOptions},enumerable:!0,configurable:!0}),e.prototype._disablePointers=function(){w_(this._spriteInteractionsEnabled)||(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled),this.sprite.interactionsEnabled=!1},e.prototype._releasePointers=function(){w_(this._spriteInteractionsEnabled)&&!this._exportRunning&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled)},e.prototype.hideNonExportableSprites=function(){var t=this;if(!this._objectsAlreadyHidden){var e=this.sprite.svgContainer;e&&ow(e.nonExportableSprites,(function(e){e.isHidden||e.isHiding||!e.visible||t._hiddenObjects.push(e),e.hide(0)})),this._objectsAlreadyHidden=!0}},e.prototype.restoreNonExportableSprites=function(){this._objectsAlreadyHidden&&(ow(this._hiddenObjects,(function(t){t.show(0)})),this._hiddenObjects=[],this._objectsAlreadyHidden=!1)},e.prototype.awaitValidSprites=function(){return u_(this,void 0,void 0,(function(){var t;return l_(this,(function(e){switch(e.label){case 0:return t=[],this.validateSprites.length&&ow(this.validateSprites,(function(e,i){e.invalid&&t.push(new Promise((function(t,i){e.events.once("validated",(function(e){t()}))})))})),t.length?[4,Promise.all(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.processConfig=function(e){ex.registeredClasses.ExportMenu=FP,e&&w_(e.menu)&&!w_(e.menu.type)&&(e.menu.type="ExportMenu"),t.prototype.processConfig.call(this,e)},e.XLINK="http://www.w3.org/1999/xlink",e}(AP),HP=["fill","fillOpacity","stroke","strokeOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin"],zP=function(t){function e(){var e=t.call(this)||this;return e.properties={},e._eventDispatcher=new wC(e),e._bindings={},e._isTemplate=!1,e._isPath=!1,e._inited=!1,e._ready=!1,e.isHiding=!1,e._isHidden=!1,e.isShowing=!1,e.isStandaloneInstance=!1,e._isActive=!1,e._mask=new _w,e._positionPrecision=3,e._language=new _w,e._exporting=new _w,e._exportable=!0,e._bbox={x:0,y:0,width:0,height:0},e.invalid=!1,e.positionInvalid=!1,e.propertyFields={},e.applyOnClones=!1,e._measuredWidthSelf=0,e._measuredHeightSelf=0,e.maxLeft=0,e.maxRight=0,e.maxTop=0,e.maxBottom=0,e.maxLeftSelf=0,e.maxRightSelf=0,e.maxTopSelf=0,e.maxBottomSelf=0,e._isDragged=!1,e._isResized=!1,e._disabled=!1,e._internalDisabled=!1,e._updateDisabled=!1,e._internalDefaultsApplied=!1,e.rollOutDelay=0,e.isBaseSprite=!1,e.shouldClone=!0,e.appeared=!1,e.ex=0,e.ey=0,e.dragWhileResize=!1,e.measureFailed=!1,e.preventShow=!1,e.cloneTooltip=!0,e.className="Sprite",e._disposers.push(e._eventDispatcher),e.uid,e.group=e.paper.addGroup("g"),e.setPropertyValue("scale",1),e.setPropertyValue("rotation",0),e.setPropertyValue("align","none"),e.setPropertyValue("valign","none"),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("visible",!0),e.setPropertyValue("tooltipPosition","fixed"),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e.setPropertyValue("tooltipX",f_(50)),e.setPropertyValue("tooltipX",f_(50)),e.setPropertyValue("marginTop",0),e.setPropertyValue("marginBottom",0),e.setPropertyValue("marginLeft",0),e.setPropertyValue("marginRight",0),e.setPropertyValue("dx",0),e.setPropertyValue("dy",0),e.setPropertyValue("paddingTop",0),e.setPropertyValue("paddingBottom",0),e.setPropertyValue("paddingRight",0),e.setPropertyValue("paddingLeft",0),e.setPropertyValue("togglable",!1),e.setPropertyValue("hidden",!1),e.setPropertyValue("urlTarget","_self"),e.setPropertyValue("alwaysShowTooltip",!1),e.setPropertyValue("showTooltipOn","hover"),e._prevMeasuredWidth=0,e._prevMeasuredHeight=0,e._measuredWidth=0,e._measuredHeight=0,e._isMeasured=!0,e.invalidate(),e.applyTheme(),e._disposers.push(e.events),e._disposers.push(e.group),e._disposers.push(e._mask),e._disposers.push(e._language),e._disposers.push(e._exporting),e._disposers.push(new mw((function(){Lw(e._bindings,(function(t,e){e.dispose()}))}))),e.setPropertyValue("interactionsEnabled",!0),e}return s_(e,t),Object.defineProperty(e.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new gx(this)),this._adapterO},enumerable:!0,configurable:!0}),e.prototype.applyTheme=function(){t.prototype.applyTheme.call(this),CC.autoSetClassName&&this.setClassName()},e.prototype.getCurrentThemes=function(){var t=this._themes;if(t)return t;var e=this._parent;return e?e.getCurrentThemes():ex.themes},e.prototype.applyInternalDefaults=function(){this._internalDefaultsApplied=!0},e.prototype.invalidate=function(){this.disabled||this._isTemplate||this.invalid||(this.invalid=!0,ex.addToInvalidSprites(this),GP.requestFrame())},e.prototype.validate=function(){this.dispatchImmediately("beforevalidated"),this._internalDefaultsApplied||this.applyInternalDefaults(),this.beforeDraw(),this.draw(),this.invalid=!1,ex.removeFromInvalidSprites(this),this.afterDraw()},e.prototype.invalidatePosition=function(){this.disabled||this._isTemplate||this.positionInvalid||(this.positionInvalid=!0,ex.addToInvalidPositions(this),GP.requestFrame())},e.prototype.validatePosition=function(){var t=this.pixelX,e=this.pixelY,i=this.dx,n=this.dy,r=t+i,o=e+n;this._updateDisabled&&(this._internalDisabled?this.group.attr({display:"none"}):this.disabled||this.removeSVGAttribute("display"),this._updateDisabled=!1);var a=this.measure(),s=this.group.transformString;this.group.moveTo({x:r,y:o}),this.group.rotation=this.rotation,this.nonScaling?this.group.scale=this.scale/this.globalScale:this.group.scale=this.scale,(s!=this.group.transformString||a)&&(null==s?this.dispatch("transformed"):this.dispatchImmediately("transformed"),this.dispatch("positionchanged"),"hit"!=this.showTooltipOn&&"always"!=this.showTooltipOn||this.updateTooltipPosition()),t+i==r&&e+n==o&&(ex.removeFromInvalidPositions(this),this.positionInvalid=!1);var u=this._maskRectangle;u&&this._clipElement.moveTo({x:u.x-t,y:u.y-e})},e.prototype.beforeDraw=function(){},e.prototype.draw=function(){},e.prototype.afterDraw=function(){var t,e;if((this.isMeasured||"none"!==this.horizontalCenter||"none"!==this.verticalCenter)&&this.measureElement(),this._inited)this.dispatch("validated");else{if(this._adapterO)try{for(var i=h_(this._adapterO.keys()),n=i.next();!n.done;n=i.next()){var r=n.value;switch(r){case"mask":case"fill":case"opacity":case"fillOpacity":case"stroke":case"strokeOpacity":case"strokeWidth":case"shapeRendering":case"strokeDasharray":case"strokeDashoffset":case"strokeLinecap":case"strokeLinejoin":case"textDecoration":case"fontSize":case"fontFamily":case"fontWeight":this[r]=this[r]}}}catch(o){t={error:o}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.applyFilters(),this.visible=this.visible,this.interactionsEnabled=this.getPropertyValue("interactionsEnabled"),this._inited=!0,this.showOnInit||(this.appeared=!0),this.hidden&&this.hide(0),this.applyMask(),this.dispatch("validated"),this.dispatch("inited"),this.dispatchReady()}"always"==this.showTooltipOn&&(!this.visible||this.disabled||this.__disabled?this.hideTooltip(0):this.showTooltip())},e.prototype.dispatchReady=function(){this.isReady()||(this._ready=!0,this.dispatch("ready"))},e.prototype.reinit=function(){this._inited=!1,this.setState(this.defaultState),this.invalidate()},e.prototype.handleGlobalScale=function(){this.dispatch("globalscalechanged"),this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth),this.nonScaling&&this.validatePosition(),this.updateFilterScale()},e.prototype.updateFilterScale=function(){var t=this;Ww(this.filters.iterator(),(function(e){e.scale=t.globalScale}))},e.prototype.removeFromInvalids=function(){ex.removeFromInvalidSprites(this),ex.removeFromInvalidPositions(this)},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.isMeasured=e.isMeasured,this.states.copyFrom(e.states),e.filters.length>0&&e.filters.each((function(t){i.filters.push(t.clone())})),e._adapterO&&this.adapter.copyFrom(e._adapterO),e._interaction&&this.interactions.copyFrom(e.interactions),e._plugins&&this.plugins.copyFrom(e.plugins),this.configField=e.configField,this.applyOnClones=e.applyOnClones,this.disabled=e.disabled,this.virtualParent=e.virtualParent,this.exportable=e.exportable,e._tooltip&&(this._tooltip?this._tooltip.copyFrom(e.tooltip):e.cloneTooltip?this.tooltip=e.tooltip.clone():this._tooltip=e.tooltip),this._showSystemTooltip=e.showSystemTooltip,Ox(e.propertyFields,this.propertyFields),Ox(e.properties,this),e.fillModifier&&(this.fillModifier=e.fillModifier.clone()),e.strokeModifier&&(this.strokeModifier=e.strokeModifier.clone())},e.prototype.dispose=function(){if(!this.isDisposed()){if("always"==this.showTooltipOn&&this.tooltip&&this.tooltip.hide(),this.dispatchImmediately("beforedisposed"),this.isBaseSprite){if(this.htmlContainer)for(;this.htmlContainer.childNodes.length>0;)this.htmlContainer.removeChild(this.htmlContainer.firstChild);this.isBaseSprite=!1}if(t.prototype.dispose.call(this),this._adapterO&&this._adapterO.clear(),this.applyOnClones&&this._clones)for(var e=this._clones.length-1;e>=0;e--)this._clones.getIndex(e).dispose();this._svgContainer&&this._svgContainer.dispose(),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0),this._urlDisposer&&this._urlDisposer.dispose(),this.removeFromInvalids(),this.element&&this.element.dispose(),this.group&&this.group.dispose(),this._numberFormatter&&this._numberFormatter.dispose(),this._focusFilter&&this._focusFilter.dispose();var i=this.stroke;!i||i instanceof xx||!i.dispose||this.clonedFrom&&this.clonedFrom.stroke==i||i.dispose();var n=this.fill;if(!n||n instanceof xx||!n.dispose||this.clonedFrom&&this.clonedFrom.fill==n||n.dispose(),w_(this.id)&&this.map.removeKey(this.id),this.parent=void 0,this._filters)for(;this._filters.length>0;){var r=this._filters.getIndex(0);r.dispose(),this._filters.removeValue(r)}this._alwaysShowDisposers=void 0}},Object.defineProperty(e.prototype,"isTemplate",{get:function(){return this._isTemplate},set:function(t){t=m_(t),this._isTemplate!=t&&(this._isTemplate=t,this instanceof WP&&Ww(this.children.iterator(),(function(e){e.isTemplate=t})),t?(this.parent=this._parent,this.removeFromInvalids()):this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showSystemTooltip",{get:function(){return w_(this._showSystemTooltip)?this._showSystemTooltip:this.virtualParent?this.virtualParent.showSystemTooltip:!!this._parent&&this._parent.showSystemTooltip},set:function(t){t=m_(t),this._showSystemTooltip!=t&&(this._showSystemTooltip=t,this.applyAccessibility())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topParent",{get:function(){return this._topParent?this._topParent:this._parent?this._parent.topParent:void 0},set:function(t){this._topParent=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(t){if(!this._isTemplate){this.paper;var e=this._parent;e!=t&&(e&&e.children.removeValue(this),this._parent=t,t?(this.topParent=t.topParent,t.isTemplate&&(this.isTemplate=!0),this.baseId=t.baseId,t.children.push(this),this._tooltip&&!this._tooltipContainer&&(this._tooltip.parent=t.tooltipContainer),this._dataItem||(this.dataItem=t.dataItem),this.handleAlwaysShowTooltip(),this.dispatchImmediately("parentset")):this.topParent=void 0)}},enumerable:!0,configurable:!0}),e.prototype.handleAlwaysShow=function(){this.showTooltip()},e.prototype.handleAlwaysShowTooltip=function(){var t=this,e=this._alwaysShowDisposers;if(e&&ow(e,(function(t){t.dispose()})),this._alwaysShowDisposers=[],"always"==this.showTooltipOn)for(;null!=t;){var i=t.events.on("visibilitychanged",this.handleAlwaysShow,this,!1);this.addDisposer(i),this._alwaysShowDisposers.push(i),t=t.parent}},Object.defineProperty(e.prototype,"virtualParent",{get:function(){return this._virtualParent},set:function(t){this._virtualParent=t},enumerable:!0,configurable:!0}),e.prototype.appendDefs=function(){this.filterElement&&this.paper.appendDef(this.filterElement);var t=this.fill;t&&t.element&&this.paper.appendDef(t.element);var e=this.stroke;if(e&&e.element&&this.paper.appendDef(e.element),this.fillModifier&&this.fill instanceof xx){var i=this.fillModifier.modify(this.fill);i&&i.element&&this.paper.appendDef(i.element)}if(this.strokeModifier&&this.stroke instanceof xx){var n=this.strokeModifier.modify(this.stroke);n&&n.element&&this.paper.appendDef(n.element)}this._clipPath&&this.paper.appendDef(this._clipPath),!1===this._exportable&&(this.exportable=!1)},Object.defineProperty(e.prototype,"map",{get:function(){var t=this.topParent;return t?t.map:(this._map||(this._map=new $w),this._map)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delayedMap",{get:function(){var t=this.topParent;return t?t.delayedMap:(this._delayedMap||(this._delayedMap=new $w),this._delayedMap)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){if(this._id!=t){if(this._id=t,this.map.hasKey(t))throw Error("Duplicate id ("+t+") used on multiple objects.");this.map.setKey(t,this),CC.autoSetClassName&&this.setClassName()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this.group.node},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){if(this._paper)return this._paper;var t=this._parent;return t?t.paper:vP()},set:function(t){this.setPaper(t)},enumerable:!0,configurable:!0}),e.prototype.setPaper=function(t){return this._paper!=t&&(this._paper=t,this.appendDefs(),!0)},Object.defineProperty(e.prototype,"htmlContainer",{get:function(){if(this._htmlContainer)return this._htmlContainer;var t=this._parent;return t?t.htmlContainer:void 0},set:function(t){this._htmlContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleElement",{get:function(){return this._titleElement||(this._titleElement=this.paper.add("title"),this.group.add(this._titleElement)),this._titleElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionElement",{get:function(){return this._descriptionElement||(this._descriptionElement=this.paper.add("desc"),this.group.add(this._descriptionElement)),this._descriptionElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return this._filters||(this._filters=new ax,this._disposers.push(this._filters.events.onAll(this.applyFilters,this)),this._disposers.push(new rx(this._filters))),this._filters},enumerable:!0,configurable:!0}),e.prototype.setSVGAttributes=function(){this.fill=this.fill,this.opacity=this.opacity,this.fillOpacity=this.fillOpacity,this.stroke=this.stroke,this.strokeOpacity=this.strokeOpacity,this.shapeRendering=this.shapeRendering,this.strokeDasharray=this.strokeDasharray,this.strokeDashoffset=this.strokeDashoffset,this.strokeLinecap=this.strokeLinecap,this.strokeLinejoin=this.strokeLinejoin,this.focusable=this.focusable,this.tabindex=this.tabindex,this.role=this.role},e.prototype.setSVGAttribute=function(t){this.group.attr(t)},e.prototype.removeSVGAttribute=function(t){this.group.removeAttr(t)},e.prototype.setClassName=function(){var t=this.className,e=CC.classNamePrefix;this.element&&this.element.addClass(e+t),this.group.addClass(e+t+"-group"),w_(this.id)&&this.group.addClass(e+this.id),this.userClassName&&this.group.addClass(this.userClassName)},e.prototype.uidAttr=function(){return this.setSVGAttribute({id:this.uid}),this.uid},e.prototype.updateClipPath=function(){var t=this._clipElement;t&&t.moveTo({x:this.mask.pixelX,y:this.mask.pixelY})},e.prototype.createClipPath=function(){if(!this._clipPath){this._clipPath=this.paper.addGroup("clipPath"),this.paper.appendDef(this._clipPath),this._disposers.push(this._clipPath);var t=ex.getUniqueId();this._clipPath.attr({id:t}),this.group.attr({"clip-path":'url("'+Tx()+t+'")'})}},e.prototype.applyMask=function(){var t=this.mask;if(this._clipPath&&t)if(t instanceof WP){this._clipElement.attr({width:N_(0,t.pixelWidth),height:N_(0,t.pixelHeight)});var e=tC({x:t.pixelX,y:t.pixelY},t.parent,this);this._clipPath.x=e.x,this._clipPath.y=e.y}else t.element&&t.element!=this._clipElement&&(this._clipElement=t.element,this._clipPath.add(this._clipElement)),this._clipPath.scale=t.scale,this._clipPath.x=t.pixelX,this._clipPath.y=t.pixelY,this._clipPath.rotation=t.rotation},e.prototype.applyFilters=function(){var t=this;if(this._filters&&this._filters.length>0){var e=100,i=100;this.filterElement?this.filterElement.removeChildNodes():(this.filterElement=this.paper.addGroup("filter"),this._disposers.push(this.filterElement)),this.paper.appendDef(this.filterElement);var n="filter-"+this.uid;this.filterElement.attr({id:n}),Ww(this.filters.iterator(),(function(n){n.sprite=t,n.paper=t.paper,t.filterElement.attr({filterUnits:n.filterUnits}),n.appendPrimitives(t.filterElement),n.width>e&&(e=n.width),n.height>i&&(i=n.height),n.scale=t.globalScale}));var r=e+"%",o=i+"%";this.filterElement.attr({width:r,height:o,x:-(e-100)/2+"%",y:-(i-100)/2+"%"}),this.group.attr({filter:'url("'+Tx()+n+'")'})}else this.filterElement&&(this.group.removeAttr("filter"),this.filterElement.removeChildNodes())},e.prototype.removeClipPath=function(){this._clipPath&&(this.removeDispose(this._clipPath),this._clipPath=void 0)},e.prototype.setElement=function(t){this.element=t,this.setSVGAttributes(),this.applyAccessibility()},Object.defineProperty(e.prototype,"element",{get:function(){return this._element},set:function(t){this.removeElement(),this._element=t,this.group.add(t),t.node instanceof SVGPathElement&&(this._isPath=!0),this.invalid||this.validate(),CC.autoSetClassName&&this.setClassName()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"svgContainer",{get:function(){return this._svgContainer?this._svgContainer:this._parent?this._parent.svgContainer:void 0},set:function(t){this._svgContainer=t},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){if(this.element)if(this.definedBBox)this._bbox=this.definedBBox;else{var t=this.element.getBBox();this._bbox={x:t.x,y:t.y,width:t.width,height:t.height}}},e.prototype.updateCenter=function(){if(this.element){var t=this.element.transformString,e=this.bbox,i=0,n=0,r=e.x,o=e.y,a=e.width,s=e.height,u=this.pixelPaddingLeft,l=this.pixelPaddingRight,h=this.pixelPaddingTop,c=this.pixelPaddingBottom,p=N_(a+u+l,this.pixelWidth),d=N_(s+h+c,this.pixelHeight),f=e.x,g=e.x+p,y=e.y,v=e.y+d,m=this.horizontalCenter,b=this.verticalCenter;switch(m){case"none":i=r+u;break;case"left":i=u;break;case"middle":i=u-(a+l+u)/2;break;case"right":i=-l-a}switch(b){case"none":n=o+h;break;case"top":n=h;break;case"middle":n=h-(s+c+h)/2;break;case"bottom":n=-c-s}this._measuredHeight=d,this._measuredWidth=p;var _=M_(i-r,this._positionPrecision,!0),w=M_(n-o,this._positionPrecision,!0);this.ex=_-u,this.ey=w-h,this.maxLeft=f+_-u,this.maxRight=g+_-u,this.maxTop=y+w-h,this.maxBottom=v+w-h,this.pixelPerfect&&(_-=.5,w-=.5),this.element.moveTo({x:_,y:w}),t!=this.element.transformString&&this.dispatchImmediately("transformed")}},e.prototype.measure=function(){this.updateCenter();var t=this._measuredWidth,e=this._measuredHeight,i=this.maxLeft,n=this.maxRight,r=this.maxTop,o=this.maxBottom;this._measuredWidthSelf=t,this._measuredHeightSelf=e;var a=this._positionPrecision;if(this.maxLeftSelf=this.maxLeft,this.maxRightSelf=this.maxRight,this.maxTopSelf=this.maxTop,this.maxBottomSelf=this.maxBottom,0!==this.rotation||1!==this.scale){this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth);var s=this.paper.svg,u=s.createSVGMatrix(),l=this.rotation;u.a=R_(l)*this.scale,u.c=-V_(l)*this.scale,u.e=0,u.b=V_(l)*this.scale,u.d=R_(l)*this.scale,u.f=0;var h=s.createSVGPoint();h.x=i,h.y=r;var c=s.createSVGPoint();c.x=n,c.y=r;var p=s.createSVGPoint();p.x=n,p.y=o;var d=s.createSVGPoint();d.x=i,d.y=o;var f=h.matrixTransform(u),g=c.matrixTransform(u),y=p.matrixTransform(u),v=d.matrixTransform(u);i=Math.min(f.x,g.x,y.x,v.x),n=Math.max(f.x,g.x,y.x,v.x),r=Math.min(f.y,g.y,y.y,v.y),t=n-i,e=(o=Math.max(f.y,g.y,y.y,v.y))-r,this.maxLeft=M_(i,a,!0),this.maxRight=M_(n,a,!0),this.maxTop=M_(r,a,!0),this.maxBottom=M_(o,a,!0)}return this._measuredWidth=M_(t,a,!0),this._measuredHeight=M_(e,a,!0),(this._measuredWidth!=this._prevMeasuredWidth||this._measuredHeight!=this._prevMeasuredHeight)&&(this._prevMeasuredHeight=this._measuredHeight,this._prevMeasuredWidth=this._measuredWidth,this.dispatch("sizechanged"),(this.isHover||"hit"==this.showTooltipOn||"always"==this.showTooltipOn)&&this.tooltip&&this.tooltip.visible&&(w_(this.tooltipText)||w_(this.tooltipHTML))&&this.updateTooltipPosition(),!0)},e.prototype.insertBefore=function(t){var e=this._parent;if(e){var i=e.children.indexOf(t);-1!==i&&(e.children.moveValue(this,i),e.sortChildren())}return this},e.prototype.insertAfter=function(t){var e=this._parent;if(e){var i=e.children.indexOf(t);-1!==i&&(e.children.moveValue(this,i+1),e.sortChildren())}return this},e.prototype.removeElement=function(){this._element&&(this.removeDispose(this._element),this._element=void 0)},e.prototype.getRelativeX=function(t){return t instanceof d_?t.value:this._parent?t/this._parent.innerWidth:0},e.prototype.getRelativeY=function(t){return t instanceof d_?t.value:this._parent?t/this._parent.innerHeight:0},e.prototype.getPixelX=function(t){var e=0;if(S_(t))e=t;else if(t instanceof d_){var i=t.value;this._parent&&(e=M_(this._parent.innerWidth*i,this._positionPrecision,!0))}return e},e.prototype.getPixelY=function(t){var e=0;if(S_(t))e=t;else if(t instanceof d_){var i=t.value;this._parent&&(e=M_(this._parent.innerHeight*i,this._positionPrecision,!0))}return e},e.prototype.moveTo=function(t,e,i,n){this.isDragged&&!n||(t&&(S_(t.x)&&this.setPropertyValue("x",M_(t.x,this._positionPrecision,!0)),S_(t.y)&&this.setPropertyValue("y",M_(t.y,this._positionPrecision,!0))),S_(e)&&(this.rotation=e),S_(i)&&(this.scale=i),this.invalidatePosition())},Object.defineProperty(e.prototype,"mask",{get:function(){return this._adapterO?this._adapterO.apply("mask",this._mask.get()):this._mask.get()},set:function(t){var e=this;this._mask.get()!==t&&(t?(this.createClipPath(),t instanceof WP?this._clipElement=this.paper.add("rect"):(t.isMeasured=!1,t.element&&(this._clipElement=t.element)),this._clipElement&&this._clipPath.add(this._clipElement),this._mask.set(t,new bw([t.events.on("maxsizechanged",(function(){e.inited&&e.applyMask()}),void 0,!1),t.events.on("validated",this.applyMask,this,!1),t.events.on("positionchanged",this.applyMask,this,!1)])),this.applyMask()):(this._mask.reset(),this.group.removeAttr("clip-path"),this.removeClipPath()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maskRectangle",{get:function(){return this._maskRectangle},set:function(t){t?(this.createClipPath(),this._clipElement||(this._clipElement=this.paper.add("rect"),this._clipPath.add(this._clipElement)),this._clipElement.attr({width:t.width,height:t.height})):(this.removeClipPath(),this._clipElement=void 0),this._maskRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMeasured",{get:function(){return this._isMeasured},set:function(t){(t=m_(t))||(this._measuredWidth=0,this._measuredHeight=0),this._isMeasured!=t&&(this._isMeasured=t,this.invalidatePosition())},enumerable:!0,configurable:!0}),e.prototype.hitTest=function(t){this.invalid&&this.validate(),t.invalid&&t.validate();var e=this.pixelX,i=this.pixelY,n=e+this.measuredWidth,r=i+this.measuredHeight,o=t.pixelX,a=t.pixelY,s=o+t.measuredWidth,u=a+t.measuredHeight;return!(o>n||s<e||a>r||u<i)},Object.defineProperty(e.prototype,"inited",{get:function(){return this._inited},enumerable:!0,configurable:!0}),e.prototype.isReady=function(){return this._ready},Object.defineProperty(e.prototype,"states",{get:function(){if(!this._states){var t=new _C;this._states=new Jw(t),this._disposers.push(this._states.events.on("insertKey",this.processState,this,!1)),this._disposers.push(this._states.events.on("setKey",this.processState,this,!1)),this._disposers.push(new Qw(this._states)),this._disposers.push(t)}return this._states},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenState",{get:function(){if(!this.states.getKey("hidden")){var t=this.states.create("hidden");t.properties.opacity=0,t.properties.visible=!1}return this.states.getKey("hidden")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultState",{get:function(){return this.states.getKey("default")||(this.states.create("default").properties.opacity=1),this.states.getKey("default")},enumerable:!0,configurable:!0}),e.prototype.processState=function(t){var e=t.newValue;if(e.sprite=this,e.name=t.key,(this.states.hasKey("hover")||"hover"==this.showTooltipOn&&(w_(this.tooltipHTML)||w_(this.tooltipText)))&&(this.hoverable=!0),(this.states.hasKey("down")||"hover"==this.showTooltipOn&&(w_(this.tooltipHTML)||w_(this.tooltipText)))&&(this.clickable=!0),this.states.hasKey("focus")&&(this.focusable=!0),this.applyOnClones)for(var i=this.clones.values,n=i.length,r=0;r<n;++r){var o=i[r];o.isDisposed()||o.states.setKey(e.name,e)}},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new TC(this._animations))),this._animations},enumerable:!0,configurable:!0}),e.prototype.getSvgPoint=function(t){try{var e=this.htmlContainer.getBoundingClientRect();return{x:t.x-e.left,y:t.y-e.top}}catch(i){return t}},e.prototype.animate=function(t,e,i){return new EC(this,t,e,i).start()},e.prototype.setState=function(t,e,i){var n;if(t instanceof _C)this.states.setKey(t.name,t),n=t;else if(!(n=this.states.getKey(t)))return;if("hover"==n.name){if(this.isHidden)return;this.isHover=!0}return"hidden"==n.name?this.isHiding=!0:this.visible||this.setVisibility(n.properties.visible||this.defaultState.properties.visible),"active"==n.name&&(this.isActive=!0),S_(e)||(e=n.transitionDuration),w_(i)||(i=n.transitionEasing),this.transitTo(n,e,i)},e.prototype.applyCurrentState=function(t){var e=this.setState(this.defaultState,t);return this.isHover&&(e=this.setState("hover",t)),this.isDown&&this.interactions.downPointers.length&&(e=this.setState("down",t)),this.isFocused=this.isFocused,this.isActive&&(e=this.setState("active",t),this.isHover&&this.states.hasKey("hoverActive")&&(e=this.setState("hoverActive",t))),e},e.prototype.transitTo=function(t,e,i){var n,r=this,o=[];if(Lw(t.allValues,(function(t,e){var i=r[t];if(e!=i&&null==r.defaultState.properties[t]&&(r.defaultState.properties[t]=i),"__unset"!=e){var n={from:i,to:e,property:t};o.push(n)}})),o.length>0&&((n=this.animate(o,e,i))&&!n.isFinished()?this._disposers.push(n.events.on("animationended",(function(){r.dispatchImmediately("transitionended")}))):this.dispatchImmediately("transitionended")),t.filters.length>0){var a=[];Ww(t.filters.iterator(),(function(t){var n=t.clone();a.push(n);var o=[];Ww(r.filters.iterator(),(function(t){t.className==n.className&&(qw(r.defaultState.filters.iterator(),(function(t){return t.className===n.className}))||r.defaultState.filters.push(t),Lw(n.properties,(function(e,i){var n=t.properties[e];n!=i&&o.push({property:e,from:n,to:i})})))})),n.animate(o,e,i)})),this.filters.clear(),this.filters.pushAll(a)}return n},e.prototype.isInTransition=function(){return this.animations.length>0},Object.defineProperty(e.prototype,"isHover",{get:function(){return!!this.isInteractive()&&this.interactions.isHover},set:function(t){(t=m_(t))!==this.isHover&&this.isInteractive()&&(this.interactions.isHover=t,t?this.handleOver():(this.interactions.isRealHover=!1,this.handleOut()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDragged",{get:function(){return this._isDragged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isResized",{get:function(){return this._isResized},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDown",{get:function(){return!!this.isInteractive()&&this.interactions.isDown},set:function(t){t=m_(t),this.isInteractive()&&this.isDown!=t&&(this.interactions.isDown=t,t?this.handleDown():this.handleUp())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!!this.isInteractive()&&this.interactions.isFocused},set:function(t){t=m_(t),this.focusable&&this.isFocused!=t&&this.isInteractive()&&(this.interactions.isFocused=t,!0===t?this.handleFocus():this.handleBlur())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},set:function(t){this.setActive(t)},enumerable:!0,configurable:!0}),e.prototype.setActive=function(t){t=m_(t),this._isActive!==t&&(this._isActive=t,t&&this.states.hasKey("active")?(this.setState("active"),this.isHover&&this.states.hasKey("hoverActive")&&this.setState("hoverActive")):this.applyCurrentState(),this.dispatchImmediately("toggled"))},Object.defineProperty(e.prototype,"disabled",{get:function(){var t=this.getPropertyValue("disabled");return w_(t)?t:this.virtualParent?this.virtualParent.disabled:!!this._parent&&this._parent.disabled},set:function(t){this.setDisabled(t)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(t){if(t=m_(t),this.getPropertyValue("disabled")!=t){if(this.setPropertyValue("disabled",t,!0),t)this.parent=this._parent,this.removeFromInvalids(),this.group.attr({display:"none"}),this.dispatch("disabled");else{if(this._parent){var e=this._parent.element;e.hasChild(this.group)||e.add(this.group)}this instanceof WP?(this.deepInvalidate(),this._background&&this._background.invalidate()):this.invalidate(),this.__disabled||this.removeSVGAttribute("display"),this.dispatch("enabled")}return this.dispatch("transformed"),GP.requestFrame(),!0}return!1},Object.defineProperty(e.prototype,"__disabled",{get:function(){return this._internalDisabled},set:function(t){this._internalDisabled!=t&&(this._internalDisabled=t,this._updateDisabled=!0,this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormatter",{get:function(){return this._numberFormatter?this._numberFormatter:this.virtualParent?this.virtualParent.numberFormatter:this._parent?this._parent.numberFormatter:(this._numberFormatter=new OP,this._numberFormatter.language=this.language,this.numberFormatter)},set:function(t){this._numberFormatter=t,this._numberFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.virtualParent?this.virtualParent.dateFormatter:this._parent?this._parent.dateFormatter:(this._dateFormatter=new DP,this._dateFormatter.language=this.language,this.dateFormatter)},set:function(t){this._dateFormatter=t,this._dateFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormatter",{get:function(){return this._durationFormatter?this._durationFormatter:this.virtualParent?this.virtualParent.durationFormatter:this._parent?this._parent.durationFormatter:(this._durationFormatter=new TP,this._durationFormatter.language=this.language,this.durationFormatter)},set:function(t){this._durationFormatter=t,this._durationFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var t=this._language.get();return t||(this.virtualParent?this.virtualParent.language:this._parent?this._parent.language:(t=new PP,this.language=t,t))},set:function(t){var e=this;this._language.get()!==t&&this._language.set(t,t.events.on("localechanged",(function(t){if(e._numberFormatter&&(e._numberFormatter.language=e.language),e._dateFormatter&&(e._dateFormatter.language=e.language),e._durationFormatter&&(e._durationFormatter.language=e.language),e._exporting.get()){var i=e._exporting.get();i.numberFormatter.language=e.language,i.dateFormatter.language=e.language,i.durationFormatter.language=e.language,i.language=e.language}e instanceof WP&&e.deepInvalidate()})))},enumerable:!0,configurable:!0}),e.prototype.populateString=function(t,e){if(w_(t)){t=v_(t);var i=(t=SP().escape(t)).match(/\{([^}]+)\}/g),n=void 0;if(i)for(n=0;n<i.length;n++){var r=i[n].replace(/\{([^}]+)\}/,"$1"),o=this.getTagValue(r,"",e);w_(o)||(o=""),t=t.split(i[n]).join(o)}t=SP().unescape(t)}else t="";return this._adapterO?this._adapterO.apply("populateString",t):t},e.prototype.getTagValue=function(t,e,i){var n;w_(i)||(i=this.dataItem);for(var r,o=[],a=/([^.]+)\(([^)]*)\)|([^.]+)/g;null!==(r=a.exec(t));)if(r[3])o.push({prop:r[3]});else{var s=[];if(""!=Vx(r[2]))for(var u=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,l=void 0;null!==(l=u.exec(r[2]));)s.push(l[1]||l[2]||l[3]);o.push({method:r[1],params:s})}if(i){w_(n=this.getTagValueFromObject(o,i.values))&&!O_(n)||(n=this.getTagValueFromObject(o,i));var h=i.dataContext;!w_(n)&&h&&!w_(n=this.getTagValueFromObject(o,i.dataContext))&&h.dataContext&&(n=this.getTagValueFromObject(o,h.dataContext)),!w_(n)&&i.component&&i.component.dataItem!==i&&(n=i.component.getTagValue(t,e))}return w_(n)||(n=this.getTagValueFromObject(o,this.populateStringFrom||this)),!w_(n)&&this._parent&&(n=this._parent.getTagValue(t,e)),n},e.prototype.getTagValueFromObject=function(t,e,i){for(var n=e,r=!1,o=0,a=t.length;o<a;o++){var s=t[o];if(s.prop){if(!w_(n=n[s.prop]))return}else switch(s.method){case"formatNumber":var u=Wx(n);w_(u)&&(n=this.numberFormatter.format(u,i||s.params[0]||void 0),r=!0);break;case"formatDate":var l=void 0;if(!P_(l=k_(n)?this.dateFormatter.parse(n):Ux(n))||g_(l.getTime()))return;w_(l)&&(n=this.dateFormatter.format(l,i||s.params[0]||void 0),r=!0);break;case"formatDuration":var h=Wx(n);w_(h)&&(n=this.durationFormatter.format(h,i||s.params[0]||void 0,s.params[1]||void 0),r=!0);break;case"urlEncode":case"encodeURIComponent":n=encodeURIComponent(n);break;default:n[s.method]&&n[s.method].apply(this,s.params)}}if(!r){var c=[{method:"",params:i}];if(w_(i)){var p=function(t){if(void 0===t)return"string";var e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}(i);"number"===p?c[0].method="formatNumber":"date"===p?c[0].method="formatDate":"duration"===p&&(c[0].method="formatDuration")}else S_(n)?(c[0].method="formatNumber",c[0].params=""):P_(n)&&(c[0].method="formatDate",c[0].params="");c[0].method&&(n=this.getTagValueFromObject(c,n))}return n},Object.defineProperty(e.prototype,"dataItem",{get:function(){if(!this._dataItem){if(this.virtualParent)return this.virtualParent.dataItem;if(this._parent)return this._parent.dataItem}return this._dataItem},set:function(t){this.setDataItem(t)},enumerable:!0,configurable:!0}),e.prototype.setDataItem=function(t){var e=this;if(this._dataItem!=t){if(this._dataItem=t,t){if(this.configField){var i=t.dataContext;i&&(this.config=i[this.configField],!this.config&&i.dataContext&&(this.config=i.dataContext[this.configField]))}var n=t.dataContext;if(n){var r=n.dataContext;Lw(this.propertyFields,(function(t,i){if(w_(n[i]))e[t]=n[i];else if(r){var o=r[i];w_(o)&&(e[t]=o)}}))}}this.invalidate()}},e.prototype.getPropertyValue=function(t){var e=this.properties[t];return this._isTemplate||this._adapterO&&(e=this._adapterO.apply(t,e)),e},e.prototype.setColorProperty=function(t,e,i){var n=this.properties[t];return!(e instanceof xx&&n instanceof xx&&e.toString()==n.toString())&&this.setPropertyValue(t,e,i)},e.prototype.setPercentProperty=function(t,e,i,n,r,o){if(S_(e=function(t){return!w_(t)||S_(t)||function(t){return t instanceof d_}(t)?t:k_(t)&&-1!=t.indexOf("%")?f_(b_(t)):b_(t)}(e)))return e=M_(e,r,o),this.setPropertyValue(t,e,i,n);var a=this.properties[t];return!(e instanceof d_&&a instanceof d_&&e.value==a.value)&&this.setPropertyValue(t,e,i,n)},e.prototype.setPropertyValue=function(t,e,i,n){if(this.properties[t]!==e&&!this.isDisposed()){if(this.properties[t]=e,this.events.isEnabled("propertychanged")){var r={type:"propertychanged",target:this,property:t};this.events.dispatchImmediately("propertychanged",r)}if(i&&this.invalidate(),n&&this.invalidatePosition(),this.applyOnClones)for(var o=this.clones.values,a=o.length,s=0;s<a;++s){var u=o[s];u.isDisposed()||(u[t]=e)}return!0}return!1},e.prototype.bind=function(t,e,i,n){var r=this;void 0===i&&(i=t),w_(this._bindings[t])&&this._bindings[t].dispose(),this[t]=e[i],this._bindings[t]=e.events.on("propertychanged",(function(o){if(o.property===i){var a=e[i];n&&(a=n(a)),r[t]=a}}))},e.prototype.observe=function(t,e,i,n){var r=this;return new bw(rw(hw(t),(function(t){return r.events.on("propertychanged",(function(n){n.property===t&&e.call(i,n)}),i,n)})))},e.prototype.applyAccessibility=function(){var t=this.readerTitle,e=this.readerDescription,i=this.role,n=this.readerHidden,r=this.readerChecked,o=this.readerControls,a=this.readerLive,s=this.readerOrientation,u=this.readerValueNow,l=this.readerValueText,h=[],c=[],p=this.readerLabelledBy;p&&h.push(p);var d=this.readerDescribedBy;if(d&&c.push(d),!this.showSystemTooltip&&t&&(e=e?t+" -- "+e:t,t=void 0),!t||e||this.showSystemTooltip){if(t){var f=this.titleElement,g=this.uid+"-title";f.node.textContent!=t&&(f.node.textContent=t,f.attr({id:g})),h.push(g)}else this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0);var y=this.uid+"-description";if(e){var v=this.descriptionElement;v.node.textContent!=e&&(v.node.textContent=e,v.attr({id:y})),c.push(y)}else this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0,sw(c,y))}else this.setSVGAttribute({"aria-label":t}),this.removeSVGAttribute("aria-description"),this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0),this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0);h.length?this.setSVGAttribute({"aria-labelledby":h.join(" ")}):this.removeSVGAttribute("aria-labelledby"),c.length?this.setSVGAttribute({"aria-describedby":c.join(" ")}):this.removeSVGAttribute("aria-describedby"),i?this.setSVGAttribute({role:i}):this.removeSVGAttribute("role"),n?this.setSVGAttribute({"aria-hidden":"true"}):this.removeSVGAttribute("aria-hidden"),r?this.setSVGAttribute({"aria-checked":"true"}):!1===r?this.setSVGAttribute({"aria-checked":"false"}):this.removeSVGAttribute("aria-checked"),o?this.setSVGAttribute({"aria-controls":o}):this.removeSVGAttribute("aria-controls"),a?this.setSVGAttribute({"aria-live":a}):this.removeSVGAttribute("aria-live"),s?this.setSVGAttribute({"aria-orientation":s}):this.removeSVGAttribute("aria-orientation"),u?this.setSVGAttribute({"aria-valuenow":u}):this.removeSVGAttribute("aria-valuenow"),l?this.setSVGAttribute({"aria-valuetext":l}):this.removeSVGAttribute("aria-valuetext")},Object.defineProperty(e.prototype,"readerTitle",{get:function(){var t=this.getPropertyValue("readerTitle");return w_(t)&&this.dataItem?this.populateString(t):t},set:function(t){t=__(t),this.setPropertyValue("readerTitle",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerDescription",{get:function(){return this.getPropertyValue("readerDescription")},set:function(t){t=__(t),this.setPropertyValue("readerDescription",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"role",{get:function(){return this.getPropertyValue("role")},set:function(t){t=__(t),this.setPropertyValue("role",t)&&(this.applyAccessibility(),"slider"==t&&(this.setSVGAttribute({"aria-valuemin":"0"}),this.setSVGAttribute({"aria-valuemax":"100"})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerHidden",{get:function(){return this.getPropertyValue("readerHidden")},set:function(t){t=m_(t),this.setPropertyValue("readerHidden",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerChecked",{get:function(){return this.getPropertyValue("readerChecked")},set:function(t){t=m_(t),this.setPropertyValue("readerChecked",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerControls",{get:function(){return this.getPropertyValue("readerControls")},set:function(t){t=__(t),this.setPropertyValue("readerControls",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerLive",{get:function(){return this.getPropertyValue("readerLive")},set:function(t){t=__(t),this.setPropertyValue("readerLive",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerLabelledBy",{get:function(){return this.getPropertyValue("readerLabelledBy")},set:function(t){t=__(t),this.setPropertyValue("readerLabelledBy",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerDescribedBy",{get:function(){return this.getPropertyValue("readerDescribedBy")},set:function(t){t=__(t),this.setPropertyValue("readerDescribedBy",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerOrientation",{get:function(){return this.getPropertyValue("readerOrientation")},set:function(t){t=__(t),this.setPropertyValue("readerOrientation",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerValueNow",{get:function(){return this.getPropertyValue("readerValueNow")},set:function(t){t=__(t),this.setPropertyValue("readerValueNow",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerValueText",{get:function(){return this.getPropertyValue("readerValueText")},set:function(t){t=__(t),this.setPropertyValue("readerValueText",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyboardOptions",{get:function(){if(!this.interactions.keyboardOptions){if(this.virtualParent)return this.virtualParent.keyboardOptions;if(this._parent)return this._parent.keyboardOptions}return this.interactions.keyboardOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mouseOptions",{get:function(){if(!this.interactions.mouseOptions){if(this.virtualParent)return this.virtualParent.mouseOptions;if(this._parent)return this._parent.mouseOptions}return this.interactions.mouseOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interactions",{get:function(){if(!this._interaction){var t=aP().getInteraction(this.dom);this._interaction=t,this._interaction.clickable=this.clickable,this._interaction.hoverable=this.hoverable,this._interaction.trackable=this.trackable,this._interaction.draggable=this.draggable,this._interaction.swipeable=this.swipeable,this._interaction.resizable=this.resizable,this._interaction.wheelable=this.wheelable,this._interaction.contextMenuDisabled=this.contextMenuDisabled,this._interaction.inert=this.inert,this._interaction.sprite=this,this._disposers.push(this._interaction)}return this._interaction},enumerable:!0,configurable:!0}),e.prototype.isInteractive=function(){return!!this._interaction},Object.defineProperty(e.prototype,"focusable",{get:function(){return this.getPropertyValue("focusable")},set:function(t){var e=this;t=m_(t),this.setPropertyValue("focusable",t)&&(t||this.isInteractive())&&(this.interactions.focusable=t,t?(this.setSVGAttribute({focusable:t}),this._tabindex||(this.tabindex=0)):(this.removeSVGAttribute("focusable"),this.tabindex=void 0),this.interactions.setEventDisposer("sprite-focusable",t,(function(){return new bw([e.events.on("blur",e.handleBlur,e,!1),e.events.on("focus",e.handleFocus,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleFocus=function(t){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!0),this.focusFilter&&this.filters.push(this.focusFilter),this.hoverOnFocus&&(this.isHover=!0,this.handleOver()))},e.prototype.handleBlur=function(t){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!1),this.focusFilter&&this.filters.removeValue(this.focusFilter),this.hoverOnFocus&&(this.isHover=!1,this.handleOut()))},Object.defineProperty(e.prototype,"focusFilter",{get:function(){return this._focusFilter||(this.virtualParent?this.virtualParent.focusFilter:this._parent?this._parent.focusFilter:void 0)},set:function(t){this._focusFilter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOnFocus",{get:function(){return this.getPropertyValue("hoverOnFocus")},set:function(t){t!==this.hoverOnFocus&&this.setPropertyValue("hoverOnFocus",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){var t=this._tabindex;return null!=t?t:this.virtualParent?this.virtualParent.tabindex:this._parent?this._parent.tabindex:void 0},set:function(t){t=b_(t),this.setPropertyValue("tabindex",t)&&S_(t)&&(this.interactions.tabindex=t,this.setSVGAttribute({tabindex:t}),this._tabindex=t,this.focusable=t>-1||void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inertiaOptions",{get:function(){return!this.interactions.inertiaOptions&&this._parent?this._parent.inertiaOptions:this.interactions.inertiaOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this.getPropertyValue("draggable")},set:function(t){var e=this;t=m_(t),this.setPropertyValue("draggable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.draggable=t,this.interactions.setEventDisposer("sprite-draggable",t,(function(){return new bw([e.events.on("down",e.handleDown,e,!1),e.events.on("dragstart",e.handleDragStart,e,!1),e.events.on("drag",e.handleDragMove,e,!1),e.events.on("dragstop",e.handleDragStop,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleDragStart=function(t){this.interactions.isTouchProtected&&t.touch||(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this._isDragged=!0,this.hideTooltip(0))},e.prototype.dragStart=function(t){this._isDragged=!0,aP().dragStart(this.interactions,t)},e.prototype.handleDragStop=function(t){this.interactions.isTouchProtected&&t.touch||(this._isDragged=!1,this.showTooltip(),this.interactions.originalPosition=void 0)},e.prototype.dragStop=function(t,e){this._isDragged=!1,aP().dragStop(this.interactions,t,e)},e.prototype.handleDragMove=function(t){if(!this.interactions.isTouchProtected||!t.touch){var e=this.interactions.originalPosition;if(e&&this._isDragged){var i=this._parent.globalScale*this.svgContainer.cssScale;this.moveTo({x:e.x+t.shift.x/i,y:e.y+t.shift.y/i},void 0,void 0,!0)}this.dispatchImmediately("dragged",t)}},Object.defineProperty(e.prototype,"inert",{get:function(){return this.getPropertyValue("inert")},set:function(t){t=m_(t),this.setPropertyValue("inert",t)&&(t||this.isInteractive())&&(this.interactions.inert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOptions",{get:function(){if(!this.interactions.hoverOptions){if(this.virtualParent)return this.virtualParent.hoverOptions;if(this._parent)return this._parent.hoverOptions}return this.interactions.hoverOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverable",{get:function(){return this.getPropertyValue("hoverable")},set:function(t){var e=this;t=m_(t),this.setPropertyValue("hoverable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.hoverable=t,this.interactions.setEventDisposer("sprite-hoverable",t,(function(){return new bw([e.events.on("over",e.handleOver,e,!1),e.events.on("out",e.handleOut,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleOver=function(t){if(this._outTimeout&&this._outTimeout.dispose(),this.isHover){this.states.hasKey("hover")&&(this.isHidden||this.applyCurrentState());var e=void 0;t&&t.pointer&&(e=iC(t.pointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale)),"hover"==this.showTooltipOn&&this.showTooltip(e)}else"hover"==this.showTooltipOn&&this.hideTooltip(),!this.isHidden&&this.states.hasKey("hover")&&this.applyCurrentState()},e.prototype.handleOut=function(t){var e=this;this.tooltip&&this.tooltip.targetSprite==this&&this.tooltip.keepTargetHover?this._outTimeout=this.setTimeout((function(){e.tooltip.isHover||(e.tooltip.targetSprite==e&&e.hideTooltip(),e._outTimeout=e.setTimeout(e.handleOutReal.bind(e),e.rollOutDelay))}),10):("hover"==this.showTooltipOn&&this.hideTooltip(),this._outTimeout=this.setTimeout(this.handleOutReal.bind(this),this.rollOutDelay))},e.prototype.handleOutReal=function(){this.isHidden||this.isHiding||!this.states.hasKey("hover")||this.applyCurrentState()},Object.defineProperty(e.prototype,"hitOptions",{get:function(){if(!this.interactions.hitOptions){if(this.virtualParent)return this.virtualParent.hitOptions;if(this._parent)return this._parent.hitOptions}return this.interactions.hitOptions},enumerable:!0,configurable:!0}),e.prototype.handleDown=function(t){1===this.interactions.downPointers.length&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this.interactions.originalAngle=this.rotation,this.interactions.originalScale=this.scale,this.states.hasKey("down")&&this.setState("down"))},e.prototype.handleUp=function(t){var e=this;this._isResized=!1,this.states.hasKey("down")&&this.applyCurrentState(),"hit"==this.showTooltipOn&&(this.updateTooltipPosition(t.pointer.point),this._disposers.push(ex.events.once("exitframe",(function(){e.showTooltip()}))),this._disposers.push(aP().body.events.once("down",(function(t){e.hideTooltip()}))))},Object.defineProperty(e.prototype,"clickable",{get:function(){return this.getPropertyValue("clickable")},set:function(t){var e=this;t=m_(t),this.setPropertyValue("clickable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.clickable=t,this.interactions.setEventDisposer("sprite-clickable",t,(function(){return new bw([e.events.on("down",e.handleDown,e,!1),e.events.on("up",e.handleUp,e,!1)])})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"togglable",{get:function(){return this.getPropertyValue("togglable")},set:function(t){var e=this;t=m_(t),this.setPropertyValue("togglable",t)&&(t||this.isInteractive())&&this.interactions.setEventDisposer("sprite-togglable",t,(function(){return e.events.on("hit",e.handleToggle,e,!1)}))},enumerable:!0,configurable:!0}),e.prototype.handleToggle=function(t){this.isActive=!this.isActive},Object.defineProperty(e.prototype,"contextMenuDisabled",{get:function(){return this.getPropertyValue("contextMenuDisabled")},set:function(t){t=m_(t),this.setPropertyValue("contextMenuDisabled",t)&&(this.interactions.contextMenuDisabled=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.getPropertyValue("url")},set:function(t){this.setPropertyValue("url",t)&&(this._urlDisposer&&this._urlDisposer.dispose(),Ix(t)&&(this._urlDisposer=this.events.on("hit",this.urlHandler,this,!1),this.clickable=!0,this.cursorOverStyle=xP.pointer))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseId",{get:function(){return!this._baseId&&this._parent&&(this.baseId=this._parent.baseId),this._baseId},set:function(t){this.setBaseId(t)},enumerable:!0,configurable:!0}),e.prototype.setBaseId=function(t){t!=this._baseId&&(this.invalid&&(this.invalid=!1,ex.removeFromInvalidSprites(this),this.invalidate()),this._baseId=t)},Object.defineProperty(e.prototype,"baseSprite",{get:function(){return this.isBaseSprite?this:this._parent?this._parent.baseSprite:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"urlTarget",{get:function(){return this.getPropertyValue("urlTarget")},set:function(t){this.setPropertyValue("urlTarget",t)},enumerable:!0,configurable:!0}),e.prototype.urlHandler=function(t){if(Ix(this.url)){var e=this.populateString(this.url);"_self"===this.urlTarget?window.location.href=e:window.open(e,this.urlTarget)}},Object.defineProperty(e.prototype,"swipeOptions",{get:function(){if(!this.interactions.swipeOptions){if(this.virtualParent)return this.virtualParent.swipeOptions;if(this._parent)return this._parent.swipeOptions}return this.interactions.swipeOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeable",{get:function(){return this.getPropertyValue("swipeable")},set:function(t){t=m_(t),this.setPropertyValue("swipeable",t)&&(this.applyCursorStyle(),(t||this.isInteractive())&&(this.interactions.swipeable=t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackable",{get:function(){return this.getPropertyValue("trackable")},set:function(t){t=m_(t),this.setPropertyValue("trackable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.trackable=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wheelable",{get:function(){return this.getPropertyValue("wheelable")},set:function(t){this.setPropertyValue("wheelable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.wheelable=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this.getPropertyValue("resizable")},set:function(t){var e=this;t=m_(t),this.setPropertyValue("resizable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.resizable=t,this.interactions.setEventDisposer("sprite-resizable",t,(function(){return new bw([e.events.on("down",e.handleDown,e,!1),e.events.on("resize",e.handleResize,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleResize=function(t){if((!this.interactions.isTouchProtected||!t.touch)&&(this._isResized=!0,this.scale=this.interactions.originalScale*t.scale,this.validatePosition(),this.draggable||this.dragWhileResize)){this._isDragged=!1;var e=G_(iC(t.point1,this.htmlContainer,this.svgContainer.cssScale),iC(t.point2,this.htmlContainer,this.svgContainer.cssScale)),i=nC(t.startPoint1,this._parent),n=nC(t.startPoint2,this._parent),r=this.interactions.originalPosition,o=this.interactions.originalScale;if(r){var a=G_({x:(i.x-r.x)/o,y:(i.y-r.y)/o},{x:(n.x-r.x)/o,y:(n.y-r.y)/o}),s=$x(e,this._parent);this.moveTo({x:s.x-a.x*this.scale,y:s.y-a.y*this.scale},void 0,void 0,!0)}}},Object.defineProperty(e.prototype,"cursorOptions",{get:function(){if(!this.interactions.cursorOptions){if(this.virtualParent)return this.virtualParent.cursorOptions;if(this._parent)return this._parent.cursorOptions}return this.interactions.cursorOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorOverStyle",{set:function(t){this.cursorOptions.overStyle||(this.interactions.cursorOptions={defaultStyle:this.cursorOptions.defaultStyle}),this.cursorOptions.overStyle=t,aP().applyCursorOverStyle(this.interactions)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorDownStyle",{set:function(t){this.cursorOptions.downStyle=t},enumerable:!0,configurable:!0}),e.prototype.applyCursorStyle=function(){},Object.defineProperty(e.prototype,"interactionsEnabled",{get:function(){return!1!==this.getPropertyValue("interactionsEnabled")&&(this.virtualParent?this.virtualParent.interactionsEnabled:!this._parent||this._parent.interactionsEnabled)},set:function(t){if(t=m_(t),this.setPropertyValue("interactionsEnabled",t)){var e=null;t?this.group.node.style.pointerEvents="":e="none",this.group.node.style.pointerEvents=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exporting",{get:function(){return this.getExporting()},set:function(t){this._exporting.set(t,t)},enumerable:!0,configurable:!0}),e.prototype.getExporting=function(){var t=this._exporting.get();return t||(!this.isStandaloneInstance&&this._parent?this._parent.exporting:((t=new BP(this.svgContainer.SVGContainer)).sprite=this,t.language=this.language,t.numberFormatter=this.numberFormatter,t.dateFormatter=this.dateFormatter,t.durationFormatter=this.durationFormatter,this._exporting.set(t,t),t))},Object.defineProperty(e.prototype,"exportable",{get:function(){return this._exportable},set:function(t){var e=this.svgContainer;this._exportable=t,e&&(t?sw(e.nonExportableSprites,this):-1==iw(e.nonExportableSprites,this)&&e.nonExportableSprites.push(this))},enumerable:!0,configurable:!0}),e.prototype.modalPrefix=function(t){return CC.classNamePrefix+t},Object.defineProperty(e.prototype,"modal",{get:function(){var t=this.svgContainer;if(t){var e=t.modal;return e.adapter.has("classPrefix",this.modalPrefix)||e.adapter.add("classPrefix",this.modalPrefix),e}},enumerable:!0,configurable:!0}),e.prototype.openModal=function(t,e){var i=this.svgContainer;if(i)return i.openModal(t,e)},e.prototype.closeModal=function(){var t=this.svgContainer;t&&t.closeModal()},Object.defineProperty(e.prototype,"popups",{get:function(){var t=this.svgContainer;if(t){var e=t.popups;return e.template.sprite=this,e.template.adapter.has("classPrefix",this.modalPrefix)||e.template.adapter.add("classPrefix",this.modalPrefix),e}},enumerable:!0,configurable:!0}),e.prototype.openPopup=function(t,e){var i=this.svgContainer;if(i)return i.openPopup(t,e)},e.prototype.closeAllPopups=function(){var t=this.svgContainer;t&&t.closeAllPopups()},Object.defineProperty(e.prototype,"x",{get:function(){return this.getPropertyValue("x")},set:function(t){this.isDragged||this.setPercentProperty("x",t,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelX",{get:function(){var t=L_(this.getPixelX(this.x),this.minX,this.maxX);return this._adapterO?this._adapterO.apply("pixelX",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeX",{get:function(){return this._adapterO?this._adapterO.apply("relativeX",this.getRelativeX(this.x)):this.getRelativeX(this.x)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minX",{get:function(){return this.getPropertyValue("minX")},set:function(t){S_(t)&&(t=M_(t,this._positionPrecision,!0),this.setPropertyValue("minX",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxX",{get:function(){return this.getPropertyValue("maxX")},set:function(t){S_(t)&&(t=M_(t,this._positionPrecision,!0),this.setPropertyValue("maxX",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.getPropertyValue("y")},set:function(t){this.isDragged||this.setPercentProperty("y",t,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelY",{get:function(){var t=L_(this.getPixelY(this.y),this.minY,this.maxY);return this._adapterO?this._adapterO.apply("pixelY",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeY",{get:function(){return this._adapterO?this._adapterO.apply("relativeY",this.getRelativeX(this.y)):this.getRelativeX(this.y)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minY",{get:function(){return this.getPropertyValue("minY")},set:function(t){S_(t)&&(t=M_(t,this._positionPrecision,!0),this.setPropertyValue("minY",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxY",{get:function(){return this.getPropertyValue("maxY")},set:function(t){S_(t)&&(t=M_(t,this._positionPrecision,!0),this.setPropertyValue("maxY",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx",{get:function(){return this.getPropertyValue("dx")},set:function(t){S_(t)&&(t=M_(t,this._positionPrecision,!0),this.setPropertyValue("dx",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy",{get:function(){return this.getPropertyValue("dy")},set:function(t){S_(t)&&(t=M_(t,this._positionPrecision,!0),this.setPropertyValue("dy",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.getPropertyValue("rotation")},set:function(t){S_(t=b_(t))||(t=0),this.setPropertyValue("rotation",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.getPropertyValue("align")},set:function(t){t=__(t),this.setPropertyValue("align",t)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valign",{get:function(){return this.getPropertyValue("valign")},set:function(t){t=__(t),this.setPropertyValue("valign",t)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalCenter",{get:function(){return this.getPropertyValue("horizontalCenter")},set:function(t){t=__(t),this.setPropertyValue("horizontalCenter",t)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalCenter",{get:function(){return this.getPropertyValue("verticalCenter")},set:function(t){t=__(t),this.setPropertyValue("verticalCenter",t)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){var t=this.getPropertyValue("maxWidth");if(!S_(t)&&this._parent){var e=this._parent.maxWidth;return"absolute"!=this._parent.layout&&"none"!=this.align&&null!=this.align&&(e=e-this.pixelMarginLeft-this.pixelMarginRight),e}return t},set:function(t){this.setMaxWidth(t)},enumerable:!0,configurable:!0}),e.prototype.setMaxWidth=function(t){var e=this.maxWidth,i=this.maxHeight;if(this.setPropertyValue("maxWidth",t)){S_(this.relativeWidth)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:e,previousHeight:i};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(e.prototype,"maxHeight",{get:function(){var t=this.getPropertyValue("maxHeight");if(!S_(t)&&this._parent){var e=this._parent.maxHeight;return"absolute"!=this._parent.layout&&"none"!=this.valign&&null!=this.valign&&(e=e-this.pixelMarginTop-this.pixelMarginBottom),e}return t},set:function(t){this.setMaxHeight(t)},enumerable:!0,configurable:!0}),e.prototype.setMaxHeight=function(t){var e=this.maxWidth,i=this.maxHeight;if(this.setPropertyValue("maxHeight",t)){S_(this.relativeHeight)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:e,previousHeight:i};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(t){this.setPropertyValue("minWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(t){this.setPropertyValue("minHeight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(t){this.setPercentProperty("width",t,!0,!1,this._positionPrecision,!0)&&(this.percentWidth=void 0,this.relativeWidth=void 0,t instanceof d_?(this.percentWidth=t.percent,S_(this._pixelWidth)&&(this.maxWidth=void 0),this._pixelWidth=void 0):(this._pixelWidth=Number(t),this.maxWidth=this._pixelWidth),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(t){this.setPercentProperty("height",t,!0,!1,this._positionPrecision,!0)&&(this.percentHeight=void 0,this._relativeHeight=void 0,t instanceof d_?(this.percentHeight=t.percent,S_(this._pixelHeight)&&(this.maxHeight=void 0),this._pixelHeight=void 0):(this._pixelHeight=Number(t),this.maxHeight=this._pixelHeight),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelWidth",{get:function(){var t;t=S_(this.percentWidth)?this.maxWidth:S_(this._pixelWidth)?this._pixelWidth:0;var e=this.minWidth;null!=e&&t<e&&(t=e);var i=M_(t,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelWidth",i):i},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelHeight",{get:function(){var t;t=S_(this.percentHeight)?this.maxHeight:S_(this._pixelHeight)?this._pixelHeight:0;var e=this.minHeight;null!=e&&t<e&&(t=e);var i=M_(t,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelHeight",i):i},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeWidth",{get:function(){var t=this._relativeWidth;if(S_(t))return this._adapterO?this._adapterO.apply("relativeWidth",t):t},set:function(t){this._relativeWidth!=t&&(this._relativeWidth=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeHeight",{get:function(){var t=this._relativeHeight;if(S_(t))return this._adapterO?this._adapterO.apply("relativeHeight",t):t},set:function(t){this._relativeHeight!=t&&(this._relativeHeight=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measuredWidth",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredWidth",this._measuredWidth):this._measuredWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measuredHeight",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredHeight",this._measuredHeight):this._measuredHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outerWidth",{get:function(){var t=this.pixelWidth+this.pixelMarginRight+this.pixelMarginLeft;return this._adapterO?this._adapterO.apply("outerWidth",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outerHeight",{get:function(){var t=this.pixelHeight+this.pixelMarginTop+this.pixelMarginBottom;return this._adapterO?this._adapterO.apply("outerHeight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerWidth",{get:function(){var t=Math.max(0,this.pixelWidth-this.pixelPaddingRight-this.pixelPaddingLeft);return this._adapterO?this._adapterO.apply("innerWidth",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerHeight",{get:function(){var t=Math.max(0,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom);return this._adapterO?this._adapterO.apply("innerHeight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"globalScale",{get:function(){var t=this.scale;return this._parent&&(t*=this._parent.globalScale),this._adapterO?this._adapterO.apply("globalScale",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this.getPropertyValue("scale")},set:function(t){(t=b_(t))<0&&(t=0),t!=this.getPropertyValue("scale")&&(this.setPropertyValue("scale",t,!1,!0),this.handleGlobalScale())},enumerable:!0,configurable:!0}),e.prototype.margin=function(t,e,i,n){return this.marginTop=t,this.marginRight=e,this.marginBottom=i,this.marginLeft=n,this},Object.defineProperty(e.prototype,"marginLeft",{get:function(){return this.getPropertyValue("marginLeft")},set:function(t){this.setPercentProperty("marginLeft",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginRight",{get:function(){return this.getPropertyValue("marginRight")},set:function(t){this.setPercentProperty("marginRight",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginTop",{get:function(){return this.getPropertyValue("marginTop")},set:function(t){this.setPercentProperty("marginTop",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginBottom",{get:function(){return this.getPropertyValue("marginBottom")},set:function(t){this.setPercentProperty("marginBottom",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginRight",{get:function(){var t=this.getPixelX(this.marginRight);return this._adapterO?this._adapterO.apply("pixelMarginRight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginRight",{get:function(){var t=this.getRelativeX(this.marginRight);return this._adapterO?this._adapterO.apply("relativeMarginRight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginLeft",{get:function(){var t=this.getPixelX(this.marginLeft);return this._adapterO?this._adapterO.apply("pixelMarginLeft",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginLeft",{get:function(){var t=this.getRelativeX(this.marginLeft);return this._adapterO?this._adapterO.apply("relativeMarginLeft",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginTop",{get:function(){var t=this.getPixelY(this.marginTop);return this._adapterO?this._adapterO.apply("pixelMarginTop",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginTop",{get:function(){var t=this.getRelativeY(this.marginTop);return this._adapterO?this._adapterO.apply("relativeMarginTop",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginBottom",{get:function(){var t=this.getPixelY(this.marginBottom);return this._adapterO?this._adapterO.apply("pixelMarginBottom",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginBottom",{get:function(){var t=this.getRelativeY(this.marginBottom);return this._adapterO?this._adapterO.apply("relativeMarginBottom",t):t},enumerable:!0,configurable:!0}),e.prototype.padding=function(t,e,i,n){return this.paddingTop=t,this.paddingRight=e,this.paddingBottom=i,this.paddingLeft=n,this},Object.defineProperty(e.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft")},set:function(t){this.setPercentProperty("paddingLeft",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight")},set:function(t){this.setPercentProperty("paddingRight",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingTop",{get:function(){return this.getPropertyValue("paddingTop")},set:function(t){this.setPercentProperty("paddingTop",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingBottom",{get:function(){return this.getPropertyValue("paddingBottom")},set:function(t){this.setPercentProperty("paddingBottom",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingRight",{get:function(){return this.getPixelX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingRight",{get:function(){return this.getRelativeX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingLeft",{get:function(){return this.getPixelX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingLeft",{get:function(){return this.getRelativeX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingTop",{get:function(){return this.getPixelY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingTop",{get:function(){return this.getRelativeY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingBottom",{get:function(){return this.getPixelY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingBottom",{get:function(){return this.getRelativeY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(t){this.setPath(t)},enumerable:!0,configurable:!0}),e.prototype.setPath=function(t){return!!this.setPropertyValue("path",t)&&(this._adapterO&&(t=this._adapterO.apply("path",t)),this._isPath||(this.element&&(!this.element.node||this.element.node instanceof SVGPathElement)||(this.element=this.paper.add("path")),this._isPath=!0),w_(t)?this.element.attr({d:t}):this.element.removeAttr("d"),this.invalidatePosition(),this.inited||this.events.once("inited",this.validatePosition,this,!1),!0)},Object.defineProperty(e.prototype,"fillModifier",{get:function(){return this.getPropertyValue("fillModifier")},set:function(t){this.setPropertyValue("fillModifier",t)&&this.setFill(this.fill)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeModifier",{get:function(){return this.getPropertyValue("strokeModifier")},set:function(t){this.setPropertyValue("strokeModifier",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillOpacity",{get:function(){return this.getPropertyValue("fillOpacity")},set:function(t){t=F_(t,0,1),this.setPropertyValue("fillOpacity",t)&&this.setSVGAttribute({"fill-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this.getPropertyValue("fill")},set:function(t){this.setFill(t)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(t){if(O_(t)||(t=Px(t)),this.setColorProperty("fill",t)||this.fillModifier)if(t instanceof xx&&this.fillModifier&&(t=this.fillModifier.modify(t)),this.realFill=t,t instanceof xx)this.setSVGAttribute({fill:t.toString()});else if(w_(t)){if(t instanceof mP||t instanceof bP||t instanceof _P){var e=t;e.paper=this.paper,this.setSVGAttribute({fill:'url("'+Tx()+e.id+'")'})}}else this.removeSVGAttribute("fill")},Object.defineProperty(e.prototype,"opacity",{get:function(){return this.getPropertyValue("opacity")},set:function(t){t=F_(t,0,1),this.setPropertyValue("opacity",t)&&this.setSVGAttribute({opacity:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.getPropertyValue("stroke")},set:function(t){this.setStroke(t)},enumerable:!0,configurable:!0}),e.prototype.setStroke=function(t){if(O_(t)||(t=Px(t)),this.setColorProperty("stroke",t)||this.strokeModifier)if(t instanceof xx&&this.strokeModifier&&(t=this.strokeModifier.modify(t)),this.realStroke=t,t instanceof xx)"none"==t.hex?this.removeSVGAttribute("stroke"):this.setSVGAttribute({stroke:t.toString()});else if(w_(t)){if(t instanceof mP||t instanceof bP||t instanceof _P){var e=t;e.paper=this.paper,this.setSVGAttribute({stroke:'url("'+Tx()+e.id+'")'})}}else this.removeSVGAttribute("stroke")},Object.defineProperty(e.prototype,"strokeOpacity",{get:function(){return this.getPropertyValue("strokeOpacity")},set:function(t){t=F_(t,0,1),this.setPropertyValue("strokeOpacity",t)&&this.setSVGAttribute({"stroke-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonScalingStroke",{get:function(){return this.getPropertyValue("nonScalingStroke")},set:function(t){t=m_(t),this.setPropertyValue("nonScalingStroke",t)&&(this.strokeWidth=this.strokeWidth)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonScaling",{get:function(){return this.getPropertyValue("nonScaling")},set:function(t){t=m_(t),this.setPropertyValue("nonScaling",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.getPropertyValue("strokeWidth")},set:function(t){t=b_(t),this.setPropertyValue("strokeWidth",t,!0),this.nonScalingStroke&&(S_(t)||(t=1),t/=this.globalScale),this.setSVGAttribute({"stroke-width":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeDasharray",{get:function(){return this.getPropertyValue("strokeDasharray")},set:function(t){t=__(t),this.setPropertyValue("strokeDasharray",t)&&this.setSVGAttribute({"stroke-dasharray":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeDashoffset",{get:function(){return this.getPropertyValue("strokeDashoffset")},set:function(t){t=b_(t),this.setPropertyValue("strokeDashoffset",t)&&this.setSVGAttribute({"stroke-dashoffset":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeLinecap",{get:function(){return this.getPropertyValue("strokeLinecap")},set:function(t){this.setPropertyValue("strokeLinecap",t)&&this.setSVGAttribute({"stroke-linecap":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeLinejoin",{get:function(){return this.getPropertyValue("strokeLinejoin")},set:function(t){this.setPropertyValue("strokeLinejoin",t)&&this.setSVGAttribute({"stroke-linejoin":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shapeRendering",{get:function(){return this.getPropertyValue("shapeRendering")},set:function(t){t=__(t),this.setPropertyValue("shapeRendering",t)&&this.setSVGAttribute({"shape-rendering":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPerfect",{get:function(){return this.getPropertyValue("pixelPerfect")},set:function(t){t=m_(t),this._positionPrecision=t?0:3,this.setPropertyValue("pixelPerfect",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rtl",{get:function(){return w_(this._rtl)?this._rtl:!!this._topParent&&this._topParent.rtl},set:function(t){t=m_(t),this.isBaseSprite&&(this.topParent.rtl=t),this._rtl=t},enumerable:!0,configurable:!0}),e.prototype.show=function(t){return this.showReal(t)},e.prototype.showReal=function(t){var e=this;if(!this.preventShow){var i,n=this.defaultState.properties;if(!this.disabled&&(this.isHidden||!this.visible||this.isHiding||null!=n.opacity&&this.opacity<n.opacity&&!this.isShowing)&&!this.isDisposed()){this.invalid&&this.validate(),this.positionInvalid&&this.validatePosition(),S_(t)||(t=this.defaultState.transitionDuration),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this._showHideDisposer&&this.removeDispose(this._showHideDisposer),this._isHidden=!1,this.isHiding=!1,this.isShowing=!0,(i=this.applyCurrentState(t))&&!i.isFinished()?(this._showHideDisposer=i.events.on("animationended",(function(){e.isShowing=!1})),this._disposers.push(this._showHideDisposer)):this.isShowing=!1;var r=this.defaultState.properties.visible;w_(r)||(r=!0),this.visible=r,this.readerHidden=!1,this.dispatchImmediately("shown")}return i}},e.prototype.hide=function(t){return this.hideReal(t)},e.prototype.hideReal=function(t){var e,i=this;if(!this.isHiding&&this.visible&&!this.isDisposed()){this.tooltip&&this.tooltip.currentSprite==this&&this.hideTooltip(0),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this.isShowing=!1,this._showHideDisposer&&this.removeDispose(this._showHideDisposer);var n=this.hiddenState;n?(e=this.setState(n,t,void 0))&&!e.isFinished()?(this._hideAnimation=e,this._showHideDisposer=e.events.on("animationended",(function(){i.isHiding=!1,i._isHidden=!0}),this),this._disposers.push(this._showHideDisposer),this._disposers.push(e)):(this.isHiding=!1,this._isHidden=!0):(this.visible=!1,this.isHiding=!1,this._isHidden=!0),this.readerHidden=!0,this.dispatchImmediately("hidden"),this.invalidate()}return S_(t)||(t=this.hiddenState.transitionDuration),e},Object.defineProperty(e.prototype,"visible",{get:function(){return this.getVisibility()},set:function(t){t=m_(t),this.setVisibility(t)},enumerable:!0,configurable:!0}),e.prototype.getVisibility=function(){var t=this.getPropertyValue("visible");return w_(t)||(t=!0),t},e.prototype.setVisibility=function(t){if(this.setPropertyValue("visible",t)&&(t?this.group.removeAttr("visibility"):this.group.attr({visibility:"hidden"}),this.events.isEnabled("visibilitychanged"))){var e={type:"visibilitychanged",target:this,visible:t};this.events.dispatchImmediately("visibilitychanged",e)}},Object.defineProperty(e.prototype,"zIndex",{get:function(){return this.getPropertyValue("zIndex")},set:function(t){t=b_(t),this.setPropertyValue("zIndex",t)&&this.dispatch("zIndexChanged")},enumerable:!0,configurable:!0}),e.prototype.toFront=function(){var t=this._parent;t&&t.children.indexOf(this)!=t.children.length-1&&(t.children.moveValue(this,t.children.length-1),this.dispatch("zIndexChanged"))},e.prototype.toBack=function(){var t=this._parent;t&&0!=t.children.indexOf(this)&&(t.children.moveValue(this,0),this.dispatch("zIndexChanged"))},Object.defineProperty(e.prototype,"userClassName",{get:function(){return this.getPropertyValue("userClassName")},set:function(t){this.setPropertyValue("userClassName",t)&&(!t&&this.userClassName&&this.group.removeClass(this.userClassName),this.setClassName())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip?this._tooltip:this.virtualParent?this.virtualParent.tooltip:this._parent?this._parent.tooltip:void 0},set:function(t){this._tooltip&&this.removeDispose(this._tooltip),this._tooltip=t,t&&(t.parent=this.tooltipContainer)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipDataItem",{get:function(){return this._tooltipDataItem||this.dataItem},set:function(t){this._tooltipDataItem=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipColorSource",{get:function(){return this._tooltipColorSource},set:function(t){this._tooltipColorSource=t},enumerable:!0,configurable:!0}),e.prototype.showTooltip=function(t){"always"==this.showTooltipOn&&!this._tooltip&&this.tooltip&&(this._tooltip=this.tooltip.clone()),!t&&"pointer"==this.tooltipPosition&&this.isHover&&(t=iC(aP().lastPointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale));for(var e=this;null!=e;){if(!e.visible||e.disabled||e.__disabled)return void(this._tooltip&&this._tooltip.visible&&this._tooltip.hide(0));e=e.parent}if(w_(this.tooltipText)||w_(this.tooltipHTML)){var i=this.tooltip,n=this.tooltipDataItem;if(i){i.targetSprite=this;var r=this,o=this.tooltipColorSource;if((i.getStrokeFromObject||i.getFillFromObject)&&o&&(o.isTemplate?n&&aw(n.sprites,(function(t){return t.clonedFrom!=o||(r=t,!1)})):r=o),i.getStrokeFromObject){for(var a=this.stroke,s=r;null!=s.parent&&(null==(a=s.stroke)&&(s=s.parent),null==a););a instanceof xx?i.background.animate({property:"stroke",to:a},i.animationDuration):i.background.stroke=a}if(i.dataItem=n,i.label.populateStringFrom=this,i.getFillFromObject){var u=this.fill;for(s=r;null!=s.parent;)if(null==(u=s.fill)||u instanceof xx&&null==u.rgb)s=s.parent;else if(null!=u)break;null==u&&(u=Cx("#000000")),u instanceof xx&&i.visible?i.background.animate({property:"fill",to:u},i.animationDuration):i.background.fill=u,i.autoTextColor&&u instanceof xx&&(i.label.fill=u.alternative)}var l="";if(this.tooltipHTML&&(i.html=this.tooltipHTML,l=this.tooltipHTML),this.tooltipText&&(i.text=this.tooltipText,l=this.tooltipText),this.updateTooltipPosition(t)){if(i.readerDescribedBy=this.uidAttr(),i.label.invalid&&i.label.validate(),null!=l&&""!=l&&""!=i.label.currentText){i&&!i.parent&&(i.parent=this.tooltipContainer);var h=i.defaultState.transitionDuration;return h<=0&&(h=1),i.show(h),i.currentSprite=this,!0}this.hideTooltip(0)}else this.hideTooltip(0)}}return!1},e.prototype.updateTooltipPosition=function(t){var e=this;if("pointer"!=this.tooltipPosition){var i=Jx({x:this.getTooltipX(),y:this.getTooltipY()},this);return this.pointTooltipTo(i)}if(this._interactionDisposer&&this._interactionDisposer.dispose(),this._interactionDisposer=aP().body.events.on("track",(function(t){return e.pointTooltipTo(iC(t.point,e.svgContainer.SVGContainer,e.svgContainer.cssScale),!0)})),t)return this.pointTooltipTo(t,!0)},e.prototype.pointTooltipTo=function(t,e){var i=this.tooltip;if(i&&this.topParent){if(i.showInViewport)return i.pointTo(t,e),!0;if(function(t,e){return t.x>=e.x&&t.x<=e.x+e.width&&t.y>e.y&&t.y<e.y+e.height}(t,{x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight}))return i.pointTo(t,e),!0}return!1},e.prototype.hideTooltip=function(t){if("always"!=this.showTooltipOn){var e=this.tooltip;e&&(e.targetSprite==this&&(e.targetSprite=void 0),e.hide(t),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0))}},Object.defineProperty(e.prototype,"tooltipHTML",{get:function(){return this.getPropertyValue("tooltipHTML")},set:function(t){t=__(t),this.hoverable=!0,this.setPropertyValue("tooltipHTML",t)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipText",{get:function(){return this.getPropertyValue("tooltipText")},set:function(t){(t=__(t))&&(this.hoverable=!0),this.setPropertyValue("tooltipText",t)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipContainer",{get:function(){return this._tooltipContainer?this._tooltipContainer:this._parent?this._parent.tooltipContainer:void 0},set:function(t){this._tooltipContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipX",{get:function(){return this.getTooltipX()},set:function(t){this.setPercentProperty("tooltipX",t)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alwaysShowTooltip",{get:function(){return"always"==this.getPropertyValue("showTooltipOn")},set:function(t){(t=m_(t))&&(this.showTooltipOn="always")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showTooltipOn",{get:function(){return this.getPropertyValue("showTooltipOn")},set:function(t){this.setPropertyValue("showTooltipOn",t)&&("hit"==t&&(this.clickable=!0),this.tooltip&&("always"==t?this.showTooltip():this.handleAlwaysShowTooltip()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipPosition",{get:function(){return this.getPropertyValue("tooltipPosition")},set:function(t){this.setPropertyValue("tooltipPosition",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipY",{get:function(){return this.getTooltipY()},set:function(t){this.setPercentProperty("tooltipY",t)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t,e=this.getPropertyValue("tooltipX");return w_(e)||(e=f_(50)),S_(e)&&(t=e),e instanceof d_&&(t=this.maxLeftSelf+this._measuredWidthSelf*e.value-this.pixelPaddingLeft-this.ex),S_(t)||(t=0),t},e.prototype.getTooltipY=function(){var t,e=this.getPropertyValue("tooltipY");return w_(e)||(e=f_(50)),S_(e)&&(t=e),e instanceof d_&&(t=this.maxTopSelf+this._measuredHeightSelf*e.value-this.pixelPaddingTop-this.ey),S_(t)||(t=0),t},e.prototype.raiseCriticalError=function(t,e){this.svgContainer&&(this._adapterO?this.modal.content=this._adapterO.apply("criticalError",t).message:this.modal.content=t.message,e?this.modal.closable=!0:this.disabled=!0,CC.suppressErrors||this.modal.open()),CC.verbose&&console.log(t)},e.prototype.processConfig=function(e){e&&(w_(e.tooltipColorSource)&&k_(e.tooltipColorSource)&&this.map.hasKey(e.tooltipColorSource)&&(e.tooltipColorSource=this.map.getKey(e.tooltipColorSource)),w_(e.cursorOverStyle)&&k_(e.cursorOverStyle)&&(e.cursorOverStyle=this.getCursorStyle(e.cursorOverStyle)),w_(e.cursorDowntyle)&&k_(e.cursorDowntyle)&&(e.cursorDowntyle=this.getCursorStyle(e.cursorDowntyle)),w_(e.cursorOptions)&&(w_(e.cursorOptions.overStyle)&&k_(e.cursorOptions.overStyle)&&(e.cursorOptions.overStyle=this.getCursorStyle(e.cursorOptions.overStyle)),w_(e.cursorOptions.downStyle)&&k_(e.cursorOptions.downStyle)&&(e.cursorOptions.downStyle=this.getCursorStyle(e.cursorOptions.downStyle)))),t.prototype.processConfig.call(this,e),this.processDelayedMap()},e.prototype.getCursorStyle=function(t){switch(t){case"grab":return xP.grab;case"grabbing":return xP.grabbing;case"pointer":return xP.pointer;case"horizontalResize":return xP.horizontalResize;case"verticalResize":return xP.verticalResize;default:return xP.default}},e.prototype.configOrder=function(e,i){return e==i?0:"tooltipColorSource"==e?1:"tooltipColorSource"==i?-1:t.prototype.configOrder.call(this,e,i)},Object.defineProperty(e.prototype,"isHidden",{get:function(){return this._isHidden?this._isHidden:!!this._parent&&this._parent.isHidden},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOnInit",{get:function(){return this.getPropertyValue("showOnInit")},set:function(t){t=m_(t),this.setShowOnInit(t)},enumerable:!0,configurable:!0}),e.prototype.setShowOnInit=function(t){this.setPropertyValue("showOnInit",t)&&(this.isTemplate||(!t||this.inited||this.hidden?this._showOnInitDisposer&&this._showOnInitDisposer.dispose():(this._showOnInitDisposer=new bw([ex.events.once("enterframe",this.hideInitially,this),this.events.once("beforevalidated",this.hideInitially,this,!1),this.events.on("inited",this.appear,this,!1)]),this._disposers.push(this._showOnInitDisposer))))},e.prototype.hideInitially=function(){this.isDisposed()||(this.appeared=!1,this.inited||this.hide(0))},e.prototype.appear=function(){var t=this;if(this.appeared=!1,this.hidden||this.isHidden||this.hide(0),this.hidden)this.appeared=!0,this.dispatch("appeared");else{var e=this.show();e&&!e.isFinished()?this.addDisposer(e.events.on("animationended",(function(){t.appeared=!0,t.dispatch("appeared")}))):(this.appeared=!0,this.dispatch("appeared"))}},Object.defineProperty(e.prototype,"hidden",{get:function(){return this.getPropertyValue("hidden")},set:function(t){t=m_(t),this.setPropertyValue("hidden",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this._bbox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"plugins",{get:function(){var t=this;return this._plugins||(this._plugins=new ax,this._disposers.push(this._plugins.events.on("inserted",(function(e){e.newValue.target=t,e.newValue.init()}))),this._disposers.push(new rx(this._plugins))),this._plugins},enumerable:!0,configurable:!0}),e.prototype._systemUpdate=function(t){this.validate()},e.prototype._systemCheckIfValidate=function(){return!0},e.prototype._systemValidatePositions=function(){this.validatePosition()},e.prototype._systemValidateLayouts=function(){},e}(Sx);ex.registeredClasses.Sprite=zP;var UP=function(t){function e(){var e=t.call(this)||this;return e.className="Rectangle",e.element=e.paper.add("rect"),e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this._positionPrecision;this.pixelPerfect&&(e=0);var i=M_(this.innerWidth,e),n=M_(this.innerHeight,e);this.element.attr({width:i,height:n})},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),e}(zP);ex.registeredClasses.Rectangle=UP;var WP=function(t){function e(){var e=t.call(this)||this;return e._childrenByLayout=[],e._childrenDisposers=new $w,e.hasFocused=!1,e.setStateOnSprites=[],e.layoutInvalid=!1,e._absoluteWidth=0,e._absoluteHeight=0,e._shouldBeReady=[],e._tapToActivate=!1,e.tapTimeout=3e3,e.className="Container",e._element=e.paper.addGroup("g"),e.group.add(e.element),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("layout","absolute"),e.setPropertyValue("fixedWidthGrid",!1),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e._positionPrecision=4,e._disposers.push(new Qw(e._childrenDisposers)),e.children.events.on("inserted",e.handleChildAdded,e),e.children.events.on("removed",e.handleChildRemoved,e),e.applyTheme(),e}return s_(e,t),e.prototype.handleChildAdded=function(t){this.processChild(t.newValue)},e.prototype.processChild=function(t){try{this._childrenDisposers.insertKey(t.uid,new bw([t.events.on("transformed",this.handleChildTransform,this),t.events.on("zIndexChanged",this.sortAndAdd,this)]))}catch(e){}this.element&&this.element.add(t.group),t.parent=this,t.paper=this.paper,this.dispatchImmediately("childadded",{type:"childadded",newValue:t}),this.invalidate()},e.prototype.sortAndAdd=function(){this.sortChildren(),this.addChildren()},e.prototype.handleChildRemoved=function(t){var e=t.oldValue;this._childrenDisposers.removeKey(e.uid),this.element&&this.element.removeElement(e.group),e.isMeasured&&this.invalidateLayout(),this.dispatchImmediately("childremoved",{type:"childremoved",oldValue:e})},e.prototype.handleChildTransform=function(t){t.target.isMeasured&&this.invalidateLayout()},e.prototype.invalidateLayout=function(){this.layoutInvalid||this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||(this.layoutInvalid=!0,ex.addToInvalidLayouts(this),GP.requestFrame())},e.prototype.invalidate=function(){t.prototype.invalidate.call(this),this.invalidateLayout()},e.prototype.deepInvalidate=function(){t.prototype.invalidate.call(this),ow(this._childrenByLayout,(function(t){t instanceof e?t.deepInvalidate():t.invalidate()})),this.invalidateLayout()},Object.defineProperty(e.prototype,"children",{get:function(){return this._children||(this._children=new ax),this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(t){this.setPropertyValue("minWidth",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(t){this.setPropertyValue("minHeight",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),e.prototype.removeElement=function(){},e.prototype.sortChildren=function(){var t=this;if(this._childrenByLayout=[],"none"!=this.layout&&"absolute"!=this.layout&&this.layout){var e=[],i=[];Ww(this.children.iterator(),(function(n){"horizontal"==t.layout||"grid"==t.layout?S_(n.percentWidth)?i.push(n):e.push(n):"vertical"==t.layout&&S_(n.percentHeight)?i.push(n):e.push(n)})),this._childrenByLayout=e.concat(i)}else this._childrenByLayout=this.children.values;this.calculateRelativeSize()},e.prototype.calculateRelativeSize=function(){var t=this,e=0,i=0;ow(this._childrenByLayout,(function(t){t.isMeasured&&(S_(t.percentWidth)&&(e+=t.percentWidth),S_(t.percentHeight)&&(i+=t.percentHeight))})),ow(this._childrenByLayout,(function(n){n.isMeasured&&("horizontal"==t.layout&&(S_(n.percentWidth)&&(n.relativeWidth=n.percentWidth/e),S_(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100)),"vertical"==t.layout&&(S_(n.percentHeight)&&(n.relativeHeight=n.percentHeight/i),S_(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100)),"grid"==t.layout&&(S_(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100),S_(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100))),"absolute"!=t.layout&&n.isMeasured||(S_(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100),S_(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100))}))},e.prototype.addChildren=function(){if(this.element){var t=cw(this.children.values),e=t.map((function(t,e){return{idx:e,data:t}}));e.sort((function(t,e){var i=t.data.zIndex||0,n=e.data.zIndex||0;return i<n?-1:i>n?1:t.idx-e.idx})),t=e.map((function(t){return t.data}));var i=this.element,n=!0;if(i.node&&i.node.childNodes)for(var r=0,o=i.node.childNodes.length;r<o;r++)if(i.node.childNodes[r]!=t[r].group.node){n=!1;break}n||(ow(t,(function(t){t.group&&i.add(t.group)})),this._background&&this.group.addToBack(this._background.group),this.invalidateLayout())}},e.prototype.createChild=function(t){var e=new t;return e.parent=this,e},e.prototype.removeChildren=function(){for(;this.children.length>0;){var t=this.children.getIndex(0);t.parent=void 0,this.children.removeValue(t)}},e.prototype.disposeChildren=function(){for(;this.children.length>0;){var t=this.children.getIndex(0);t.dispose(),this.children.removeValue(t)}},Object.defineProperty(e.prototype,"background",{get:function(){return this._background||(this._background=this.createBackground(),this.processBackground()),this._background},set:function(t){this._background&&this.background!=t&&this.removeDispose(this._background),t&&(this._background=t,this._disposers.push(t),this.processBackground())},enumerable:!0,configurable:!0}),e.prototype.handleGlobalScale=function(){t.prototype.handleGlobalScale.call(this),this.children.each((function(t){t.handleGlobalScale()}))},e.prototype.createBackground=function(){return new UP},e.prototype.processBackground=function(){var t=this._background;t&&(t.isMeasured=!1,this._background.fill=(new ZC).getFor("background"),t.parent=this,t.isMeasured=!1,this.children.removeValue(t),this._disposers.push(t),this.group.addToBack(this._background.group))},e.prototype.validateLayout=function(){var t=this;ex.removeFromInvalidLayouts(this),this.layoutInvalid=!1,this._availableWidth=this.innerWidth,this._availableHeight=this.innerHeight;var e=0,i=0,n=!0;this.children&&(this.sortChildren(),ow(this._childrenByLayout,(function(r){var o,a;if(S_(r.relativeWidth)?(o=M_(t._availableWidth*r.relativeWidth,2),"horizontal"==t.layout&&(o-=r.pixelMarginRight+r.pixelMarginLeft)):"horizontal"==t.layout&&r.invalid&&r.validate(),S_(r.relativeHeight)?(a=M_(t._availableHeight*r.relativeHeight,2),"vertical"==t.layout&&(a-=r.pixelMarginTop+r.pixelMarginBottom)):"vertical"==t.layout&&r.invalid&&r.validate(),0==r.invalid){if(S_(r.relativeWidth)&&(r.maxWidth=o),S_(r.relativeHeight)&&(r.maxHeight=a),r.isMeasured){"horizontal"==t.layout&&(S_(r.percentWidth)||r.measuredWidth>0&&(t._availableWidth-=r.measuredWidth+r.pixelMarginLeft+r.pixelMarginRight)),"vertical"==t.layout&&(S_(r.percentHeight)||r.measuredHeight>0&&(t._availableHeight-=r.measuredHeight+r.pixelMarginTop+r.pixelMarginBottom));var s=r.measuredWidth,u=r.measuredHeight;"none"!=r.align&&(s+=r.pixelMarginLeft+r.pixelMarginRight),"none"!=r.valign&&(u+=r.pixelMarginTop+r.pixelMarginBottom),e=Math.max(e,s),i=Math.max(i,u)}}else r.isMeasured&&(S_(r.relativeWidth)&&r.maxWidth!=o&&(r.maxWidth=o,n=!1),S_(r.relativeHeight)&&r.maxHeight!=a&&(r.maxHeight=a,n=!1))}))),this._absoluteWidth=e,this._absoluteHeight=i,n&&this.arrange()},e.prototype.arrange=function(){var t,e,i,n,r,o,a,s,u,l,h,c=this,p=this.children,d=0,f=0,g=N_(this.innerWidth,this._absoluteWidth),y=N_(this.innerHeight,this._absoluteHeight),v=this.pixelPaddingLeft,m=this.pixelPaddingRight,b=this.pixelPaddingTop,_=this.pixelPaddingBottom,w=0,x=0,C=0,P=0,k=[],S=[],O=this.maxWidth,D=this.maxHeight,T=this.minWidth,E=this.minHeight,I=cw(p.values);if(this.reverseOrder&&I.reverse(),"grid"==this.layout){o=O,r=1;for(var A=0,F=I.length;A<F;A++)if((j=I[A]).isMeasured&&!j.disabled&&!j.__disabled){var M=j.measuredWidth;M<o&&(o=M),M>r&&(r=M)}o=L_(o,1,O),r=L_(r,1,O),a=this.fixedWidthGrid?O/r:O/o,a=N_(1,Math.floor(a)),a=B_(this.maxColumns,a),k=this.getColumnWidth(I,a,r)}for(A=0,F=I.length;A<F;A++){var j;if(!(j=I[A]).isMeasured||j.disabled||j.__disabled)j.validatePosition();else{var L=void 0,V=void 0,R=j.pixelMarginLeft,N=j.pixelMarginRight,B=j.pixelMarginTop,H=j.pixelMarginBottom,z=j.measuredWidth,U=j.measuredHeight,W=void 0,G=void 0,K=void 0,Y=void 0;switch(this.layout){case"none":break;case"absolute":switch(j.align){case"left":L=R-j.maxLeft;break;case"center":L=(g-z)/2-j.maxLeft;break;case"right":L=g-N-j.maxRight;break;default:j.x instanceof d_||(L=j.pixelX)}switch(j.valign){case"top":V=B-j.maxTop;break;case"middle":V=(y-U)/2-j.maxTop;break;case"bottom":V=y-H-j.maxBottom;break;default:j.y instanceof d_||(V=j.pixelY)}break;case"vertical":switch(j.align){case"left":L=R-j.maxLeft;break;case"center":L=(g-z)/2-j.maxLeft;break;case"right":L=g-N-j.maxRight;break;default:L=j.pixelX}x=(V=x+B-j.maxTop)+j.maxBottom+H;break;case"horizontal":switch(j.valign){case"top":V=B-j.maxTop;break;case"middle":V=(y-U)/2-j.maxTop;break;case"bottom":V=y-H-j.maxBottom;break;default:V=j.pixelY}w=(L=w+R-j.maxLeft)+j.maxRight+N;break;case"grid":switch(L=w+R-j.maxLeft,j.valign){case"top":V=x+B-j.maxTop;break;case"middle":V=x+(y-U)/2-j.maxTop;break;case"bottom":V=x+y-H-j.maxBottom;break;default:V=x-j.maxTop}w+=k[P],S[C]=N_(S[C],U);var q=k[++P];if(S_(q)||(q=r),w>B_(this.innerWidth,O)-q+1&&P<a){a=P,w=0,x=0,C=0,P=0,k=this.getColumnWidth(I,a,r),S=[],A=-1;continue}P>=a&&(P=0,x+=S[C],C++,w=0)}"none"!==this.layout&&(j.moveTo({x:L,y:V}),W=L+j.maxLeft-R,G=L+j.maxRight+N,K=V+j.maxTop-B,Y=V+j.maxBottom+H,(G>e||!S_(e))&&(e=G),(W<t||!S_(t))&&(t=W),(K<i||!S_(i))&&(i=K),(Y>n||!S_(n))&&(n=Y),(G>u||!S_(u))&&(u=G),(W<s||!S_(s))&&(s=W),(K<l||!S_(l))&&(l=K),(Y>h||!S_(h))&&(h=h))}}if("none"==this.layout){var X=this.bbox;t=X.x,e=X.x+X.width,i=X.y,n=X.y+X.height}S_(t)||(t=0,s=0),S_(e)||(u=e=this._availableWidth),S_(i)||(i=0,l=0),S_(n)||(h=n=this._availableHeight),S_(l)||(l=0),S_(h)||(h=l),S_(s)||(s=0),S_(u)||(u=s),d=e-t,f=n-i,S_(this.relativeWidth)&&(t=0,e=d=O-v-m),S_(this.relativeHeight)&&(i=0,n=f=D-b-_),S_(this._pixelWidth)&&(t=0,d=this._pixelWidth-v-m),S_(T)&&d<T&&(t=0,d=this.minWidth-v-m),S_(this._pixelHeight)&&(i=0,f=this._pixelHeight-b-_),S_(E)&&f<E&&(i=0,f=E-b-_);var Z=u-s,Q=h-l;if("none"!=this.layout&&(this.contentAlign||this.contentValign)&&p.length>0){var $,J,tt=d,et=f;tt<Z&&(tt=Z),et<Q&&(et=Q),"center"==this.contentAlign&&($=(tt-Z)/2),"right"==this.contentAlign&&($=tt-Z),"middle"==this.contentValign&&(J=(et-Q)/2),"bottom"==this.contentValign&&(J=et-Q),S_($)&&Ww(p.iterator(),(function(t){var e=t.maxLeft,i=$;"horizontal"==c.layout&&(t.x=t.pixelX+i),"grid"==c.layout&&(t.x=t.pixelX+i),"vertical"==c.layout&&(i+=t.pixelMarginLeft,"none"==t.align&&(t.x=i-e)),"absolute"==c.layout&&(i+=t.pixelMarginLeft,"none"==t.align&&(t.x=i-e))})),S_(J)&&Ww(p.iterator(),(function(t){var e=t.maxTop,i=J;"horizontal"==c.layout&&(i+=t.pixelMarginTop,"none"==t.valign&&(t.y=i-e)),"grid"==c.layout&&(i+=t.pixelMarginTop,t.y=i-e),"vertical"==c.layout&&(t.y=t.pixelY+i),"absolute"==c.layout&&(i+=t.pixelMarginTop,"none"==t.valign&&(t.y=i-e))}))}var it=this.bbox;d=N_(d,T),f=N_(f,E),this.contentWidth=d,this.contentHeight=f,d=B_(d,O),f=B_(f,D),this._bbox={x:t,y:i,width:d,height:f};var nt=this.maxLeft,rt=this.maxTop,ot=this.maxBottom,at=this.maxRight;if(this.measure(),(nt!=this.maxLeft||at!=this.maxRight||rt!=this.maxTop||ot!=this.maxBottom)&&this.events.isEnabled("transformed")){var st={type:"transformed",target:this};it&&(st.dummyData=it.width+" "+d+" "+it.height+" "+f),this.events.dispatchImmediately("transformed",st)}this.dispatchImmediately("layoutvalidated")},e.prototype.updateCenter=function(){t.prototype.updateCenter.call(this),this.updateBackground()},e.prototype.updateBackground=function(){var t=this._background;t&&(t.x=this.maxLeft,t.y=this.maxTop,t.width=this.maxRight-this.maxLeft,t.height=this.maxBottom-this.maxTop)},e.prototype.getColumnWidth=function(t,e,i){var n=this,r=[],o=0;return ow(t,(function(t){!t.isMeasured||t.disabled||t.__disabled||(n.fixedWidthGrid?r[o]=i:r[o]=N_(r[o],t.measuredWidth+t.pixelMarginRight+t.pixelMarginLeft),++o==e&&(o=0))})),r},Object.defineProperty(e.prototype,"layout",{get:function(){return this.getPropertyValue("layout")},set:function(t){this.setPropertyValue("layout",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentValign",{get:function(){return this.getPropertyValue("contentValign")},set:function(t){this.setPropertyValue("contentValign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentAlign",{get:function(){return this.getPropertyValue("contentAlign")},set:function(t){this.setPropertyValue("contentAlign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedWidthGrid",{get:function(){return this.getPropertyValue("fixedWidthGrid")},set:function(t){this.setPropertyValue("fixedWidthGrid",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxColumns",{get:function(){return this.getPropertyValue("maxColumns")},set:function(t){this.setPropertyValue("maxColumns",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reverseOrder",{get:function(){return this.getPropertyValue("reverseOrder")},set:function(t){this.setPropertyValue("reverseOrder",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"setStateOnChildren",{get:function(){return this.getPropertyValue("setStateOnChildren")},set:function(t){this.setPropertyValue("setStateOnChildren",t,!0)},enumerable:!0,configurable:!0}),e.prototype.fitsToBounds=function(t){var e=t.x,i=t.y;return e>=-.5&&e<=this.pixelWidth+.5&&i>=-.5&&i<=this.pixelHeight+.5},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.layout=e.layout,this.setStateOnChildren=e.setStateOnChildren,e._background&&(this.background=e._background.clone(),this.background.copyFrom(e._background)),Ww(e.children.iterator(),(function(t){t.shouldClone&&(t.clone().parent=i)}))},Object.defineProperty(e.prototype,"preloader",{get:function(){return this._preloader||(this.parent?this.parent.preloader:void 0)},set:function(t){this._preloader&&this.removeDispose(this._preloader),this._preloader=t,t&&(t.parent=this.tooltipContainer,this._disposers.push(t))},enumerable:!0,configurable:!0}),e.prototype.setPaper=function(e){var i=this,n=t.prototype.setPaper.call(this,e);return n&&(this._background&&(this._background.paper=e,this._background.topParent=this.topParent),this.children.each((function(t){t.setPaper(e),t.topParent=i.topParent}))),n},e.prototype.removeFromInvalids=function(){t.prototype.removeFromInvalids.call(this),ex.removeFromInvalidLayouts(this)},e.prototype.setDataItem=function(e){this._dataItem!=e&&(Ww(this.children.iterator(),(function(t){t.dataItem=e})),this._background&&(this._background.dataItem=e)),t.prototype.setDataItem.call(this,e)},e.prototype.measureElement=function(){this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||this.validateLayout()},Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.getPropertyValue("fontFamily")},set:function(t){this.setPropertyValue("fontFamily",t,!0)&&(this.setSVGAttribute({"font-family":t}),this.invalidateLabels())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this.getPropertyValue("fontSize")},set:function(t){this.setPropertyValue("fontSize",t,!0)&&(this.setSVGAttribute({"font-size":t}),this.invalidateLabels())},enumerable:!0,configurable:!0}),e.prototype.invalidateLabels=function(){this.children.each((function(t){t.hardInvalidate?(t.hardInvalidate(),t.events.once("validated",t.handleValidate,t,!1)):t instanceof e&&t.invalidateLabels()}))},Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this.getPropertyValue("fontWeight")},set:function(t){this.setPropertyValue("fontWeight",t),this.setSVGAttribute({"font-weight":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textDecoration",{get:function(){return this.getPropertyValue("textDecoration")},set:function(t){this.setPropertyValue("textDecoration",t),this.setSVGAttribute({"text-decoration":t})},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._background&&this._background.dispose(),this._shouldBeReady=[],this.disposeChildren(),t.prototype.dispose.call(this)},e.prototype.setState=function(e,i,n){var r=e;return e instanceof _C&&(r=e.name),this.setStateOnChildren&&Ww(this.children.iterator(),(function(t){t.setState(r,i,n),"active"!=r&&(t.isActive=!1)})),this._background&&this._background.setState(r),this.setStateOnSprites.length&&ow(this.setStateOnSprites,(function(t){t.setState(r,i,n)})),t.prototype.setState.call(this,e,i,n)},e.prototype.setActive=function(e){t.prototype.setActive.call(this,e),this._background&&(this._background.isActive=e)},e.prototype.dispatchReady=function(){var e=this;if(!this.isReady()&&!this.isDisposed()){var i=!0;Uw(this.children.iterator(),(function(t){return!!(t.__disabled||t.disabled||t.isReady())||(i=!1,!1)})),aw(this._shouldBeReady,(function(t){return!!(t.__disabled||t.disabled||t.isReady())||(i=!1,!1)})),i?t.prototype.dispatchReady.call(this):ex.events.once("exitframe",(function(){e.dispatchReady(),GP.requestFrame()}),void 0,!1)}},e.prototype._systemUpdate=function(e){this.children.each((function(t){t.invalid&&(t._systemCheckIfValidate()?t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid?e.push(t):t.validate():e.push(t))})),t.prototype._systemUpdate.call(this,e)},e.prototype._systemValidatePositions=function(){this.children.each((function(t){t.positionInvalid&&t.validatePosition()})),t.prototype._systemValidatePositions.call(this)},e.prototype._systemValidateLayouts=function(){this.layoutInvalid&&!this.isDisposed()&&this.validateLayout()},Object.defineProperty(e.prototype,"tapToActivate",{get:function(){return this._tapToActivate},set:function(t){this._tapToActivate!=t&&this.setTapToActivate(t)},enumerable:!0,configurable:!0}),e.prototype.setTapToActivate=function(t){var e=this;this._tapToActivate=t,this.interactions.isTouchProtected=t,t&&this.interactions.setEventDisposer("container-tapToActivate",t,(function(){return new bw([e.events.on("hit",e.handleTapToActivate,e,!1),e.events.on("down",e.initTapTimeout,e,!1),e.events.on("track",e.initTapTimeout,e,!1),aP().body.events.on("down",(function(t){aP().isLocalElement(t.pointer,e.paper.svg,e.uid)||e.handleTapToActivateDeactivation()}),e,!1)])})),aP()},e.prototype.handleTapToActivate=function(){this.interactions.isTouchProtected=!1,this.initTapTimeout()},e.prototype.handleTapToActivateDeactivation=function(){this.interactions.isTouchProtected=!0},e.prototype.initTapTimeout=function(){var t=this;this._tapToActivateTimeout&&this._tapToActivateTimeout.dispose(),this.tapToActivate&&!this.interactions.isTouchProtected&&this.tapTimeout&&(this._tapToActivateTimeout=this.setTimeout((function(){t.handleTapToActivateDeactivation()}),this.tapTimeout))},e.prototype.hasLicense=function(){if(CC.commercialLicense)return!0;for(var t=0;t<CC.licenses.length;t++)if(CC.licenses[t].match(/^CH.{5,}/i))return!0;return!1},e}(zP);ex.registeredClasses.Container=WP;var GP=new(function(){function t(){this._isPaused=!1,this.animations=[],this.uid=ex.getUniqueId(),this.dummyCounter=0,this._frameRequested=!1,this.updateStepDuration=45,this.time=Date.now()}return t.prototype.reportTime=function(t,e){this.dummyCounter,e&&(this.time=Date.now())},t.prototype.update=function(){var t=this;if(!this._isPaused){this._frameRequested=!1;var e=Date.now();for(var i in ex.dispatchImmediately("enterframe"),ex.invalidDatas)if(Mw(ex.invalidDatas,i)){for(var n=ex.invalidDatas[i];n.length>0;){var r=(o=n[0]).dataProvider;if(o.isDisposed())sw(n,o);else if(r&&r.dataInvalid)try{if(r.validateData(),r.dataValidationProgress<1)break}catch(l){sw(n,r),r.raiseCriticalError(l)}else try{if(o.validateData(),o.dataValidationProgress<1)break}catch(l){sw(n,o),o.raiseCriticalError(l)}}if(Date.now()-e>this.updateStepDuration)break}for(;ex.invalidRawDatas.length>0;)if((o=ex.invalidRawDatas[0]).isDisposed())sw(ex.invalidRawDatas,o);else try{o.validateRawData()}catch(l){sw(ex.invalidRawDatas,o),o.raiseCriticalError(l)}for(;ex.invalidDataItems.length>0;){if(r=(o=ex.invalidDataItems[0]).dataProvider,o.isDisposed()||o.dataInvalid||r&&r.dataInvalid);else try{o.validateDataItems()}catch(l){sw(ex.invalidDataItems,o),o.raiseCriticalError(l)}sw(ex.invalidDataItems,o)}for(;ex.invalidDataRange.length>0;){var o;if(r=(o=ex.invalidDataRange[0]).dataProvider,o.isDisposed()||o.dataInvalid||r&&r.dataInvalid);else try{o.validateDataRange(),o.skipRangeEvent||o.dispatchImmediately("datarangechanged"),o.skipRangeEvent=!1}catch(l){sw(ex.invalidDataRange,o),o.raiseCriticalError(l)}sw(ex.invalidDataRange,o)}var a=[];Lw(ex.invalidLayouts,(function(e){t.validateLayouts(e)})),Lw(ex.invalidPositions,(function(e){t.validatePositions(e)}));var s=!1;if(e=Date.now(),Lw(ex.invalidSprites,(function(i,n){for(var r=0;n.length>0;){if(t.validateLayouts(i),t.validatePositions(i),5==++r){if(Date.now()-e>t.updateStepDuration)break;r=0}var o=n[n.length-1];if(o&&!o.isDisposed()){if(o._systemCheckIfValidate())if(t.checkIfValidate2(o))try{o._systemUpdate(a)}catch(l){o.invalid=!1,sw(n,o),o.raiseCriticalError(l)}else a.push(o);else a.push(o);o.invalid=!1}sw(n,o)}ex.invalidSprites[i]=ex.invalidSprites[i].concat(a)})),Lw(ex.invalidSprites,(function(t,e){e.length>0&&(s=!0)})),Lw(ex.invalidDatas,(function(t,e){e.length>0&&(s=!0)})),ow(cw(this.animations),(function(t){t.update()})),Lw(ex.invalidLayouts,(function(e){t.validateLayouts(e)})),Lw(ex.invalidPositions,(function(e){t.validatePositions(e)})),function(){for(var t=Date.now(),e=Sw.length,i=0;i<e;++i)Sw.shift()(t)}(),Lw(ex.invalidLayouts,(function(e){t.validateLayouts(e)})),Lw(ex.invalidPositions,(function(e){t.validatePositions(e)})),ex.dispatchImmediately("exitframe"),(s||this.animations.length>0||[].length>0)&&this.requestFrame(),this.updateStepDuration<200){var u=!0;Lw(ex.invalidDatas,(function(t,e){e.length>0&&(u=!1)})),Lw(ex.invalidSprites,(function(t,e){e.length>0&&(u=!1)})),u&&(this.updateStepDuration=200)}}},t.prototype.checkIfValidate2=function(t){return!(t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid&&!t.dataItem.component.isTemplate)},t.prototype.requestFrame=function(){var t=this;this._frameRequested||(Ow((function(){t.update()})),this._frameRequested=!0)},t.prototype.softInvalidate=function(t){var e=this;t.children.each((function(t){t instanceof WP&&e.softInvalidate(t),t.measureFailed&&(ix(t,"Label")?t.hardInvalidate():t.invalidate(),t.measureFailed=!1)}))},t.prototype.validatePositions=function(t){for(var e=ex.invalidPositions[t];e.length>0;){var i=e[e.length-1];if(i.isDisposed())sw(e,i);else try{i._systemValidatePositions()}catch(n){i.positionInvalid=!1,sw(e,i),i.raiseCriticalError(n)}}},t.prototype.validateLayouts=function(t){for(var e=ex.invalidLayouts[t];e.length>0;){var i=e[e.length-1];if(i.isDisposed())sw(e,i);else try{i.children.each((function(t){t._systemValidateLayouts()})),i.validateLayout()}catch(n){i.layoutInvalid=!1,sw(e,i),i.raiseCriticalError(n)}}},t.prototype.log=function(t){!function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];CC.verbose&&console&&console.log.apply(console,p_(t))}(t)},Object.defineProperty(t.prototype,"isPaused",{get:function(){return this._isPaused},set:function(t){this._isPaused=t,t||(this._frameRequested=!1,this.requestFrame())},enumerable:!0,configurable:!0}),t.VERSION="4.9.23",t}()),KP=function(){function t(){}return t.prototype.parse=function(t){return[]},Object.defineProperty(t.prototype,"parsableNumbers",{get:function(){return this.options.numberFields&&this.options.numberFields.length>0},enumerable:!0,configurable:!0}),t.prototype.maybeToNumber=function(t,e){return-1!==this.options.numberFields.indexOf(t)?Wx(e):e},Object.defineProperty(t.prototype,"parsableDates",{get:function(){return this.options.dateFields&&this.options.dateFields.length>0},enumerable:!0,configurable:!0}),t.prototype.maybeToDate=function(t,e){return-1!==this.options.dateFields.indexOf(t)?this.options.dateFormatter.parse(e,this.dateFormat):e},t.prototype.maybeToEmpty=function(t){return w_(t)&&""!=t||!w_(this.options.emptyAs)?t:this.options.emptyAs},Object.defineProperty(t.prototype,"dateFormatter",{get:function(){return this.options.dateFormatter||(this.options.dateFormatter=new DP,this.options.dateFormat&&(this.options.dateFormat=this.options.dateFormat)),this.options.dateFormatter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFormat",{get:function(){return this.options.dateFormat||this.dateFormatter.inputDateFormat},enumerable:!0,configurable:!0}),t}(),YP=[",",";","\t"],qP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.contentType="text/csv",e.options={delimiter:"",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},e}return s_(e,t),e.isCSV=function(t){return!!e.getDelimiterFromData(t)},e.getDelimiterFromData=function(t){var e,i=t.split("\n"),n=i.length;return ow(YP,(function(t){for(var r=0,o=0,a=0;a<n;++a){if(!((r=i[a].split(t).length)>1)){o=0;break}if(0===o)o=r;else if(r!=o){o=0;break}}o&&(e=t)})),e},e.prototype.parse=function(t){this.options.delimiter||(this.options.delimiter=e.getDelimiterFromData(t));var i,n,r,o=this.CSVToArray(t,this.options.delimiter),a=w_(this.options.emptyAs),s=this.parsableNumbers,u=this.parsableDates,l=[],h=[];for(n=0;n<this.options.skipRows;n++)o.shift();if(this.options.useColumnNames){h=o.shift();for(var c=0;c<h.length;c++)""===(i=w_(h[c])?h[c].replace(/^\s+|\s+$/gm,""):"")&&(i="col"+c),h[c]=i}for(;r=this.options.reverse?o.pop():o.shift();)if(!this.options.skipEmpty||1!==r.length||""!==r[0]){var p={};for(n=0;n<r.length;n++)p[i=void 0===h[n]?"col"+n:h[n]]=""===r[n]?this.options.emptyAs:r[n],a&&(p[i]=this.maybeToEmpty(p[i])),s&&(p[i]=this.maybeToNumber(i,p[i])),u&&(p[i]=this.maybeToDate(i,p[i]));l.push(p)}return l},e.prototype.CSVToArray=function(t,e){e=e||",";for(var i=new RegExp("(\\"+e+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+e+"\\r\\n]*))","gi"),n=[[]],r=null;r=i.exec(t);){var o=r[1];o.length&&o!==e&&n.push([]);var a;a=r[2]?r[2].replace(new RegExp('""',"g"),'"'):r[3],n[n.length-1].push(a)}return n},e}(KP),XP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.contentType="application/json",e.options={},e}return s_(e,t),e.isJSON=function(t){try{return JSON.parse(t),!0}catch(e){return!1}},e.prototype.parse=function(t){var e,i=this;try{w_(JSON)&&(e=JSON.parse(t))}catch(l){return}var n=w_(this.options.emptyAs),r=this.parsableNumbers,o=this.parsableDates;if(Array.isArray(e)&&(r||o||n))for(var a=function(t,a){var s=e[t];Lw(s,(function(t,e){n&&(s[t]=i.maybeToEmpty(s[t])),r&&(s[t]=i.maybeToNumber(t,s[t])),o&&(s[t]=i.maybeToDate(t,s[t]))}))},s=0,u=e.length;s<u;s++)a(s);return e},e}(KP),ZP=new(function(){function t(){this.adapter=new gx(this)}return t.prototype.load=function(t){var e=rw(Array.isArray(t)?t:[t],(function(t){return t.dispatchImmediately("started"),t.dispatchImmediately("loadstarted"),MP(t.url,t,t.requestOptions)}));Promise.all(e).then((function(t){ow(t,(function(t){var e=t.target;e.dispatchImmediately("loadended"),t.error?e.events.isEnabled("error")&&e.events.dispatchImmediately("error",{type:"error",code:t.xhr.status,message:e.language.translate("Unable to load file: %1",null,e.url),target:e}):e.processData(t.response,t.type),e.dispatchImmediately("ended")}))})).catch((function(t){t.target&&(t.target.dispatchImmediately("loadended"),t.target.events.isEnabled("error")&&t.target.events.dispatchImmediately("error",{type:"error",code:t.xhr.status,message:t.target.language.translate("Unable to load file: %1",null,t.target.url),target:t.target}),t.target.dispatchImmediately("ended"))}))},t.prototype.getParserByType=function(t){return this.adapter.apply("getParserByType",{parser:null,type:t}).parser||("csv"==t||"text/csv"==t||"application/vnd.ms-excel"==t?new qP:"json"==t||"application/json"==t?new XP:void 0)},t.prototype.getParserByData=function(t,e){var i=this.adapter.apply("getParserByData",{parser:null,data:t,type:e}).parser;if(!i){if(i=this.getParserByType(e))return i;if(XP.isJSON(t))return this.getParserByType("json");if(qP.isCSV(t))return this.getParserByType("csv")}return i},t}()),QP=function(t){function e(e,i){var n=t.call(this)||this;return n.adapter=new gx(n),n._requestOptions={},n._incremental=!1,n._incrementalParams={},n._keepCount=!1,n._updateCurrentData=!1,n.showPreloader=!0,n.className="DataSource",e&&(n.url=e),i&&(n.parser="string"==typeof i?ZP.getParserByType(i):i),n}return s_(e,t),e.prototype.processData=function(t,e){if(this.dispatchImmediately("parsestarted"),this.parser||(this.parser=ZP.getParserByData(t,e),this.parser)){if(this.parser.options=this.adapter.apply("parserOptions",this.parser.options),this.parser.options.dateFields=this.adapter.apply("dateFields",this.parser.options.dateFields||[]),this.parser.options.numberFields=this.adapter.apply("numberFields",this.parser.options.numberFields||[]),this.parser.options.dateFields&&!this.parser.options.dateFormatter&&(this.parser.options.dateFormatter=this.dateFormatter),this.data=this.adapter.apply("parsedData",this.parser.parse(this.adapter.apply("unparsedData",t))),!w_(this.data)&&this.events.isEnabled("parseerror")){var i={type:"parseerror",message:this.language.translate("Error parsing file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",i)}this.dispatchImmediately("parseended"),w_(this.data)&&this.dispatchImmediately("done",{data:this.data}),this.lastLoad=new Date}else{if(this.events.isEnabled("parseerror")){var n={type:"parseerror",message:this.language.translate("No parser available for file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",n)}this.dispatchImmediately("parseended")}},Object.defineProperty(e.prototype,"url",{get:function(){var t=this.disableCache?this.timestampUrl(this._url):this._url;return this.incremental&&this.component.data.length&&(t=this.addUrlParams(t,this.incrementalParams)),this.adapter.apply("url",t)},set:function(t){this._url=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"requestOptions",{get:function(){return this.adapter.apply("requestOptions",this._requestOptions)},set:function(t){this._requestOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._parser||(this._parser=new XP),this.adapter.apply("parser",this._parser)},set:function(t){this._parser=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reloadFrequency",{get:function(){return this.adapter.apply("reloadTimeout",this._reloadFrequency)},set:function(t){var e=this;this._reloadFrequency!=t&&(this._reloadFrequency=t,t?w_(this._reloadDisposer)||(this._reloadDisposer=this.events.on("ended",(function(t){e._reloadTimeout=setTimeout((function(){e.load()}),e.reloadFrequency)}))):w_(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incremental",{get:function(){return this.adapter.apply("incremental",this._incremental)},set:function(t){this._incremental=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incrementalParams",{get:function(){return this.adapter.apply("incrementalParams",this._incrementalParams)},set:function(t){this._incrementalParams=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepCount",{get:function(){return this.adapter.apply("keepCount",this._keepCount)},set:function(t){this._keepCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateCurrentData",{get:function(){return this.adapter.apply("updateCurrentData",this._updateCurrentData)},set:function(t){this._updateCurrentData=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){return this._language?this._language:this.component?(this._language=this.component.language,this._language):(this.language=new PP,this.language)},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.component?(this._dateFormatter=this.component.dateFormatter,this._dateFormatter):(this.dateFormatter=new DP,this.dateFormatter)},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),e.prototype.timestampUrl=function(t){var e={};return e[(new Date).getTime().toString()]="",this.addUrlParams(t,e)},e.prototype.dispose=function(){t.prototype.dispose.call(this),this._reloadTimeout&&clearTimeout(this._reloadTimeout),w_(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0)},e.prototype.load=function(){this.url&&(this._reloadTimeout&&clearTimeout(this._reloadTimeout),ZP.load(this))},e.prototype.addUrlParams=function(t,e){var i=t.match(/\?/)?"&":"?",n=[];return Lw(e,(function(t,e){""!=e?n.push(t+"="+encodeURIComponent(e)):n.push(t)})),n.length?t+i+n.join("&"):t},e.prototype.processConfig=function(e){ex.registeredClasses.json=XP,ex.registeredClasses.JSONParser=XP,ex.registeredClasses.csv=qP,ex.registeredClasses.CSVParser=qP,t.prototype.processConfig.call(this,e)},e}(Sx),$P=function(t){function e(){var e=t.call(this)||this;return e._rules=new ax,e._appliedRules={},e._appliedTargets=[],e._useDefault=!0,e.adapter=new gx(e),e._enabled=!1,e._responsiveDisposers=[],e._noStates=[],e.className="Responsive",e.rules.events.on("inserted",(function(){e.checkRules()}),!0),e.rules.events.on("removed",(function(){e.checkRules()}),!0),e._disposers.push(e.rules.events),e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"component",{get:function(){return this._component},set:function(t){var e=this;t!=this._component&&(this.disposeResponsiveHandlers(),this._component=t,this._responsiveDisposers.push(x_(this.component).events.on("sizechanged",(function(){e.checkRules()}),this)),this._responsiveDisposers.push(x_(this.component).events.on("datavalidated",(function(){e._component.isReady()&&e.checkRules(!0)}),this)),this.enabled=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.adapter.apply("enabled",this._enabled)},set:function(t){this._enabled!=t&&(this._enabled=t,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useDefault",{get:function(){return this.adapter.apply("useDefault",this._useDefault)},set:function(t){this._useDefault!=t&&(this._useDefault=t,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this.adapter.apply("rules",this._rules)},set:function(t){this._rules=t,this._enabled=!0,this.applyRules()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultRules",{get:function(){return this.adapter.apply("defaultRules",JP)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allRules",{get:function(){var t=new ax;return this.useDefault&&t.copyFrom(this.defaultRules),t.copyFrom(this.rules),this.adapter.apply("allRules",t)},enumerable:!0,configurable:!0}),e.prototype.isApplied=function(t){var e=this._appliedRules[t];return!!w_(e)&&e},e.prototype.checkRules=function(t){var e=this;void 0===t&&(t=!1);var i=this.allRules;if(i&&0!=i.length){var n=!1,r=x_(this.component);if(Ww(i.iterator(),(function(t){t.id||(t.id=ex.getUniqueId());var i=t.relevant(r);(i&&!e.isApplied(t.id)||!i&&e.isApplied(t.id))&&(n=!0),e._appliedRules[t.id]=i})),t&&(n=!0),n){if(!this.component.isReady())return r.hidden=!0,void r.events.once("ready",(function(t){t.target.show(0),e.applyRules()}));this.dispatchImmediately("ruleschanged"),this.applyRules()}}},e.prototype.applyRules=function(t){var e,i,n,r=this,o=w_(t)?t:x_(this.component),a=!1;if(this.enabled){var s=!1;Ww(this.allRules.iterator(),(function(t){var e=r.getState(t,o);e&&(a||(-1!==iw(r._appliedTargets,o.uid)&&o.setState(r.getDefaultState(o)),a=!0),r.isApplied(x_(t.id))&&(e.transitionDuration=0,r.setTargetState(o,e),r.dispatchImmediately("ruleapplied",{rule:t}),s=!0))})),s?(e=this._appliedTargets,i=o.uid,-1!==(n=e.indexOf(i))&&e.splice(n,1),S_(void 0)?e.splice(void 0,0,i):e.push(i)):sw(this._appliedTargets,o.uid)}o.children&&Ww(o.children.iterator(),(function(t){r.applyRules(t)}))},e.prototype.getState=function(t,e){var i="responsive-"+t.id,n=e.uid+"_"+i;if(-1===iw(this._noStates,n)){if(e.states.hasKey(i))return e.states.getKey(i);var r=t.state(e,i);return r||this._noStates.push(n),r}},e.prototype.getDefaultState=function(t){return t.states.hasKey("responsive-default")?t.states.getKey("responsive-default"):t.states.create("responsive-default")},e.prototype.setTargetState=function(t,e){var i=this,n=this.getDefaultState(t);Lw(e.properties,(function(e,r){w_(n.properties[e])||(n.properties[e]=i.getValue(t,e))})),t.setState(e)},e.prototype.getValue=function(t,e){var i=t.getPropertyValue(e);return!w_(i)&&w_(t[e])&&(i=t[e]),i},e.prototype.dispose=function(){this.disposeResponsiveHandlers(),t.prototype.dispose.call(this)},e.prototype.disposeResponsiveHandlers=function(){for(var t=this._responsiveDisposers.pop();t;)t.dispose(),t=this._responsiveDisposers.pop()},e}(Sx),JP=new ax;JP.events.on("inserted",(function(t){t.newValue.id=ex.getUniqueId()}));var tk=function(){function t(){}return t.widthXXS=function(e){return e.pixelWidth<=t.XXS},t.widthXS=function(e){return e.pixelWidth<=t.XS},t.widthS=function(e){return e.pixelWidth<=t.S},t.widthM=function(e){return e.pixelWidth<=t.M},t.widthL=function(e){return e.pixelWidth<=t.L},t.widthXL=function(e){return e.pixelWidth<=t.XL},t.widthXXL=function(e){return e.pixelWidth<=t.XXL},t.heightXXS=function(e){return e.pixelHeight<=t.XXS},t.heightXS=function(e){return e.pixelHeight<=t.XS},t.heightS=function(e){return e.pixelHeight<=t.S},t.heightM=function(e){return e.pixelHeight<=t.M},t.heightL=function(e){return e.pixelHeight<=t.L},t.heightXL=function(e){return e.pixelHeight<=t.XL},t.heightXXL=function(e){return e.pixelHeight<=t.XXL},t.isXXS=function(e){return e.pixelWidth<=t.XXS&&e.pixelHeight<=t.XXS},t.isXS=function(e){return e.pixelWidth<=t.XS&&e.pixelHeight<=t.XS},t.isS=function(e){return e.pixelWidth<=t.S&&e.pixelHeight<=t.S},t.isM=function(e){return e.pixelWidth<=t.M&&e.pixelHeight<=t.M},t.isL=function(e){return e.pixelWidth<=t.L&&e.pixelHeight<=t.L},t.isXL=function(e){return e.pixelWidth<=t.XL&&e.pixelHeight<=t.XL},t.isXXL=function(e){return e.pixelWidth<=t.XXL&&e.pixelHeight<=t.XXL},t.maybeXXS=function(e){return e.pixelWidth<=t.XXS||e.pixelHeight<=t.XXS},t.maybeXS=function(e){return e.pixelWidth<=t.XS||e.pixelHeight<=t.XS},t.maybeS=function(e){return e.pixelWidth<=t.S||e.pixelHeight<=t.S},t.maybeM=function(e){return e.pixelWidth<=t.M||e.pixelHeight<=t.M},t.maybeL=function(e){return e.pixelWidth<=t.L||e.pixelHeight<=t.L},t.maybeXL=function(e){return e.pixelWidth<=t.XL||e.pixelHeight<=t.XL},t.maybeXXL=function(e){return e.pixelWidth<=t.XXL||e.pixelHeight<=t.XXL},t.XXS=100,t.XS=200,t.S=300,t.M=400,t.L=600,t.XL=800,t.XXL=1e3,t}(),ek=function(t){function e(){var e=t.call(this)||this;return e._disabled=!1,e.hasProperties=!1,e.values={},e.categories={},e.dates={},e.locations={},e.workingLocations={},e.properties={},e.sprites=[],e.isTemplate=!1,e._index=null,e._visible=!0,e._hidden=!1,e._ignoreMinMax=!1,e.hasChildren={},e.isHiding=!1,e._valueAnimations={},e._locationAnimations={},e.className="DataItem",e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new gx(this)),this._adapterO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.component&&null!=this._index?this._index:-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new TC(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return!this._hidden&&this._visible},set:function(t){t&&(this.hidden=!1),this._visible!=t&&this.setVisibility(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(t){this._hidden!=t&&(this._hidden=t,t?this.setVisibility(!1):this.setVisibility(!0,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,ow(this.sprites,(function(e){e.__disabled=t}))},enumerable:!0,configurable:!0}),e.prototype.setVisibility=function(t,e){if(ow(this.sprites,(function(e){t?e.visible=e.defaultState.properties.visible:e.hiddenState?e.visible=e.hiddenState.properties.visible:e.visible=!1})),this._visible=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("visibilitychanged")){var i={type:"visibilitychanged",target:this,visible:t};this.events.dispatchImmediately("visibilitychanged",i)}},e.prototype.show=function(t,e,i){var n,r=this;if(!this.hidden)return this.setVisibility(!0,!0),this.isHiding=!1,this._hideDisposer&&this.removeDispose(this._hideDisposer),i&&ow(i,(function(i){n=r.setWorkingValue(i,r.values[i].value,t,e)})),ow(this.sprites,(function(i){var n=i.show(t);null==n||n.isFinished()||(r._disposers.push(n),null!=e&&e>0&&n.delay(e))})),n},e.prototype.dispose=function(){t.prototype.dispose.call(this),ow(this.sprites,(function(t){t.dispose()})),this.sprites=[]},e.prototype.hide=function(t,e,i,n){var r=this;if(this.isHiding=!0,ow(this.sprites,(function(i){var n=i.hide(t);null==n||n.isFinished()||(r._disposers.push(n),null!=e&&e>0&&n.delay(e))})),S_(i)&&n){var o;if(ow(n,(function(n){var a=r.setWorkingValue(n,i,t,e);a&&(o=a)})),o&&!o.isFinished())return this._hideDisposer=o.events.on("animationended",(function(){r.setVisibility(!1,!0),r.isHiding=!1})),this._disposers.push(this._hideDisposer),o;this.isHiding=!1,this.setVisibility(!1,!0)}else this.isHiding=!1,this.setVisibility(!1)},e.prototype.getDuration=function(t){if(!S_(t)){var e=this.component;e&&(t=e.interpolationDuration)}if(null!=t)return this._adapterO?this._adapterO.apply("duration",t):t},e.prototype.getValue=function(t,e){if(t&&this.component){e||(e=this.component.dataFields[t+"Show"])||(e="value");var i=this.values[t][e];return this._adapterO&&this._adapterO.isEnabled("value")?this._adapterO.apply("value",{value:i,field:t}).value:i}},e.prototype.getWorkingValue=function(t){if(t&&this.component){var e=this.component.dataFields[t+"Show"];return e||(e="workingValue"),this._adapterO?this._adapterO.apply("workingValue",{workingValue:this.values[t][e],field:t}).workingValue:this.values[t][e]}},e.prototype.getActualWorkingValue=function(t){return this.values[t].workingValue},e.prototype.setValue=function(t,e,i,n){var r=this.values[t].value,o=this.getDuration(i);if(r!==(e=b_(e))){if(this.values[t].value=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("valuechanged")){var a={type:"valuechanged",target:this,property:t};this.events.dispatchImmediately("valuechanged",a)}this.component&&this.component.handleDataItemValueChange(this,t)}this.setWorkingValue(t,e,o,n)},e.prototype.setCalculatedValue=function(t,e,i){if(this.values[t][i]!==e&&S_(e)){if(this.values[t][i]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("calculatedvaluechanged")){var n={type:"calculatedvaluechanged",target:this,property:t};this.events.dispatchImmediately("calculatedvaluechanged",n)}this.component&&this.component.handleDataItemCalculatedValueChange(this,t)}},e.prototype.setWorkingValue=function(t,e,i,n){if(S_(this.values[t].value)){var r=this.getDuration(i),o=this.values[t].workingValue;if(null!=r&&r>0&&S_(o)&&this.component){if(o!=e){var a=this.animate({childObject:this.values[t],property:"workingValue",from:o,to:e,dummyData:t},r,this.component.interpolationEasing);return null!=n&&a.delay(n),a.events.on("animationstarted",this.handleInterpolationProgress,this),a.events.on("animationprogress",this.handleInterpolationProgress,this),a.events.on("animationended",this.handleInterpolationProgress,this),this._valueAnimations[t]=a,a}(s=this._valueAnimations[t])&&s.stop(),this.values[t].workingValue=e}else{var s;if((s=this._valueAnimations[t])&&s.stop(),this.values[t].workingValue=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var u={type:"workingvaluechanged",target:this,property:t};this.events.dispatchImmediately("workingvaluechanged",u)}this.component&&this.component.handleDataItemWorkingValueChange(this,t)}}},e.prototype.setLocation=function(t,e,i,n){if(this.locations[t]!==e){if(this.locations[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("locationchanged")){var r={type:"locationchanged",target:this,property:t};this.events.dispatchImmediately("locationchanged",r)}this.component&&this.component.handleDataItemValueChange(this,t),this.setWorkingLocation(t,e,i,n)}},e.prototype.setWorkingLocation=function(t,e,i,n){var r=this.getDuration(i),o=this.workingLocations[t];if(null!=r&&r>0&&S_(o)&&this.component){if(o!=e){var a=this.animate({childObject:this.workingLocations,property:t,from:o,to:e,dummyData:t},r,this.component.interpolationEasing);return null!=n&&a.delay(n),a.events.on("animationstarted",this.handleInterpolationProgress,this),a.events.on("animationprogress",this.handleInterpolationProgress,this),a.events.on("animationended",this.handleInterpolationProgress,this),this._locationAnimations[t]=a,a}(s=this._locationAnimations[t])&&s.stop(),this.workingLocations[t]=e}else{var s;if((s=this._locationAnimations[t])&&s.stop(),this.workingLocations[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workinglocationchanged")){var u={type:"workinglocationchanged",target:this,property:t};this.events.dispatchImmediately("workinglocationchanged",u)}this.component&&this.component.handleDataItemWorkingLocationChange(this,t)}},e.prototype.setDate=function(t,e,i){!P_(e)&&this.component&&(e=this.component.dateFormatter.parse(e)),this.dates[t]!==e&&(this.dates[t]=e,this.setValue(t,e.getTime(),i))},e.prototype.getDate=function(t){return this._adapterO?this._adapterO.apply("date",{date:this.dates[t],field:t}).date:this.dates[t]},e.prototype.setProperty=function(t,e){if(this.properties[t]!==e){if(this.hasProperties=!0,this.properties[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var i={type:"propertychanged",target:this,property:t,value:e};this.events.dispatchImmediately("propertychanged",i)}this.component&&this.component.handleDataItemPropertyChange(this,t)}},e.prototype.setCategory=function(t,e){k_(e)||(e=v_(e)),this.categories[t]!==e&&(this.categories[t]=e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e.dataContext&&(this.dataContext=function(t,e){return Lw(t,(function(t,i){e[t]=i})),e}(e.dataContext,{})),Ox(e.locations,this.locations),e._adapterO&&this.adapter.copyFrom(e._adapterO),this.component=e.component},Object.defineProperty(e.prototype,"opacity",{set:function(t){ow(this.sprites,(function(e){e.opacity=t}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){if(this._ignoreMinMax=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var e={type:"propertychanged",target:this,property:"ignoreMinMax",value:t};this.events.dispatchImmediately("propertychanged",e)}this.component&&this.component.handleDataItemPropertyChange(this,"ignoreMinMax")},enumerable:!0,configurable:!0}),e.prototype.animate=function(t,e,i){return new EC(this,t,e,i).start()},e.prototype.handleInterpolationProgress=function(t){var e=t.target.animationOptions[0];if(e){if(this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var i={type:"workingvaluechanged",target:this,property:e.dummyData};this.events.dispatchImmediately("workingvaluechanged",i)}this.component&&this.component.handleDataItemWorkingValueChange(this,e.dummyData)}},e.prototype.hasValue=function(t){for(var e=0,i=t.length;e<i;e++){var n=this.values[t[e]];if(!n||!w_(n.value))return!1}return!0},Object.defineProperty(e.prototype,"depth",{get:function(){return this.parent?this.parent.depth+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataContext",{get:function(){return this._dataContext},set:function(t){this._dataContext=t},enumerable:!0,configurable:!0}),e.prototype.addSprite=function(t){t.dataItem&&t.dataItem!=this&&sw(t.dataItem.sprites,t),this.visible||t.hide(0),this.isHiding&&t.hide(),this.sprites.push(t),t.dataItem=this},e}(Sx),ik=function(t){function e(){var e=t.call(this)||this;return e.dataFields={},e._dataSources={},e._parseDataFrom=0,e._dataDisposers=[],e._currentDataSetId="",e._start=0,e._end=1,e.skipRangeEvent=!1,e.rangeChangeDuration=0,e.rangeChangeEasing=yC,e.parsingStepDuration=50,e.dataInvalid=!1,e.rawDataInvalid=!1,e.dataRangeInvalid=!1,e.dataItemsInvalid=!1,e.interpolationDuration=0,e.interpolationEasing=yC,e.sequencedInterpolation=!0,e.sequencedInterpolationDelay=0,e.dataValidationProgress=0,e._addAllDataItems=!0,e._usesData=!0,e.className="Component",e.minZoomCount=1,e.maxZoomCount=0,e._dataItems=new hx(e.createDataItem()),e._dataItems.events.on("inserted",e.handleDataItemAdded,e,!1),e._dataItems.events.on("removed",e.handleDataItemRemoved,e,!1),e._disposers.push(new rx(e._dataItems)),e._disposers.push(e._dataItems.template),e.invalidateData(),e.dataUsers.events.on("inserted",e.handleDataUserAdded,e,!1),e._disposers.push(new bw(e._dataDisposers)),e._start=0,e._end=1,e.maxZoomDeclination=1,e.applyTheme(),e}return s_(e,t),e.prototype.createDataItem=function(){return new ek},e.prototype.handleDataUserAdded=function(t){t.newValue.dataProvider=this},e.prototype.handleDataItemValueChange=function(t,e){this.dataItemsInvalid||this.invalidateDataItems()},e.prototype.handleDataItemWorkingValueChange=function(t,e){},e.prototype.handleDataItemWorkingLocationChange=function(t,e){},e.prototype.handleDataItemCalculatedValueChange=function(t,e){},e.prototype.handleDataItemPropertyChange=function(t,e){},e.prototype.processDataItem=function(t,e){var i=this;if(t){e||(e={}),t.dataContext=e;var n=!1;Lw(this.dataFields,(function(r,o){var a=r,s=e[o];if(i._adapterO&&i._adapterO.isEnabled("dataContextValue")&&(s=i._adapterO.apply("dataContextValue",{field:a,value:s,dataItem:t}).value),w_(s))if(n=!0,t.hasChildren[a]){var u=i.createDataItem();u.copyFrom(i.mainDataSet.template);var l=new hx(u);l.events.on("inserted",i.handleDataItemAdded,i,!1),l.events.on("removed",i.handleDataItemRemoved,i,!1),i._dataDisposers.push(new rx(l));for(var h=s.length,c=0;c<h;c++){var p=s[c],d=l.create();d.parent=t,i.processDataItem(d,p)}t[a]=l}else t[a]=s})),Lw(this.propertyFields,(function(i,r){var o=i,a=e[r];w_(a)&&(n=!0,t.setProperty(o,a))})),this._addAllDataItems||n||this.mainDataSet.remove(t)}},e.prototype.updateDataItem=function(t){var e=this;if(t){var i=t.dataContext;Lw(this.dataFields,(function(n,r){var o=n,a=i[r];e._adapterO&&(a=e._adapterO.apply("dataContextValue",{field:o,value:a,dataItem:t}).value),w_(a)&&(t.hasChildren[o]?t[o].each((function(t){e.updateDataItem(t)})):t[o]=a)})),Lw(this.propertyFields,(function(e,n){var r=e,o=i[n];w_(o)&&t.setProperty(r,o)}))}},e.prototype.validateDataElements=function(){for(var t=this.endIndex,e=this.startIndex;e<t;e++){var i=this.dataItems.getIndex(e);i&&this.validateDataElement(i)}},e.prototype.validate=function(){this.validateDataElements(),t.prototype.validate.call(this)},e.prototype.validateDataElement=function(t){},e.prototype.addData=function(t,e,i){var n=this;if(!this.dataInvalid&&this.inited&&(this._parseDataFrom=this.data.length),i||(t instanceof Array?ow(t,(function(t){n.data.push(t)})):this.data.push(t)),this.inited)this.removeData(e,i);else if(S_(e))for(;e>0;)this.data.shift(),e--;this.invalidateData()},e.prototype.removeData=function(t,e){if(S_(t)&&t>0){for(;t>0;){var i=this.mainDataSet.getIndex(0);i&&this.mainDataSet.remove(i),this.dataUsers.each((function(t){if(!t.data||0==t.data.length){var e=t.mainDataSet.getIndex(0);e&&t.mainDataSet.remove(e)}})),e||this.data.shift(),this._parseDataFrom>0&&this._parseDataFrom--,t--}this.invalidateDataItems()}},e.prototype.invalidateData=function(){this.disabled||this.isTemplate||(ex.addToInvalidComponents(this),GP.requestFrame(),this.dataInvalid=!0,Ww(this.dataUsers.iterator(),(function(t){t.invalidateDataItems()})))},e.prototype.invalidateDataUsers=function(){Ww(this.dataUsers.iterator(),(function(t){t.invalidate()}))},e.prototype.invalidateDataItems=function(){this.disabled||this.isTemplate||(uw(ex.invalidDataItems,this),GP.requestFrame(),this.dataItemsInvalid=!0,Ww(this.dataUsers.iterator(),(function(t){t.invalidateDataItems()})))},e.prototype.invalidateDataRange=function(){this.disabled||this.isTemplate||(this.dataRangeInvalid=!0,uw(ex.invalidDataRange,this),GP.requestFrame())},e.prototype.validateDataRange=function(){sw(ex.invalidDataRange,this),this.dataRangeInvalid=!1,this.startIndex==this._prevStartIndex&&this.endIndex==this._prevEndIndex||(this.rangeChangeUpdate(),this.appendDataItems(),this.invalidate(),this.dispatchImmediately("datarangechanged"))},e.prototype.sliceData=function(){this._workingStartIndex=this.startIndex,this._workingEndIndex=this.endIndex},e.prototype.rangeChangeUpdate=function(){this.sliceData(),this._prevStartIndex=this.startIndex,this._prevEndIndex=this.endIndex},e.prototype.appendDataItems=function(){for(var t=this.endIndex,e=this.startIndex;e<t;e++)(i=this.dataItems.getIndex(e))&&(i.__disabled=!1);for(e=0;e<this.startIndex;e++)(i=this.dataItems.getIndex(e)).__disabled=!0;for(e=this.endIndex;e<this.dataItems.length;e++){var i;(i=this.dataItems.getIndex(e)).__disabled=!0}},e.prototype.invalidateRawData=function(){this.disabled||this.isTemplate||(uw(ex.invalidRawDatas,this),GP.requestFrame(),this.rawDataInvalid=!0,Ww(this.dataUsers.iterator(),(function(t){t.invalidateRawData()})))},e.prototype.validateRawData=function(){var t=this;sw(ex.invalidRawDatas,this),Ww(this.mainDataSet.iterator(),(function(e){e&&t.updateDataItem(e)}))},e.prototype.dispose=function(){var e=this;this.mainDataSet.template.clones.clear(),Lw(this._dataSources,(function(t,i){e.removeDispose(i)})),t.prototype.dispose.call(this)},e.prototype.disposeData=function(){this.mainDataSet.template.clones.clear(),ow(this._dataDisposers,(function(t){t.dispose()})),Ww(this.dataUsers.iterator(),(function(t){t.disposeData()})),this._dataDisposers.length=0,this._startIndex=void 0,this._endIndex=void 0,this.mainDataSet.clear(),this.mainDataSet.template.clones.clear(),this._dataSets&&this._dataSets.clear()},e.prototype.getDataItem=function(t){return this.mainDataSet.create()},e.prototype.validateData=function(){if(this.dispatchImmediately("beforedatavalidated"),this.dataInvalid=!1,ex.removeFromInvalidComponents(this),!this.__disabled){if(this.dataValidationProgress=0,this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.dataFields.data&&this.dataItem){var t=this.dataItem.dataContext;this._data=t[this.dataFields.data]}if(0===this._parseDataFrom&&this.data.length>0&&this.disposeData(),this.data.length>0){var e=this.preloader;Ww(this.dataUsers.iterator(),(function(t){t._startIndex=void 0,t._endIndex=void 0}));for(var i=0,n=Date.now(),r=this._parseDataFrom,o=this.data.length,a=function(){var t=s.data[r];if(s._usesData){var o=s.getDataItem(t);s.processDataItem(o,t)}if(s.dataUsers.each((function(e){if(0==e.data.length){var i=e.getDataItem(t);e.processDataItem(i,t)}})),100==++i&&(i=0,Date.now()-n>s.parsingStepDuration&&r<s.data.length-10))return s._parseDataFrom=r+1,e&&(r/s.data.length>.5&&!e.visible||(e.progress=r/s.data.length)),s.dataValidationProgress=r/s.data.length,r=s.data.length,s.invalidateData(),{value:void 0}},s=this;r<o;r++){var u=a();if("object"==typeof u)return u.value}e&&(e.progress=1),this.dataUsers.each((function(t){t.hidden&&t.hide(0)}))}this.dataValidationProgress=1,this._parseDataFrom=0,this.invalidateDataItems(),this._internalDefaultsApplied||this.applyInternalDefaults(),this.dispatch("datavalidated")}},e.prototype.validateDataItems=function(){sw(ex.invalidDataItems,this),this.dataItemsInvalid=!1,this.invalidateDataRange(),this.invalidate(),this.dispatch("dataitemsvalidated")},Object.defineProperty(e.prototype,"data",{get:function(){return this._data||(this._data=[]),this._adapterO?this._adapterO.apply("data",this._data):this._data},set:function(t){this.setData(t)},enumerable:!0,configurable:!0}),e.prototype.setData=function(t){this._parseDataFrom=0,this.disposeData(),this._data=t,t&&t.length>0?this.invalidateData():(this.dispatchImmediately("beforedatavalidated"),this.dispatch("datavalidated"))},e.prototype.getDataSource=function(t){var e=this;return w_(this._dataSources[t])||(this._dataSources[t]=new QP,this._dataSources[t].component=this,this.setDataSourceEvents(this._dataSources[t],t),this._dataSources[t].adapter.add("dateFields",(function(t){return e.dataSourceDateFields(t)})),this._dataSources[t].adapter.add("numberFields",(function(t){return e.dataSourceNumberFields(t)})),this.events.on("inited",(function(){e.loadData(t)}),this,!1)),this._dataSources[t]},Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSources.data||this.getDataSource("data"),this._dataSources.data},set:function(t){var e=this;this._dataSources.data&&this.removeDispose(this._dataSources.data),this._dataSources.data=t,this._dataSources.data.component=this,this.events.on("inited",(function(){e.loadData("data")}),this,!1),this.setDataSourceEvents(t,"data")},enumerable:!0,configurable:!0}),e.prototype.loadData=function(t){this._dataSources[t].load()},e.prototype.dataSourceDateFields=function(t){return t},e.prototype.dataSourceNumberFields=function(t){return t},e.prototype.populateDataSourceFields=function(t,e,i){return ow(i,(function(i){e[i]&&-1===iw(t,e[i])&&t.push(e[i])})),t},e.prototype.setDataSourceEvents=function(t,e){var i=this;t.events.on("started",(function(t){var e=i.preloader;e&&(e.progress=0)}),void 0,!1),t.events.on("loadstarted",(function(t){var e=i.preloader;e&&(e.progress=.25)}),void 0,!1),t.events.on("loadended",(function(t){var e=i.preloader;e&&(e.progress=.5)}),void 0,!1),t.events.on("parseended",(function(t){var e=i.preloader;e&&(e.progress=.75)}),void 0,!1),t.events.on("ended",(function(t){var e=i.preloader;e&&(e.progress=1)}),void 0,!1),t.events.on("error",(function(t){var e=i.preloader;e&&(e.progress=1),i.openModal(t.message)}),void 0,!1),e&&t.events.on("done",(function(n){var r=i.preloader;r&&(r.progress=1),"data"!=e||D_(n.data)||(n.data=[n.data]),t.incremental&&"data"==e&&i.data.length?i.addData(n.data,t.keepCount?n.data.length:0):t.updateCurrentData&&"data"==e&&i.data.length?(ow(i.data,(function(t,e){w_(n.data[e])&&Lw(t,(function(i,r){w_(n.data[e][i])&&(t[i]=n.data[e][i])}))})),i.invalidateRawData()):i[e]=n.data}))},Object.defineProperty(e.prototype,"responsive",{get:function(){return this._responsive||(this._responsive=new $P,this._responsive.component=this),this._responsive},set:function(t){this._responsive=t,this._responsive.component=this},enumerable:!0,configurable:!0}),e.prototype.zoom=function(t,e,i,n){var r=this;void 0===e&&(e=!1),void 0===i&&(i=!1);var o=t.start,a=t.end,s=t.priority;if(t.start==t.end&&(t.start=t.start-.5/this.maxZoomFactor,t.end=t.end+.5/this.maxZoomFactor),"end"==s&&1==a&&0!=o&&o<this.start&&(s="start"),"start"==s&&0==o&&a>this.end&&(s="end"),S_(n)||(n=this.maxZoomDeclination),!S_(o)||!S_(a))return{start:this.start,end:this.end};if(this._finalStart!=o||this._finalEnd!=a){var u=this.maxZoomFactor/this.minZoomCount,l=this.maxZoomFactor/this.maxZoomCount;if("start"==s?(this.maxZoomCount>0&&1/(a-o)<l&&(a=o+1/l),1/(a-o)>u&&(a=o+1/u),a>1&&a-o<1/u&&(o=a-1/u)):(this.maxZoomCount>0&&1/(a-o)<l&&(o=a-1/l),1/(a-o)>u&&(o=a-1/u),o<0&&a-o<1/u&&(a=o+1/u)),o<-n&&(o=-n),1/(a-o)>u&&(a=o+1/u),a>1+n&&(a=1+n),1/(a-o)>u&&(o=a-1/u),this._finalEnd=a,this._finalStart=o,this.skipRangeEvent=e,this.dispatchImmediately("rangechangestarted"),this.rangeChangeDuration>0&&!i){var h=this.rangeChangeAnimation;if(h&&h.progress<1){var c=h.animationOptions;if(c.length>1){if(c[0].to==o&&c[1].to==a)return{start:o,end:a};h.isDisposed()||h.stop()}}this.rangeChangeAnimation&&this.rangeChangeAnimation.kill(),h=this.animate([{property:"start",to:o},{property:"end",to:a}],this.rangeChangeDuration,this.rangeChangeEasing),this.rangeChangeAnimation=h,h&&!h.isFinished()?h.events.on("animationended",(function(){r.dispatchImmediately("rangechangeended")})):this.dispatchImmediately("rangechangeended")}else this.start=o,this.end=a,this.dispatch("rangechangeended")}return{start:o,end:a}},e.prototype.zoomToIndexes=function(t,e,i,n){if(S_(t)&&S_(e)){var r=t/this.dataItems.length,o=e/this.dataItems.length;this.zoom({start:r,end:o},i,n)}},Object.defineProperty(e.prototype,"zoomFactor",{get:function(){return L_(1/(this.end-this.start),1,this.maxZoomFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomFactor",{get:function(){return this.getPropertyValue("maxZoomFactor")},set:function(t){this.setPropertyValue("maxZoomFactor",t)&&(1==t&&(this.maxZoomDeclination=0),this.invalidateDataRange())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomDeclination",{get:function(){return this.getPropertyValue("maxZoomDeclination")},set:function(t){this.setPropertyValue("maxZoomDeclination",t)&&this.invalidateDataRange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return S_(this._startIndex)||(this._startIndex=0),this._startIndex},set:function(t){this._startIndex=L_(Math.round(t),0,this.dataItems.length),this.start=this.indexToPosition(this._startIndex)},enumerable:!0,configurable:!0}),e.prototype.indexToPosition=function(t){return t/this.dataItems.length},Object.defineProperty(e.prototype,"endIndex",{get:function(){var t=this.dataItems.length;return(!S_(this._endIndex)||this._endIndex>t)&&(this._endIndex=t),this._endIndex},set:function(t){this._endIndex=L_(Math.round(t),0,this.dataItems.length),this.end=this.indexToPosition(this._endIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._adapterO?this._adapterO.apply("start",this._start):this._start},set:function(t){if(this._start!=t){this._start=t;var e=Math.max(0,Math.floor(this.dataItems.length*t)||0);this._startIndex=Math.min(e,this.dataItems.length),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("startchanged"),this.dispatch("startendchanged")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._adapterO?this._adapterO.apply("end",this._end):this._end},set:function(t){this._end!=t&&(this._end=t,this._endIndex=Math.min(this.dataItems.length,Math.ceil(this.dataItems.length*t)||0),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("endchanged"),this.dispatch("startendchanged"))},enumerable:!0,configurable:!0}),e.prototype.removeFromInvalids=function(){t.prototype.removeFromInvalids.call(this),ex.removeFromInvalidComponents(this),sw(ex.invalidDataItems,this),sw(ex.invalidDataRange,this),sw(ex.invalidRawDatas,this)},Object.defineProperty(e.prototype,"dataItems",{get:function(){if(""!=this._currentDataSetId){var t=this.dataSets.getKey(this._currentDataSetId);if(t)return t}return this._dataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSets",{get:function(){return this._dataSets||(this._dataSets=new $w),this._dataSets},enumerable:!0,configurable:!0}),e.prototype.setDataSet=function(t){if(this._currentDataSetId!=t){if(this.dataSets.getKey(t))return this.dataItems.each((function(t){t.__disabled=!0})),this._currentDataSetId=t,this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each((function(t){t.__disabled=!1})),!0;if(""!=this._currentDataSetId)return this.dataItems.each((function(t){t.__disabled=!0})),this._currentDataSetId="",this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each((function(t){t.__disabled=!1})),!0}return!1},Object.defineProperty(e.prototype,"currentDataSetId",{get:function(){return this._currentDataSetId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mainDataSet",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),e.prototype._updateDataItemIndexes=function(t){for(var e=this.mainDataSet.values,i=e.length,n=t;n<i;++n)e[n]._index=n},e.prototype.handleDataItemAdded=function(t){t.newValue.component=this,this._updateDataItemIndexes(t.index),this.dataItemsInvalid||this.invalidateDataItems()},e.prototype.handleDataItemRemoved=function(t){this._updateDataItemIndexes(t.index),this.dataItemsInvalid||this.invalidateDataItems()},e.prototype.bindDataField=function(t,e){this.dataFields[t]=e,this.invalidateDataRange()},e.prototype.invalidateProcessedData=function(){this.resetProcessedRange(),this.invalidateDataRange()},e.prototype.resetProcessedRange=function(){this._prevEndIndex=null,this._prevStartIndex=null},Object.defineProperty(e.prototype,"dataUsers",{get:function(){var t=this;return this._dataUsers||(this._dataUsers=new ax,this._disposers.push(new mw((function(){Ww(t._dataUsers.iterator(),(function(t){t.dispose()}))})))),this._dataUsers},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e.dataFields=Ox(this.dataFields,{}),e},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.data=e.data,this.sequencedInterpolation=e.sequencedInterpolation,this.sequencedInterpolationDelay=e.sequencedInterpolationDelay,this.interpolationDuration=e.interpolationDuration,this.interpolationEasing=e.interpolationEasing},e.prototype.reinit=function(){this._inited=!1,this.deepInvalidate()},e.prototype.getExporting=function(){var e=t.prototype.getExporting.call(this);return e.adapter.has("data",this._exportData,-1,this)||(e.adapter.add("data",this._exportData,-1,this),this.events.on("datavalidated",(function(t){e.menu&&e.menu.invalidate(),e.handleDataUpdated()}))),e},e.prototype._exportData=function(t){return t.data=this.data,t},e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return i&&this.invalidateData(),i},e.prototype.setShowOnInit=function(e){e!=this.getPropertyValue("showOnInit")&&(!e||this.inited||this.hidden?this._showOnInitDisposer2&&this.removeDispose(this._showOnInitDisposer2):(this._showOnInitDisposer2=this.events.once("dataitemsvalidated",this.hideInitially,this,!1),this._disposers.push(this._showOnInitDisposer2))),t.prototype.setShowOnInit.call(this,e)},e.prototype.setBaseId=function(e){e!=this._baseId&&this.dataInvalid&&(this.dataInvalid=!1,ex.removeFromInvalidComponents(this),this._baseId=e,this.invalidateData()),t.prototype.setBaseId.call(this,e)},Object.defineProperty(e.prototype,"minZoomCount",{get:function(){return this.getPropertyValue("minZoomCount")},set:function(t){this.setPropertyValue("minZoomCount",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomCount",{get:function(){return this.getPropertyValue("maxZoomCount")},set:function(t){this.setPropertyValue("maxZoomCount",t)},enumerable:!0,configurable:!0}),e.prototype._systemCheckIfValidate=function(){return!(this.dataInvalid||this.dataProvider&&this.dataProvider.dataInvalid)},e.prototype.asFunction=function(e){return"interpolationEasing"==e||"rangeChangeEasing"==e||t.prototype.asIs.call(this,e)},e}(WP);ex.registeredClasses.Component=ik;var nk=function(t){function e(){var e=t.call(this)||this;return e.isOversized=!1,e.className="Label",e.fill=(new ZC).getFor("text"),e.wrap=!1,e.truncate=!1,e.fullWords=!0,e.ellipsis="\u2026",e.textAlign="start",e.textValign="top",e.layout="absolute",e.baseLineRatio=-.27,e._positionPrecision=1,e.events.on("maxsizechanged",(function(){e.inited&&e.handleMaxSize()}),e,!1),e.events.once("validated",e.handleValidate,e,!1),e.applyTheme(),e}return s_(e,t),e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.validatePosition()},e.prototype.setPaper=function(e){var i=t.prototype.setPaper.call(this,e);return i&&this.hardInvalidate(),i},e.prototype.handleValidate=function(){!this.currentText&&!this.text||0!=this.bbox.width&&0!=this.bbox.height||ex.events.once("exitframe",this.hardInvalidate,this)},e.prototype.handleMaxSize=function(){this.bbox.width>this.availableWidth||this.bbox.width<this.availableWidth&&(this.isOversized||this.truncate)||this.bbox.height>this.availableHeight||this.bbox.height<this.availableHeight&&this.isOversized?this.invalidate():this.alignSVGText()},e.prototype.arrange=function(){},e.prototype.updateCurrentText=function(){var t,e;Ix(this.html)&&this.paper.supportsForeignObject()?(t="html",e=this.html):(t="svg",e=this.text),O_(e)&&(e=e.toString()),w_(e)&&""!==e&&(e=this.populateString(e,this.dataItem)),"html"==t?this._adapterO&&(e=this._adapterO.apply("htmlOutput",e)):this._adapterO&&(e=this._adapterO.apply("textOutput",e));var i=e!=this.currentText||t!=this._currentFormat;return this.currentText=e,this._currentFormat=t,i},e.prototype.hardInvalidate=function(){this._prevStatus="",this.invalidate()},e.prototype.getLineBBox=function(t){var e=t&&t.element,i=e&&e.node;i&&i.parentNode&&(t.bbox=e.getBBox())},e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.bbox.width,i=this.bbox.height,n=this.topParent;if(!n||n.maxWidth&&n.maxHeight){var r=N_(this.availableWidth-this.pixelPaddingLeft-this.pixelPaddingRight,0),o=N_(this.availableHeight-this.pixelPaddingTop-this.pixelPaddingBottom,0),a=o+","+r+this.wrap+this.truncate+this.fullWords+this.rtl+this.ellipsis;if(this.updateCurrentText()||!this.inited||this._prevStatus!=a){this._measuredWidth=0,this._measuredHeight=0,this.isOversized=!1;var s=this._currentFormat,u=this.currentText;if(w_(u)&&""!=u){var l=u.split("\n");this._prevStatus=a,this.textAlign=this.textAlign;var h=this.group.getAttr("display");if("none"==h&&this.group.removeAttr("display"),this.textPathElement&&this.textPathElement.removeChildren(),"svg"===s){this.element.removeAttr("display");var c=this.element;this.resetBBox();for(var p=0,d="",f=0;f<l.length;f++){var g=l[f];if(""!=g){var y=SP().chunk(g,null,this.ignoreFormatting),v=0,m=!0,b=!1,_=this.getLineInfo(f);_?(_.text="",_.element.textContent=""):(_={text:"",element:this.getSVGLineElement("",0),complex:!1},c.add(_.element)),_.element.removeAttr("display"),_.element.removeChildren(),this.textPathElement&&_.element.add(this.textPathElement);for(var w=0;w<y.length;w++){w&&(_.complex=!0);var x=y[w];if("format"===x.type)d=x.text;else{if(b)continue;_.text=x.text,_.style=SP().translateStyleShortcuts(d);var C=this.getSvgElement(_.text,_.style);if(this.textPathElement?this.textPathElement.add(C):_.element.add(C),this.getLineBBox(_),_.bbox.width=Math.ceil(_.bbox.width),v<_.bbox.height&&(v=_.bbox.height),(this.wrap||this.truncate)&&_.bbox.width>r){this.isOversized=!0;var P=_.element.textContent,k=_.bbox.width/P.length,S=B_(Math.ceil((_.bbox.width-r)/k),P.length);if(this.truncate){var O=!1,D=_.element.node;if(D&&D.childNodes)for(var T=_.element.node.childNodes.length-1;T>=0;T--){var E=_.element.node.childNodes[T];if(O&&_.bbox.width<=r&&(E.textContent+=" "+this.ellipsis,_.bbox=_.element.getBBox(),_.bbox.width=Math.floor(_.bbox.width),_.bbox.width<=r))break;O=!1;var I=E.textContent;for(P=_.element.textContent,S=B_(Math.ceil((_.bbox.width-r)/k),P.length);_.bbox.width>r&&S<=P.length&&S>0;)(M=N_(P.length-S-this.ellipsis.length,1))<=1&&(S=0,T>0&&(O=!0,_.element.node.removeChild(E))),(I=Lx(I,M,this.ellipsis,this.fullWords,this.rtl)).length>M&&this.fullWords&&(I=Lx(I,M,this.ellipsis,!1,this.rtl)),E.textContent=I,_.bbox=_.element.getBBox(),_.bbox.width=Math.floor(_.bbox.width),S=Math.ceil(1.1*S);b=!0}}else if(_.element.node){for(var A=_.element.node.lastChild,F=void 0;_.bbox.width>r&&S<=P.length&&S>0;){var M=N_(x.text.length-S,1);m?F=jx(x.text,M,!0,this.rtl):((F=jx(x.text,M,!0,this.rtl))[0].length>M||1===M)&&(_.element.node.removeChild(A),S=0),S>0&&(A.textContent=SP().cleanUp(Vx(F.shift()))),_.bbox=_.element.getBBox(),_.bbox.width=Math.floor(_.bbox.width),S=Math.ceil(1.1*S)}if(F.length>0){var j="";w_(F)&&(this.rtl?j+=F.join("")+d:j+=d+F.join("").replace(/([\[\]]{1})/g,"$1$1"));for(var L=w+1;L<y.length;L++)"value"==y[L].type?j+=y[L].text.replace(/([\[\]]{1})/g,"$1$1"):j+=y[L].text;l.splice(f+1,0,j)}b=!0}}this.bbox.width<_.bbox.width&&(this.bbox.width=_.bbox.width),this.bbox.height=p+v,this.textPathElement?_.element.attr({dy:-this.paddingBottom.toString()}):_.element.attr({x:"0",y:p+v,dy:M_(this.baseLineRatio*v,3).toString()}),m=!1}}var V=_.element.node;V&&(A=V.lastChild)&&(A.textContent=this.rtl?A.textContent.replace(/^[\s\uFEFF\xA0]+/g,""):A.textContent.replace(/[\s\uFEFF\xA0]+$/g,"")),p+=v,this.addLineInfo(_,f)}else{var R=this.getSVGLineElement("",0);R.add(this.getSvgElement(".",SP().translateStyleShortcuts(d))),c.add(R);var N=Math.ceil(R.getBBox().height);N>0&&(p+=N),c.removeElement(R);var B=this.getLineInfo(f);B&&(B.text="",B.element.textContent="")}}this.maybeHideOversized(),this.measureFailed=!1,0!=this.bbox.width&&0!=this.bbox.height||(this.measureFailed=!0),this._measuredWidth=M_(N_(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight)),this._measuredHeight=M_(N_(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom)),this.alignSVGText(),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,i==this._measuredHeight&&e==this._measuredWidth||this.dispatch("transformed"),this.hideUnused(l.length)}else{this.element.removeAttr("display"),this.resetBBox(),(c=this.element).removeChildren();var H=this.paper.foreignObject();c.add(H),this.maxWidth&&H.attr({width:this.maxWidth}),this.maxHeight&&H.attr({height:this.maxHeight});var z=this.getHTMLLineElement(u);H.node.appendChild(z),z.style.display="inline-block";var U=z.clientWidth,W=z.clientHeight;z.style.display="block",this._bbox={x:0,y:0,width:U,height:W},H.attr({width:U,height:W}),this.maybeHideOversized(),this._measuredWidth=N_(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=N_(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,this.truncate&&(z.style.overflow="hidden"),(U>r||W>o)&&(this.isOversized=!0)}this.setStyles(),this.updateCenter(),this.updateBackground(),"none"==h&&this.group.attr({display:"none"}),this.pathElement&&this.paper.appendDef(this.pathElement)}else this.element.attr({display:"none"})}}else n.events.once("maxsizechanged",this.hardInvalidate,this,!1)},e.prototype.maybeHideOversized=function(){this.hideOversized&&(this.availableWidth<this.bbox.width||this.availableHeight<this.bbox.height?(this.element.attr({display:"none"}),this.isOversized=!0):(this.element.removeAttr("display"),this.isOversized=!1))},e.prototype.alignSVGText=function(){var t=this.element,e=t.node.children||t.node.childNodes;if(e&&(!e||0!=e.length)){var i=this._measuredWidth,n=this._measuredHeight;this.pixelPaddingLeft,this.pixelPaddingRight,this.pixelPaddingTop,this.pixelPaddingBottom;for(var r=e.length-1;r>=0;r--){var o=e[r];if(o.setAttribute("text-anchor",this.textAlign),this.textPathElement)o.removeAttribute("x"),o.removeAttribute("y");else{switch(this.textAlign){case"middle":o.setAttribute("x",(i/2).toString()+"px");break;case"end":this.rtl||o.setAttribute("x",i.toString());break;default:this.rtl?o.setAttribute("x",i.toString()):o.removeAttribute("text-anchor")}var a=b_(o.getAttribute("y"));switch(this.textValign){case"middle":o.setAttribute("y",((a||0)+(n-this.bbox.height)/2).toString());break;case"bottom":o.setAttribute("y",((a||0)+n-this.bbox.height).toString());break;default:o.setAttribute("y",(a||0).toString())}}}}},e.prototype.getSVGLineElement=function(t,e){var i=this.paper.addGroup("text");return i.textContent=t,i.attr({x:"0"}),w_(e)&&i.attr({y:e.toString()}),(this.truncate||this.wrap)&&i.attr({overflow:"hidden"}),this.rtl&&i.attr({direction:"rtl"}),i},e.prototype.resetBBox=function(){this._bbox={x:0,y:0,width:0,height:0}},e.prototype.getHTMLLineElement=function(t){var e=document.createElement("div");switch(e.innerHTML=t,this.textAlign){case"middle":e.style.textAlign="center";break;case"end":e.style.textAlign="right"}return this.wrap?e.style.wordWrap="break-word":e.style.whiteSpace="nowrap",this.rtl&&(e.style.direction="rtl"),w_(this.fill)&&(e.style.color=this.fill.toString()),e},e.prototype.setStyles=function(){var t=this.element;!this.selectable||this.draggable||this.resizable||this.swipeable?t.addStyle({webkitUserSelect:"none",msUserSelect:"none"}):this.selectable&&(t.removeStyle("webkitUserSelect"),t.removeStyle("msUserSelect"))},e.prototype.hideUnused=function(t){this.initLineCache();var e=this.getCache("lineInfo");if(e.length>=t)for(var i=t;i<e.length;i++){var n=e[i];n&&n.element&&n.element.attr({display:"none"})}},Object.defineProperty(e.prototype,"text",{get:function(){return this.getPropertyValue("text")},set:function(t){this.setPropertyValue("text",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(t){this.setPropertyValue("path",t,!0)&&(this.pathElement&&this.pathElement.dispose(),this.textPathElement&&this.textPathElement.dispose(),this.pathElement=this.paper.add("path"),this.pathElement.attr({d:t}),this.pathElement.attr({id:"text-path-"+this.uid}),this._disposers.push(this.pathElement),this.textPathElement=this.paper.addGroup("textPath"),this.textPathElement.attrNS(FC,"xlink:href","#text-path-"+this.uid),this.textPathElement.attr({path:t}),this._disposers.push(this.textPathElement),this.hardInvalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationOnPath",{get:function(){return this.getPropertyValue("locationOnPath")},set:function(t){this.setPropertyValue("locationOnPath",t),this.textPathElement&&this.textPathElement.attr({startOffset:100*t+"%"})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseLineRatio",{get:function(){return this.getPropertyValue("baseLineRatio")},set:function(t){this.setPropertyValue("baseLineRatio",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrap",{get:function(){return this.getPropertyValue("wrap")},set:function(t){this.resetBBox(),this.setPropertyValue("wrap",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"truncate",{get:function(){return this.getPropertyValue("truncate")},set:function(t){this.resetBBox(),this.setPropertyValue("truncate",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWords",{get:function(){return this.getPropertyValue("fullWords")},set:function(t){this.setPropertyValue("fullWords",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ellipsis",{get:function(){return this.getPropertyValue("ellipsis")},set:function(t){this.setPropertyValue("ellipsis",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this.getPropertyValue("selectable")},set:function(t){this.setPropertyValue("selectable",t,!0),this.setStyles()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textAlign",{get:function(){return this.getPropertyValue("textAlign")},set:function(t){this.setPropertyValue("textAlign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textValign",{get:function(){return this.getPropertyValue("textValign")},set:function(t){this.setPropertyValue("textValign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.getPropertyValue("html")},set:function(t){this.setPropertyValue("html",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideOversized",{get:function(){return this.getPropertyValue("hideOversized")},set:function(t){this.setPropertyValue("hideOversized",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreFormatting",{get:function(){return this.getPropertyValue("ignoreFormatting")},set:function(t){this.setPropertyValue("ignoreFormatting",t,!0)},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){},e.prototype.getLineInfo=function(t){this.initLineCache();var e=this.getCache("lineInfo");return e.length>t?e[t]:void 0},e.prototype.addLineInfo=function(t,e){this.initLineCache(),this.getCache("lineInfo")[e]=t},e.prototype.initLineCache=function(){w_(this.getCache("lineInfo"))||this.setCache("lineInfo",[],0)},e.prototype.setDataItem=function(e){this._sourceDataItemEvents&&this._sourceDataItemEvents.dispose(),e&&(this._sourceDataItemEvents=new bw([e.events.on("valuechanged",this.invalidate,this,!1),e.events.on("workingvaluechanged",this.invalidate,this,!1),e.events.on("calculatedvaluechanged",this.invalidate,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),t.prototype.setDataItem.call(this,e)},Object.defineProperty(e.prototype,"availableWidth",{get:function(){return w_(this.maxWidth)?this.maxWidth:this.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"availableHeight",{get:function(){return w_(this.maxHeight)?this.maxHeight:this.pixelHeight},enumerable:!0,configurable:!0}),e.prototype.getSvgElement=function(t,e){var i=this.paper.add("tspan");return i.textContent=t,e&&i.node.setAttribute("style",e),i},e.prototype.deepInvalidate=function(){t.prototype.deepInvalidate.call(this),this.hardInvalidate()},Object.defineProperty(e.prototype,"readerTitle",{get:function(){var t=this.getPropertyValue("readerTitle");return t||(t=this.populateString(zx(Ix(this.html)?this.html:this.text))),t},set:function(t){t=__(t),this.setPropertyValue("readerTitle",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),e}(WP);ex.registeredClasses.Label=nk,JP.push({relevant:tk.heightXS,state:function(t,e){if(t instanceof nk&&t.parent&&t.parent.isBaseSprite){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var rk=function(t){function e(){var e=t.call(this)||this;return e.className="RoundedRectangle",e.element=e.paper.add("path"),e.cornerRadius(3,3,3,3),e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight;if(S_(e)&&S_(i)){var n=B_(e,i)/2,r=Ax(this.cornerRadiusTopLeft,n),o=Ax(this.cornerRadiusTopRight,n),a=Ax(this.cornerRadiusBottomRight,n),s=Ax(this.cornerRadiusBottomLeft,n),u=B_(Math.abs(e/2),Math.abs(i/2)),l=L_(r,0,u),h=L_(o,0,u),c=L_(a,0,u),p=L_(s,0,u),d="M"+l+",0 L"+(e-h)+",0 a"+h+","+h+" 0 0 1 "+h+","+h+" L"+e+","+(i-c)+" a"+c+","+c+" 0 0 1 -"+c+","+c+" L"+p+","+i+" a"+p+","+p+" 0 0 1 -"+p+",-"+p+" L0,"+l+" a"+l+","+l+" 0 0 1 "+l+",-"+l+" Z";this.path=d}},e.prototype.cornerRadius=function(t,e,i,n){this.cornerRadiusTopLeft=t,this.cornerRadiusTopRight=e,this.cornerRadiusBottomLeft=i,this.cornerRadiusBottomRight=n},Object.defineProperty(e.prototype,"cornerRadiusTopLeft",{get:function(){return this.getPropertyValue("cornerRadiusTopLeft")},set:function(t){this.setPercentProperty("cornerRadiusTopLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusTopRight",{get:function(){return this.getPropertyValue("cornerRadiusTopRight")},set:function(t){this.setPercentProperty("cornerRadiusTopRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusBottomRight",{get:function(){return this.getPropertyValue("cornerRadiusBottomRight")},set:function(t){this.setPercentProperty("cornerRadiusBottomRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusBottomLeft",{get:function(){return this.getPropertyValue("cornerRadiusBottomLeft")},set:function(t){this.setPercentProperty("cornerRadiusBottomLeft",t,!0)},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),e}(zP);ex.registeredClasses.RoundedRectangle=rk;var ok=function(t){function e(){var e=t.call(this)||this;e.className="Button",e.tooltipY=0,e.iconPosition="left",e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0;var i=new ZC,n=e.background;n.fill=i.getFor("secondaryButton"),n.stroke=i.getFor("secondaryButtonStroke"),n.fillOpacity=1,n.strokeOpacity=1,n.cornerRadius(3,3,3,3),e.label=new nk,e.label.fill=i.getFor("secondaryButtonText"),e.label.shouldClone=!1;var r=n.states.create("hover");r.properties.fillOpacity=1,r.properties.fill=i.getFor("secondaryButtonHover");var o=n.states.create("down");return o.transitionDuration=100,o.properties.fill=i.getFor("secondaryButtonDown"),o.properties.fillOpacity=1,e.role="button",e.focusable=!0,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"icon",{get:function(){return this._icon},set:function(t){var e=this._icon;e&&(e.parent=void 0),t&&(this._icon=t,t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this.iconPosition=this.iconPosition,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconPosition",{get:function(){return this.getPropertyValue("iconPosition")},set:function(t){this.setPropertyValue("iconPosition",t),this.icon&&("left"==t?this.icon.toBack():this.icon.toFront())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(t){this._label&&this.removeDispose(this._label),this._label=t,t&&(t.parent=this,t.interactionsEnabled=!1,this._disposers.push(this._label))},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new rk},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e.label&&this.label.copyFrom(e.label),e.icon&&(this.icon=e.icon.clone())},e}(WP);ex.registeredClasses.Button=ok;var ak=function(t){function e(){var e=t.call(this)||this;return e.className="Circle",e.element=e.paper.add("circle"),e.setPercentProperty("radius",f_(100)),e.setPropertyValue("horizontalCenter","middle"),e.setPropertyValue("verticalCenter","middle"),e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.element.attr({r:this.pixelRadius})},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return Ax(this.radius,B_(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){var t=this.pixelRadius;this._bbox={x:-t,y:-t,width:2*t,height:2*t}},e}(zP);ex.registeredClasses.Circle=ak;var sk=function(t){function e(){var e=t.call(this)||this;return e.className="Ellipse",e.element=e.paper.add("ellipse"),e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.element.attr({rx:this.radius}),this.element.attr({ry:this.radiusY})},Object.defineProperty(e.prototype,"radiusY",{get:function(){return this.innerHeight/2},set:function(t){this.height=2*t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.innerWidth/2},set:function(t){this.width=2*t,this.invalidate()},enumerable:!0,configurable:!0}),e}(ak);ex.registeredClasses.Ellipse=sk;var uk=function(t){function e(){var e=t.call(this)||this;return e.className="Image",e.element=e.paper.add("image"),e.applyTheme(),e.width=50,e.height=50,e}return s_(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),this.href){var e=this.innerWidth,i=this.innerHeight;S_(this.widthRatio)&&(e=i*this.widthRatio,this.width=e),S_(this.heightRatio)&&(i=e*this.heightRatio,this.height=i),this.element.attr({width:e,height:i}),this.element.attrNS(FC,"xlink:href",this.href)}},Object.defineProperty(e.prototype,"href",{get:function(){return this.getPropertyValue("href")},set:function(t){this.setPropertyValue("href",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widthRatio",{get:function(){return this.getPropertyValue("widthRatio")},set:function(t){this.setPropertyValue("widthRatio",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"heightRatio",{get:function(){return this.getPropertyValue("heightRatio")},set:function(t){this.setPropertyValue("heightRatio",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bbox",{get:function(){return{x:0,y:0,width:this.pixelWidth,height:this.pixelHeight}},enumerable:!0,configurable:!0}),e}(zP);ex.registeredClasses.Image=uk;var lk=function(t){function e(){var e=t.call(this)||this;return e.className="Line",e.element=e.paper.add("line"),e.fill=Cx(),e.x1=0,e.y1=0,e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.x1==this.x2||this.y1==this.y2?this.pixelPerfect=!0:this.pixelPerfect=!1,this.x1=this.x1,this.x2=this.x2,this.y1=this.y1,this.y2=this.y2},Object.defineProperty(e.prototype,"x1",{get:function(){return this.getPropertyValue("x1")},set:function(t){S_(t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof bP&&(e=1e-5),this.setPropertyValue("x1",t,!0),this.element.attr({x1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x2",{get:function(){var t=this.getPropertyValue("x2");return S_(t)||(t=this.pixelWidth),t},set:function(t){S_(t)||(t=0),this.setPropertyValue("x2",t,!0),this.element.attr({x2:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this.getPropertyValue("y1")},set:function(t){S_(t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof bP&&(e=1e-5),this.setPropertyValue("y1",t,!0),this.element.attr({y1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y2",{get:function(){var t=this.getPropertyValue("y2");return S_(t)||(t=this.pixelHeight),t},set:function(t){S_(t)||(t=0),this.setPropertyValue("y2",t,!0),this.element.attr({y2:t})},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},i={x:this.x2,y:this.y2},n=G_(e,i,t),r=K_(e,i);return{x:n.x,y:n.y,angle:r}},e}(zP);ex.registeredClasses.Line=lk;var hk=function(t){function e(){var e=t.call(this)||this;return e.className="PointedRectangle",e.element=e.paper.add("path"),e.cornerRadius=6,e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.cornerRadius,i=this.innerWidth,n=this.innerHeight;if(i>0&&n>0){var r,o,a=this.pointerX,s=this.pointerY,u=this.pointerBaseWidth/2,l=B_(i/2,n/2),h=L_(e,0,l),c=L_(e,0,l),p=L_(e,0,l),d=L_(e,0,l),f=void 0,g=void 0,y=void 0,v=void 0,m=(a-0)*(n-0)-(s-0)*(i-0),b=(a-0)*(0-n)-(s-n)*(i-0);f=m>0&&b>0?"M"+h+",0 L"+((r=L_(a,h+u,i-u-c))-u)+",0 L"+a+","+(s=L_(s,-1/0,0))+" L"+(r+u)+",0 L"+(i-c)+",0":"M"+h+",0 L"+(i-c)+",0",y=m<0&&b<0?" L"+(i-p)+","+n+" L"+((r=L_(a,d+u,i-u-p))+u)+","+n+" L"+a+","+(s=L_(s,n,1/0))+" L"+(r-u)+","+n+" L"+d+","+n:" L"+d+","+n,v=m<0&&b>0?" L0,"+(n-d)+" L0,"+((o=L_(s,h+u,n-d-u))+u)+" L"+(a=L_(a,-1/0,0))+","+s+" L0,"+(o-u)+" L0,"+h:" L0,"+h,g=m>0&&b<0?" L"+i+","+c+" L"+i+","+((o=L_(s,c+u,n-u-p))-u)+" L"+(a=L_(a,i,1/0))+","+s+" L"+i+","+(o+u)+" L"+i+","+(n-p):" L"+i+","+(n-p);var _=" a"+c+","+c+" 0 0 1 "+c+","+c,w=" a"+p+","+p+" 0 0 1 -"+p+","+p,x=" a"+d+","+d+" 0 0 1 -"+d+",-"+d,C=" a"+h+","+h+" 0 0 1 "+h+",-"+h;this.path=f+_+g+w+y+x+v+C}},Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),e}(function(t){function e(){var e=t.call(this)||this;return e.className="PointedShape",e.pointerBaseWidth=15,e.pointerLength=10,e.pointerY=0,e.pointerX=0,e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),S_(this.pointerX)||(this.pointerX=this.pixelWidth/2),S_(this.pointerY)||(this.pointerY=this.pixelHeight+10)},Object.defineProperty(e.prototype,"pointerBaseWidth",{get:function(){return this.getPropertyValue("pointerBaseWidth")},set:function(t){this.setPropertyValue("pointerBaseWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerLength",{get:function(){return this.getPropertyValue("pointerLength")},set:function(t){this.setPropertyValue("pointerLength",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerX",{get:function(){return this.getPropertyValue("pointerX")},set:function(t){this.setPropertyValue("pointerX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerY",{get:function(){return this.getPropertyValue("pointerY")},set:function(t){this.setPropertyValue("pointerY",t,!0)},enumerable:!0,configurable:!0}),e}(zP));function ck(t){return" M"+M_(t.x,4)+","+M_(t.y,4)+" "}function pk(t){return" L"+M_(t.x,4)+","+M_(t.y,4)+" "}function dk(t,e,i){return" C"+M_(e.x,4)+","+M_(e.y,4)+" "+M_(i.x,4)+","+M_(i.y,4)+" "+M_(t.x,4)+","+M_(t.y,4)}function fk(t,e,i,n){if(0==e)return"";S_(n)||(n=i);var r="",o=",",a=Math.ceil(Math.abs(e)/180),s=1;e<0&&(s=0);var u=0,l=0,h=-R_(t)*i,c=-V_(t)*n;if(e<.5&&i>3e3)return pk({x:f=M_(R_(d=t+e)*i,4),y:g=M_(V_(d)*n,4)});for(var p=0;p<a;p++){var d,f,g;r+=" a"+i+o+n+o+0+o+0+o+s+o+(f=M_(R_(d=t+e/a*(p+1))*i+h-u,4))+o+(g=M_(V_(d)*n+c-l,4)),u=f,l=g}return r}function gk(t,e,i,n,r,o){if(0==e)return"";var a=",";return" A"+e+a+i+a+(o=o||0)+a+ +(r=Boolean(r))+a+ +(n=Boolean(n))+a+M_(t.x,4)+a+M_(t.y,4)}function yk(t,e){var i=",",n=" L";return e?"M"+t.x+i+t.y+n+t.x+i+(t.y+t.height)+n+(t.x+t.width)+i+(t.y+t.height)+n+(t.x+t.width)+i+t.y+n+t.x+i+t.y:"M"+t.x+i+t.y+n+(t.x+t.width)+i+t.y+n+(t.x+t.width)+i+(t.y+t.height)+n+t.x+i+(t.y+t.height)+n+t.x+i+t.y}var vk=function(t){function e(){var e=t.call(this)||this;return e._distance=0,e.className="Polyline",e.element=e.paper.add("path"),e.shapeRendering="auto",e.fill=Cx(),e.strokeOpacity=1,e.applyTheme(),e}return s_(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments;if(t&&t.length>0){for(var e="",i=0,n=t.length;i<n;i++){var r=t[i];if(r.length>0){e+=ck(r[0]);for(var o=1;o<r.length;o++){var a=r[o];e+=pk(a),this._distance+=z_(r[o-1],a)}}}this.path=e}this._realSegments=t},Object.defineProperty(e.prototype,"segments",{get:function(){return this.getPropertyValue("segments")},set:function(t){this.setPropertyValue("segments",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e=0;t<0&&(t=Math.abs(t),e=180);var i=this._realSegments;if(i){for(var n=this.distance,r=0,o=0,a=0,s=void 0,u=void 0,l=0;l<i.length;l++){var h=i[l];if(h.length>1){for(var c=1;c<h.length;c++)if(o=r/n,a=(r+=z_(s=h[c-1],u=h[c]))/n,o<=t&&a>t){l=i.length;break}}else 1==h.length&&(s=h[0],u=h[0],o=0,a=1)}if(s&&u){var p=G_(s,u,(t-o)/(a-o));return{x:p.x,y:p.y,angle:e+K_(s,u)}}}return{x:0,y:0,angle:0}},Object.defineProperty(e.prototype,"realSegments",{get:function(){return this._realSegments},enumerable:!0,configurable:!0}),e}(zP);ex.registeredClasses.Polyline=vk;var mk=function(t){function e(){var e=t.call(this)||this;return e.className="Polyarc",e.controlPointDistance=.5,e.controlPointPosition=.5,e.applyTheme(),e}return s_(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments;if(t&&t.length>0){var e="";this._realSegments=[];for(var i=0,n=t.length;i<n;i++){var r=t[i],o=[];if(this._realSegments.push(o),r.length>0){e+=ck(r[0]);for(var a=1;a<r.length;a++){var s=r[a-1],u=r[a],l=z_(u,s),h=l*this.controlPointDistance,c=this.controlPointPosition,p=-K_(s,u),d={x:s.x+(u.x-s.x)*c*.5-h*V_(p),y:s.y+(u.y-s.y)*c*.5-h*R_(p)},f={x:s.x+(u.x-s.x)*c*1.5-h*V_(p),y:s.y+(u.y-s.y)*c*1.5-h*R_(p)};e+=dk(u,d,f);var g=Math.ceil(l),y=s;if(g>0)for(var v=0;v<=g;v++){var m=X_(s,u,d,f,v/g);o.push(m),this._distance+=z_(y,m),y=m}else o.push(s)}}}this.path=e}},Object.defineProperty(e.prototype,"controlPointPosition",{get:function(){return this.getPropertyValue("controlPointPosition")},set:function(t){this.setPropertyValue("controlPointPosition",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(t){this.setPropertyValue("controlPointDistance",t),this.makePath()},enumerable:!0,configurable:!0}),e}(vk);ex.registeredClasses.Polyarc=mk;var bk=function(t){function e(e){var i=t.call(this)||this;return i._bboxes=[],i.morphDuration=800,i.morphEasing=yC,i.morphToSingle=!0,i.scaleRatio=1,i.className="Morpher",i.morphable=e,i.applyTheme(),i}return s_(e,t),e.prototype.morphToPolygon=function(t,e,i){var n=this.morphable.currentPoints;if(n&&t){this.sortPoints(n),this.sortPoints(t),this._morphFromPointsReal=[],this._morphToPointsReal=[],w_(e)||(e=this.morphDuration),w_(i)||(i=this.morphEasing),this._morphFromPointsReal=this.normalizePoints(t,n),this._morphToPointsReal=this.normalizePoints(n,t),this.morphable.currentPoints=this._morphFromPointsReal;var r=new EC(this,{property:"morphProgress",from:0,to:1},e,i);return this._disposers.push(r),r.start(),r}},e.prototype.normalizePoints=function(t,e){for(var i=0,n=t.length;i<n;i++){var r=t[i][0],o=t[i][1],a=x_(Y_(r)),s=a.x+a.width,u=a.y+a.height;if(e[i]||(e[i]=[]),r&&!e[i][0]&&(e[i][0]=[{x:s,y:u},{x:s,y:u}]),e[i][0]){e[i][0]=this.addPoints(e[i][0],r.length);for(var l=1/0,h=0,c=0;c<e[i][0].length;c++){var p=z_(e[i][0][c],r[0]);p<l&&(h=c,l=p)}var d=e[i][0].slice(0,h),f=e[i][0].slice(h);e[i][0]=f.concat(d)}o&&(e[i][1]||(e[i][1]=[{x:s,y:u},{x:s,y:u}]),e[i][1]=this.addPoints(e[i][1],o.length))}return e},e.prototype.sortPoints=function(t){t.sort((function(t,e){var i=x_(Y_(t[0])),n=x_(Y_(e[0]));return i.width*i.height>n.width*n.height?-1:1}));for(var e=[],i=0,n=t.length;i<n;i++){var r=t[i][0];r&&e.push(x_(Y_(r)))}return q_(e)},e.prototype.morphToCircle=function(t,e,i){var n=this.morphable.points,r=this.sortPoints(n);this._morphFromPointsReal=[],this._morphToPointsReal=[],w_(e)||(e=this.morphDuration),w_(i)||(i=this.morphEasing);for(var o=0,a=n.length;o<a;o++){var s=n[o][0],u=n[o][1];if(this._morphFromPointsReal[o]=[],this._morphToPointsReal[o]=[],s){var l=s,h=s,c=x_(Y_(h));this.morphToSingle&&(c=x_(r));var p=c.x+c.width/2,d=c.y+c.height/2,f=t;S_(f)||(f=Math.min(c.width/2,c.height/2)),l=[];var g=K_({x:p,y:d},s[0]),y=100;s.length>y&&(y=s.length);for(var v=360/((y=(h=this.addPoints(s,y)).length)-1),m=0;m<y;m++){var b=v*m+g,_={x:p+f*R_(b),y:d+f*V_(b)};l[m]=_}if(u&&u.length>0)for(var w=0,x=u.length;w<x;w++)l.push({x:p,y:d});this._morphFromPointsReal[o][0]=h,this._morphToPointsReal[o][0]=l}}this.morphable.currentPoints=this._morphFromPointsReal;var C=new EC(this,{property:"morphProgress",from:0,to:1},e,i);return this._disposers.push(C),C.start(),C},e.prototype.addPoints=function(t,e){for(var i=Math.round(e/t.length),n=[],r=0,o=t.length;r<o;r++){var a,s=t[r];a=r==t.length-1?t[0]:t[r+1],n.push(s);for(var u=1;u<i;u++){var l=u/i,h={x:s.x+(a.x-s.x)*l,y:s.y+(a.y-s.y)*l};n.push(h)}n.length+t.length-r==e&&(i=0)}if(n.length<e&&t.length>0){var c=t[t.length-1];for(u=n.length;u<e;u++)n.push({x:c.x,y:c.y})}return n},e.prototype.morphToRectangle=function(t,e,i,n){var r=this.morphable.points;this.sortPoints(r),this._morphFromPointsReal=[],this._morphToPointsReal=[],w_(i)||(i=this.morphDuration),w_(n)||(n=this.morphEasing);for(var o=0,a=r.length;o<a;o++){var s=r[o][0],u=r[o][1];if(this._morphFromPointsReal[o]=[],this._morphToPointsReal[o]=[],s){var l=s,h=s,c=this._bboxes[o];this.morphToSingle;var p=c.x,d=c.y,f=t,g=e;if(S_(f)||(f=c.width),S_(g)||(g=c.height),l=[{x:p,y:d},{x:p+f,y:d},{x:p+f,y:d+g},{x:p,y:d+g}],l=this.addPoints(l,s.length),s.length<4)for(var y=s.length;y<4;y++)l.push({x:s[y].x,y:s[y].y});if(u&&u.length>0)for(var v=c.x+c.width/2,m=c.y+c.height/2,b=0,_=u.length;b<_;b++)l.push({x:v,y:m});this._morphFromPointsReal[o][0]=h,this._morphToPointsReal[o][0]=l}}this.morphable.currentPoints=this._morphFromPointsReal;var w=new EC(this,{property:"morphProgress",from:0,to:1},i,n);return this._disposers.push(w),w.start(),w},Object.defineProperty(e.prototype,"morphProgress",{get:function(){return this._morphProgress},set:function(t){this._morphProgress=t;var e=[];if(null!=t){var i=this._morphFromPointsReal,n=this._morphToPointsReal;if(null!=i&&null!=n)for(var r=0,o=i.length;r<o;r++){var a=[];e.push(a);var s=i[r][0],u=i[r][1],l=n[r][0],h=n[r][1];if(s&&s.length>0&&l&&l.length>0){for(var c=[],p=0,d=s.length;p<d;p++){var f=s[p],g=l[p],y={x:f.x+(g.x*this.scaleRatio-f.x)*t,y:f.y+(g.y*this.scaleRatio-f.y)*t};c.push(y)}a[0]=c}if(u&&u.length>0&&h&&h.length>0){for(var v=[],m=0,b=u.length;m<b;m++)f=u[m],g=h[m],y={x:f.x+(g.x*this.scaleRatio-f.x)*t,y:f.y+(g.y*this.scaleRatio-f.y)*t},v.push(y);a[1]=v}}}this.morphable.currentPoints=e},enumerable:!0,configurable:!0}),e.prototype.morphBack=function(t,e){this._morphToPointsReal=this._morphFromPointsReal,this._morphFromPointsReal=this.morphable.currentPoints,w_(t)||(t=this.morphDuration),w_(e)||(e=this.morphEasing);var i=new EC(this,{property:"morphProgress",from:0,to:1},t,e);return this._disposers.push(i),i.start(),i},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new TC(this._animations))),this._animations},enumerable:!0,configurable:!0}),e}(kx),_k=function(t){function e(){var e=t.call(this)||this;return e.className="Polygon",e.element=e.paper.add("path"),e.shapeRendering="auto",e._currentPoints=[],e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"points",{get:function(){var t=this.getPropertyValue("points"),e=this.path;if(e&&(!t||0==t.length)){for(var i=e.slice(1,e.length-1).split("ZM"),n=0;n<i.length;n++){var r=i[n];if(r.length>0){var o=r.split("M"),a=o[0],s=o[1];if(a&&a.length>0){var u=a.split("L");if(u.length>0){var l=[],h=[l];t.push(h);for(var c=0;c<u.length;c++){var p=u[c].split(",");l.push({x:+p[0],y:+p[1]})}if(s&&s.length>0){var d=s.split("L");if(d.length>0){var f=[];for(h.push(f),c=d.length-1;c>=0;c--)p=d[c].split(","),f.push({x:+p[0],y:+p[1]})}}}}}}this.setPropertyValue("points",t),this._currentPoints=t}return t},set:function(t){this.setPropertyValue("points",t,!0),this._currentPoints=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentPoints",{get:function(){return this._currentPoints&&0!=this._currentPoints.length||!this.path||(this._currentPoints=this.points),this._currentPoints},set:function(t){this._currentPoints!=t&&(this._currentPoints=t,this.draw())},enumerable:!0,configurable:!0}),e.prototype.draw=function(){var e,i,n,r,o="",a=this._currentPoints;if(a.length>0){for(var s=0,u=a.length;s<u;s++){var l=a[s][0],h=a[s][1];if(l&&l.length>0){o+=ck(p=l[0]);for(var c=0;c<l.length;c++)o+=pk(p=l[c]),(!S_(i)||i<p.x)&&(i=p.x),(!S_(e)||e>p.x)&&(e=p.x),(!S_(n)||n>p.y)&&(n=p.y),(!S_(r)||r<p.y)&&(r=p.y)}if(h&&h.length>0){var p;o+=ck(p=h[0]);for(var d=0,f=h.length;d<f;d++)o+=pk(p=h[d])}}o&&(o+=" Z"),this.bbox.x=e,this.bbox.y=n,this.bbox.width=i-e,this.bbox.height=r-n,t.prototype.setPath.call(this,o)}},e.prototype.setPath=function(e){return!!t.prototype.setPath.call(this,e)&&(this.points=[],this._bbox=this.group.getBBox(),!0)},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"centerPoint",{get:function(){return{x:this.bbox.x+this.bbox.width/2,y:this.bbox.y+this.bbox.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"morpher",{get:function(){return this._morpher||(this._morpher=new bk(this),this._disposers.push(this._morpher)),this._morpher},enumerable:!0,configurable:!0}),e}(zP);ex.registeredClasses.Polygon=_k;var wk=function(t){function e(){var e=t.call(this)||this;return e.className="Polyspline",e.tensionX=.5,e.tensionY=.5,e.applyTheme(),e}return s_(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments,e=this.tensionX,i=this.tensionY;if(this.allPoints=[],t&&t.length>0){var n="";this._realSegments=[];for(var r=0,o=t.length;r<o;r++){var a=t[r],s=[];if(this._realSegments.push(s),a.length>0){var u=a[0],l=a[a.length-1],h=!1;M_(u.x,3)==M_(l.x)&&M_(u.y)==M_(l.y)&&(h=!0),n+=ck(a[0]);for(var c=0;c<a.length-1;c++){var p=a[c-1],d=a[c],f=a[c+1],g=a[c+2];0===c?p=a[c]:c==a.length-2&&(g=a[c+1]),g||(g=f),0===c?p=h?a[a.length-2]:a[r]:c==a.length-2&&(g=h?a[1]:a[c+1]);var y=Z_(p,d,f,0,e,i),v=Q_(0,d,f,g,e,i);n+=dk(f,y,v);var m=1.2*Math.ceil(U_(d,f,y,v,20)),b=d;if(m>0)for(var _=0;_<=m;_++){var w=X_(d,f,y,v,_/m);if(w.x!=b.x||w.y!=b.y){s.push(w);var x=M_(K_(b,w),5);this._distance+=z_(b,w),this.allPoints[Math.floor(this._distance)]={x:w.x,y:w.y,angle:x},b=w}}else s.push(p)}}var C=this.allPoints;if(C.length>1)for(var P=0;P<C.length;P++)if(!C[P])if(P>1)C[P]=C[P-1];else for(var k=1;k<C.length;k++)if(C[k]){C[P]=C[k];break}}this.path=n}},e.prototype.getClosestPointIndex=function(t){var e,i=this.allPoints,n=1/0;if(i.length>1)for(var r=1;r<i.length;r++){var o=z_(t,i[r]);o<n&&(e=r,n=o)}return e},Object.defineProperty(e.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(t){this.setPropertyValue("tensionX",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(t){this.setPropertyValue("tensionY",t,!0),this.makePath()},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){var i=0,n=this.allPoints,r=n.length;if(S_(t)||(t=0),r>1){if(e&&r>3){if(t<0){t<-.01&&(t=-.01);var o=n[0],a=n[1];return{x:s=o.x-(o.x-a.x)*r*t,y:u=o.y-(o.y-a.y)*r*t,angle:K_(o,a)}}var s,u;if(t>1)return t>1.01&&(t=1.01),o=n[n.length-2],a=n[n.length-3],{x:s=o.x+(o.x-a.x)*r*(t-1),y:u=o.y+(o.y-a.y)*r*(t-1),angle:K_(o,{x:s,y:u})};if(1==t){var l=n[n.length-1];return{x:l.x,y:l.y,angle:l.angle}}}else t<0&&(t=Math.abs(t),i=180),t>=1&&(t=.9999999999999);var h;return{x:(h=n[Math.floor(t*r)]).x,y:h.y,angle:h.angle+i}}return 1==r?{x:(h=n[0]).x,y:h.y,angle:h.angle}:{x:0,y:0,angle:0}},e}(vk);ex.registeredClasses.Polyspline=wk;var xk=function(t){function e(){var e=t.call(this)||this;return e.className="Slice",e.setPropertyValue("cornerRadius",0),e.setPropertyValue("startAngle",0),e.setPercentProperty("innerRadius",0),e.setPercentProperty("radius",0),e.setPropertyValue("arc",0),e.setPropertyValue("shiftRadius",0),e.strokeOpacity=1,e.setPropertyValue("layout","none"),e.slice=e.createChild(zP),e.slice.isMeasured=!1,e._disposers.push(e.slice),e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.radiusY;this.radius>0&&0==e&&(e=.01),this.slice.path=function(t,e,i,n,r,o,a){if(0==e)return"";if(S_(n)||(n=0),0==i&&n<=0)return"";if(i<n){var s=i;i=n,n=s,S_(r)&&(r=r/n*i)}360==(e=B_(e,360))&&(o=0,a=0);var u=t+e,l=V_(B_(e,45)/2),h=(r=S_(r)?r:i)/i*n,c=r/i*(o=o||0),p=r/i*(a=S_(a)?a:o);o=L_(o,0,(i-n)/2),c=L_(c,0,(r-h)/2),a=L_(a,0,(i-n)/2),p=L_(p,0,(r-h)/2),o=M_(L_(o,0,i*l),4),c=M_(L_(c,0,r*l),4),a=M_(L_(a,0,n*l),4),p=M_(L_(p,0,h*l),4);var d=Math.asin(o/i/2)*A_*2,f=Math.asin(c/r/2)*A_*2;n<a&&(n=a),h<p&&(h=p);var g=Math.asin(a/n/2)*A_*2,y=Math.asin(p/h/2)*A_*2;S_(g)||(g=0),S_(y)||(y=0);var v=t+e/2,m={x:M_(R_(v)*n,4),y:V_(v)*h},b={x:R_(t)*(n+a),y:V_(t)*(h+p)},_={x:R_(t)*(i-o),y:V_(t)*(r-c)},w={x:R_(u)*(i-o),y:V_(u)*(r-c)},x={x:R_(u)*(n+a),y:V_(u)*(h+p)},C={x:R_(t+d)*i,y:V_(t+f)*r},P={x:R_(u-g)*n,y:V_(u-y)*h};a+=a*V_(g/2),p+=p*V_(y/2),g>(u-t)/2&&(P=m);var k="";return 360==e?k=ck(_):(k=ck(b),k+=pk(_),k+=gk(C,o,c,!0)),k+=fk(t+d,e-2*d,i,r),S_(n)&&0!=n?(360==e&&0==o?k+=ck(x):(k+=gk(w,o,c,!0),k+=pk(x),k+=gk(P,a,p,!0)),k+=fk(u-g,-(e-2*g),n,h),(e<360||o>0)&&(k+=gk(b,a,p,!0)),k+=pk(b)):(k+=gk(w,o,c,!0),e<360&&(k+=pk(b))),k}(this.startAngle,this.arc,this.radius,this.pixelInnerRadius,e,this.cornerRadius,this.innerCornerRadius),this.slice.invalidate(),this.shiftRadius=this.shiftRadius,this.realFill instanceof _P&&this.updateGradient(this.realFill),this.realStroke instanceof _P&&this.updateGradient(this.realStroke)},e.prototype.updateGradient=function(t){t.element.attr({gradientUnits:"userSpaceOnUse"}),t.element.attr({r:this.radius}),t.cx=0,t.cy=0,t.element.attr({radius:this.radius})},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?q_([tw(this.startAngle,this.startAngle+this.arc,this.pixelInnerRadius),tw(this.startAngle,this.startAngle+this.arc,this.radius)]):{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",J_(t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){S_(t)||(t=0),this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){var t=this.getPropertyValue("radius");return S_(t)||(t=0),t},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return S_(t)||(t=this.radius),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return Ax(this.innerRadius,this.radius)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerCornerRadius",{get:function(){return this.getPropertyValue("innerCornerRadius")},set:function(t){this.setPropertyValue("innerCornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftRadius",{get:function(){return this.getPropertyValue("shiftRadius")},set:function(t){this.setPropertyValue("shiftRadius",t),this.dx=t*this.radius*this.ix,this.dy=t*this.radiusY*this.iy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ix",{get:function(){return R_(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iy",{get:function(){return this.radius,V_(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleAngle",{get:function(){return this.startAngle+this.arc/2},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");if(S_(t))return t;var e=.5;t instanceof d_&&(e=t.value);var i=Ax(this.innerRadius,this.radius);return this.ix*(i+(this.radius-i)*e)},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");if(S_(t))return t;var e=.5;t instanceof d_&&(e=t.value);var i=Ax(this.innerRadius,this.radius);return this.iy*(i+(this.radius-i)*e)+this.slice.dy},e}(WP);ex.registeredClasses.Slice=xk;var Ck=function(t){function e(){var e=t.call(this)||this;e.className="Preloader",e.width=f_(100),e.height=f_(100);var i=new ZC,n=e.createChild(WP);n.shouldClone=!1;var r=n.createChild(xk);r.shouldClone=!1,r.radius=53,r.arc=360,r.fill=i.getFor("fill"),r.fillOpacity=.8,r.innerRadius=42,r.isMeasured=!1,e.backgroundSlice=r;var o=n.createChild(xk);o.shouldClone=!1,o.radius=50,o.innerRadius=45,o.fill=i.getFor("alternativeBackground"),o.fillOpacity=.2,o.isMeasured=!1,e.progressSlice=o;var a=n.createChild(nk);return a.shouldClone=!1,a.horizontalCenter="middle",a.verticalCenter="middle",a.isMeasured=!1,a.fill=i.getFor("text"),a.align="center",a.valign="middle",a.textAlign="middle",a.fillOpacity=.4,e.label=a,e.background.opacity=1,e.background.fill=i.getFor("background"),e.contentAlign="center",e.contentValign="middle",e.delay=300,e.states.create("hidden").properties.opacity=0,e.visible=!1,e.hide(0),e.__disabled=!0,e._disposers.push(e.backgroundSlice),e._disposers.push(e.progressSlice),e._disposers.push(e.label),e._disposers.push(n),e}return s_(e,t),Object.defineProperty(e.prototype,"progress",{get:function(){return this.getPropertyValue("progress")},set:function(t){var e=this;this.__disabled=!1,this.validateLayout(),this.setPropertyValue("progress",t),this.progressSlice.arc=360*t,this.label&&(this.label.text=Math.round(100*t)+"%"),t>=1?(this._started&&(this._started=void 0),ex.events.once("enterframe",(function(){var t=e.hide();t&&!t.isFinished()?t.events.once("animationended",(function(){e.__disabled=!0})):e.__disabled=!0})),this.interactionsEnabled=!1,this.setPropertyValue("progress",0)):t>0&&(this.delay?this._started?this._started+this.delay<=(new Date).getTime()&&(this.__disabled=!1,this.show(),this.interactionsEnabled=!0):this._started=(new Date).getTime():(this.__disabled=!1,this.show(),this.interactionsEnabled=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){return this.getPropertyValue("delay")},set:function(t){this.setPropertyValue("delay",t)},enumerable:!0,configurable:!0}),e}(WP);ex.registeredClasses.Preloader=Ck;var Pk=function(t){function e(){var e=t.call(this)||this;e.className="ResizeButton",e.orientation="horizontal",e.layout="absolute",e.horizontalCenter="middle",e.verticalCenter="middle",e.draggable=!0,e.padding(8,8,8,8),e.background.cornerRadius(20,20,20,20);var i=new zP;i.element=e.paper.add("path");var n=ck({x:-2,y:-6});return n+=pk({x:-2,y:6}),n+=ck({x:2,y:-6}),n+=pk({x:2,y:6}),i.path=n,i.pixelPerfect=!0,i.padding(0,4,0,4),i.stroke=(new ZC).getFor("alternativeText"),i.strokeOpacity=.7,e.icon=i,e.label.dispose(),e.label=void 0,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"orientation",{set:function(t){var e=this.icon;e&&(e.rotation="horizontal"==t?0:-90)},enumerable:!0,configurable:!0}),e}(ok);ex.registeredClasses.ResizeButton=Pk;var kk=function(t){function e(){var e=t.call(this)||this;e.className="CloseButton",e.padding(8,8,8,8),e.showSystemTooltip=!0,e.width=30,e.height=30;var i=new ZC;e.cursorOverStyle=xP.pointer;var n=e.background;n.cornerRadius(20,20,20,20);var r=i.getFor("background");n.fill=r,n.stroke=i.getFor("primaryButton"),n.strokeOpacity=1,n.strokeWidth=1;var o=i.getFor("primaryButtonActive"),a=n.states.getKey("hover");a.properties.strokeWidth=3,a.properties.fill=r;var s=n.states.getKey("down");s.properties.stroke=o,s.properties.fill=r;var u=new zP;return u.element=e.paper.add("path"),u.stroke=n.stroke,e.icon=u,e.applyTheme(),e}return s_(e,t),e.prototype.validate=function(){t.prototype.validate.call(this);var e=this.pixelWidth/3,i=this.pixelHeight/3,n=ck({x:-e/2,y:-i/2});n+=pk({x:e/2,y:i/2}),n+=ck({x:e/2,y:-i/2}),n+=pk({x:-e/2,y:i/2}),this.icon.path=n,this.invalidateLayout()},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w_(this.readerTitle)||(this.readerTitle=this.language.translate("Close"))},e}(ok);ex.registeredClasses.CloseButton=kk;var Sk=function(t){function e(){var e=t.call(this)||this;e.className="SwitchButton",e.tooltipY=0,e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0,e.states.create("active");var i=new ZC,n=new nk;n.fillOpacity=.3,n.states.create("active").properties.fillOpacity=1,n.isActive=!0,e.leftLabel=n;var r=new ok,o=new ak;r.contentValign="none",r.padding(0,0,0,0),o.radius=10,r.icon=o,r.icon.valign="middle",r.label=void 0;var a=f_(100);r.background.cornerRadius(a,a,a,a),r.width=3.5*o.radius,r.height=2.1*o.radius,r.marginLeft=8,r.marginRight=8,r.togglable=!0,o.dx=.7*-o.radius,o.fill=i.getFor("primaryButton"),o.states.create("hover").properties.fill=i.getFor("primaryButtonHover");var s=o.states.create("active");s.properties.fill=i.getFor("primaryButtonActive"),s.properties.dx=.7*o.radius,e.switchButton=r,e.events.on("toggled",(function(){e.leftLabel.isActive=!e.isActive,e.rightLabel.isActive=e.isActive}));var u=new nk;return u.fillOpacity=.3,u.states.create("active").properties.fillOpacity=1,e.rightLabel=u,e.role="button",e.focusable=!0,u.valign="middle",n.valign="middle",r.valign="middle",e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"leftLabel",{get:function(){return this._leftLabel},set:function(t){this._leftLabel&&this.removeDispose(this._leftLabel),this._leftLabel=t,t&&(t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this._disposers.push(this._leftLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightLabel",{get:function(){return this._rightLabel},set:function(t){this._rightLabel&&this.removeDispose(this._rightLabel),this._rightLabel=t,t&&(t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this._disposers.push(this._rightLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"switch",{get:function(){return this._switchButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"switchButton",{set:function(t){this._switchButton&&this.removeDispose(this._switchButton),this._switchButton=t,t&&(t.parent=this,t.shouldClone=!1,this._disposers.push(this._switchButton))},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e.leftLabel&&this.leftLabel.copyFrom(e.leftLabel),e.rightLabel&&this.rightLabel.copyFrom(e.rightLabel),e.switchButton&&this.switchButton.copyFrom(e.switchButton)},e}(WP);ex.registeredClasses.SwitchButton=Sk;var Ok=function(t){function e(){var e=t.call(this)||this;e._previousStart=0,e._previousEnd=1,e._prevStart=0,e._prevEnd=1,e._isBusy=!1,e._skipRangeEvents=!1,e.updateWhileMoving=!0,e.className="Scrollbar",e.minHeight=12,e.minWidth=12,e.animationDuration=0,e.animationEasing=yC,e.margin(10,10,10,10);var i=new ZC,n=e.background;return n.cornerRadius(10,10,10,10),n.fill=i.getFor("fill"),n.fillOpacity=.5,e.showSystemTooltip=!0,e.startGrip=new Pk,e.endGrip=new Pk,e.events.on("transformed",e.updateThumb,e,!1),e.start=0,e.end=1,e.role="scrollbar",e.thumb.role="slider",e.thumb.readerLive="polite",e.startGrip.role="slider",e.endGrip.role="slider",e.events.once("inited",(function(){e._previousStart=void 0,e.dispatchRangeChange()}),void 0,!1),e.hideGrips=!1,e.orientation="horizontal",e.setSVGAttribute({"aria-valuemin":"0"}),e.setSVGAttribute({"aria-valuemax":"100"}),e.applyTheme(),e}return s_(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),"horizontal"===this.orientation?(w_(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")),w_(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use left and right arrows to move selection")),w_(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use left and right arrows to move left selection")),w_(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use left and right arrows to move right selection")),this.readerOrientation="horizontal"):(w_(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")),w_(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use up and down arrows to move selection")),w_(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use up and down arrows to move upper selection")),w_(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use up and down arrows to move lower selection")),this.readerOrientation="vertical"),this.readerControls=this.baseSprite.uidAttr()},e.prototype.validateLayout=function(){this.updateSize(),t.prototype.validateLayout.call(this),this.updateExtremes()},e.prototype.processBackground=function(){t.prototype.processBackground.call(this);var e=this.background;e.clickable=!0,e.events.on("hit",this.handleBgHit,this,void 0)},e.prototype.handleBgHit=function(t){this.makeBusy();var e=t.spritePoint;e=tC(e,this.background,this);var i=this.thumb;if("horizontal"==this.orientation){var n=e.x-i.pixelWidth/2;n=L_(n,0,this.innerWidth-i.pixelWidth),this._thumbAnimation=i.animate({property:"x",to:n},this.animationDuration,this.animationEasing)}else{var r=e.y-i.pixelHeight/2;r=L_(r,0,this.innerHeight-i.pixelHeight),this._thumbAnimation=i.animate({property:"y",to:r},this.animationDuration,this.animationEasing)}this.animationDuration>0?this._thumbAnimation.events.on("animationended",this.makeUnbusy,this,!1):(this._thumb.validate(),this.makeUnbusy())},e.prototype.makeBusy=function(){this._isBusy=!0,this._skipRangeEvents=!1,this._unbusyTimeout&&this.removeDispose(this._unbusyTimeout),this._unbusyTimeout=void 0,this.stopAnimations()},e.prototype.stopAnimations=function(){this._thumbAnimation&&this._thumbAnimation.stop(!0),this._zoomAnimation&&this._zoomAnimation.stop(!0)},e.prototype.makeUnbusy=function(){this._unbusyTimeout=this.setTimeout(this.makeUnbusyReal.bind(this),1.1*this.animationDuration)},e.prototype.makeUnbusyReal=function(){this._usingGrip=void 0,this._isBusy=!1,this.updateWhileMoving||this.dispatchRangeChange()},e.prototype.dispatchRangeChange=function(){this._previousEnd==this.end&&this._previousStart==this.start||(this._previousStart=this.start,this._previousEnd=this.end,this.dispatch("rangechanged"))},e.prototype.updateThumb=function(){if(this.parent){var t=this.thumb,e=this.start,i=this.end,n=this.startGrip,r=this.endGrip;if("horizontal"==this.orientation){var o=this.innerWidth;t.width=o*(i-e),t.maxX=o-t.pixelWidth,t.x=e*o,n.moveTo({x:t.pixelX,y:0},void 0,void 0,!0),r.moveTo({x:t.pixelX+t.pixelWidth,y:0},void 0,void 0,!0),n.readerTitle=this.language.translate("From %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*e)+"%",position:e}).value),n.readerValueNow=""+Math.round(100*e),n.readerValueText=n.readerTitle,r.readerTitle=this.language.translate("To %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*i)+"%",position:i}).value),r.readerValueNow=""+Math.round(100*i),r.readerValueText=r.readerTitle}else{var a=this.innerHeight;t.height=a*(i-e),t.maxY=a-t.pixelHeight,t.y=(1-i)*a,n.moveTo({x:0,y:t.pixelY+t.pixelHeight},void 0,void 0,!0),r.moveTo({x:0,y:t.pixelY},void 0,void 0,!0),n.readerTitle=this.language.translate("To %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*(1-e))+"%",position:1-e}).value),n.readerValueNow=""+Math.round(100*e),n.readerValueText=n.readerTitle,r.readerTitle=this.language.translate("From %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*(1-i))+"%",position:1-i}).value),r.readerValueNow=""+Math.round(100*i),r.readerValueText=r.readerTitle}t.readerTitle=this.language.translate("From %1 to %2",void 0,this.adapter.apply("positionValue",{value:Math.round(100*e)+"%",position:e}).value,this.adapter.apply("positionValue",{value:Math.round(100*i)+"%",position:i}).value),t.readerValueNow=""+Math.round(100*e),t.readerValueText=t.readerTitle,this.readerValueNow=""+Math.round(100*e),this.readerValueText=t.readerTitle,!this._skipRangeEvents&&this.updateWhileMoving&&this.dispatchRangeChange()}},e.prototype.updateExtremes=function(){var t=0,e=0,i=0,n=0;"horizontal"==this.orientation?(i=this.innerWidth,e=n=this.innerHeight/2):(n=this.innerHeight,t=i=this.innerWidth/2);var r=this.startGrip;r.minX=t,r.maxX=i,r.minY=e,r.maxY=n;var o=this.endGrip;o.minX=t,o.maxX=i,o.minY=e,o.maxY=n;var a=this.thumb;a.minX=t,a.maxX=i,a.minY=e,a.maxY=n},e.prototype.updateSize=function(){var t=this.orientation,e=this.startGrip;e&&(e.orientation=t),this.endGrip&&(this.endGrip.orientation=t);var i=this.thumb;i&&("horizontal"==t?(S_(this._pixelWidth)||this.width instanceof d_||(this.width=f_(100)),w_(this.percentHeight)&&(this.height=this.minHeight),i.height=this.innerHeight,i.verticalCenter="middle",i.horizontalCenter="left"):(S_(this._pixelHeight)||this.height instanceof d_||(this.height=f_(100)),w_(this.percentWidth)&&(this.width=this.minWidth),i.width=this.innerWidth,i.verticalCenter="top",i.horizontalCenter="middle"))},Object.defineProperty(e.prototype,"isBusy",{get:function(){return this._isBusy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return Math.min(this.getPosition(this._start),this.getPosition(this._end))},set:function(t){this._isBusy||(this.__start=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__start",{get:function(){return this._start},set:function(t){this._start=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return Math.max(this.getPosition(this._start),this.getPosition(this._end))},set:function(t){this._isBusy||(this.__end=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__end",{get:function(){return this._end},set:function(t){this._end=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return{start:this.start,end:this.end,priority:this._usingGrip}},enumerable:!0,configurable:!0}),e.prototype.skipRangeEvents=function(){this._isBusy||(this._skipRangeEvents=!0)},e.prototype.fixRange=function(t){t.start==M_(this._start,2)&&t.end==M_(this._end,2)||(this._start=t.start,this._end=t.end,this._skipRangeEvents=!0,this.updateThumb(),this._skipRangeEvents=!1,this.thumb.validate(),this.thumb.background.validate())},e.prototype.getPosition=function(t){return L_(M_(t,4),0,1)},Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t)&&("horizontal"===t?(this.startGrip.cursorOverStyle=xP.horizontalResize,this.endGrip.cursorOverStyle=xP.horizontalResize):(this.startGrip.cursorOverStyle=xP.verticalResize,this.endGrip.cursorOverStyle=xP.verticalResize),this.updateByOrientation(),this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.updateByOrientation=function(){},Object.defineProperty(e.prototype,"startGrip",{get:function(){return this._startGrip},set:function(t){this._startGrip&&this.removeDispose(this._startGrip),this._startGrip=t,this.processGrip(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endGrip",{get:function(){return this._endGrip},set:function(t){this._endGrip&&this.removeDispose(this._endGrip),this._endGrip=t,this.processGrip(t)},enumerable:!0,configurable:!0}),e.prototype.processGrip=function(t){t.parent=this,t.isMeasured=!1,t.focusable=!0,t.shouldClone=!1,t.zIndex=100,t.events.on("drag",this.handleGripDrag,this,!1),t.events.on("dragstop",this.makeUnbusy,this,!1),t.events.on("down",this.makeBusy,this,!1),this._disposers.push(t)},e.prototype.handleGripDrag=function(t){this.makeBusy(),t.target===this._startGrip?this._usingGrip="start":this._usingGrip="end","horizontal"==this.orientation?(this._start=this.startGrip.pixelX/this.innerWidth,this._end=this.endGrip.pixelX/this.innerWidth):(this._start=1-this.startGrip.pixelY/this.innerHeight,this._end=1-this.endGrip.pixelY/this.innerHeight),this.updateThumb()},Object.defineProperty(e.prototype,"thumb",{get:function(){if(!this._thumb){var t=new ok;t.background.cornerRadius(10,10,10,10),t.padding(0,0,0,0),this.thumb=t}return this._thumb},set:function(t){var e=this;t&&(this._thumb&&this.removeDispose(this._thumb),this._thumb=t,t.parent=this,t.isMeasured=!1,t.inert=!0,t.draggable=!0,t.clickable=!0,t.hoverable=!0,t.focusable=!0,t.shouldClone=!1,t.zIndex=0,t.cursorOverStyle=xP.grab,t.cursorDownStyle=xP.grabbing,t.events.on("dragstart",this.makeBusy,this,!1),t.events.on("dragstop",this.makeUnbusy,this,!1),t.events.on("positionchanged",this.handleThumbPosition,this,!1),t.events.on("sizechanged",this.handleThumbPosition,this,!1),t.events.on("doublehit",this.handleDoubleClick,this,!1),this._disposers.push(aP().body.events.on("keyup",(function(t){iP.isKey(t.event,["space","enter"])&&e.thumb.isFocused&&(t.event.preventDefault(),e.handleDoubleClick())}))),this._disposers.push(this._thumb))},enumerable:!0,configurable:!0}),e.prototype.handleDoubleClick=function(){this.makeBusy();var t=0,e=1;0!=this.start||1!=this.end?(this._prevStart=this.start,this._prevEnd=this.end):(t=this._prevStart,e=this._prevEnd);var i=this.animate([{property:"__start",to:t},{property:"__end",to:e}],this.animationDuration,this.animationEasing);i&&!i.isFinished()?(i.events.on("animationended",this.makeUnbusy,this,!1),this._zoomAnimation=i):this.makeUnbusy()},e.prototype.handleThumbPosition=function(){var t=this.thumb;if("horizontal"==this.orientation){var e=this.innerWidth,i=t.innerWidth,n=t.pixelX;this._start=n/e,this._end=(n+i)/e,this.updateThumb()}else{var r=this.innerHeight,o=t.innerHeight,a=t.pixelY;this._start=1-(a+o)/r,this._end=1-a/r,this.updateThumb()}},e.prototype.createBackground=function(){return new rk},Object.defineProperty(e.prototype,"hideGrips",{get:function(){return this._hideGrips},set:function(t){var e=this;this._hideGrips=t,this._overDisposer&&this.removeDispose(this._overDisposer),this._outDisposer&&this.removeDispose(this._outDisposer),t?(this._overDisposer=this.events.on("over",(function(){e.startGrip.show(),e.endGrip.show()}),void 0,!1),this._outDisposer=this.events.on("out",(function(){e.startGrip.hide(),e.endGrip.hide()}),void 0,!1),this.startGrip.hide(),this.endGrip.hide()):(this.startGrip.show(),this.endGrip.show())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),e.prototype.asFunction=function(e){return"animationEasing"==e||t.prototype.asIs.call(this,e)},e}(WP);ex.registeredClasses.Scrollbar=Ok;var Dk=function(t){function e(){var e=t.call(this)||this;return e.className="Slider",e.thumb.opacity=0,e.thumb.interactionsEnabled=!1,e.endGrip.opacity=0,e.endGrip.interactionsEnabled=!1,e.startGrip.events.on("drag",(function(){e.endGrip.x=e.startGrip.x,e.endGrip.y=e.startGrip.y})),e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"__end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._start},set:function(t){this._isBusy||(this.__start=t)},enumerable:!0,configurable:!0}),e}(Ok);ex.registeredClasses.Slider=Dk;var Tk=function(t){function e(){var e=t.call(this)||this;e.className="TextLink",e.selectable=!0;var i=new ZC;return e.fill=i.getFor("primaryButton").brighten(.3),e.states.create("hover").properties.fill=i.getFor("primaryButtonHover").brighten(.3),e.states.create("down").properties.fill=i.getFor("primaryButtonDown").brighten(.3),e.cursorOverStyle=xP.pointer,e.applyTheme(),e}return s_(e,t),e}(nk);ex.registeredClasses.TextLink=Tk;var Ek=function(t){function e(){var e=t.call(this)||this;return e.properties={},e.isTemplate=!1,e._scale=1,e._nonScaling=!0,e.className="Filter",e.filterPrimitives=new ax,e.properties.filterUnits="objectBoundingBox",e.filterPrimitives.events.on("inserted",(function(t){e._disposers.push(t.newValue)})),e.width=120,e.height=120,e.applyTheme(),e}return s_(e,t),e.prototype.appendPrimitives=function(t){Ww(this.filterPrimitives.iterator(),(function(e){t.add(e)}))},e.prototype.animate=function(t,e,i){return new EC(this,t,e,i).start()},Object.defineProperty(e.prototype,"width",{get:function(){return this.properties.width},set:function(t){this.properties.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.properties.height},set:function(t){this.properties.height=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),Lw(e.properties,(function(t,e){i[t]=e}))},Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:vP()},set:function(t){this._paper!=t&&(this._paper=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new TC(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale=t,this.updateScale()},enumerable:!0,configurable:!0}),e.prototype.updateScale=function(){},Object.defineProperty(e.prototype,"filterUnits",{get:function(){return this.properties.filterUnits},set:function(t){this.properties.filterUnits=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonScaling",{get:function(){return this._nonScaling},set:function(t){this._nonScaling=t,t||(this._scale=1),this.updateScale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sprite",{set:function(t){this.setSprite(t)},enumerable:!0,configurable:!0}),e.prototype.setSprite=function(t){this._sprite&&this._sprite!=t&&this._sprite.filters.removeValue(this),this._sprite=t},e}(kx),Ik=function(t){function e(){var e=t.call(this)||this;return e.className="DropShadowFilter",e.color=Cx("#000"),e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.feOffset=e.paper.add("feOffset"),e.feOffset.attr({result:"offsetBlur"}),e.filterPrimitives.push(e.feOffset),e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":e.color}),e.filterPrimitives.push(e.feFlood),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({in2:"offsetBlur",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feMerge=e.paper.addGroup("feMerge"),e.feMerge.add(e.paper.add("feMergeNode")),e.feMerge.add(e.paper.add("feMergeNode").attr({in:"SourceGraphic"})),e.filterPrimitives.push(e.feMerge),e.width=200,e.height=200,e.blur=1.5,e.dx=3,e.dy=3,e.opacity=.5,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.properties.color=t,this.feFlood&&this.feFlood.attr({"flood-color":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(t){this.properties.opacity=t,this.feFlood.attr({"flood-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx",{get:function(){return this.properties.dx},set:function(t){this.properties.dx=t,this.feOffset.attr({dx:t/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy",{get:function(){return this.properties.dy},set:function(t){this.properties.dy=t,this.feOffset.attr({dy:t/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blur",{get:function(){return this.properties.blur},set:function(t){this.properties.blur=t,this.feGaussianBlur.attr({stdDeviation:t/this.scale})},enumerable:!0,configurable:!0}),e.prototype.updateScale=function(){this.dx=this.dx,this.dy=this.dy,this.blur=this.blur},e}(Ek);ex.registeredClasses.DropShadowFilter=Ik;var Ak=function(t){function e(){var e=t.call(this)||this;e._boundingRect={x:-4e4,y:-4e4,width:8e4,height:8e4},e._pointTo={x:0,y:0},e.fitPointerToBounds=!1,e._verticalOrientation="up",e.className="Tooltip",e.isMeasured=!1,e.getFillFromObject=!0,e.margin(5,5,5,5),e.defaultState.transitionDuration=1,e.hiddenState.transitionDuration=1;var i=e.background;i.interactionsEnabled=!1,i.fillOpacity=.9,i.strokeWidth=1,i.strokeOpacity=1,i.stroke=Cx("#ffffff"),i.cornerRadius=3,i.pointerLength=6,i.pointerBaseWidth=10;var n=new Ik;n.dy=1,n.dx=1,n.opacity=.5,i.filters.push(n),e.autoTextColor=!0;var r=e.createChild(nk);return r.shouldClone=!1,e.label=r,r.padding(7,12,4,12),r.interactionsEnabled=!1,r.horizontalCenter="middle",r.fill=Cx("#ffffff"),e._disposers.push(r),e.label.events.on("sizechanged",e.drawBackground,e),e.label.zIndex=1,e.pointerOrientation="vertical",e.animationDuration=0,e.animationEasing=yC,e.setPropertyValue("showInViewport",!1),e.role="tooltip",e.visible=!1,e.opacity=0,e.x=0,e.y=0,e.events.on("visibilitychanged",e.handleVisibility,e),e.applyTheme(),e}return s_(e,t),e.prototype.handleVisibility=function(){this.visible&&this.label.invalidate()},Object.defineProperty(e.prototype,"getStrokeFromObject",{get:function(){return this.getPropertyValue("getStrokeFromObject")},set:function(t){this.setPropertyValue("getStrokeFromObject",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoTextColor",{get:function(){return this.getPropertyValue("autoTextColor")},set:function(t){this.setPropertyValue("autoTextColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepTargetHover",{get:function(){return this.getPropertyValue("keepTargetHover")},set:function(t){var e=this;this.setPropertyValue("keepTargetHover",t,!0)&&t&&(this.hoverable=!0,this.background.interactionsEnabled=!0,this._disposers.push(this.events.on("over",(function(t){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!0)}))),this._disposers.push(this.events.on("out",(function(t){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!1)}))))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showInViewport",{get:function(){return this.getPropertyValue("showInViewport")},set:function(t){this.setPropertyValue("showInViewport",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getFillFromObject",{get:function(){return this.getPropertyValue("getFillFromObject")},set:function(t){this.setPropertyValue("getFillFromObject",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new hk},Object.defineProperty(e.prototype,"pointerOrientation",{get:function(){return this.getPropertyValue("pointerOrientation")},set:function(t){this.setPropertyValue("pointerOrientation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.label.html},set:function(t){this.label.html!=t&&(this.label.html=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.label.text},set:function(t){this.label.text!=t&&(this.label.text=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.label;e.invalid&&e.validate();var i,n,r=this._pointTo.x,o=this._pointTo.y,a=this._boundingRect,s=e.measuredWidth,u=e.measuredHeight,l=this.background.pointerLength;if(s>a.width){rC({x:a.x,y:a.y},this.parent);var h=rC({x:a.x+a.width,y:a.y+a.height},this.parent),c=document.body.offsetWidth;document.body.offsetHeight,h.x>c/2?a.x=a.width-s:a.width=a.x+s}var p=this.pointerOrientation;"horizontal"==p||"left"==p||"right"==p?(n=-u/2,i="horizontal"==p?r>a.x+a.width/2?-s/2-l:s/2+l:"left"==p?s/2+l:-s/2-l):(i=L_(0,a.x-r+s/2,a.x-r+a.width-s/2),"vertical"==p?o>a.y+u+l?(n=-u-l,this._verticalOrientation="up"):(n=l,this._verticalOrientation="down"):"down"==p?(n=-u-l,this._verticalOrientation="up"):(n=l,this._verticalOrientation="down")),n=L_(n,a.y-o,a.y+a.height-u-o),e.x=i,e.y=n,this.drawBackground()},e.prototype.updateBackground=function(){this.group.addToBack(this.background.group)},e.prototype.drawBackground=function(){var t=this.label,e=this.background,i=t.measuredWidth,n=t.measuredHeight,r=this._boundingRect,o=i,a=t.pixelX-i/2,s=n,u=t.pixelY,l=this._pointTo.x,h=this._pointTo.y,c=r.x-l,p=c+r.width,d=r.y-h,f=d+r.height;e.x=a,e.y=u,e.width=o,e.height=s,this.fitPointerToBounds?(e.pointerX=L_(-e.x,c-e.x,p-e.x),e.pointerY=L_(-e.y,d-e.y,f-e.y)):(e.pointerX=-e.x,e.pointerY=-e.y),e.validate()},e.prototype.delayedPointTo=function(t,e){var i=this;this._pointToDisposer&&this._pointToDisposer.dispose(),this._pointToDisposer=ex.events.once("exitframe",(function(){i.pointTo(t,e)})),this.addDisposer(this._pointToDisposer)},e.prototype.pointTo=function(t,e){this._pointTo.x==t.x&&this._pointTo.y==t.y||(this._pointTo=t,this.invalidate(),!this.visible||e?(this.moveTo(this._pointTo),this._animation&&this._animation.kill()):0==this.pixelX&&0==this.pixelY?this.moveTo(this._pointTo):(this._animation&&this._animation.kill(),this._animation=new EC(this,[{property:"x",to:t.x,from:this.pixelX},{property:"y",to:t.y,from:this.pixelY}],this.animationDuration,this.animationEasing).start()))},e.prototype.setBounds=function(t){var e=this._boundingRect;e.x==t.x&&e.y==t.y&&e.width==t.width&&e.height==t.height||(this._boundingRect=t,this.invalidate())},Object.defineProperty(e.prototype,"boundingContainer",{set:function(t){this._boundingContainer=t,t.events.on("sizechanged",this.updateBounds,this),t.events.on("positionchanged",this.updateBounds,this)},enumerable:!0,configurable:!0}),e.prototype.updateBounds=function(){var t=this._boundingContainer,e=eC({x:t.pixelX,y:t.pixelY,width:t.maxWidth,height:t.maxHeight},t);this.setBounds(e)},Object.defineProperty(e.prototype,"verticalOrientation",{get:function(){return this._verticalOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),e._boundingRect&&(this._boundingRect=e._boundingRect)},e.prototype.asFunction=function(e){return"animationEasing"==e||t.prototype.asIs.call(this,e)},e}(WP);ex.registeredClasses.Tooltip=Ak;var Fk=function(t){function e(){var e=t.call(this)||this;return e.className="Trapezoid",e.element=e.paper.add("path"),e.topSide=f_(100),e.bottomSide=f_(100),e.leftSide=f_(100),e.rightSide=f_(100),e.isMeasured=!1,e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelWidth,i=this.pixelHeight,n=Ax(this.topSide,e),r=Ax(this.bottomSide,e),o=Ax(this.leftSide,i),a=Ax(this.rightSide,i),s=(e-n)/2,u=(i-o)/2,l=e-(e-n)/2,h=(i-a)/2,c=e-(e-r)/2,p=i-(i-a)/2,d=(e-r)/2,f=i-(i-o)/2,g="",y="",v="",m="";if(w_(this.horizontalNeck)){var b=this.horizontalNeck.value;g=pk({x:e*b,y:Math.max(u,h)}),v=pk({x:e*b,y:Math.min(p,f)})}if(w_(this.verticalNeck)){var _=this.verticalNeck.value;y=pk({x:Math.min(l,c),y:i*_}),m=pk({x:Math.max(s,d),y:i*_})}var w=ck({x:s,y:u})+g+pk({x:l,y:h})+y+pk({x:c,y:p})+v+pk({x:d,y:f})+m;this.path=w},Object.defineProperty(e.prototype,"topSide",{get:function(){return this.getPropertyValue("topSide")},set:function(t){this.setPercentProperty("topSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomSide",{get:function(){return this.getPropertyValue("bottomSide")},set:function(t){this.setPercentProperty("bottomSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftSide",{get:function(){return this.getPropertyValue("leftSide")},set:function(t){this.setPercentProperty("leftSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightSide",{get:function(){return this.getPropertyValue("rightSide")},set:function(t){this.setPercentProperty("rightSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalNeck",{get:function(){return this.getPropertyValue("horizontalNeck")},set:function(t){this.setPropertyValue("horizontalNeck",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalNeck",{get:function(){return this.getPropertyValue("verticalNeck")},set:function(t){this.setPropertyValue("verticalNeck",t,!0)},enumerable:!0,configurable:!0}),e}(zP);ex.registeredClasses.Trapezoid=Fk;var Mk=function(t){function e(){var e=t.call(this)||this;return e.className="Triangle",e.element=e.paper.add("path"),e.direction="top",e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e,i=this.pixelWidth,n=this.pixelHeight;switch(this.direction){case"right":e=ck({x:0,y:0})+pk({x:i,y:n/2})+pk({x:0,y:n})+" Z";break;case"left":e=ck({x:i,y:0})+pk({x:0,y:n/2})+pk({x:i,y:n})+" Z";break;case"bottom":e=ck({x:0,y:0})+pk({x:i,y:0})+pk({x:i/2,y:n})+" Z";break;case"top":e=ck({x:i/2,y:0})+pk({x:i,y:n})+pk({x:0,y:n})+" Z"}this.path=e},Object.defineProperty(e.prototype,"direction",{get:function(){return this.getPropertyValue("direction")},set:function(t){this.setPropertyValue("direction",t,!0)},enumerable:!0,configurable:!0}),e}(zP);ex.registeredClasses.Triangle=Mk;var jk=function(){function t(t,e){this._tensionX=t,this._tensionY=e}return t.prototype.smooth=function(t){for(var e=t.length-1;e>0;e--){var i=t[e],n=t[e-1];Math.abs(i.x-n.x)<.1&&Math.abs(i.y-n.y)<.1&&t.splice(e,1)}var r=this._tensionX,o=this._tensionY;if(t.length<3||r>=1&&o>=1)return function(t){var e=pk(t[0]),i={x:0,y:0},n=CC.minPolylineStep;S_(n)||(n=.5);for(var r=0,o=t.length;r<o;r++){var a=t[r];z_(a,i)>n&&(e+=pk(a),i=a)}return e}(t);var a=t[0],s=t[t.length-1],u=!1;M_(a.x,3)==M_(s.x)&&M_(a.y)==M_(s.y)&&(u=!0);for(var l="",h=(e=0,t.length-1);e<h;e++){i=t[e-1],n=t[e];var c=t[e+1],p=t[e+2];0===e?i=u?t[t.length-2]:t[e]:e==t.length-2&&(p=u?t[1]:t[e+1]),l+=dk(c,Z_(i,n,c,0,r,o),Q_(0,n,c,p,r,o))}return l},t}();function Lk(t,e,i,n,r,o){var a=t.x,s=t.y,u=e.x,l=e.y,h=z_(t,e);o&&(i=h/Math.round(h/i));var c=ex.getCache(Fx(["wavedLine",t.x,e.x,t.y,e.y,i,n]));if(!c){if(h>0){var p=Math.atan2(l-s,u-a),d=Math.cos(p),f=Math.sin(p),g=i*d,y=i*f;if(i<=1||n<=1)c=pk(e);else{var v=Math.round(2*h/i),m=[],b=1;u<a&&(b*=-1),l<s&&(b*=-1);for(var _=0;_<=v;_++){var w=a+_*g/2+(b*=-1)*n/2*f,x=s+_*y/2-b*n/2*d;m.push({x:w,y:x})}c=new jk(r,r).smooth(m)}}else c="";ex.setCache(Fx(["wavedLine",t.x,e.x,t.y,e.y,i,n]),c)}return c}var Vk=function(t){function e(){var e=t.call(this)||this;return e.className="WavedCircle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.fill=void 0,e.fillOpacity=0,e.tension=.8,e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){var t="",e=this.pixelRadius;e>0&&(t=ck((i=this.getPoints(e))[0])+new jk(this.tension,this.tension).smooth(i));var i,n=this.pixelInnerRadius;n>0&&((i=this.getPoints(n)).reverse(),t+=ck(i[0])+new jk(this.tension,this.tension).smooth(i)),this.path=t},e.prototype.getPoints=function(t){for(var e=t*Math.PI*2,i=this.waveHeight/2,n=e/Math.round(e/this.waveLength),r=n/2,o=[],a=e/n,s=0;s<=a;s++){var u=s*n/e*360,l=(s*n+r)/e*360;o.push({x:(t-i)*R_(u),y:(t-i)*V_(u)}),o.push({x:(t+i)*R_(l),y:(t+i)*V_(l)})}return o.pop(),o},Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return Ax(this.innerRadius,B_(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),e}(ak);ex.registeredClasses.WavedCircle=Vk;var Rk=function(t){function e(){var e=t.call(this)||this;return e.className="WavedLine",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.pixelPerfect=!1,e.fill=Cx(),e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){var t={x:this.x1,y:this.y1},e={x:this.x2,y:this.y2};this.path=ck(t)+Lk(t,e,this.waveLength,this.waveHeight,this.tension,!0)},Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),e}(lk),Nk=function(t){function e(){var e=t.call(this)||this;return e.className="WavedRectangle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.setPropertyValue("wavedLeft",!0),e.setPropertyValue("wavedRight",!0),e.setPropertyValue("wavedTop",!0),e.setPropertyValue("wavedBottom",!0),e.applyTheme(),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelWidth,i=this.pixelHeight;if(e>0&&i>0){var n={x:0,y:0},r={x:e,y:0},o={x:e,y:i},a={x:0,y:i},s=Math.min(e,this.waveLength),u=Math.min(i,this.waveHeight),l=Math.min(i,this.waveLength),h=Math.min(e,this.waveHeight),c="",p="",d="",f="";this.wavedTop&&(c=Lk(n,r,s,u,this.tension,!0)),this.wavedRight&&(p=Lk(r,o,l,h,this.tension,!0)),this.wavedBottom&&(d=Lk(o,a,s,u,this.tension,!0)),this.wavedLeft&&(f=Lk(a,n,l,h,this.tension,!0)),this.path=ck(n)+c+pk(r)+p+pk(o)+d+pk(a)+f+"z"}},Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.setWavedSides=function(t,e,i,n){this.wavedTop=t,this.wavedRight=e,this.wavedBottom=i,this.wavedLeft=n},Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedRight",{get:function(){return this.getPropertyValue("wavedRight")},set:function(t){this.setPropertyValue("wavedRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedLeft",{get:function(){return this.getPropertyValue("wavedLeft")},set:function(t){this.setPropertyValue("wavedLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedTop",{get:function(){return this.getPropertyValue("wavedTop")},set:function(t){this.setPropertyValue("wavedTop",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedBottom",{get:function(){return this.getPropertyValue("wavedBottom")},set:function(t){this.setPropertyValue("wavedBottom",t,!0)},enumerable:!0,configurable:!0}),e}(UP),Bk=function(t){function e(){var e=t.call(this)||this;e.className="ZoomOutButton",e.padding(9,9,9,9),e.showSystemTooltip=!0;var i=new ZC,n=e.background;n.cornerRadius(20,20,20,20),n.fill=i.getFor("primaryButton"),n.stroke=i.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var r=new zP;r.element=e.paper.add("path");var o=ck({x:0,y:0});return o+=pk({x:11,y:0}),r.path=o,r.pixelPerfect=!0,r.padding(8,3,8,3),r.stroke=i.getFor("primaryButtonText"),e.icon=r,e.applyTheme(),e}return s_(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w_(this.readerTitle)||(this.readerTitle=this.language.translate("Zoom Out"))},e}(ok);ex.registeredClasses.ZoomOutButton=Bk;var Hk=function(t){function e(){var e=t.call(this)||this;e.className="PlayButton",e.padding(12,12,12,12),e.showSystemTooltip=!0;var i=new ZC,n=e.background;n.cornerRadius(25,25,25,25),n.fill=i.getFor("primaryButton"),n.stroke=i.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var r=new Mk;r.direction="right",r.width=9,r.height=11,r.marginLeft=1,r.marginRight=1,r.horizontalCenter="middle",r.verticalCenter="middle",r.stroke=i.getFor("primaryButtonText"),r.fill=r.stroke,e.icon=r;var o=new rk;o.width=11,o.height=11,o.horizontalCenter="middle",o.verticalCenter="middle",o.cornerRadius(0,0,0,0),o.stroke=i.getFor("primaryButtonText"),o.fill=r.stroke,e.togglable=!0;var a=e.states.create("active");return a.transitionDuration=0,a.properties.icon=o,e.defaultState.transitionDuration=0,e.applyTheme(),e}return s_(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w_(this.readerTitle)||(this.readerTitle=this.language.translate("Play"))},e}(ok);ex.registeredClasses.PlayButton=Hk;var zk=function(t){function e(){var e=t.call(this)||this;return e.className="ColorModifier",e.applyTheme(),e}return s_(e,t),e.prototype.modify=function(t){return t},e}(kx);ex.registeredClasses.ColorModifier=zk;var Uk=function(t){function e(){var e=t.call(this)||this;return e.lightnesses=[],e.brightnesses=[],e.opacities=[],e.offsets=[],e.className="GradientModifier",e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"lightnesses",{get:function(){return this._lightnesses},set:function(t){this._lightnesses=t,this._brightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brightnesses",{get:function(){return this._brightnesses},set:function(t){this._brightnesses=t,this._lightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacities",{get:function(){return this._opacities},set:function(t){this._opacities=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsets",{get:function(){return this._offsets},set:function(t){this._offsets=t},enumerable:!0,configurable:!0}),e.prototype.modify=function(t){this.gradient.clear();var e=0;this.opacities&&(e=N_(e,this.opacities.length)),this.lightnesses&&(e=N_(e,this.lightnesses.length)),this.brightnesses&&(e=N_(e,this.brightnesses.length));for(var i,n,r=1,o=0;o<e;o++){var a=t;this.opacities&&S_(this.opacities[o])&&(r=this.opacities[o]),this.lightnesses&&S_(this.lightnesses[o])&&(i=this.lightnesses[o],n=void 0),this.brightnesses&&S_(this.brightnesses[o])&&(n=this.brightnesses[o],i=void 0),S_(n)?a=t.brighten(this.brightnesses[o]):S_(i)&&(a=t.lighten(this.lightnesses[o]));var s=this.offsets[o];this.gradient.addColor(a,r,s)}return this.gradient},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this._offsets=e.offsets,this._brightnesses=e.brightnesses,this._lightnesses=e.lightnesses,this._opacities=e.opacities},e}(zk);ex.registeredClasses.GradientModifier=Uk;var Wk=function(t){function e(){var e=t.call(this)||this;return e.className="LinearGradientModifier",e.gradient=new bP,e.applyTheme(),e}return s_(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},e}(Uk);ex.registeredClasses.LinearGradientModifier=Wk,function(t){function e(){var e=t.call(this)||this;return e.className="Cone",e.angle=30,e.radius=f_(100),e.topRadius=f_(100),e.top=e.createChild(sk),e.top.shouldClone=!1,e.bottom=e.createChild(sk),e.bottom.shouldClone=!1,e.body=e.createChild(zP),e.body.shouldClone=!1,e.body.setElement(e.paper.add("path")),e.layout="none",e.bodyFillModifier=new Wk,e.bodyFillModifier.lightnesses=[0,-.25,0],e.body.fillModifier=e.bodyFillModifier,e.applyTheme(),e}s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),Nw(this,this.top,HP),Nw(this,this.bottom,HP),Nw(this,this.body,HP);var e,i,n,r=this.innerWidth,o=this.innerHeight,a=this.bottom,s=this.top,u=this.angle;"horizontal"==this.orientation?(e=o/2,a.y=o/2,s.y=o/2,s.x=r,i=(90-u)/90,n=0,this.bodyFillModifier.gradient.rotation=90):(i=0,n=(90-u)/90,e=r/2,a.y=o,a.x=r/2,s.x=r/2,this.bodyFillModifier.gradient.rotation=0);var l,h=this.radius.value*e,c=this.topRadius.value*e;a.radius=h-h*i,a.radiusY=h-h*n,s.radius=c-c*i,s.radiusY=c-c*n,l="horizontal"==this.orientation?ck({x:0,y:o/2-a.radiusY})+fk(-90,-180,a.radius,a.radiusY)+pk({x:r,y:o/2+s.radiusY})+fk(90,180,s.radius,s.radiusY)+" Z":ck({x:r/2-s.radius,y:0})+fk(180,-180,s.radius,s.radiusY)+pk({x:r/2+a.radius,y:o})+fk(0,180,a.radius,a.radiusY)+" Z",this.body.path=l},Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topRadius",{get:function(){return this.getPropertyValue("topRadius")},set:function(t){this.setPropertyValue("topRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0})}(WP);var Gk=function(t){function e(){var e=t.call(this)||this;return e.className="LightenFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.lightness=0,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"lightness",{get:function(){return this.properties.lightness},set:function(t){this.properties.lightness=t;var e=t+1;this.feColorMatrix.attr({values:e+" 0 0 0 0 0 "+e+" 0 0 0 0 0 "+e+" 0 0 0 0 0 1 0"})},enumerable:!0,configurable:!0}),e}(Ek);ex.registeredClasses.LightenFilter=Gk,function(t){function e(){var e=t.call(this)||this;e.angle=30,e.depth=30,e.className="Rectangle3D",e.layout="none";var i=e.createChild(zP);i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e.sideBack=i,e._disposers.push(e.sideBack);var n=e.createChild(zP);n.shouldClone=!1,n.setElement(e.paper.add("path")),n.isMeasured=!1,e.sideBottom=n,e._disposers.push(e.sideBottom);var r=e.createChild(zP);r.shouldClone=!1,r.setElement(e.paper.add("path")),r.isMeasured=!1,e.sideLeft=r,e._disposers.push(e.sideLeft);var o=e.createChild(zP);o.shouldClone=!1,o.setElement(e.paper.add("path")),o.isMeasured=!1,e.sideRight=o,e._disposers.push(e.sideRight);var a=e.createChild(zP);a.shouldClone=!1,a.setElement(e.paper.add("path")),a.isMeasured=!1,e.sideTop=a,e._disposers.push(e.sideTop);var s=e.createChild(zP);return s.shouldClone=!1,s.setElement(e.paper.add("path")),s.isMeasured=!1,e.sideFront=s,e._disposers.push(e.sideFront),e.applyTheme(),e}s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight,n=this.depth,r=this.angle,o=V_(r),a=R_(r),s={x:0,y:0},u={x:e,y:0},l={x:e,y:i},h={x:0,y:i},c={x:n*a,y:-n*o},p={x:n*a+e,y:-n*o},d={x:n*a+e,y:-n*o+i},f={x:n*a,y:-n*o+i};this.sideFront.path=ck(s)+pk(u)+pk(l)+pk(h)+" Z",this.sideBack.path=ck(c)+pk(p)+pk(d)+pk(f)+" Z",this.sideLeft.path=ck(s)+pk(c)+pk(f)+pk(h)+" Z",this.sideRight.path=ck(u)+pk(p)+pk(d)+pk(l)+" Z",this.sideBottom.path=ck(h)+pk(f)+pk(d)+pk(l)+" Z",this.sideTop.path=ck(s)+pk(c)+pk(p)+pk(u)+" Z"},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(e){var i;if(t.prototype.setFill.call(this,e),k_(e)&&(e=Px(e)),e instanceof xx)i=e.hex;else if(e instanceof bP||e instanceof _P)i=e.stops.getIndex(0).color.hex;else{var n=new Gk;n.lightness=-.2,this.sideBack.filters.push(n);var r=n.clone();r.lightness=-.4,this.sideLeft.filters.push(r);var o=n.clone();o.lightness=-.2,this.sideRight.filters.push(o);var a=n.clone();a.lightness=-.1,this.sideTop.filters.push(a);var s=n.clone();s.lightness=-.5,this.sideBottom.filters.push(s)}i&&(this.sideBack.fill=Cx(i).lighten(-.2),this.sideLeft.fill=Cx(i).lighten(-.4),this.sideRight.fill=Cx(i).lighten(-.2),this.sideTop.fill=Cx(i).lighten(-.1),this.sideBottom.fill=Cx(i).lighten(-.5))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.sideBack.copyFrom(e.sideBack),this.sideLeft.copyFrom(e.sideLeft),this.sideRight.copyFrom(e.sideRight),this.sideTop.copyFrom(e.sideTop),this.sideBottom.copyFrom(e.sideBottom)}}(WP),function(t){function e(){var e=t.call(this)||this;e.className="Slice3D",e.layout="none";var i=e.createChild(zP);e.edge=i,i.shouldClone=!1,i.isMeasured=!1,i.toBack(),e.angle=30,e.depth=20;var n=e.createChild(zP);e.sideA=n,n.shouldClone=!1,n.isMeasured=!1;var r=e.createChild(zP);return e.sideB=r,r.shouldClone=!1,r.isMeasured=!1,e.applyTheme(),e}s_(e,t),e.prototype.setFill=function(e){var i;if(t.prototype.setFill.call(this,e),e instanceof xx)i=e.hex;else if(e instanceof bP||e instanceof _P)i=e.stops.getIndex(0).color.hex;else{var n=new Gk;n.lightness=-.25,this.edge.filters.push(n),this.sideA.filters.push(n.clone()),this.sideB.filters.push(n.clone())}if(i){var r=Cx(i).lighten(-.25);this.edge.fill=r,this.sideA.fill=r,this.sideB.fill=r,this.edge.stroke=r,this.sideA.stroke=r,this.sideB.stroke=r}},e.prototype.draw=function(){if(this.cornerRadius=0,this.innerCornerRadius=0,t.prototype.draw.call(this),0!==this.arc&&this.radius>0&&this.depth>0){this.sideB.show(0),this.sideA.show(0),this.edge.show(0);for(var e=this.startAngle,i=this.arc,n=this.pixelInnerRadius||0,r=this.radiusY||0,o=this.radius,a=e+i,s=r/o*n,u={x:R_(e)*n,y:V_(e)*s},l={x:R_(e)*o,y:V_(e)*r},h={x:R_(a)*o,y:V_(a)*r},c={x:R_(a)*n,y:V_(a)*s},p=this.depth,d={x:u.x,y:u.y-p},f={x:l.x,y:l.y-p},g={x:h.x,y:h.y-p},y={x:c.x,y:c.y-p},v="",m=Math.ceil(i/5),b=i/m,_=e,w=f,x=0;x<m;x++)if((_+=b)>0&&_<180){v+=ck(w);var C={x:R_(_)*o,y:V_(_)*r-p};v+=pk({x:w.x,y:w.y+p}),v+=gk({x:C.x,y:C.y+p},o,r,!0),v+=pk(C),v+=gk(w,o,r),v+="z",w=C}else v+=ck(w),v+=gk(C={x:R_(_)*o,y:V_(_)*r-p},o,r,!0),v+=pk({x:C.x,y:C.y+p}),v+=gk({x:w.x,y:w.y+p},o,r),v+=pk(w),v+="z",w=C;for(w=d,_=e,x=0;x<m;x++)(_+=b)>0&&_<180?(v+=ck(w),C={x:R_(_)*n,y:V_(_)*s-p},v+=pk({x:w.x,y:w.y+p}),v+=gk({x:C.x,y:C.y+p},n,s,!0),v+=pk(C),v+=gk(w,n,s),v+="z",w=C):(v+=ck(w),v+=gk(C={x:R_(_)*n,y:V_(_)*s-p},n,s,!0),v+=pk({x:C.x,y:C.y+p}),v+=gk({x:w.x,y:w.y+p},n,s),v+=pk(w),v+="z",w=C);this.edge.path=v,this.sideA.path=ck(u)+pk(l)+pk(f)+pk(d)+" Z",this.sideB.path=ck(h)+pk(c)+pk(y)+pk(g)+" Z",this.startAngle<90?this.sideA.toBack():this.sideA.toFront(),this.startAngle+this.arc>90?this.sideB.toBack():this.sideB.toFront(),this.slice.dy=-p}else this.sideA.hide(0),this.sideB.hide(0),this.edge.hide(0)},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){var t=this.getPropertyValue("angle");return S_(t)||(t=0),t},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return S_(t)||(t=this.radius-this.radius*this.angle/90),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.edge.copyFrom(e.edge),this.sideA.copyFrom(e.sideA),this.sideB.copyFrom(e.sideB)}}(xk);var Kk=function(t){function e(){var e=t.call(this)||this;return e.className="RadialGradientModifier",e.gradient=new _P,e.applyTheme(),e}return s_(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},e}(Uk);ex.registeredClasses.RadialGradientModifier=Kk;var Yk=function(t){function e(){var e=t.call(this)||this;return e.properties.gap=0,e._line=e.paper.add("path"),e.addElement(e._line),e}return s_(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),Math.round(this.rotation/90)!=this.rotation/90&&(this.properties.shapeRendering="auto"),this._line){var e=this.width,i=this.height,n="";if(this.gap)for(var r=this.gap+this.strokeWidth,o=this.height/r,a=-o/2;a<1.5*o;a++)Math.round(this.rotation/90)!=this.rotation/90?(n+=ck({x:-e,y:(a+.5)*r})+pk({x:2*e,y:(a+.5)*r}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):n+=ck({x:-e,y:a*r})+pk({x:2*e,y:a*r});else Math.round(this.rotation/90)!=this.rotation/90?(n=ck({x:-e,y:i/2})+pk({x:2*e,y:i/2}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):n=ck({x:0,y:0})+pk({x:e,y:0});this._line.attr({d:n})}},Object.defineProperty(e.prototype,"gap",{get:function(){return this.properties.gap},set:function(t){this.properties.gap=t,this.draw()},enumerable:!0,configurable:!0}),e}(mP);ex.registeredClasses.LinePattern=Yk;var qk=function(t){function e(){var e=t.call(this)||this;return e.properties.radius=2,e._circle=e.paper.add("circle"),e.addElement(e._circle),e.shapeRendering="auto",e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this._circle&&this._circle.attr({r:this.radius,cx:this.width/2,cy:this.height/2})},Object.defineProperty(e.prototype,"radius",{get:function(){return this.properties.radius},set:function(t){this.properties.radius=t,this.draw()},enumerable:!0,configurable:!0}),e}(mP);ex.registeredClasses.CirclePattern=qk;var Xk=function(t){function e(){var e=t.call(this)||this;return e.rectHeight=1,e.rectWidth=1,e._rect=e.paper.add("rect"),e.addElement(e._rect),e}return s_(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2,this._rect&&this._rect.attr({width:this.rectWidth,height:this.rectHeight,x:(this.width-this.rectWidth)/2,y:(this.height-this.rectHeight)/2})},Object.defineProperty(e.prototype,"rectWidth",{get:function(){return this.properties.rectWidth},set:function(t){this.properties.rectWidth=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectHeight",{get:function(){return this.properties.rectHeight},set:function(t){this.properties.rectHeight=t,this.draw()},enumerable:!0,configurable:!0}),e}(mP);ex.registeredClasses.RectPattern=Xk;var Zk=function(t){function e(){var e=t.call(this)||this;return e.className="ColorizeFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.intensity=1,e.applyTheme(),e}return s_(e,t),e.prototype.applyFilter=function(){var t,e,i,n=this.intensity,r=1-n,o=this.color;o&&o.rgb?(t=o.rgb.r/255*n,e=o.rgb.g/255*n,i=o.rgb.b/255*n):(t=0,e=0,i=0),this.feColorMatrix.attr({values:r+" 0 0 0 "+t+" 0 "+r+" 0 0 "+e+" 0 0 "+r+" 0 "+i+" 0 0 0 1 0"})},Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.properties.color=t,this.applyFilter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intensity",{get:function(){return this.properties.intensity},set:function(t){this.properties.intensity=t,this.applyFilter()},enumerable:!0,configurable:!0}),e}(Ek);ex.registeredClasses.ColorizeFilter=Zk;var Qk=function(t){function e(){var e=t.call(this)||this;return e.className="DesaturateFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"saturate"}),e.filterPrimitives.push(e.feColorMatrix),e.width=120,e.height=120,e.saturation=0,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"saturation",{get:function(){return this.properties.saturation},set:function(t){this.properties.saturation=t,this.feColorMatrix.attr({values:t.toString()})},enumerable:!0,configurable:!0}),e}(Ek);ex.registeredClasses.DesaturateFilter=Qk;var $k=function(t){function e(){var e=t.call(this)||this;return e.className="BlurFilter",e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.width=200,e.height=200,e.blur=1.5,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"blur",{get:function(){return this.properties.blur},set:function(t){this.properties.blur=t,this.feGaussianBlur.attr({stdDeviation:t/this.scale})},enumerable:!0,configurable:!0}),e}(Ek);ex.registeredClasses.BlurFilter=$k;var Jk=function(t){function e(){var e=t.call(this)||this;return e.className="FocusFilter",e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":(new ZC).getFor("primaryButtonHover"),result:"base"}),e.filterPrimitives.push(e.feFlood),e.feMorphology=e.paper.add("feMorphology"),e.feMorphology.attr({result:"bigger",in:"SourceGraphic",operator:"dilate",radius:"2"}),e.filterPrimitives.push(e.feMorphology),e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({result:"mask",in:"bigger",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),e.filterPrimitives.push(e.feColorMatrix),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({result:"drop",in:"base",in2:"mask",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feBlend=e.paper.add("feBlend"),e.feBlend.attr({in:"SourceGraphic",in2:"drop",mode:"normal"}),e.filterPrimitives.push(e.feBlend),e.width=130,e.height=130,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(t){this.properties.stroke=t,this.feFlood.attr({"flood-color":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(t){this.properties.strokeWidth=t,this.feMorphology.attr({radius:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(t){this.properties.opacity=t,this.feColorMatrix.attr({values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+t+" 0"})},enumerable:!0,configurable:!0}),e.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.group.removeStyle("outline"),e.group.addStyle({outline:"none"}),t.prototype.setSprite.call(this,e)},e}(Ek),tS=function(t){function e(){var e=t.call(this)||this;return e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new xx({r:103,g:183,b:220}),e.stepOptions={},e.passOptions={brighten:-.2},e.step=1,e.minColors=20,e.minLightness=.2,e.maxLightness=.9,e.shuffle=!1,e.wrap=!0,e.reuse=!1,e.saturation=1,e.className="ColorSet",e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"list",{get:function(){return this._list||this.generate(this.minColors),this._list},set:function(t){this._list=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.getReusableColor=function(t){if(0==this._list.length)return this.generate(1),this.list[0];var e=t-Math.floor(t/this._list.length)*this.list.length;return this.list[e]},e.prototype.next=function(){var t;return this.list.length<=this._currentStep?this.reuse?t=this.getReusableColor(this._currentStep):(this.generate(this.minColors),t=this.list[this._currentStep]):t=this.list[this._currentStep],this._currentStep+=this.step,t.saturate(this.saturation)},e.prototype.getIndex=function(t){var e;return this.list.length<=t?this.reuse?e=this.getReusableColor(t):(this.generate(this.minColors),e=this.getIndex(t)):e=this.list[t],e.saturate(this.saturation)},e.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(e.prototype,"currentStep",{get:function(){return this._currentStep},set:function(t){this._currentStep=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return this._startIndex},set:function(t){this._startIndex=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.generate=function(t){var e=wx(x_(this.currentColor.rgb)),i=w_(this.stepOptions.hue)?this.stepOptions.hue:1/t,n={brighten:0,lighten:0,hue:e.h,lightness:e.l,saturation:e.s},r=[],o=0==this.list.length?0:1;if(this.reuse)for(var a=o;a<=t;a++)r.push(wx(x_(this._list[a].rgb)).h);else for(a=o;a<=t;a++){var s=e.h+i*a;this.wrap&&s>1&&(s-=1),r.push(s)}for(this.shuffle&&r.sort((function(t,e){return Math.random()-.5})),a=0;a<t;a++){this.reuse?e=wx(x_(this._list[a].rgb)):e.h=r.shift(),this.applyStepOptions(e,n,a,this._currentPass);var u=Cx(_x(e)),l=(this.stepOptions.brighten||0)*a+(this.passOptions.brighten||0)*this._currentPass;0!=l&&(l=this.wrap?Qx(l,this.minLightness,this.maxLightness):Zx(l,this.minLightness,this.maxLightness),u=u.brighten(l));var h=(this.stepOptions.lighten||0)*a+(this.passOptions.lighten||0)*this._currentPass;0!=h&&(h=this.wrap?Qx(h,this.minLightness,this.maxLightness):Zx(h,this.minLightness,this.maxLightness),u=u.lighten(h)),this._list.push(u)}this._currentPass++},Object.defineProperty(e.prototype,"currentColor",{get:function(){return 0==this._list.length?this.baseColor.saturate(this.saturation):this._list[this._list.length-1].saturate(this.saturation)},enumerable:!0,configurable:!0}),e.prototype.applyStepOptions=function(t,e,i,n){t.l=e.lightness+(this.stepOptions.lightness||0)*i+(this.passOptions.lightness||0)*n,this.wrap?(t.l>1?t.l=t.l-Math.floor(t.l):t.l<0&&(t.l=-(t.l-Math.floor(t.l))),t.l=Qx(t.l,this.minLightness,this.maxLightness)):(t.l>1?t.l=1:t.l<0&&(t.l=0),t.l=Zx(t.l,this.minLightness,this.maxLightness))},e.prototype.processConfig=function(e){if(e&&w_(e.list)&&D_(e.list))for(var i=0,n=e.list.length;i<n;i++)e.list[i]instanceof xx||(e.list[i]=Cx(e.list[i]));t.prototype.processConfig.call(this,e)},e}(kx);ex.registeredClasses.ColorSet=tS;var eS=function(t){function e(){var e=t.call(this)||this;e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new xx({r:103,g:183,b:220}),e.className="PatternSet";var i=new ZC;return e.list=[e.getLinePattern(1e3,45,1,6),e.getRectPattern(10,0,4),e.getLinePattern(1e3,-45,1,6),e.getCirclePattern(11,2,!0),e.getLinePattern(6,90,1),e.getRectPattern(12,45,6,!0),e.getLinePattern(6,0,1),e.getRectPattern(7,0,4),e.getLinePattern(1e3,45,2,3,"4,2"),e.getCirclePattern(9,3,!1),e.getLinePattern(1e3,-45,2,3,"4,2"),e.getRectPattern(10,45,Math.sqrt(50)),e.getLinePattern(1e3,-45,2,1),e.getRectPattern(10,0,9),e.getLinePattern(1e3,45,2,1),e.getLinePattern(1e3,0,3,1),e.getRectPattern(10,45,10),e.getLinePattern(1e3,90,3,1)],e.baseColor=i.getFor("stroke"),e.applyTheme(),e}return s_(e,t),e.prototype.getLinePattern=function(t,e,i,n,r){var o=new Yk;return o.width=t,o.height=t,o.stroke=this.baseColor,o.gap=n,o.strokeDasharray=r,o.strokeWidth=i,o.rotation=e,o},e.prototype.getRectPattern=function(t,e,i,n){var r=new Xk;return r.width=t,r.height=t,r.rectWidth=i,r.rectHeight=i,n?(r.stroke=this.baseColor,r.strokeWidth=1,r.fillOpacity=0):(r.fill=this.baseColor,r.strokeWidth=0),0!=e&&(r.shapeRendering="auto"),r.rotation=e,r},e.prototype.getCirclePattern=function(t,e,i){var n=new qk;return n.width=t,n.height=t,n.shapeRendering="auto",n.radius=e,i?(n.stroke=this.baseColor,n.strokeWidth=1,n.fillOpacity=0):(n.fill=this.baseColor,n.strokeWidth=0),n},Object.defineProperty(e.prototype,"list",{get:function(){return this._list},set:function(t){this._list=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.next=function(){var t=this.getIndex(this.currentStep);return this._currentStep++,t},e.prototype.getIndex=function(t){for(;this.list.length<=t;)this.generatePatterns();return this.list[t].clone()},e.prototype.generatePatterns=function(){var t=this.list.length/(this._currentPass+1);this._currentPass++;for(var e=0;e<t;e++)this.list.push(this.list[e].clone())},e.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(e.prototype,"currentStep",{get:function(){return this._currentStep},set:function(t){this._currentStep=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return this._startIndex},set:function(t){this._startIndex=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){t.prototype.processConfig.call(this,e)},e}(kx);ex.registeredClasses.PatternSet=eS,function(){function t(){this._disposed=!1,this._disposers=[]}t.prototype.init=function(){},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._disposers;for(this._disposers=null;0!==t.length;)t.shift().dispose()}}}();var iS=function(t){function e(){var e=t.call(this)||this;e.className="AmChartsLogo",e.valign="bottom";e.opacity=.3,e.defaultState.properties.opacity=.4,e.url="https://www.amcharts.com/",e.urlTarget="_blank",e.showSystemTooltip=!0,e.readerTitle="Chart created using amCharts library",e.width=66,e.height=21,e.background.opacity=0;var i=Cx("#474758");"#ffffff"==(new ZC).getFor("background").alternative.hex&&(i=Cx("#ffffff"));var n=new bP;n.addColor(i),n.addColor(i,1,.75),n.addColor(Cx("#3cabff"),1,.755),n.rotation=-10;var r=n,o=e.createChild(wk);o.shouldClone=!1,o.isMeasured=!1,o.segments=[[{x:15,y:15},{x:27,y:15},{x:36,y:6},{x:40.5,y:10.5},{x:45,y:6},{x:54,y:15},{x:60,y:15}]],o.strokeWidth=6*.3,o.tensionX=.8,o.tensionY=1,o.stroke=Cx("#3cabff");var a=e.createChild(wk);a.shouldClone=!1,a.isMeasured=!1,a.segments=[[{x:6,y:15},{x:15,y:15},{x:27,y:12*.3},{x:39.9,y:15},{x:51,y:15},{x:60,y:15}]],a.strokeWidth=6*.3,a.tensionX=.75,a.tensionY=1,a.stroke=r,e._disposers.push(a);var s=new Qk;e.filters.push(s);var u=new Qk;u.saturation=1;var l=e.states.create("hover");return l.properties.opacity=1,l.filters.push(u),e.applyTheme(),e}return s_(e,t),e}(WP);function nS(t){-1==ex.queue.indexOf(t)&&(t.__disabled=!0,t.tooltipContainer.__disabled=!0,t.events.disableType("appeared"),0==ex.queue.length&&(ex.events.once("exitframe",(function(){aS(t)})),GP.requestFrame()),t.addDisposer(new mw((function(){rS(t)}))),ex.queue.push(t))}function rS(t){var e=ex.queue.indexOf(t);if(e>=0){ex.queue.splice(ex.queue.indexOf(t),1);var i=ex.queue[e];i&&aS(i)}}function oS(t){t.__disabled&&YC(t.htmlContainer,CC.viewportTarget)&&(t.vpDisposer&&t.vpDisposer.dispose(),nS(t))}function aS(t){t.__disabled=!1,t.tooltipContainer.__disabled=!1,t.events.enableType("appeared"),t.dispatch("removedfromqueue"),t.showOnInit&&t.events.on("appeared",(function(){rS(t)})),t.vpDisposer&&t.vpDisposer.dispose(),t instanceof WP&&t.invalidateLabels(),t.tooltipContainer&&t.tooltipContainer.invalidateLayout(),t instanceof ik?(t.invalidateData(),t.reinit(),t.events.once("datavalidated",(function(){t.showOnInit?t.appear():rS(t)}))):(t.reinit(),t.events.once("inited",(function(){rS(t)})),t.showOnInit&&t.appear())}function sS(t,e){var i;k_(e)&&(w_(ex.registeredClasses[e])?e=ex.registeredClasses[e]:(e=ex.registeredClasses.Container,i=new Error("Class ["+e+"] is not loaded.")));var n=function(t,e){var i=function(t){if(k_(t)){var e=document.getElementById(t);if(null==e&&(e=document.getElementsByClassName(t)[0]),e instanceof HTMLElement)return e}else if(t instanceof HTMLElement)return t}(t);if(i){i.innerHTML="";var n=new fP(i),r=new gP(n.SVGContainer,"svg-"+(dP.length-1)),o=new WP;o.htmlContainer=i,o.svgContainer=n,o.width=f_(100),o.height=f_(100),o.background.fillOpacity=0,o.paper=r,r.append(o.group),o.relativeWidth=1,o.relativeHeight=1,n.container=o;var a=o.createChild(e);a.topParent=o;var s=a.uid;ex.invalidSprites[s]=[],ex.invalidDatas[s]=[],ex.invalidPositions[s]=[],ex.invalidLayouts[s]=[],o.baseId=s,a.isBaseSprite=!0,a.focusFilter=new Jk,ex.baseSprites.push(a),ex.baseSpritesByUid[s]=a,a.maskRectangle={x:0,y:0,width:Math.max(n.width,0),height:Math.max(n.height,0)},o.events.on("maxsizechanged",(function(t){0!=t.previousWidth&&0!=t.previousHeight||o.deepInvalidate(),a.maskRectangle&&(a.maskRectangle={x:0,y:0,width:Math.max(n.width,0),height:Math.max(n.height,0)})}));var u=null;(function t(){a.isDisposed()?u=null:null==zC(a.dom)?(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];console&&console.warn.apply(console,p_(t))}("Chart was not disposed",a.uid),u=null):u=window.setTimeout(t,1e3)})(),a.addDisposer(new mw((function(){null!==u&&clearTimeout(u),sw(ex.baseSprites,a),ex.baseSpritesByUid[a.uid]=void 0}))),a.addDisposer(o);var l=o.createChild(WP);l.topParent=o,l.width=f_(100),l.height=f_(100),l.isMeasured=!1,o.tooltipContainer=l,a.tooltip=new Ak,a.tooltip.hide(0),a.tooltip.setBounds({x:0,y:0,width:l.maxWidth,height:l.maxHeight}),l.events.on("maxsizechanged",(function(){x_(a.tooltip).setBounds({x:0,y:0,width:l.maxWidth,height:l.maxHeight})}),void 0,!1);var h=new Ck;if(h.events.on("inited",(function(){h.__disabled=!0}),void 0,!1),o.preloader=h,a instanceof WP&&!a.hasLicense()){var c=l.createChild(iS);l.events.on("maxsizechanged",(function(t){l.maxWidth<=100||l.maxHeight<=50?c.hide():(c.isHidden||c.isHiding)&&c.show()}),void 0,!1),a.logo=c,c.align="left",c.valign="bottom"}if(a.numberFormatter,o.isStandaloneInstance=!0,CC.onlyShowOnViewport)if(YC(i,CC.viewportTarget))CC.queue&&nS(a);else{a.__disabled=!0,a.tooltipContainer.__disabled=!0;var p=[MC(window,"DOMContentLoaded",(function(){oS(a)})),MC(window,"load",(function(){oS(a)})),MC(window,"resize",(function(){oS(a)})),MC(window,"scroll",(function(){oS(a)}))];if(CC.viewportTarget)for(var d=D_(CC.viewportTarget)?CC.viewportTarget:CC.viewportTarget?[CC.viewportTarget]:[],f=0;f<d.length;f++){var g=d[f];p.push(MC(g,"resize",(function(){oS(a)}))),p.push(MC(g,"scroll",(function(){oS(a)})))}var y=new bw(p);a.addDisposer(y),a.vpDisposer=y}else CC.queue&&nS(a);return a}throw GP.log("html container not found"),new Error("html container not found")}(t,e);return i&&n.raiseCriticalError(i),n}function uS(t){-1===ex.themes.indexOf(t)&&ex.themes.push(t)}var lS=function(t){function e(){var e=t.call(this)||this;return e.childrenCreated=!1,e.className="LegendDataItem",e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"label",{get:function(){var t=this;if(!this._label){var e=this.component.labels.create();this._label=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new mw((function(){w_(t.component)&&t.component.labels.removeValue(e)})))}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueLabel",{get:function(){var t=this;if(!this._valueLabel){var e=this.component.valueLabels.create();this._valueLabel=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new mw((function(){w_(t.component)&&t.component.valueLabels.removeValue(e)})))}return this._valueLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemContainer",{get:function(){var t=this;if(!this._itemContainer){var e=this.component,i=e.itemContainers.create();i.parent=e,this._itemContainer=i,this.addSprite(i),this._disposers.push(i),i.togglable&&i.events.on("toggled",(function(t){e.toggleDataItem(t.target.dataItem)}),void 0,!1),i.focusable&&(i.events.on("hit",(function(t){e.focusedItem=void 0}),void 0,!1),i.events.on("focus",(function(t){e.focusedItem=t.target.dataItem}),void 0,!1),i.events.on("blur",(function(t){e.focusedItem=void 0}),void 0,!1)),this._disposers.push(new mw((function(){w_(t.component)&&t.component.itemContainers.removeValue(i)}))),this.dataContext.uidAttr&&(i.readerControls=this.dataContext.uidAttr(),i.readerLabelledBy=this.dataContext.uidAttr());var n=this.dataContext;if((n instanceof ek||n instanceof zP)&&!n.isDisposed()){var r=function(t){i.readerChecked=t.visible,i.events.disableType("toggled"),i.isActive=!t.visible,i.events.enableType("toggled")};n.addDisposer(new mw((function(){t.component&&t.component.dataItems.remove(t)}))),n instanceof zP?(i.addDisposer(n.events.on("visibilitychanged",r,void 0,!1)),i.addDisposer(n.events.on("hidden",(function(t){i.readerChecked=!1,i.events.disableType("toggled"),i.isActive=!0,i.events.enableType("toggled")}),void 0,!1)),i.addDisposer(n.events.on("shown",(function(t){i.readerChecked=!0,i.events.disableType("toggled"),i.isActive=!1,i.events.enableType("toggled")}),void 0,!1))):i.addDisposer(n.events.on("visibilitychanged",r,void 0,!1))}}return this._itemContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marker",{get:function(){var t=this;if(!this._marker){var e=this.component.markers.create();this._marker=e,e.parent=this.itemContainer,this.addSprite(e),this._disposers.push(e),this._disposers.push(new mw((function(){w_(t.component)&&t.component.markers.removeValue(e)})))}return this._marker},enumerable:!0,configurable:!0}),e}(ek),hS=function(){this.createMarker=!0},cS=function(t){function e(){var e=t.call(this)||this;e.className="Legend",e.layout="grid",e.setPropertyValue("useDefaultMarker",!1),e.setPropertyValue("scrollable",!1),e.setPropertyValue("contentAlign","center");var i=new WP;i.applyOnClones=!0,i.padding(8,0,8,0),i.margin(0,10,0,10),i.layout="horizontal",i.clickable=!0,i.focusable=!0,i.role="switch",i.togglable=!0,i.cursorOverStyle=xP.pointer,i.background.fillOpacity=0,e.itemContainers=new sx(i),e._disposers.push(new rx(e.itemContainers)),e._disposers.push(e.itemContainers.template),e._disposers.push(aP().body.events.on("keyup",(function(t){if(iP.isKey(t.event,"enter")&&e.focusedItem){var i=e.focusedItem,n=i.itemContainer;n.togglable?e.toggleDataItem(i):n.clickable&&n.events.isEnabled("hit")&&(n.dispatchImmediately("hit",{event:t}),e.focusedItem=i)}}),e));var n=new ZC,r=new WP;r.width=23,r.height=23,r.interactionsEnabled=!1,r.applyOnClones=!0,r.setStateOnChildren=!0,r.background.fillOpacity=0,r.background.strokeOpacity=0,r.propertyFields.fill="fill",r.valign="middle";var o=n.getFor("disabledBackground");r.events.on("childadded",(function(t){var e=t.newValue.states.create("active");e.properties.stroke=o,e.properties.fill=o})),e.markers=new sx(r),e._disposers.push(new rx(e.markers)),e._disposers.push(e.markers.template);var a=r.createChild(rk);a.width=f_(100),a.height=f_(100),a.applyOnClones=!0,a.propertyFields.fill="fill",a.strokeOpacity=0;var s=new nk;s.text="{name}",s.margin(0,5,0,5),s.valign="middle",s.applyOnClones=!0,s.states.create("active").properties.fill=n.getFor("disabledBackground"),e.labels=new sx(s),e._disposers.push(new rx(e.labels)),e._disposers.push(e.labels.template),s.interactionsEnabled=!1,s.truncate=!0,s.fullWords=!1;var u=new nk;return u.margin(0,5,0,0),u.valign="middle",u.width=50,u.align="right",u.textAlign="end",u.applyOnClones=!0,u.states.create("active").properties.fill=n.getFor("disabledBackground"),u.interactionsEnabled=!1,e.valueLabels=new sx(u),e._disposers.push(new rx(e.valueLabels)),e._disposers.push(e.valueLabels.template),e.position="bottom",i.states.create("active"),i.setStateOnChildren=!0,e.role="group",e.events.on("layoutvalidated",e.handleScrollbar,e,!1),e.applyTheme(),e}return s_(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w_(this.readerTitle)||(this.readerTitle=this.language.translate("Legend"))},e.prototype.createDataItem=function(){return new lS},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e);var i=e.itemContainer,n=e.marker;e.label;var r=e.valueLabel;i.readerChecked=e.dataContext.visible,e.dataContext.legendDataItem=e;var o=e.label.maxWidth;e.label.width=void 0,o>0&&(e.label.maxWidth=o),"right"==r.align&&(r.width=void 0);var a=e.dataContext.legendSettings,s=e.dataContext;!s.createLegendMarker||this.useDefaultMarker&&s instanceof zP||e.childrenCreated||(s.createLegendMarker(n),e.childrenCreated=!0),s.updateLegendValue&&s.updateLegendValue(),s.component&&s.component.updateLegendValue&&s.component.updateLegendValue(s),r.invalid&&r.validate(),""==r.text||null==r.text?r.__disabled=!0:r.__disabled=!1,!a||null==a.itemValueText&&null==a.valueText||(r.__disabled=!1);var u=e.dataContext.visible;void 0===u&&(u=!0),u=m_(u),e.dataContext.visible=u,i.events.disableType("toggled"),i.isActive=!u,i.isActive?i.setState("active",0):i.setState("default",0),i.events.enableType("toggled")},e.prototype.afterDraw=function(){var e=this,i=this.getPropertyValue("maxWidth"),n=0;this.labels.each((function(t){t.invalid&&t.validate(),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>n&&(n=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var r=0;this.valueLabels.each((function(t){t.invalid&&t.validate(),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>r&&(r=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var o=0;this.markers.each((function(t){t.invalid&&t.validate(),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>o&&(o=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var a,s=this.itemContainers.template,u=s.pixelMarginRight+s.pixelMarginLeft,l=n+r+o;S_(i)?((i-=u)>l&&(i=l),a=i-o-r):a=n,this.labels.each((function(t){("right"==e.valueLabels.template.align||t.measuredWidth>a)&&(t.width=Math.min(t.maxWidth,a-t.pixelMarginLeft-t.pixelMarginRight))})),"right"==this.valueLabels.template.align&&this.valueLabels.each((function(t){t.width=r-t.pixelMarginRight-t.pixelMarginLeft})),t.prototype.afterDraw.call(this)},e.prototype.handleScrollbar=function(){var t=this.scrollbar;this.scrollable&&t&&(t.height=this.measuredHeight,t.x=this.measuredWidth-t.pixelWidth-t.pixelMarginLeft,this.contentHeight>this.measuredHeight?(t.visible=!0,t.thumb.height=t.height*this.measuredHeight/this.contentHeight,this.paddingRight=t.pixelWidth+t.pixelMarginLeft+ +t.pixelMarginRight):t.visible=!1,this.updateMasks())},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t)&&("left"==t||"right"==t?(this.margin(10,5,10,10),this.valign="middle",this.contentAlign="none",this.valueLabels.template.align="right",S_(this.maxColumns)||(this.maxColumns=1),this.width=void 0,this.maxWidth=220):(this.maxColumns=void 0,this.width=f_(100),this.valueLabels.template.align="left"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useDefaultMarker",{get:function(){return this.getPropertyValue("useDefaultMarker")},set:function(t){this.setPropertyValue("useDefaultMarker",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollable",{get:function(){return this.getPropertyValue("scrollable")},set:function(t){if(this.setPropertyValue("scrollable",t,!0))if(t){var e=this.createChild(Ok);this.scrollbar=e,e.isMeasured=!1,e.orientation="vertical",e.endGrip.__disabled=!0,e.startGrip.__disabled=!0,e.visible=!1,e.marginLeft=5,this._mouseWheelDisposer=this.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer),this._disposers.push(e.events.on("rangechanged",this.updateMasks,this,!1))}else this._mouseWheelDisposer&&(this._mouseWheelDisposer.dispose(),this.scrollbar&&(this.scrollbar.dispose(),this.scrollbar=void 0))},enumerable:!0,configurable:!0}),e.prototype.handleWheel=function(t){var e=t.shift.y,i=this.scrollbar;if(i){var n=e/1e3*this.measuredHeight/this.contentHeight,r=i.end-i.start;e>0?(i.start=N_(0,i.start-n),i.end=i.start+r):(i.end=B_(1,i.end-n),i.start=i.end-r)}},e.prototype.updateMasks=function(){var t=this;this.scrollbar&&this.itemContainers.each((function(e){e.dy=-t.scrollbar.thumb.pixelY*t.contentHeight/t.measuredHeight,e.maskRectangle={x:0,y:-e.dy,width:t.measuredWidth,height:t.measuredHeight}}))},e.prototype.toggleDataItem=function(t){var e=t.dataContext;!e.visible||e.isHiding||e instanceof zP&&e.isHidden?(t.color=t.colorOrig,t.itemContainer.isActive=!1,!0===e.hidden&&(e.hidden=!1),e.show?e.show():e.visible=!0,this.svgContainer.readerAlert(this.language.translate("%1 shown",this.language.locale,t.label.readerTitle))):(t.itemContainer.isActive=!0,e.hide?e.hide():e.visible=!1,this.svgContainer.readerAlert(this.language.translate("%1 hidden",this.language.locale,t.label.readerTitle)),t.color=(new ZC).getFor("disabledBackground"))},Object.defineProperty(e.prototype,"preloader",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.handleDataItemPropertyChange=function(t,e){t.valueLabel.invalidate(),t.label.invalidate()},e}(ik);ex.registeredClasses.Legend=cS,JP.push({relevant:tk.widthXS,state:function(t,e){if(t instanceof cS&&("left"==t.position||"right"==t.position)){var i=t.states.create(e);return i.properties.position="bottom",i}return null}}),JP.push({relevant:tk.heightXS,state:function(t,e){if(t instanceof cS&&("top"==t.position||"bottom"==t.position)){var i=t.states.create(e);return i.properties.position="right",i}return null}}),JP.push({relevant:tk.isXS,state:function(t,e){if(t instanceof cS){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var pS=function(t){function e(){var e=t.call(this)||this;e._axis=new _w,e.dataItems=new ax,e.className="AxisBreak",e.breakSize=.01,e.marginLeft=-5,e.marginRight=-5,e.marginTop=-5,e.marginBottom=-5;var i=new ZC,n=new Rk;n.fill=i.getFor("background"),n.stroke=Cx(),n.fillOpacity=.9,n.zIndex=0,e._fillShape=n;var r=new Rk;r.fill=Cx(),r.stroke=i.getFor("grid"),r.strokeOpacity=.3,r.zIndex=1,e._startLine=r;var o=new Rk;return o.fill=Cx(),o.stroke=Cx("#000000"),o.strokeOpacity=.3,o.zIndex=2,e._endLine=o,e._disposers.push(e._axis),e.applyTheme(),e}return s_(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this._fillShape&&this._fillShape.dispose(),this._startLine&&this._startLine.dispose(),this._endLine&&this._endLine.dispose()},Object.defineProperty(e.prototype,"startLine",{get:function(){return this._startLine},set:function(t){this._startLine&&this._startLine.dispose(),this._startLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLine",{get:function(){return this._endLine},set:function(t){this._endLine&&this._endLine.dispose(),this._endLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillShape",{get:function(){return this._fillShape},set:function(t){this._fillShape&&this._fillShape.dispose(),this._fillShape=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),e.prototype.addBreakSprite=function(t){t.parent=this,t.isMeasured=!1,this._disposers.push(t)},Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this._axis.get()!==t){this._axis.set(t,t.renderer.gridContainer.events.on("transformed",this.invalidate,this,!1)),t.renderer.createBreakSprites(this);var e=t.axisBreaks.template;this.startLine.copyFrom(e.startLine),this.endLine.copyFrom(e.endLine),this.fillShape.copyFrom(e.fillShape)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"breakSize",{get:function(){return this.getPropertyValue("breakSize")},set:function(t){this.setPropertyValue("breakSize",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.startPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.endPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPosition",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.draw=function(){t.prototype.draw.call(this),this.axis&&this.axis.renderer.updateBreakElement(this)},Object.defineProperty(e.prototype,"startValue",{get:function(){return this.getPropertyValue("startValue")},set:function(t){this.setPropertyValue("startValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this.getPropertyValue("endValue")},set:function(t){this.setPropertyValue("endValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e}(WP);ex.registeredClasses.AxisBreak=pS;var dS,fS=function(t){function e(){var e=t.call(this)||this;return e.className="AxisDataItem",e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.grid).disabled)return;e=i.clone()}else{if((i=t.renderer.grid.template).disabled)return;e=t.renderer.grid.create(),this._disposers.push(new mw((function(){t.renderer.grid.removeValue(e)})))}this.grid=e,e.shouldClone=!1,this._disposers.push(e),e.axis=this.component}}return this._grid},set:function(t){this._grid&&this._grid!=t&&(sw(this.sprites,this._grid),this._grid.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(sw(t.dataItem.sprites,t),t.dataItem.grid=void 0),this.addSprite(t)),this._grid=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){if(!this._tick){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.tick).disabled)return;e=i.clone()}else{if((i=t.renderer.ticks.template).disabled)return;e=t.renderer.ticks.create(),this._disposers.push(new mw((function(){t.renderer.ticks.removeValue(e)})))}this.tick=e,e.axis=this.component,e.shouldClone=!1,this._disposers.push(e)}}return this._tick},set:function(t){this._tick&&this._tick!=t&&(sw(this.sprites,this._tick),this._tick.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(sw(t.dataItem.sprites,t),t.dataItem.tick=void 0),this.addSprite(t)),this._tick=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){if(!this._label){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.label).disabled)return;e=i.clone()}else{if((i=t.renderer.labels.template).disabled)return;e=t.renderer.labels.create(),this._disposers.push(new mw((function(){t.renderer.labels.removeValue(e)})))}this._disposers.push(e),this.label=e,e.shouldClone=!1,e.axis=this.component,e.virtualParent=t}}return this._label},set:function(t){this._label&&this._label!=t&&(sw(this.sprites,this._label),this._label.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(sw(t.dataItem.sprites,t),t.dataItem.label=void 0),this.addSprite(t)),this._label=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisFill",{get:function(){if(!this._axisFill){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.axisFill,!this.isTemplate&&i.disabled)return;e=i.clone()}else{if((i=t.renderer.axisFills.template).disabled)return;e=t.renderer.axisFills.create(),this._disposers.push(new mw((function(){t.renderer.axisFills.removeValue(e)})))}this.axisFill=e,e.shouldClone=!1,this._disposers.push(e)}}return this._axisFill},set:function(t){this._axisFill&&this._axisFill!=t&&(sw(this.sprites,this._axisFill),this._axisFill.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(sw(t.dataItem.sprites,t),t.dataItem.axisFill=void 0),t.axis=this.component,this.addSprite(t)),this._axisFill=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t,this._label&&(this._label.text=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contents",{get:function(){if(!this._contents){var t=new WP;this.addSprite(t),t.isMeasured=!1,this._contents=t;var e=this.component;if(e){var i=e.renderer.createFill(this.component);i.disabled=!1,i.axis=e,this.addSprite(i),this._mask=i,t.mask=i}}return this._contents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisBreak",{get:function(){return this._axisBreak},set:function(t){this._axisBreak&&this._axisBreak.dataItems.removeValue(this),t&&t.dataItems.push(this),this._axisBreak=t},enumerable:!0,configurable:!0}),e.prototype.validate=function(){this.component&&this.component.validateDataElement(this)},e.prototype.appendChildren=function(){this.component&&this.component.appendDataItem(this)},e.prototype.configOrder=function(t,e){return t==e?0:"language"==t?-1:"language"==e?1:"component"==t?-1:"component"==e?1:0},e.prototype.hasProperty=function(e){return"component"==e||t.prototype.hasProperty.call(this,e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.text=e.text,e.bullet&&(this.bullet=e.bullet.clone()),this.minPosition=e.minPosition,this.maxPosition=e.maxPosition},e.prototype.setVisibility=function(e,i){t.prototype.setVisibility.call(this,e,i),this._contents&&(this._contents.visible=e)},Object.defineProperty(e.prototype,"bullet",{get:function(){return this._bullet},set:function(t){this._bullet&&this._bullet!=t&&(sw(this.sprites,this._bullet),this._bullet.dataItem=void 0),this._bullet=t,t&&this.addSprite(t)},enumerable:!0,configurable:!0}),e}(ek);!function(t){t[t.Start=0]="Start",t[t.Middle=.5]="Middle",t[t.End=1]="End"}(dS||(dS={}));var gS=function(t){function e(){var i=t.call(this)||this;if(i._gridCount=10,i._series=new ax,i.autoDispose=!0,i._axisItemCount=0,i.constructor===e)throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");i.hideTooltipWhileZooming=!0,i.minWidth=1e-4,i.minHeight=1e-4,i.className="Axis",i.shouldClone=!1,i.setPropertyValue("cursorTooltipEnabled",!0),i.toggleZoomOutButton=!0;var n=new ZC;i.title=new nk,i.title.shouldClone=!1,i._disposers.push(i.title),i.setPropertyValue("startLocation",0),i.setPropertyValue("endLocation",1),i._dataItemsIterator=new Xw(i.dataItems,(function(){return i.dataItems.create()})),i._dataItemsIterator.createNewItems=!0;var r=new Ak;i._disposers.push(r),r.label.padding(5,10,5,10),r.background.pointerLength=5,r.fitPointerToBounds=!0,r.background.filters.clear(),r.virtualParent=i;var o=r.background;return o.cornerRadius=0,o.fill=n.getFor("alternativeBackground"),o.stroke=o.fill,o.strokeWidth=1,o.fillOpacity=1,r.label.fill=n.getFor("alternativeText"),i.tooltip=r,i.readerHidden=!0,i.events.on("rangechangestarted",(function(){i.series.each((function(t){t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!0)})),i.hideTooltipWhileZooming&&(i.tooltip.hide(),i.tooltip.preventShow=!0)}),void 0,!1),i.events.on("rangechangeended",(function(){i.series.each((function(t){t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!1)})),i.hideTooltipWhileZooming&&(i.tooltip.hide(),i.tooltip.preventShow=!1)}),void 0,!1),i.applyTheme(),i}return s_(e,t),e.prototype.fillRule=function(t,e){S_(e)||(e=t.index),e/2==Math.round(e/2)?(t.axisFill.__disabled=!0,t.axisFill.opacity=0):(t.axisFill.opacity=1,t.axisFill.__disabled=!1)},e.prototype.createDataItem=function(){return new fS},e.prototype.invalidateLayout=function(){t.prototype.invalidateLayout.call(this),Ww(this.series.iterator(),(function(t){t.invalidateLayout()}))},e.prototype.invalidateSeries=function(){Ww(this.series.iterator(),(function(t){t.invalidate()}))},e.prototype.validateDataElements=function(){this._axisItemCount=0,this.ghostLabel&&(this.renderer.updateLabelElement(this.ghostLabel,this.start,this.end),this.ghostLabel.validate())},e.prototype.updateGridCount=function(){if(this.renderer){var t=this.axisLength/this.renderer.minGridDistance;t!=this._gridCount&&(this._gridCount=t,this.clearCache())}},e.prototype.validateLayout=function(){this.axisFullLength=this.axisLength/(this.end-this.start),t.prototype.validateLayout.call(this),this.updateGridCount();var e=this.renderer;e&&(e.updateAxisLine(),e.updateTooltip(),e.updateBaseGridElement()),this._prevLength!=this.axisLength&&(this.dispatchImmediately("lengthchanged"),this._prevLength=this.axisLength)},e.prototype.initRenderer=function(){},e.prototype.appendDataItem=function(t){var e=this.renderer,i=t.tick;i&&(i.above?i.parent=e.bulletsContainer:i.parent=e.gridContainer),t.label&&(t.label.parent=e);var n=t.axisFill;n&&(n.above?n.parent=e.bulletsContainer:n.parent=e.gridContainer);var r=t.grid;r&&(r.above?r.parent=e.bulletsContainer:r.parent=e.gridContainer),t.bullet&&(t.bullet.parent=e.bulletsContainer)},e.prototype.validate=function(){t.prototype.validate.call(this),this.validateLayout(),this.renderer.updateGridContainer()},e.prototype.validateAxisRanges=function(){var t=this;Ww(this.axisRanges.iterator(),(function(e){t.appendDataItem(e),t.validateDataElement(e),e.grid&&e.grid.validate(),e.tick&&e.tick.validate(),e.axisFill&&e.axisFill.validate(),e.label&&e.label.validate()}))},e.prototype.validateBreaks=function(){this._axisBreaks&&Ww(this._axisBreaks.iterator(),(function(t){t.invalidate()}))},e.prototype.processBreak=function(t){var e=t.newValue;e.parent=this.renderer.breakContainer,e.axis=this},e.prototype.registerSeries=function(t){var e=this;return this.series.moveValue(t),new bw([new mw((function(){e.series.removeValue(t)})),this.events.on("lengthchanged",t.invalidate,t,!1),this.events.on("lengthchanged",t.createMask,t,!1),this.events.on("startchanged",t.invalidate,t,!1),this.events.on("endchanged",t.invalidate,t,!1)])},Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},set:function(t){if(t!=this._renderer){this._renderer=t,t.chart=this.chart,t.axis=this,t.parent=this,this.title.parent=this,this.initRenderer(),this._disposers.push(t.gridContainer.events.on("maxsizechanged",this.invalidate,this,!1));var e=this.renderer.labels.create();this._disposers.push(e),e.dataItem=this.dataItems.template.clone(),e.text="L",e.parent=this.renderer,e.shouldClone=!1,e.fillOpacity=0,e.opacity=0,e.strokeOpacity=0,e.interactionsEnabled=!1,e.validate(),this.ghostLabel=e,this.events.on("beforedatavalidated",(function(){e.text="L"}),void 0,!1)}},enumerable:!0,configurable:!0}),e.prototype.positionToAngle=function(t){return this.renderer.positionToAngle(t)},e.prototype.pointToPosition=function(t){return this.renderer.pointToPosition(t)},e.prototype.positionToCoordinate=function(t){return this.renderer.positionToCoordinate(t)},e.prototype.getAnyRangePath=function(t,e){return this.renderer.getPositionRangePath(t,e)},e.prototype.anyToPosition=function(t){return 0},e.prototype.anyToPoint=function(t){return{x:0,y:0,angle:0}},e.prototype.getPositionRangePath=function(t,e){return this.renderer?this.renderer.getPositionRangePath(t,e):""},Object.defineProperty(e.prototype,"axisLength",{get:function(){return this.renderer?this.renderer.axisLength:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(t){this.setPropertyValue("cursorTooltipEnabled",t)&&(t&&this.renderer?this.renderer.updateTooltip():this.tooltip&&this.tooltip.hide(0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toggleZoomOutButton",{get:function(){return this.getPropertyValue("toggleZoomOutButton")},set:function(t){this.setPropertyValue("toggleZoomOutButton",t)},enumerable:!0,configurable:!0}),e.prototype.hideTooltip=function(e){t.prototype.hideTooltip.call(this,e),this._tooltipPosition=void 0},e.prototype.showTooltipAtPosition=function(t,e){var i=this._tooltip;if(!i||this.dataItems.length<=0)this._tooltipPosition=void 0;else{if(e||(t=this.toAxisPosition(t)),!S_(t)||t<this.start||t>this.end)return i.hide(0),void(this._tooltipPosition=void 0);var n=this.renderer;i.parent||(i.parent=this.tooltipContainer);var r=n.tooltipLocation,o=this.getCellStartPosition(t),a=this.getCellEndPosition(t);if("fixed"==this.tooltipPosition&&(t=j_(o+(a-o)*r,4)),t=L_(t,this.start,this.end),this._tooltipPosition!=t){this._tooltipPosition=t;var s=n.tooltipLocation2,u=n.positionToPoint(o,s),l=n.positionToPoint(a,s);this.currentItemStartPoint=u,this.currentItemEndPoint=l,n.fullWidthTooltip&&(i.width=l.x-u.x,i.height=l.y-u.y);var h=Jx(n.positionToPoint(t,s),this.renderer.line);i.text=this.getTooltipText(t),i.text&&(i.delayedPointTo(h),i.show())}this.cursorTooltipEnabled&&!this.tooltip.disabled||i.hide(0)}},e.prototype.toAxisPosition=function(t){if(null!=(t=this.renderer.toAxisPosition(t)))return t*=this.end-this.start,this.renderer.inversed?this.end-t:this.start+t},e.prototype.toGlobalPosition=function(t){return this.renderer.inversed?t=this.end-t:t-=this.start,t/(this.end-this.start)},e.prototype.getTooltipText=function(t){},e.prototype.updateTooltip=function(t,e){var i=this._tooltip;i&&(i.pointerOrientation=t,i.setBounds(eC(e,this.renderer.line)))},e.prototype.roundPosition=function(t,e,i){return t},e.prototype.getCellStartPosition=function(t){return t},e.prototype.getCellEndPosition=function(t){return t},Object.defineProperty(e.prototype,"axisRanges",{get:function(){if(!this._axisRanges){var t=this.createDataItem();t.isRange=!0,t.axisFill=this.renderer.axisFills.template.clone(),t.grid=this.renderer.grid.template.clone(),t.tick=this.renderer.ticks.template.clone(),t.label=this.renderer.labels.template.clone(),t.isTemplate=!0,t.component=this,t.axisFill.disabled=!1,t.tick.disabled=!1,t.grid.disabled=!1,t.label.disabled=!1,this._axisRanges=new sx(t),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new rx(this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),e.prototype.processAxisRange=function(t){var e=t.newValue;e.component=this,e.isRange=!0},Object.defineProperty(e.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new cx(this.createAxisBreak(),(function(t,e){return px(t.adjustedStartValue,e.adjustedStartValue)})),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new rx(this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),e.prototype.createAxisBreak=function(){return new pS},Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new ax),this._series},enumerable:!0,configurable:!0}),e.prototype.processSeriesDataItems=function(){},e.prototype.processSeriesDataItem=function(t,e){},e.prototype.postProcessSeriesDataItems=function(t){},e.prototype.postProcessSeriesDataItem=function(t){},e.prototype.updateAxisBySeries=function(){},e.prototype.hideUnusedDataItems=function(){var t=this,e=this._dataItemsIterator;e.createNewItems=!1,Ww(e.iterator(),(function(e){t.validateDataElement(e),e.__disabled=!0})),e.clear(),e.createNewItems=!0},e.prototype.getSeriesDataItem=function(t,e,i){},e.prototype.getAngle=function(t,e,i,n,r){},e.prototype.getX=function(t,e,i,n,r){},e.prototype.getPositionX=function(t,e,i,n,r){},e.prototype.getY=function(t,e,i,n,r){},e.prototype.getPositionY=function(t,e,i,n,r){},Object.defineProperty(e.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),e.prototype.dataChangeUpdate=function(){},e.prototype.seriesDataChangeUpdate=function(t){},e.prototype.adjustDifference=function(t,e){var i=e-t;if(S_(i))return this._axisBreaks&&Uw(this._axisBreaks.iterator(),(function(n){var r,o,a,s,u,l,h,c,p=n.adjustedStartValue,d=n.adjustedEndValue;if(S_(p)&&S_(d)){if(p>e)return!1;if(d>=t&&S_(p)&&S_(d)){var f=n.breakSize,g=(o={start:t,end:e},a=x_((r={start:p,end:d}).start),s=x_(o.start),u=x_(r.end),l=x_(o.end),h=Math.max(a,s),(c=Math.min(u,l))<h?void 0:{start:h,end:c});g&&(i-=(g.end-g.start)*(1-f))}return!0}})),i},e.prototype.isInBreak=function(t){if(this._axisBreaks)return Yw(this._axisBreaks.iterator(),(function(e){return t>=e.adjustedStartValue&&t<=e.adjustedEndValue}))},e.prototype.fixAxisBreaks=function(){var t=this;if(this._axisBreaks){var e=this._axisBreaks;if(e.length>0){ow(zw(e.iterator()),(function(e){var i=B_(e.startValue,e.endValue),n=N_(e.startValue,e.endValue);e.adjustedStartValue=i,e.adjustedEndValue=n,t._axisBreaks.update(e)}));var i=e.first,n=Math.min(i.startValue,i.endValue);Ww(e.iterator(),(function(t){var e=t.adjustedStartValue,i=t.adjustedEndValue;e<n&&(e=n,i<n&&(i=n)),t.adjustedStartValue=e,t.adjustedEndValue=i}))}}},Object.defineProperty(e.prototype,"startIndex",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endIndex",{get:function(){return this.dataItems.length},set:function(t){},enumerable:!0,configurable:!0}),e.prototype.getPositionLabel=function(t){return Math.round(100*t)+"%x"},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),e.prototype.createSeriesRange=function(t){var e=this.axisRanges.create();return e.component=this,e.axisFill=this.renderer.axisFills.template.clone(),e.axisFill.disabled=!1,e.axisFill.fillOpacity=0,e.grid=this.renderer.grid.template.clone(),e.grid.disabled=!0,e.tick=this.renderer.ticks.template.clone(),e.tick.disabled=!0,e.label=this.renderer.labels.template.clone(),e.label.disabled=!0,e.addDisposer(new mw((function(){t.axisRanges.removeValue(e)}))),t.axisRanges.push(e),e},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.renderer?this.renderer.copyFrom(e.renderer):e.renderer&&(this.renderer=e.renderer.clone(),this._disposers.push(this.renderer)),e.title&&(this.title?this.title.copyFrom(e.title):(this.title=e.title.clone(),this.title.parent=this),this._disposers.push(this.title))},e.prototype.resetIterators=function(){this._dataItemsIterator.reset()},e.prototype.processConfig=function(e){if(e&&w_(e.axisRanges)&&D_(e.axisRanges))for(var i=0,n=e.axisRanges.length;i<n;i++){var r=e.axisRanges[i];w_(r.series)&&k_(r.series)&&this.map.hasKey(r.series)&&(e.axisRanges[i]=this.createSeriesRange(this.map.getKey(r.series)),delete r.series,e.axisRanges[i].config=r)}t.prototype.processConfig.call(this,e)},Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.renderer&&(this.renderer.gridContainer.disabled=e),i},Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(t){this._title&&this._title!=t&&this._title.dispose(),t&&(this._title=t,t.parent=this,t.shouldClone=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(t){this.setPropertyValue("hideTooltipWhileZooming",t)},enumerable:!0,configurable:!0}),e}(ik);ex.registeredClasses.Axis=gS,ex.registeredClasses.AxisDataItem=fS,JP.push({relevant:tk.maybeXS,state:function(t,e){if(t instanceof gS&&t.tooltip){var i=t.states.create(e);return i.properties.cursorTooltipEnabled=!1,i}return null}});var yS=function(t){function e(){var e=t.call(this)||this;e.className="AxisLine",e.element=e.paper.add("path");var i=new ZC;return e.stroke=i.getFor("grid"),e.strokeOpacity=.15,e.pixelPerfect=!0,e.fill=Cx(),e.applyTheme(),e.interactionsEnabled=!1,e}return s_(e,t),e}(zP);ex.registeredClasses.AxisLine=yS;var vS=function(t){function e(e){var i=t.call(this)||this;i.axis=e,i.element=i.paper.add("path"),i.className="AxisFill",i.isMeasured=!1,i.location=0,i.above=!1;var n=new ZC;return i.fill=n.getFor("alternativeBackground"),i.fillOpacity=0,i.applyTheme(),i}return s_(e,t),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e.prototype.draw=function(){t.prototype.draw.call(this),this.__disabled||this.disabled||this.axis&&S_(this.startPosition)&&S_(this.endPosition)&&(this.fillPath=this.axis.getPositionRangePath(this.startPosition,this.endPosition),this.path=this.fillPath,this.isMeasured&&this.measure())},Object.defineProperty(e.prototype,"startPosition",{get:function(){return this.getPropertyValue("startPosition")},set:function(t){this.setPropertyValue("startPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){return this.getPropertyValue("endPosition")},set:function(t){this.setPropertyValue("endPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setPath=function(t){return!!this.setPropertyValue("path",t)&&(this.element.attr({d:t}),!0)},Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e}(zP);ex.registeredClasses.AxisFill=vS;var mS=function(t){function e(){var e=t.call(this)||this;e.className="Grid",e.element=e.paper.add("path"),e.location=.5,e.isMeasured=!1,e.above=!1;var i=new ZC;return e.stroke=i.getFor("grid"),e.pixelPerfect=!0,e.strokeOpacity=.15,e.fill=Cx(),e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(zP);ex.registeredClasses.Grid=mS,JP.push({relevant:tk.maybeXS,state:function(t,e){if(t instanceof mS){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var bS=function(t){function e(){var e=t.call(this)||this;return e.className="AxisLabel",e.isMeasured=!1,e.padding(10,10,10,10),e.location=.5,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(nk);ex.registeredClasses.AxisLabel=bS;var _S=function(t){function e(){var e=t.call(this)||this;e.className="Tick";var i=new ZC;return e.fillOpacity=0,e.length=6,e.strokeOpacity=.2,e.stroke=i.getFor("grid"),e.isMeasured=!1,e.nonScalingStroke=!0,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"length",{get:function(){return this.disabled?0:this.getPropertyValue("length")},set:function(t){this.setPropertyValue("length",t,!0)},enumerable:!0,configurable:!0}),e}(zP);ex.registeredClasses.Tick=_S;var wS=function(t){function e(){var e=t.call(this)||this;return e.className="AxisTick",e.element=e.paper.add("path"),e.location=.5,e.above=!1,e.isMeasured=!1,e.pixelPerfect=!0,e.strokeOpacity=0,e.length=5,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(_S);ex.registeredClasses.AxisTick=wS;var xS=function(t){function e(){var e=t.call(this)||this;e._chart=new _w,e.className="AxisRenderer",e.minGridDistance=50,e.inside=!1,e.inversed=!1,e.tooltipLocation=.5,e.fullWidthTooltip=!1,e.cellStartLocation=0,e.cellEndLocation=1,e.minLabelPosition=0,e.maxLabelPosition=1,e.shouldClone=!1;var i=e.createChild(WP);i.shouldClone=!1,i.layout="none",i.virtualParent=e,i.width=f_(100),i.height=f_(100),e.gridContainer=i,i.events.on("maxsizechanged",(function(){e.inited&&e.invalidateAxisItems()}),e,!1);var n=e.createChild(WP);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",n.width=f_(100),n.height=f_(100),e.breakContainer=n;var r=e.createChild(WP);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",r.width=f_(100),r.height=f_(100),e.bulletsContainer=r,e.line=e.createChild(yS),e.line.shouldClone=!1,e.line.strokeOpacity=0;var o=e.createChild(mS);o.shouldClone=!1,e.baseGrid=o;var a=e._disposers;return a.push(o),a.push(e.line),a.push(i),a.push(n),a.push(r),a.push(e._chart),e.ticks.template.disabled=!0,e.axisFills.template.disabled=!0,e.axisFills.template.interactionsEnabled=!1,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis},set:function(t){this.setAxis(t)},enumerable:!0,configurable:!0}),e.prototype.setAxis=function(t){this._axis=t,this.baseGrid.parent=t,this.line.parent=t,this.gridContainer.bind("opacity",t)},e.prototype.processRenderer=function(){this.events.on("sizechanged",this.updateTooltip,this,!1),this.events.on("positionchanged",this.updateTooltip,this,!1),this.labels.template.inside=this.inside,this.ticks.template.inside=this.inside},e.prototype.updateTooltip=function(){},Object.defineProperty(e.prototype,"axisLength",{get:function(){return 0},enumerable:!0,configurable:!0}),e.prototype.positionItem=function(t,e){t&&t.moveTo(e)},e.prototype.positionToPoint=function(t,e){return{x:0,y:0}},e.prototype.positionToAngle=function(t){return 0},e.prototype.positionToCoordinate=function(t){var e=this.axis,i=e.axisFullLength;return e.renderer.inversed?(e.end-t)*i:(t-e.start)*i},e.prototype.updateGridContainer=function(){},e.prototype.getHeight=function(){var t=this.gridContainer;return t.parent?t.parent.pixelHeight:this.gridContainer.pixelHeight||0},e.prototype.getWidth=function(){var t=this.gridContainer;return t.parent?t.parent.pixelWidth:this.gridContainer.pixelWidth||0},e.prototype.coordinateToPosition=function(t,e){var i=this.axis,n=i.axisFullLength;return M_(i.renderer.inversed?i.end-t/n:t/n+i.start,5)},e.prototype.pointToPosition=function(t){return 0},e.prototype.getPositionRangePath=function(t,e){return""},e.prototype.invalidateAxisItems=function(){var t=this.axis;t&&t.invalidateDataItems()},e.prototype.updateGridElement=function(t,e,i){},e.prototype.updateTickElement=function(t,e,i){},e.prototype.updateBullet=function(t,e,i){},e.prototype.updateLabelElement=function(t,e,i,n){},e.prototype.updateFillElement=function(t,e,i){t.startPosition=e,t.endPosition=i},e.prototype.updateAxisLine=function(){},e.prototype.updateBaseGridElement=function(){},e.prototype.updateBreakElement=function(t){this.positionItem(t.startLine,t.startPoint),this.toggleVisibility(t.startLine,t.startPosition,0,1),this.positionItem(t.endLine,t.endPoint),this.toggleVisibility(t.endLine,t.endPosition,0,1)},Object.defineProperty(e.prototype,"minGridDistance",{get:function(){return this.getPropertyValue("minGridDistance")},set:function(t){this.setPropertyValue("minGridDistance",t)&&this.axis&&this.axis.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),e.prototype.toggleVisibility=function(t,e,i,n){var r=this.axis,o=t.dataItem;o&&o instanceof fS&&(S_(o.minPosition)&&(i=o.minPosition),S_(o.maxPosition)&&(n=o.maxPosition));var a=r.start+(r.end-r.start)*(i-1e-4),s=r.start+(r.end-r.start)*(n+1e-4);t.disabled||(t.__disabled=e<a||e>s)},e.prototype.createBreakSprites=function(t){},Object.defineProperty(e.prototype,"axisFills",{get:function(){if(!this._axisFills){var t=this.createFill(this.axis);this._axisFills=new sx(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new rx(this._axisFills)),this._disposers.push(this._axisFills.template)}return this._axisFills},enumerable:!0,configurable:!0}),e.prototype.createFill=function(t){return new vS(t)},Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.createGrid();this._grid=new sx(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new rx(this._grid)),this._disposers.push(this._grid.template)}return this._grid},enumerable:!0,configurable:!0}),e.prototype.createGrid=function(){return new mS},Object.defineProperty(e.prototype,"ticks",{get:function(){if(!this._ticks){var t=this.createTick();t.applyOnClones=!0,t.isMeasured=!1,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._ticks=new sx(t),this._disposers.push(new rx(this._ticks)),this._disposers.push(this._ticks.template)}return this._ticks},enumerable:!0,configurable:!0}),e.prototype.createTick=function(){return new wS},Object.defineProperty(e.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();this._labels=new sx(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new rx(this._labels)),this._disposers.push(this._labels.template)}return this._labels},enumerable:!0,configurable:!0}),e.prototype.createLabel=function(){return new bS},Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t)&&this.axis&&this.axis.invalidate(),t?(this.width=0,this.height=0):(this.width=void 0,this.height=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opposite",{get:function(){return this.getPropertyValue("opposite")},set:function(t){this.setPropertyValue("opposite",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthTooltip",{get:function(){return this.getPropertyValue("fullWidthTooltip")},set:function(t){this.setPropertyValue("fullWidthTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation2",{get:function(){return this.getPropertyValue("tooltipLocation2")},set:function(t){this.setPropertyValue("tooltipLocation2",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellStartLocation",{get:function(){return this.getPropertyValue("cellStartLocation")},set:function(t){this.setPropertyValue("cellStartLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellEndLocation",{get:function(){return this.getPropertyValue("cellEndLocation")},set:function(t){this.setPropertyValue("cellEndLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inversed",{get:function(){return this.getPropertyValue("inversed")},set:function(t){this.setPropertyValue("inversed",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minLabelPosition",{get:function(){return this.getPropertyValue("minLabelPosition")},set:function(t){this.setPropertyValue("minLabelPosition",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxLabelPosition",{get:function(){return this.getPropertyValue("maxLabelPosition")},set:function(t){this.setPropertyValue("maxLabelPosition",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.grid.template.copyFrom(e.grid.template),this.ticks.template.copyFrom(e.ticks.template),this.labels.template.copyFrom(e.labels.template),this.axisFills.template.copyFrom(e.axisFills.template),this.line.copyFrom(e.line),this.baseGrid.copyFrom(e.baseGrid)},e.prototype.toAxisPosition=function(t){return t},e.prototype.setVisibility=function(e){t.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},e}(WP);ex.registeredClasses.AxisRenderer=xS;var CS=function(t){function e(){var e=t.call(this)||this;return e.className="AxisBullet",e.location=.5,e.isMeasured=!1,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(WP);ex.registeredClasses.AxisBullet=CS;var PS=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererY",e.minGridDistance=40,e.opposite=!1,e.height=f_(100),e.labels.template.verticalCenter="middle",e.applyTheme(),e}return s_(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="horizontal"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.y=t.pixelY,e.height=t.axisLength}},e.prototype.toAxisPosition=function(t){var e=this.axis;if(e){var i=1-t,n=e.relativePositionSprite,r=e.pixelY;if(n?r=tC({x:0,y:this.pixelY},this.parent,n).y:n=e.parent,n)return 1-(i-r/n.innerHeight)/(e.axisLength/n.innerHeight)}return t},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){var i=e.title;i.valign="middle",e.height instanceof d_||(e.height=f_(100)),this.opposite?(i.rotation=90,this.line.toBack(),i.toFront()):(i.rotation=-90,i.toBack(),this.line.toFront())}},e.prototype.updateTooltip=function(){if(this.axis){var t=0,e=2e3,i=this.axisLength;this.opposite?this.inside&&(t=-2e3,e=2e3):this.inside||(t=-2e3,e=2e3),this.axis.updateTooltip("horizontal",{x:t,y:0,width:e,height:i})}},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredHeight-t.pixelPaddingTop-t.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){return{x:0,y:this.positionToCoordinate(t)}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.y,t.x)},e.prototype.coordinateToPosition=function(t,e){var i=this.axis,n=i.axisFullLength;return M_(i.renderer.inversed?1-i.start-t/n:t/n+(1-i.end),5)},e.prototype.getPositionRangePath=function(t,e){var i=L_(this.positionToCoordinate(t),0,this.axisLength),n=L_(this.positionToCoordinate(e),0,this.axisLength),r=Math.abs(n-i),o=this.getWidth();return yk({x:0,y:Math.min(i,n),width:o,height:r},!0)},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);t.path=ck({x:0,y:0})+pk({x:this.getWidth(),y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e),r=t.length;try{this.axis.title.measuredWidth}catch(o){}n.x=tC({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.opposite?r*=t.inside?-1:1:r*=t.inside?1:-1,t.path=ck({x:0,y:0})+pk({x:r,y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=ck({x:0,y:0})+pk({x:0,y:this.axisLength})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getWidth(),n=this.axisLength,r=e.basePoint.y,o=this.baseGrid;if(r<-.2||r>n+.2)o.hide(0);else{var a=tC({x:0,y:0},this.gridContainer,o.parent).x;o.path=ck({x:0,y:0})+pk({x:i,y:0}),o.moveTo({x:a,y:r}),o.show(0)}},e.prototype.updateLabelElement=function(t,e,i,n){w_(n)||(n=t.location),e+=(i-e)*n,t.isMeasured=!t.inside;var r,o=this.positionToPoint(e),a=0,s=this.gridContainer.maxWidth;this.opposite?(t.inside?(r="right","left"==t.align&&(a=-s,r="left"),"center"==t.align&&(a=-s/2,r="middle")):r="left",o.x=0+a):(t.inside?(r="left","right"==t.align&&(a=s,r="right"),"center"==t.align&&(a=s/2,r="middle")):r="right",o.x=this.measuredWidth+a),0==t.rotation&&(t.horizontalCenter=r),this.positionItem(t,o),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,n=e.endLine,r=e.fillShape,o=e.startPoint,a=e.endPoint,s=e.pixelMarginLeft,u=this.getWidth()-e.pixelMarginLeft-e.pixelMarginRight;o.y=L_(o.y,-1,this.axisLength+1),a.y=L_(a.y,-1,this.axisLength+1),o.y==a.y&&(o.y<0||o.y>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1;var l=Math.abs(u-s);i.x=s,i.height=0,i.width=l,n.x=s,n.height=0,n.width=l,r.width=l,r.height=Math.abs(a.y-o.y),r.x=s,r.y=a.y},e.prototype.createBreakSprites=function(t){t.startLine=new Rk,t.endLine=new Rk;var e=new Nk;e.setWavedSides(!0,!1,!0,!1),t.fillShape=e},e.prototype.positionToCoordinate=function(t){var e=this.axis,i=e.axisFullLength;return M_(e.renderer.inversed?(t-e.start)*i:(e.end-t)*i,1)},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof CS&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);r.x=tC({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e}(xS);ex.registeredClasses.AxisRendererY=PS,JP.push({relevant:tk.widthS,state:function(t,e){if(t instanceof PS){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),JP.push({relevant:tk.widthXS,state:function(t,e){if(t instanceof PS){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var kS=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisBreak",e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),e}(pS);ex.registeredClasses.ValueAxisBreak=kS;var SS=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisDataItem",e.values.value={},e.values.endValue={},e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this.values.endValue.value},set:function(t){this.setValue("endValue",t)},enumerable:!0,configurable:!0}),e}(fS),OS=function(t){function e(){var e=t.call(this)||this;return e._stepDecimalPlaces=0,e._prevStepDecimalPlaces=0,e._adjustLabelPrecision=!0,e._baseValue=0,e._adjustedStart=0,e._adjustedEnd=1,e._extremesChanged=!1,e._deltaMinMax=1,e.calculateTotals=!1,e.className="ValueAxis",e.axisFieldName="value",e.setPropertyValue("maxZoomFactor",1e3),e.setPropertyValue("extraMin",0),e.setPropertyValue("extraMax",0),e.setPropertyValue("strictMinMax",!1),e.setPropertyValue("maxPrecision",Number.MAX_VALUE),e.setPropertyValue("adjustLabelPrecision",!0),e.setPropertyValue("extraTooltipPrecision",0),e.keepSelection=!1,e.includeRangesInMinMax=!1,e.applyTheme(),e}return s_(e,t),e.prototype.fillRule=function(t){var e=t.value,i=t.component;t.axisFill.disabled||(M_(e/i.step/2,5)==Math.round(e/i.step/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1)},e.prototype.createDataItem=function(){return new SS},e.prototype.createAxisBreak=function(){return new kS},e.prototype.dataChangeUpdate=function(){this.clearCache(),this.keepSelection?(0!=this._start&&this.dispatchImmediately("startchanged"),1!=this._end&&this.dispatchImmediately("endchanged"),0==this._start&&1==this._end||this.dispatchImmediately("startendchanged")):0==this._start&&1==this._end||(this._start=0,this._end=1,this.dispatchImmediately("startendchanged")),this._maxZoomed=this._maxDefined,this._minZoomed=this._minDefined,this._maxAdjusted=this._maxDefined,this._minAdjusted=this._minDefined},e.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var t=this.series.getIndex(0),e=t.startIndex;if(t.dataItems.length>0){e>0&&e--;var i=t.endIndex;i<t.dataItems.length&&i++;for(var n=function(t){var e={},i={};r.series.each((function(n){if(!n.excludeFromTotal){var r=n.dataItems.getIndex(t);r&&Lw(r.values,(function(t){var n=r.values[t].workingValue;S_(n)&&(S_(e[t])?e[t]+=Math.abs(n):e[t]=Math.abs(n),S_(i[t])?i[t]+=n:i[t]=n)}))}})),r.series.each((function(n){if(!n.excludeFromTotal){var r=n.dataItems.getIndex(t);r&&Lw(r.values,(function(t){var n=r.values[t].workingValue;S_(n)&&(r.setCalculatedValue(t,e[t],"total"),r.setCalculatedValue(t,100*n/e[t],"totalPercent"),r.setCalculatedValue(t,i[t],"sum"))}))}}))},r=this,o=e;o<i;++o)n(o)}}},e.prototype.validate=function(){this.axisLength<=0||(t.prototype.validate.call(this),this.getMinMax(),this.fixAxisBreaks(),this.calculateZoom(),this.validateAxisElements(),this.validateAxisRanges(),this.validateBreaks(),this.hideUnusedDataItems(),this.renderer.invalidateLayout())},e.prototype.calculateZoom=function(){if(S_(this.min)&&S_(this.max)){var t=this.positionToValue(this.start),e=this.positionToValue(this.end),i=this.adjustDifference(t,e),n=this.adjustMinMax(t,e,i,this._gridCount,!0),r=(s=n.step,(u=(""+s).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/))?Math.max(0,(u[1]?u[1].length:0)-(u[2]?+u[2]:0)):0);this._stepDecimalPlaces=r,t=M_(t,r),e=M_(e,r);var o=(n=this.adjustMinMax(t,e,i,this._gridCount,!0)).step;if(this.syncWithAxis){var a=this.getCache(t+"-"+e);S_(a)&&(o=a)}else t=n.min,e=n.max;this._minZoomed==t&&this._maxZoomed==e&&this._step==o||(this._minZoomed=t,this._maxZoomed=e,this._step=o,this.dispatchImmediately("selectionextremeschanged"))}var s,u},e.prototype.validateAxisElements=function(){var t=this;if(S_(this.max)&&S_(this.min)){var e=this.minZoomed-2*this._step;this.logarithmic?Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E):0==(e=Math.floor(this.minZoomed/this._step)*this._step)&&(e=this.minZoomed):e=Math.floor(e/this._step)*this._step;var i=this._maxZoomed+this._step;this.resetIterators();var n=this._dataItemsIterator,r=0,o=this._prevStepDecimalPlaces!=this._stepDecimalPlaces;for(this._prevStepDecimalPlaces=this._stepDecimalPlaces;e<=i;){if(!this.isInBreak(e)){var a=n.find((function(t){return t.value===e}));a.__disabled&&(a.__disabled=!1),this.appendDataItem(a),a.axisBreak=void 0,(a.value!=e||o)&&(a.value=e,a.text=this.formatLabel(e),a.label&&a.label.invalid&&a.label.validate(),a.value>=this.min&&a.value<=this.max&&a.label&&("Y"==this.axisLetter&&a.label.measuredWidth>this.ghostLabel.measuredWidth||"X"==this.axisLetter&&a.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=a.label.currentText,this.ghostLabel.validate())),this.validateDataElement(a)}r++,this.logarithmic&&Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E+r):e+=this._step;var s=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(s<1){var u=Math.round(Math.abs(Math.log(Math.abs(s))*Math.LOG10E))+2;e=M_(e,u)}}var l=this._axisBreaks;if(l){var h=this.renderer;Ww(l.iterator(),(function(e){if(e.breakSize>0&&z_(e.startPoint,e.endPoint)>h.minGridDistance)for(var i=e.adjustedMin;i<=e.adjustedMax;){if(i>=e.adjustedStartValue&&i<=e.adjustedEndValue){var r=n.find((function(t){return t.value===i}));r.__disabled&&(r.__disabled=!1),t.appendDataItem(r),r.axisBreak=e,r.value!=i&&(r.value=i,r.text=t.formatLabel(i),r.label&&r.label.invalid&&r.label.validate()),t.validateDataElement(r)}i+=e.adjustedStep}}))}}},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var i=this.renderer,n=e.value,r=e.endValue,o=this.valueToPosition(n);e.position=o;var a=o,s=this.valueToPosition(n+this._step);S_(r)&&(s=a=this.valueToPosition(r)),e.point=i.positionToPoint(o);var u=e.tick;u&&!u.disabled&&i.updateTickElement(u,o,a);var l=e.grid;l&&!l.disabled&&i.updateGridElement(l,o,a);var h=e.label;h&&!h.disabled&&i.updateLabelElement(h,o,a);var c=e.axisFill;c&&!c.disabled&&(i.updateFillElement(c,o,s),e.isRange||this.fillRule(e)),e.bullet&&i.updateBullet(e.bullet,o,a);var p=e.mask;p&&i.updateFillElement(p,o,s)},e.prototype.formatLabel=function(t){return this.adjustLabelPrecision&&0!=t?this.numberFormatter.format(t,void 0,this._stepDecimalPlaces):this.numberFormatter.format(t)},Object.defineProperty(e.prototype,"basePoint",{get:function(){var t=this.baseValue,e=this.valueToPosition(t);return this.renderer.positionToPoint(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseValue",{get:function(){var t=this._baseValue;return this.logarithmic&&(t=this.min),this._adapterO?this._adapterO.apply("baseValue",t):t},set:function(t){this._baseValue=t,this.invalidateLayout(),this.invalidateSeries()},enumerable:!0,configurable:!0}),e.prototype.anyToPosition=function(t){return this.valueToPosition(t)},e.prototype.valueToPoint=function(t){var e=this.valueToPosition(t),i=this.renderer.positionToPoint(e),n=this.renderer.positionToAngle(e);return{x:i.x,y:i.y,angle:n}},e.prototype.anyToPoint=function(t){return this.valueToPoint(t)},e.prototype.valueToPosition=function(t){if(S_(t)){var e=this.min,i=this.max;if(S_(e)&&S_(i)){var n=this._difference,r=this._axisBreaks;return r&&r.length>0&&Uw(r.iterator(),(function(n){var r=n.adjustedStartValue,o=n.adjustedEndValue;if(S_(r)&&S_(o)){if(t<r)return!1;if(H_({start:r,end:o},{start:e,end:i})){r=Math.max(r,e),o=Math.min(o,i);var a=n.breakSize;t>o?e+=(o-r)*(1-a):t<r||(t=r+(t-r)*a)}}return!0})),this.logarithmic?(Math.log(t)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)/(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E):(t-e)/n}}return 0},e.prototype.invalidateLabels=function(){t.prototype.invalidateLabels.call(this),this.dataItems&&(this.dataItems.each((function(t){t.value=void 0})),this.invalidate())},e.prototype.positionToValue=function(t){t=M_(t,10);var e=this.min,i=this.max;if(S_(e)&&S_(i)){var n=i-e,r=null,o=this._axisBreaks;return o&&o.length>0&&Uw(o.iterator(),(function(o){var a=o.startPosition,s=o.endPosition,u=o.adjustedStartValue,l=o.adjustedEndValue;if(S_(u)&&S_(l)){if(u>i)return!1;if(H_({start:u,end:l},{start:e,end:i})){u=N_(u,e),l=B_(l,i);var h=o.breakSize;if(n-=(l-u)*(1-h),t>s)e+=(l-u)*(1-h);else if(!(t<a))return r=u+(t-a)/(s-a)*(l-u),!1}return!0}})),S_(r)||(r=this.logarithmic?Math.pow(Math.E,(t*(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)+Math.log(this.min)*Math.LOG10E)/Math.LOG10E):t*n+e),r}},e.prototype.xToValue=function(t){return this.positionToValue(this.pointToPosition({x:t,y:0}))},e.prototype.yToValue=function(t){return this.positionToValue(this.pointToPosition({x:0,y:t}))},e.prototype.pointToPosition=function(t){return this.renderer instanceof PS?1-this.renderer.pointToPosition(t):this.renderer.pointToPosition(t)},e.prototype.animateMinMax=function(t,e){return this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:t},{property:"_maxAdjusted",from:this._maxAdjusted,to:e}],this.rangeChangeDuration,this.rangeChangeEasing)},e.prototype.getMinMax=function(){var t=this;this.updateGridCount();var e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;if(S_(this._minDefined)&&S_(this._maxDefined)||(this.series.each((function(n){if(!n.ignoreMinMax){var r=n.min(t);S_(r)&&r<e&&(e=r);var o=n.max(t);S_(o)&&o>i&&(i=o)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(t){if(!t.ignoreMinMax){var n=B_(t.value,t.endValue),r=N_(t.value,t.endValue);(n<e||!S_(e))&&(e=n),(r>i||!S_(i))&&(i=r)}}))),this.logarithmic&&e<=0&&this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."),!0),0==e&&0==i&&(i=.9,e=-.9),S_(this._minDefined)&&(e=this._minDefined),S_(this._maxDefined)&&(i=this._maxDefined),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(i=this._adapterO.apply("max",i)),S_(e)&&S_(i)){this._minReal=e,this._maxReal=i,e==Number.POSITIVE_INFINITY&&(e=void 0),i==Number.NEGATIVE_INFINITY&&(i=void 0);var n=this.adjustDifference(e,i);if(e=this.fixMin(e),(i=this.fixMax(i))-e<=1/Math.pow(10,15)){if(i-e!=0)this._deltaMinMax=(i-e)/2;else{var r=Math.log(Math.abs(i))*Math.LOG10E,o=Math.pow(10,Math.floor(r));o/=10,this._deltaMinMax=o}e-=this._deltaMinMax,i+=this._deltaMinMax}e-=(i-e)*this.extraMin,i+=(i-e)*this.extraMax;var a=this.strictMinMax;S_(this._maxDefined)&&(a=!0);var s=this.adjustMinMax(e,i,n,this._gridCount,a);if(e=s.min,n=(i=s.max)-e,s=this.adjustMinMax(e,i,i-e,this._gridCount,!0),e=s.min,i=s.max,this.strictMinMax&&(e=S_(this._minDefined)?this._minDefined:this._minReal,(i=S_(this._maxDefined)?this._maxDefined:this._maxReal)-e<=1e-8&&(e-=this._deltaMinMax,i+=this._deltaMinMax),e-=(i-e)*this.extraMin,i+=(i-e)*this.extraMax),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(i=this._adapterO.apply("max",i)),this._step=s.step,(this._minAdjusted!=e||this._maxAdjusted!=i)&&S_(e)&&S_(i)){var u=this._minMaxAnimation;if(this._extremesChanged&&S_(this._minAdjusted)&&S_(this._maxAdjusted)&&this.inited){if(u&&!u.isFinished()&&this._finalMax==i&&this._finalMin==e)return;this._finalMin=e,this._finalMax=i,(u=this.animateMinMax(e,i))&&!u.isFinished()?(u.events.on("animationprogress",this.validateDataItems,this),u.events.on("animationended",(function(){t.series.each((function(t){t.validate()})),t.validateDataItems(),t.handleSelectionExtremesChange()})),this._minMaxAnimation=u):this.series.each((function(t){t.validate()})),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(u&&!u.isFinished()&&this._finalMax==i&&this._finalMin==e)return;this._minAdjusted=e,this._maxAdjusted=i,this._finalMin=e,this._finalMax=i,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged")}}this._extremesChanged=!1,this._difference=this.adjustDifference(e,i)}},e.prototype.fixMin=function(t){return t},e.prototype.fixMax=function(t){return t},e.prototype.adjustMinMax=function(t,e,i,n,r){n<=1&&(n=1),n=Math.round(n);var o=t,a=e;0===i&&(i=Math.abs(e));var s=Math.log(Math.abs(i))*Math.LOG10E,u=Math.pow(10,Math.floor(s)),l=u/=10;r&&(l=0),this.logarithmic?(t<=0&&(t=this.baseValue),t==1/0&&(t=1),e==-1/0&&(e=10),t=Math.pow(10,Math.floor(Math.log(Math.abs(t))*Math.LOG10E)),e=Math.pow(10,Math.ceil(Math.log(Math.abs(e))*Math.LOG10E))):(r?(t=Math.floor(t/u)*u,e=Math.ceil(e/u)*u):(t=Math.ceil(t/u)*u-l,e=Math.floor(e/u)*u+l),t<0&&o>=0&&(t=0),e>0&&a<=0&&(e=0)),s=Math.log(Math.abs(i))*Math.LOG10E,u=Math.pow(10,Math.floor(s)),u/=10;var h=Math.ceil(i/n/u)*u,c=Math.pow(10,Math.floor(Math.log(Math.abs(h))*Math.LOG10E)),p=Math.ceil(h/c);p>5?p=10:p<=5&&p>2&&(p=5),h=Math.ceil(h/(c*p))*c*p,this.maxPrecision<Number.MAX_VALUE&&h!=j_(h,this.maxPrecision)&&(h=j_(h,this.maxPrecision));var d=0;if(c<1&&(h=M_(h,d=Math.round(Math.abs(Math.log(Math.abs(c))*Math.LOG10E))+1)),!this.logarithmic){var f=Math.floor(t/h);t=M_(h*f,d);var g=void 0;(g=r?Math.floor(e/h):Math.ceil(e/h))==f&&g++,(e=M_(h*g,d))<a&&(e+=h),t>o&&(t-=h)}return{min:t,max:e,step:h}},Object.defineProperty(e.prototype,"min",{get:function(){var t=this._minAdjusted;return S_(t)||(t=this._minDefined),t},set:function(t){this._minDefined!=t&&(this._minDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minDefined",{get:function(){return this._minDefined},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxDefined",{get:function(){return this._maxDefined},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(t){this.setPropertyValue("extraMin",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(t){this.setPropertyValue("extraMax",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){var t=this._maxAdjusted;return S_(t)||(t=this._maxDefined),t},set:function(t){this._maxDefined!=t&&(this._maxDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adjustLabelPrecision",{get:function(){return this.getPropertyValue("adjustLabelPrecision")},set:function(t){this.setPropertyValue("adjustLabelPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.registerSeries=function(e){return new bw([t.prototype.registerSeries.call(this,e),e.events.on("extremeschanged",this.handleExtremesChange,this,!1),e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",e.invalidate,e,!1)])},e.prototype.handleSelectionExtremesChange=function(){var t,e,i=this,n=!0;if(Ww(this.series.iterator(),(function(r){if(!r.ignoreMinMax&&!r.isHidden){r.visible&&!r.isHiding&&(n=!1);var o=r.selectionMin(i),a=r.selectionMax(i);S_(o)&&(!S_(t)||o<t)&&(t=o),S_(a)&&(!S_(e)||a>e)&&(e=a)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(t){if(!t.ignoreMinMax){var i=B_(t.value,t.endValue),n=N_(t.value,t.endValue);i<e&&(e=i),n>e&&(e=n)}})),S_(this._minDefined)?t=this.strictMinMax?this._minDefined:this.min:this.strictMinMax&&(t=this._minReal),S_(this._maxDefined)?e=this.strictMinMax?this._maxDefined:this.max:this.strictMinMax&&(e=this._maxReal),t==e){t-=this._deltaMinMax,e+=this._deltaMinMax;var r=this.adjustMinMax(t,e,0,this._gridCount,this.strictMinMax);t=r.min,e=r.max}var o=this.adjustDifference(t,e),a=this.adjustMinMax(t,e,o,this._gridCount);t=a.min,e=a.max,t-=(e-t)*this.extraMin,e+=(e-t)*this.extraMax,t=L_(t,this.min,this.max),e=L_(e,this.min,this.max),o=this.adjustDifference(t,e),a=this.adjustMinMax(t,e,o,this._gridCount,!0),t=a.min,e=a.max,this.strictMinMax&&(t=N_(t,this._minDefined),e=B_(e,this._maxDefined));var s=a.step;this.syncWithAxis&&(a=this.syncAxes(t,e,s),t=a.min,e=a.max,this.invalidate()),s=a.step,this._difference=this.adjustDifference(this.min,this.max);var u=this.valueToPosition(t),l=this.valueToPosition(e);n&&!this.syncWithAxis&&(u=0,l=1);var h=0;this.syncWithAxis?(h=5,this.setCache(t+"-"+e,s)):(this._step=s,this._minZoomed=t,this._maxZoomed=e),this.keepSelection||this.zoom({start:u,end:l},!1,!1,h)},Object.defineProperty(e.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(t){this.setPropertyValue("strictMinMax",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(t){this.setPropertyValue("logarithmic",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(t){this.setPropertyValue("keepSelection",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(t){this.setPropertyValue("includeRangesInMinMax",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(t){this.setPropertyValue("maxPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraTooltipPrecision",{get:function(){return this.getPropertyValue("extraTooltipPrecision")},set:function(t){this.setPropertyValue("extraTooltipPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.handleExtremesChange=function(){var t=this;this._extremesChanged=!0,this.getMinMax(),this.ghostLabel&&this.dataItems.each((function(e){e.label&&e.label.pixelWidth>0&&(t.ghostLabel.text=e.label.currentText)}))},e.prototype.getX=function(t,e,i,n,r){return this.renderer.positionToPoint(this.getPositionX(t,e,i,n,r)).x},e.prototype.getPositionX=function(t,e,i,n,r){var o=t.getWorkingValue(e);w_(n)||(n="valueX");var a=t.getValue(n,"stack");S_(o)||(o=this.baseValue,this.logarithmic&&a>0&&(o=0));var s=this.valueToPosition(o+a);return r&&(s=L_(s,r.start,r.end)),s},e.prototype.getY=function(t,e,i,n,r){return this.renderer.positionToPoint(this.getPositionY(t,e,i,n,r)).y},e.prototype.getPositionY=function(t,e,i,n,r){var o=t.getWorkingValue(e);w_(n)||(n="valueY");var a=t.getValue(n,"stack");S_(o)||(o=this.baseValue,this.logarithmic&&a>0&&(o=0));var s=this.valueToPosition(o+a);return r&&(s=L_(s,r.start,r.end)),s},e.prototype.getAngle=function(t,e,i,n,r){var o=t.getWorkingValue(e),a=t.getValue(n,"stack");S_(o)||(o=this.baseValue);var s=this.valueToPosition(o+a);return r&&(s=L_(s,r.start,r.end)),this.positionToAngle(s)},e.prototype.getAnyRangePath=function(t,e,i){var n=this.valueToPosition(t),r=this.valueToPosition(e);return this.getPositionRangePath(n,r)},e.prototype.getTooltipText=function(t){var e=M_(this.positionToValue(t),this._stepDecimalPlaces+this.extraTooltipPrecision),i=this.tooltip.numberFormatter.format(e);return this._adapterO?this._adapterO.apply("getTooltipText",i):i},e.prototype.zoomToValues=function(t,e,i,n){var r=(t-this.min)/(this.max-this.min),o=(e-this.min)/(this.max-this.min);this.zoom({start:r,end:o},i,n)},Object.defineProperty(e.prototype,"minZoomed",{get:function(){return this.syncWithAxis?this._minZoomed:N_(this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomed",{get:function(){return this.syncWithAxis?this._maxZoomed:B_(this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),e.prototype.fixAxisBreaks=function(){var e=this;t.prototype.fixAxisBreaks.call(this);var i=this._axisBreaks;i&&i.length>0&&i.each((function(t){var i=t.adjustedStartValue,n=t.adjustedEndValue,r=n-i,o=Math.ceil(r*t.breakSize)*e._gridCount/(e.max-e.min),a=e.adjustMinMax(i,n,r,o,!0);t.adjustedStep=a.step,t.adjustedMin=a.min,t.adjustedMax=a.max})),this._difference=this.adjustDifference(this.min,this.max)},e.prototype.getPositionLabel=function(t){var e=this.positionToValue(t);return this.numberFormatter.format(e)},e.prototype.showTooltipAt=function(t){this.showTooltipAtPosition(this.valueToPosition(t))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.min=e.min,this.max=e.max,this.calculateTotals=e.calculateTotals,this._baseValue=e.baseValue},Object.defineProperty(e.prototype,"syncWithAxis",{get:function(){return this.getPropertyValue("syncWithAxis")},set:function(t){var e=this;this.setPropertyValue("syncWithAxis",t,!0)&&t&&(this._disposers.push(t.events.on("extremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(t.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1)),this.events.on("shown",this.handleSelectionExtremesChange,this,!1),this.events.on("maxsizechanged",(function(){e.clearCache(),e._disposers.push(ex.events.once("exitframe",(function(){e.handleSelectionExtremesChange()})))}),this,!1))},enumerable:!0,configurable:!0}),e.prototype.syncAxes=function(t,e,i){var n=this.syncWithAxis;if(n){S_(t)||(t=this.min),S_(e)||(e=this.max),S_(i)||(i=this._step);var r=Math.round((n.maxZoomed-n.minZoomed)/n.step),o=Math.round((e-t)/i);if(S_(r)&&S_(o))for(var a=!1,s=0,u=.01*(e-t),l=t,h=e,c=i;1!=a;)if(a=this.checkSync(l,h,c,r),++s>1e3&&(a=!0),a)t=l,e=h,i=c;else{s/3==Math.round(s/3)?(l=t-u*s,t>=0&&l<0&&(l=0)):(h=e+u*s)<=0&&h>0&&(h=0);var p=this.adjustMinMax(l,h,h-l,this._gridCount,!0);l=p.min,h=p.max,c=p.step}}return{min:t,max:e,step:i}},e.prototype.checkSync=function(t,e,i,n){for(var r=(e-t)/i,o=1;o<n;o++)if(M_(r/o,1)==n||r*o==n)return!0;return!1},e.prototype.processConfig=function(e){e&&w_(e.syncWithAxis)&&k_(e.syncWithAxis)&&(this.map.hasKey(e.syncWithAxis)?e.syncWithAxis=this.map.getKey(e.syncWithAxis):(this.processingErrors.push('[ValueAxis] No axis with id "'+e.syncWithAxis+'" found for `syncWithAxis`'),delete e.xAxis)),t.prototype.processConfig.call(this,e)},e}(gS);ex.registeredClasses.ValueAxis=OS,ex.registeredClasses.ValueAxisDataItem=SS;var DS=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererX",e.minGridDistance=120,e.opposite=!1,e.rotation=0,e.width=f_(100),e.labels.template.horizontalCenter="middle",e.applyTheme(),e}return s_(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="vertical"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.x=t.pixelX,e.width=t.axisLength}},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){e.width instanceof d_||(e.width=f_(100)),this.line;var i=e.title;i.rotation=0,i.align="center",this.opposite?(this.line.toFront(),i.toBack()):(i.toFront(),this.toBack(),this.line.toBack())}},e.prototype.updateTooltip=function(){if(this.axis){var t=this.line.pixelX,e=this.line.pixelY,i=this.axisLength,n=1e3;this.opposite?this.inside||(e=-1e3,n=1e3):this.inside&&(e=-1e3,n=1e3),this.axis.updateTooltip("vertical",{x:t,y:e,width:i,height:n})}},e.prototype.updateLabelElement=function(t,e,i,n){w_(n)||(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);t.isMeasured=!t.inside;var o,a=0,s=this.gridContainer.maxHeight;this.opposite?(t.inside?(o="top","bottom"==t.valign&&(a=s,o="bottom"),"middle"==t.valign&&(a=s/2,o="middle")):o="bottom",r.y=a):(t.inside?(o="bottom","top"==t.valign&&(a=-s,o="top"),"middle"==t.valign&&(a=-s/2,o="middle")):o="top",r.y+=a),0==t.rotation&&(t.verticalCenter=o),this.positionItem(t,r),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredWidth-t.pixelPaddingRight-t.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){return{x:this.positionToCoordinate(t),y:0}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.x,t.y)},e.prototype.getPositionRangePath=function(t,e){var i=L_(this.positionToCoordinate(t),0,this.axisLength),n=L_(this.positionToCoordinate(e),0,this.axisLength),r=Math.abs(n-i),o=this.getHeight();return yk({x:Math.min(i,n),y:0,width:r,height:o},!0)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,n=e.endLine,r=e.fillShape,o=e.startPoint,a=e.endPoint,s=e.pixelMarginLeft,u=this.getHeight()-e.pixelMarginTop-e.pixelMarginBottom;o.x=L_(o.x,-1,this.axisLength+1),a.x=L_(a.x,-1,this.axisLength+1),o.x==a.x&&(o.x<0||o.x>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1,i.y=s,i.width=0,i.height=u,n.y=s,n.width=0,n.height=u,r.height=u,r.width=Math.abs(a.x-o.x),r.y=s,r.x=o.x},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);t.path=ck({x:0,y:0})+pk({x:0,y:this.getHeight()}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e),r=t.length;n.y=tC({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.opposite?r*=t.inside?1:-1:r*=t.inside?-1:1,t.path=ck({x:0,y:0})+pk({x:0,y:r}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=ck({x:0,y:0})+pk({x:this.axisLength,y:0})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getHeight(),n=this.axisLength,r=this.baseGrid,o=e.basePoint.x;if(o<-.2||o>n+.2)r.hide(0);else{var a=tC({x:0,y:0},this.gridContainer,r.parent).y;r.path=ck({x:0,y:0})+pk({x:0,y:i}),r.moveTo({x:o,y:a}),r.show(0)}},e.prototype.createBreakSprites=function(t){t.startLine=new Rk,t.endLine=new Rk;var e=new Nk;e.setWavedSides(!1,!0,!1,!0),t.fillShape=e},e.prototype.toAxisPosition=function(t){var e=t,i=this.axis;if(i){var n=i.relativePositionSprite,r=i.pixelX;if(n?r=tC({x:this.pixelX,y:0},this.parent,n).x:n=i.parent,n)return(e-r/n.innerWidth)/(i.axisLength/n.innerWidth)}return t},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof CS&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);r.y=tC({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e}(xS);ex.registeredClasses.AxisRendererX=DS,JP.push({relevant:tk.heightXS,state:function(t,e){if(t instanceof DS){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),JP.push({relevant:tk.heightXXS,state:function(t,e){if(t instanceof DS){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var TS=function(t){function e(){var e=t.call(this)||this;e.className="HeatLegend",e.markerContainer=e.createChild(WP),e.markerContainer.shouldClone=!1,e.markerCount=1;var i=new rk;return i.minHeight=20,i.minWidth=20,i.interactionsEnabled=!1,i.fillOpacity=1,i.cornerRadius(0,0,0,0),e.markerContainer.minHeight=20,e.markerContainer.minWidth=20,e.orientation="horizontal",e.markers=new sx(i),e._disposers.push(new rx(e.markers)),e._disposers.push(e.markers.template),e.applyTheme(),e}return s_(e,t),e.prototype.getMinFromRules=function(t){var e,i=this.series;if(i)return Uw(i.heatRules.iterator(),(function(i){return i.property!=t||(e=i.min,!1)})),e},e.prototype.getMaxFromRules=function(t){var e,i=this.series;if(i)return Ww(i.heatRules.iterator(),(function(i){return i.property!=t||(e=i.max,!1)})),e},e.prototype.validate=function(){t.prototype.validate.call(this),this.valueAxis.renderer.inversed=this.reverseOrder;var e=this.series,i=this.minColor,n=this.maxColor;if(w_(i)||(i=Px(this.getMinFromRules("fill"))),w_(n)||(n=Px(this.getMaxFromRules("fill"))),e){var r=e.fill;!w_(i)&&r instanceof xx&&(i=r),!w_(n)&&r instanceof xx&&(n=r)}w_(n)||(n=Px(this.getMaxFromRules("fill")));var o=b_(this.getMinFromRules("fillOpacity"));S_(o)||(o=1);var a=b_(this.getMaxFromRules("fillOpacity"));S_(a)||(a=1);var s=b_(this.getMinFromRules("strokeOpacity"));S_(s)||(s=1);var u=b_(this.getMaxFromRules("strokeOpacity"));S_(u)||(u=1);for(var l=Px(this.getMinFromRules("stroke")),h=Px(this.getMaxFromRules("stroke")),c=0;c<this.markerCount;c++){var p=this.markers.getIndex(c);if(p||((p=this.markers.create()).parent=this.markerContainer,p.height=f_(100),p.width=f_(100)),1==this.markerCount){var d=new bP;if(this.reverseOrder?(d.addColor(n,a),d.addColor(i,o)):(d.addColor(i,o),d.addColor(n,a)),"vertical"==this.orientation&&(d.rotation=-90),p.fill=d,w_(l)&&w_(h)){var f=new bP;this.reverseOrder?(f.addColor(h,u),f.addColor(l,s)):(f.addColor(l,s),f.addColor(h,u)),"vertical"==this.orientation&&(f.rotation=-90),p.stroke=f}}else{var g=c;this.reverseOrder&&(g=this.markerCount-c-1);var y=new xx(mx(i.rgb,n.rgb,g/this.markerCount));p.fill=y;var v=o+(a-o)*g/this.markerCount;if(p.fillOpacity=v,w_(l)&&w_(h)){var m=new xx(mx(l.rgb,h.rgb,g/this.markerCount));p.stroke=m;var b=s+(u-s)*g/this.markerCount;p.strokeOpacity=b}}}var _=this.valueAxis.renderer;this.markerCount>1&&("horizontal"==this.orientation?_.minGridDistance=this.measuredWidth/this.markerCount:_.minGridDistance=this.measuredHeight/this.markerCount),this.valueAxis.invalidate(),c=this.markerCount;for(var w=this.markers.length;c<w;c++)this.markers.getIndex(c).parent=void 0},Object.defineProperty(e.prototype,"minColor",{get:function(){return this.getPropertyValue("minColor")},set:function(t){t instanceof xx||(t=Px(t)),this.setColorProperty("minColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxColor",{get:function(){return this.getPropertyValue("maxColor")},set:function(t){O_(t)||(t=Px(t)),this.setColorProperty("maxColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerCount",{get:function(){return this.getPropertyValue("markerCount")},set:function(t){this.setPropertyValue("markerCount",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(t){this.setPropertyValue("minValue",t),this.valueAxis.min=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(t){this.setPropertyValue("maxValue",t),this.valueAxis.max=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0);var e=this.markerContainer,i=this.valueAxis;"horizontal"==t?(w_(this.width)||(this.width=200),this.height=void 0,i.width=f_(100),i.height=void 0,i.tooltip.pointerOrientation="vertical",this.layout="vertical",e.width=f_(100),e.height=void 0,i.renderer instanceof DS||(i.renderer=new DS)):(w_(this.height)||(this.height=200),this.width=void 0,this.layout="horizontal",e.width=void 0,e.height=f_(100),i.height=f_(100),i.width=void 0,i.tooltip.pointerOrientation="horizontal",i.renderer instanceof PS||(i.renderer=new PS),i.renderer.inside=!0,i.renderer.labels.template.inside=!0,this.markerContainer.reverseOrder=!0);var n=i.renderer;n.grid.template.disabled=!0,n.axisFills.template.disabled=!0,n.baseGrid.disabled=!0,n.labels.template.padding(2,3,2,3),n.minHeight=void 0,n.minWidth=void 0,this.markerContainer.layout=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueAxis",{get:function(){return this._valueAxis||(this.valueAxis=this.createChild(OS),this.valueAxis.shouldClone=!1),this._valueAxis},set:function(t){this._valueAxis=t,t.parent=this,t.strictMinMax=!0,this.orientation=this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"series",{get:function(){return this._series},set:function(t){var e=this;this._series=t;var i="value";try{var n=t.heatRules.getIndex(0).dataField;n&&(i=n)}catch(r){}this.updateMinMax(t.dataItem.values[i].low,t.dataItem.values[i].high),t.dataItem.events.on("calculatedvaluechanged",(function(n){e.updateMinMax(t.dataItem.values[i].low,t.dataItem.values[i].high)}),void 0,!1),t.heatRules.events.on("inserted",this.invalidate,this,!1),t.heatRules.events.on("removed",this.invalidate,this,!1)},enumerable:!0,configurable:!0}),e.prototype.updateMinMax=function(t,e){var i=this.valueAxis;S_(this.minValue)||(i.min=t,i.invalidate()),S_(this.maxValue)||(i.max=e,i.invalidate())},e.prototype.processConfig=function(e){if(e&&w_(e.series)&&k_(e.series)&&k_(e.series))if(this.map.hasKey(e.series))e.series=this.map.getKey(e.series);else{var i=e.series,n=this.map.events.on("insertKey",(function(t){t.key==i&&(this.series=t.newValue,n.dispose())}),this);this._disposers.push(n),delete e.series}t.prototype.processConfig.call(this,e)},e}(WP);ex.registeredClasses.HeatLegend=TS;var ES=function(t){function e(){var e=t.call(this)||this;e.className="Grip";var i=new ZC;e.layout="absolute",e.padding(10,10,10,10),e.margin(3,3,3,3),e.background.fillOpacity=.3,e.background.cornerRadius(10,10,10,10);var n=new zP;n.element=e.paper.add("path");var r=ck({x:-6,y:0});return r+=pk({x:6,y:0}),r+=ck({x:-8,y:-6}),r+=pk({x:0,y:-12}),r+=pk({x:8,y:-6}),r+=ck({x:-8,y:6}),r+=pk({x:0,y:12}),r+=pk({x:8,y:6}),n.path=r,n.strokeWidth=2,n.fillOpacity=0,n.pixelPerfect=!0,n.padding(0,4,0,4),n.stroke=i.getFor("text"),n.strokeOpacity=.7,n.align="center",n.valign="middle",e.icon=n,e.label.dispose(),e.label=void 0,e.position="right",e.autoHideDelay=3e3,e.events.on("shown",(function(t){e._autoHideTimeout&&e._autoHideTimeout.dispose(),e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout((function(){e.hide()}),e.autoHideDelay))})),e.events.on("down",(function(t){e._autoHideTimeout&&e._autoHideTimeout.dispose()})),e.events.on("out",(function(t){e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout((function(){e.hide()}),e.autoHideDelay))})),e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){if(this.setPropertyValue("position",t))switch(t){case"left":this.align="left",this.valign="middle",this.horizontalCenter="left",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=f_(30);break;case"right":this.align="right",this.valign="middle",this.horizontalCenter="right",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=f_(30);break;case"top":this.align="center",this.valign="top",this.horizontalCenter="middle",this.verticalCenter="top",this.icon.rotation=90,this.width=f_(30),this.height=void 0;break;case"bottom":this.align="center",this.valign="bottom",this.horizontalCenter="middle",this.verticalCenter="bottom",this.icon.rotation=90,this.width=f_(30),this.height=void 0;break;default:this.align="center",this.valign="middle",this.horizontalCenter="middle",this.verticalCenter="middle",this.icon.rotation=90,this.width=f_(30),this.height=void 0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoHideDelay",{get:function(){return this.getPropertyValue("autoHideDelay")},set:function(t){this.setPropertyValue("autoHideDelay",t)},enumerable:!0,configurable:!0}),e}(ok);ex.registeredClasses.Grip=ES;var IS=function(t){function e(){var e=t.call(this)||this;return e.className="ChartDataItem",e.applyTheme(),e}return s_(e,t),e}(ek),AS=function(t){function e(){var i=t.call(this)||this;if(i._legend=new _w,i.constructor===e)throw new Error("'Chart' cannot be instantiated directly. Please use a specific chart type.");i.className="Chart";var n=new nk;i.titles=new sx(n),i._disposers.push(new rx(i.titles)),i._disposers.push(n),i.width=f_(100),i.height=f_(100),i.layout="vertical";var r=i.createChild(WP);r.shouldClone=!1,r.layout="vertical",r.width=f_(100),r.height=f_(100),i.chartAndLegendContainer=r;var o=r.createChild(WP);return o.shouldClone=!1,o.width=f_(100),o.height=f_(100),i.chartContainer=o,i.showOnInit=!0,i._disposers.push(i._legend),i.titles.events.on("inserted",(function(t){i.processTitle(t),i.updateReaderTitleReferences()}),i,!1),i.titles.events.on("removed",(function(t){i.updateReaderTitleReferences()}),i,!1),i.role="region",i.defaultState.transitionDuration=1,i.applyTheme(),i}return s_(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w_(this.readerTitle)||(this.readerTitle=this.language.translate("Chart"))},e.prototype.draw=function(){this.fixLayout(),t.prototype.draw.call(this)},e.prototype.fixLayout=function(){var t=this.legend;if(t){var e=this.chartAndLegendContainer,i=this.chartContainer;switch(i.x=void 0,i.y=void 0,t.x=void 0,t.y=void 0,t.position){case"left":e.layout="horizontal",t.toBack();break;case"right":e.layout="horizontal",t.toFront();break;case"top":e.layout="vertical",t.toBack();break;case"bottom":e.layout="vertical",t.toFront()}}},e.prototype.feedLegend=function(){},e.prototype.processTitle=function(t){var e=t.newValue;return e.parent=this,e.toBack(),e.shouldClone=!1,e.align="center",e.uidAttr(),e},e.prototype.updateReaderTitleReferences=function(){if(this.titles.length){var t=[];Ww(this.titles.iterator(),(function(e){t.push(e.uid)})),this.setSVGAttribute({"aria-labelledby":t.join(" ")})}else this.removeSVGAttribute("aria-labelledby")},Object.defineProperty(e.prototype,"legend",{get:function(){return this._legend.get()},set:function(t){this.setLegend(t)},enumerable:!0,configurable:!0}),e.prototype.setLegend=function(t){var e=this;this._legend.get()!==t&&(t?(t.maxWidth=200,t.parent=this.chartAndLegendContainer,this._legend.set(t,t.events.on("propertychanged",(function(t){"position"==t.property&&e.fixLayout()}),void 0,!1))):this._legend.reset(),this.feedLegend())},e.prototype.dispose=function(){this.legend&&this.legend.dispose(),t.prototype.dispose.call(this)},e.prototype.processConfig=function(e){e&&w_(e.legend)&&!w_(e.legend.type)&&(e.legend.type="Legend"),t.prototype.processConfig.call(this,e)},e.prototype.copyFrom=function(e){this.titles.copyFrom(e.titles),this.chartContainer.copyFrom(e.chartContainer),e.legend&&(this.legend=e.legend.clone(),this.legend.removeChildren()),t.prototype.copyFrom.call(this,e)},Object.defineProperty(e.prototype,"dragGrip",{get:function(){var t=this;if(!this._dragGrip){var e=this.tooltipContainer.createChild(ES);e.align="right",e.valign="middle",e.hide(0),e.events.on("down",(function(e){e.touch&&(t.interactionsEnabled=!1)})),e.events.on("up",(function(e){t.interactionsEnabled=!0})),this.events.on("down",(function(t){t.touch&&e.show()})),this._dragGrip=e}return this._dragGrip},set:function(t){this._dragGrip=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusable",{get:function(){return this.parent.focusable},set:function(t){this.parent.focusable=!0},enumerable:!0,configurable:!0}),e}(ik);ex.registeredClasses.Chart=AS,JP.push({relevant:tk.widthXS,state:function(t,e){if(t instanceof AS){var i=t.states.create(e);return t.pixelPaddingLeft>10&&(i.properties.paddingLeft=10),t.pixelPaddingRight>10&&(i.properties.paddingRight=10),i}return null}}),JP.push({relevant:tk.heightXS,state:function(t,e){if(t instanceof AS){var i=t.states.create(e);return t.pixelPaddingTop>10&&(i.properties.paddingTop=10),t.pixelPaddingBottom>10&&(i.properties.paddingBottom=10),i}return null}}),JP.push({relevant:tk.widthXXS,state:function(t,e){if(t instanceof AS){var i=t.states.create(e);return i.properties.paddingLeft=0,i.properties.paddingRight=0,i}return null}}),JP.push({relevant:tk.heightXXS,state:function(t,e){if(t instanceof AS){var i=t.states.create(e);return i.properties.paddingTop=0,i.properties.paddingBottom=0,i}return null}});var FS=function(t){function e(){var e=t.call(this)||this;return e.className="Bullet",e.isMeasured=!1,e.tooltipX=0,e.tooltipY=0,e.layout="none",e.applyOnClones=!0,e.copyToLegendMarker=!0,e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){if(this.setPropertyValue("locationX",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){if(this.setPropertyValue("locationY",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(t){this.setPropertyValue("xField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(t){this.setPropertyValue("yField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(t){this.setPropertyValue("isDynamic",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(t){this.setPropertyValue("copyToLegendMarker",t)},enumerable:!0,configurable:!0}),e}(WP);ex.registeredClasses.Bullet=FS,JP.push({relevant:tk.isXS,state:function(t,e){if(t instanceof FS){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var MS=function(t){function e(){var e=t.call(this)||this;return e.className="SeriesDataItem",e.values.value={},e.values.value={},e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new $w,this._disposers.push(new Qw(this._bullets))),this._bullets},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.bullets.clear(),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),e}(ek),jS=function(t){function e(){var i=t.call(this)||this;if(i._ignoreMinMax=!1,i._showBullets=!0,i.legendSettings=new hS,i._tmin=new $w,i._tmax=new $w,i._smin=new $w,i._smax=new $w,i.dataItemsByAxis=new $w,i.skipFocusThreshold=20,i._itemReaderTextChanged=!1,i.calculatePercent=!1,i.usePercentHack=!0,i.autoDispose=!0,i.simplifiedProcessing=!1,i.constructor===e)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");i.className="Series",i.isMeasured=!1,i.layout="none",i.shouldClone=!1,i.setPropertyValue("hidden",!1),i.axisRanges=new ax,i.axisRanges.events.on("inserted",i.processAxisRange,i,!1),i.minBulletDistance=0,i.mainContainer=i.createChild(WP),i.mainContainer.shouldClone=!1,i.mainContainer.mask=i.createChild(zP),i._disposers.push(i.mainContainer);var n=i.mainContainer.createChild(WP);return i._shouldBeReady.push(n),n.shouldClone=!1,n.layout="none",n.virtualParent=i,i._disposers.push(n),i.bulletsContainer=n,i.tooltip=new Ak,i.tooltip.virtualParent=i,i._disposers.push(i.tooltip),i.hiddenState.transitionEasing=gC,i.dataItem=i.createDataItem(),i._disposers.push(i.dataItem),i.dataItem.component=i,i.role="group",i.applyTheme(),i}return s_(e,t),e.prototype.applyTheme=function(){t.prototype.applyTheme.call(this),CC.autoSetClassName&&this.bulletsContainer&&(this.bulletsContainer.className=this.className+"-bullets",this.bulletsContainer.setClassName())},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w_(this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},e.prototype.createDataItem=function(){return new MS},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(t){},e.prototype.processBullet=function(t){var e=this,i=t.newValue;i.isTemplate=!0,this.events.once("datavalidated",(function(t){e.itemsFocusable()&&(i.focusable=!0)}))},e.prototype.removeBullet=function(t){var e=t.oldValue;this.dataItems.each((function(t){var i=t.bullets.getKey(e.uid);i&&i.dispose()})),this.invalidate()},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.processValues(!1)},e.prototype.getFirstValue=function(t,e){e>0&&e<this.dataItems.length-1&&e++;for(var i=e;i>=0;i--){var n=this.dataItems.getIndex(i).getActualWorkingValue(t);if(S_(n))return n}return null},e.prototype.getAbsoluteFirstValue=function(t){for(var e=0;e<this.dataItems.length;e++){var i=this.dataItems.getIndex(e).values[t].value;if(S_(i))return i}return null},e.prototype.rangeChangeUpdate=function(){t.prototype.rangeChangeUpdate.call(this),this.processValues(!0)},e.prototype.processValues=function(t){var e=this;if(!this.simplifiedProcessing){var i=this.dataItems,n={},r={},o={},a={},s={},u={},l={},h={},c={},p={},d=N_(0,this._workingStartIndex);d=B_(d,this.dataItems.length);var f=B_(this._workingEndIndex,this.dataItems.length);if(S_(d)||(d=0),S_(f)||(f=this.dataItems.length),d>0){var g=i.getIndex(d-1);Lw(g.values,(function(t,e){var i=g.getActualWorkingValue(t);S_(i)&&(h[t]=i)}))}for(var y=function(t){var f=i.getIndex(t);Lw(f.values,(function(t,i){var g=f.getActualWorkingValue(t);if(S_(g)){S_(n[t])||(n[t]=0),n[t]++,S_(r[t])||(r[t]=0),r[t]+=g,S_(o[t])||(o[t]=0),o[t]+=Math.abs(g),S_(u[t])||(u[t]=g),l[t]=g,S_(a[t])?a[t]>g&&(a[t]=g):a[t]=g,S_(s[t])?s[t]<g&&(s[t]=g):s[t]=g,S_(c[t])||(c[t]=e.getFirstValue(t,d)),S_(p[t])||(p[t]=e.getAbsoluteFirstValue(t)),f.setCalculatedValue(t,g-c[t],"change"),f.setCalculatedValue(t,(g-c[t])/c[t]*100,"changePercent"),f.setCalculatedValue(t,g-p[t],"startChange"),f.setCalculatedValue(t,(g-p[t])/p[t]*100,"startChangePercent");var y=h[t];S_(y)||(y=g),f.setCalculatedValue(t,g-y,"previousChange"),f.setCalculatedValue(t,(g-y)/y*100,"previousChangePercent"),h[t]=g}}))},v=d;v<f;v++)y(v);if(this.calculatePercent){var m=function(t){var n=i.getIndex(t);Lw(n.values,(function(t){var i=o[t],r=n.getActualWorkingValue(t);if(S_(r))if(i>0){e.usePercentHack&&r==i&&(i=n.values[t].value);var a=r/i*100;n.setCalculatedValue(t,a,"percent")}else n.setCalculatedValue(t,0,"percent")}))};for(v=d;v<f;v++)m(v)}if(d>0){var b=i.getIndex(d-1);Lw(b.values,(function(t){var e=b.values[t].value;b.setCalculatedValue(t,e-u[t],"change"),b.setCalculatedValue(t,(e-u[t])/u[t]*100,"changePercent")}))}var _=this.dataItem;Lw(_.values,(function(t){_.setCalculatedValue(t,r[t],"sum"),_.setCalculatedValue(t,o[t],"absoluteSum"),_.setCalculatedValue(t,r[t]/n[t],"average"),_.setCalculatedValue(t,u[t],"open"),_.setCalculatedValue(t,l[t],"close"),_.setCalculatedValue(t,a[t],"low"),_.setCalculatedValue(t,s[t],"high"),_.setCalculatedValue(t,n[t],"count")}))}},e.prototype.validate=function(){window.MSInputMethodContext&&document.documentMode&&this.filters.clear(),Ww(this.axisRanges.iterator(),(function(t){t.validate()})),t.prototype.validate.call(this);var e=this.bulletsContainer;if(e.fill=this.fill,e.stroke=this.stroke,e.x=this.pixelX,e.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var i=0;i<this.startIndex;i++)(n=this.dataItems.getIndex(i))&&n.bullets.each((function(t,e){e.__disabled=!0}));for(i=this.dataItems.length-1;i>this.endIndex;i--){var n;(n=this.dataItems.getIndex(i))&&n.bullets.each((function(t,e){e.__disabled=!0}))}}else this.bulletsContainer.children.each((function(t){t.__disabled=!0}));this.updateTooltipBounds()},e.prototype.updateTooltipBounds=function(){if(this.topParent){var t={x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight};this.tooltip.setBounds(t)}},e.prototype.shouldCreateBullet=function(t,e){return!0},e.prototype.validateDataElement=function(e){var i=this;t.prototype.validateDataElement.call(this,e),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each((function(t){var n=e.bullets.getKey(t.uid);if(i.shouldCreateBullet(e,t)){if(!n){var r=t.propertyFields.disabled,o=e.dataContext;r&&o&&!1===o[r]?(t.applyOnClones=!1,t.disabled=!1,n=t.clone(),t.disabled=!0,t.applyOnClones=!0):n=t.clone(),n.shouldClone=!1,e.addSprite(n),i.visible&&!i.isHiding||n.hide(0)}var a=n.dataItem;if(a!=e){a&&a.bullets.setKey(t.uid,void 0);var s=i.itemReaderText;n instanceof FS&&(s||(s="{"+n.xField+"}: {"+n.yField+"}"),n.isDynamic&&(e.events.on("workingvaluechanged",n.deepInvalidate,n,!1),i.dataItem.events.on("workingvaluechanged",n.deepInvalidate,n,!1)),n.deepInvalidate()),n.focusable&&(n.events.on("focus",(function(t){n.readerTitle=i.populateString(s,n.dataItem)}),void 0,!1),n.events.on("blur",(function(t){n.readerTitle=""}),void 0,!1)),n.hoverable&&(n.events.on("over",(function(t){n.readerTitle=i.populateString(s,n.dataItem)}),void 0,!1),n.events.on("out",(function(t){n.readerTitle=""}),void 0,!1))}n.parent=i.bulletsContainer,e.bullets.setKey(t.uid,n),n.maxWidth=e.itemWidth,n.maxHeight=e.itemHeight,n.__disabled=!1,i.positionBullet(n)}else n&&(n.__disabled=!0)}))):this.bulletsContainer.visible=!1},e.prototype.handleDataItemWorkingValueChange=function(t,e){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(e.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){this._ignoreMinMax=t,this.invalidateDataItems()},enumerable:!0,configurable:!0}),e.prototype.createMask=function(){},e.prototype.processAxisRange=function(t){this.rangesContainer||(this.rangesContainer=this.createChild(WP),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var e=t.newValue;e&&(e.contents.parent=this.rangesContainer,e.isRange=!0,e.events.on("valuechanged",this.invalidateDataItems,this,!1))},e.prototype.getAxisField=function(t){},e.prototype.showTooltipAtPosition=function(t,e){},Object.defineProperty(e.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(t){this.setPropertyValue("minBulletDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new sx(new FS),this._bullets.template.virtualParent=this,this._bullets.events.on("inserted",this.processBullet,this,!1),this._bullets.events.on("removed",this.removeBullet,this,!1),this._disposers.push(new rx(this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){},Object.defineProperty(e.prototype,"hiddenInLegend",{get:function(){return this.getPropertyValue("hiddenInLegend")},set:function(t){this.setPropertyValue("hiddenInLegend",t)&&this.chart&&this.chart.feedLegend()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(t){this.setPropertyValue("name",t);var e=this.legendDataItem;e&&(e.component.invalidate(),e.component.invalidateRawData()),this.readerTitle=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemReaderText",{get:function(){var t=this._itemReaderText;return t||(this.tooltipText?t=zx(this.tooltipText):this.tooltipHTML&&(t=zx(this.tooltipHTML))),this._adapterO?this._adapterO.apply("itemReaderText",t):t},set:function(t){this._itemReaderText=t,this._itemReaderTextChanged=!0},enumerable:!0,configurable:!0}),e.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(t,e){if(this.legendDataItem){var i=this.legendSettings,n=this.legendDataItem,r=n.label,o=n.valueLabel;t||e?(o&&(i.itemValueText&&(o.text=i.itemValueText),o.dataItem=t),r&&(i.itemLabelText&&(r.text=i.itemLabelText),r.dataItem=t)):(r&&((i.labelText||null!=i.itemLabelText)&&(r.text=i.labelText),r.dataItem=this.dataItem),o&&((i.valueText||null!=i.itemValueText)&&(o.text=i.valueText),o.dataItem=this.dataItem))}},e.prototype.copyFrom=function(e){this.bullets.copyFrom(e.bullets),this.bulletsContainer.copyFrom(e.bulletsContainer),this.calculatePercent=e.calculatePercent,this.usePercentHack=e.usePercentHack,this.simplifiedProcessing=e.simplifiedProcessing,t.prototype.copyFrom.call(this,e)},e.prototype.raiseCriticalError=function(t){this._chart&&this._chart.modal&&(this._chart.modal.content=this._chart.adapter.apply("criticalError",t).message,this._chart.modal.closable=!1,CC.suppressErrors||this._chart.modal.open(),this._chart.disabled=!0),CC.verbose&&console.log(t)},e.prototype.applyFilters=function(){var e=this;t.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),Ww(this.filters.iterator(),(function(t){e.bulletsContainer.filters.push(t.clone())}))},Object.defineProperty(e.prototype,"heatRules",{get:function(){var t=this;return this._heatRules||(this._heatRules=new ax,this._heatRules.events.on("inserted",(function(e){var i=e.newValue,n=i.target;if(n){var r=i.dataField;w_(r)||(r="value");var o=t.dataItem,a=i.property,s=b_(i.minValue),u=b_(i.maxValue);S_(s)||S_(u)||t.dataItem.events.on("calculatedvaluechanged",(function(e){e.property==r&&Ww(t.dataItems.iterator(),(function(t){var e=!1;ow(t.sprites,(function(t){if(t.clonedFrom==n){var i=t;i[a]=i[a],e=!0}})),e||ow(t.sprites,(function(t){t instanceof WP&&Ww(t.children.iterator(),(function(t){if(t.className==n.className){var e=t;e[a]=e[a]}else t instanceof WP&&t.deepInvalidate()}))}))}))})),t.dataItems.template.events.on("workingvaluechanged",(function(t){if(t.property==r){var e=t.target,i=!1;ow(e.sprites,(function(t){if(t.clonedFrom==n){var e=t;e[a]=e[a],i=!0}})),i||ow(e.sprites,(function(t){t instanceof WP&&Ww(t.children.iterator(),(function(t){if(t.className==n.className){var e=t;e[a]=e[a]}else t instanceof WP&&t.deepInvalidate()}))}))}})),n.adapter.add(a,(function(t,e,n){var a=b_(i.minValue),s=b_(i.maxValue),u=i.min,l=i.max;if(e instanceof zP){var h=e.propertyFields[n];if(h&&e.dataItem){var c=e.dataItem.dataContext;if(c&&w_(c[h]))return t}}var p=e.dataItem;if(S_(a)||(a=o.values[r].low),S_(s)||(s=o.values[r].high),p&&p.values[r]){var d=p.getActualWorkingValue(r);if(w_(u)&&w_(l)&&S_(a)&&S_(s)&&S_(d)){var f=void 0;if(f=i.logarithmic?(Math.log(d)*Math.LOG10E-Math.log(a)*Math.LOG10E)/(Math.log(s)*Math.LOG10E-Math.log(a)*Math.LOG10E):(d-a)/(s-a),S_(d)&&!S_(f)&&(f=.5),S_(u))return u+(l-u)*f;if(u instanceof xx)return new xx(mx(u.rgb,l.rgb,f))}}return t}))}}))),this._heatRules},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){var i;if(e){if(w_(e.bullets)&&D_(e.bullets))for(var n=0,r=e.bullets.length;n<r;n++){var o=e.bullets[n];w_(o.type)||(o.type="Bullet")}w_(e.heatRules)&&D_(e.heatRules)&&(i=e.heatRules,delete e.heatRules)}if(t.prototype.processConfig.call(this,e),i){for(n=0,r=i.length;n<r;n++){var a=i[n],s=this;if(w_(a.target)&&k_(a.target))if(this.map.hasKey(a.target))s=this.map.getKey(a.target);else for(var u=a.target.split("."),l=0;l<u.length;l++)if(s instanceof ax){var h=s.getIndex(b_(u[l]));s=h||s[u[l]]}else s=s[u[l]];a.target=s,w_(a.min)&&(a.min=this.maybeColorOrPercent(a.min)),w_(a.max)&&(a.max=this.maybeColorOrPercent(a.max))}t.prototype.processConfig.call(this,{heatRules:i})}},e.prototype.configOrder=function(e,i){return e==i?0:"heatRules"==e?1:"heatRules"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.setVisibility=function(e){t.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},e}(ik);ex.registeredClasses.Series=jS,ex.registeredClasses.SeriesDataItem=MS;var LS=function(t){function e(){var e=t.call(this)||this;return e.className="SerialChartDataItem",e.applyTheme(),e}return s_(e,t),e}(IS),VS=function(t){function e(){var e=t.call(this)||this;e.className="SerialChart",e.colors=new tS,e._usesData=!1;var i=e.chartContainer.createChild(WP);i.shouldClone=!1,i.width=f_(100),i.height=f_(100),i.isMeasured=!1,i.layout="none",i.zIndex=2,e.seriesContainer=i;var n=e.chartContainer.createChild(WP);return n.shouldClone=!1,n.width=f_(100),n.height=f_(100),n.isMeasured=!1,n.zIndex=3,n.layout="none",e.bulletsContainer=n,e.applyTheme(),e}return s_(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.colors&&this.colors.dispose(),this.patterns&&this.patterns.dispose()},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w_(this.readerTitle)||(this.readerTitle=this.language.translate("Serial chart"))},Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new sx(this.createSeries()),this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1),this._disposers.push(new rx(this._series,!1)),this._disposers.push(this._series.template)),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesRemoved=function(t){var e=t.oldValue;this.dataUsers.removeValue(e),this.dataUsers.each((function(t){t.invalidateDataItems()})),e.autoDispose?e.dispose():(e.parent=void 0,e.bulletsContainer.parent=void 0);var i=this.legend;if(i){for(var n=this.legend.dataItems,r=n.length-1;r>=0;r--){var o=n.getIndex(r);o&&o.dataContext==e&&i.dataItems.remove(o)}for(r=i.data.length-1;r>=0;r--){var a=i.data[r];a&&a==e&&sw(i.data,a)}}},e.prototype.handleSeriesAdded=function(t){var e=this,i=t.newValue;i.isDisposed()||(i.chart=this,i.parent=this.seriesContainer,i.bulletsContainer.parent=this.bulletsContainer,this._dataUsers.moveValue(i),i.addDisposer(new mw((function(){e.dataUsers.removeValue(i)}))),this.handleSeriesAdded2(i),i.hiddenInLegend||this.legend&&this.legend.addData(i))},e.prototype.handleSeriesAdded2=function(t){var e=this;this.dataInvalid||this._disposers.push(ex.events.once("exitframe",(function(){t.data&&0!=t.data.length||(t.data=e.data,t.showOnInit&&(t.reinit(),t.setPropertyValue("showOnInit",!1),t.showOnInit=!0),t.events.once("datavalidated",(function(){t.data==e.data&&(t._data=[])})))})))},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];Ww(this.series.iterator(),(function(t){t.hiddenInLegend||e.push(t)})),t.dataFields.name="name",t.data=e}},e.prototype.createSeries=function(){return new jS},Object.defineProperty(e.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(t){this.setPropertyValue("patterns",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.series.copyFrom(e.series)},e.prototype.appear=function(){t.prototype.appear.call(this),this.series.each((function(t){t.showOnInit&&t.inited&&t.appear()}))},e}(AS);ex.registeredClasses.SerialChart=VS;var RS=function(){return new NS};function NS(){this.reset()}NS.prototype={constructor:NS,reset:function(){this.s=this.t=0},add:function(t){HS(BS,t,this.t),HS(this,BS.s,this.s),this.s?this.t+=BS.t:this.s=BS.t},valueOf:function(){return this.s}};var BS=new NS;function HS(t,e,i){var n=t.s=e+i,r=n-e,o=n-r;t.t=e-o+(i-r)}var zS=1e-6,US=Math.PI,WS=US/2,GS=US/4,KS=2*US,YS=180/US,qS=US/180,XS=Math.abs,ZS=Math.atan,QS=Math.atan2,$S=Math.cos,JS=Math.ceil,tO=Math.exp,eO=(Math.floor,Math.log),iO=(Math.pow,Math.sin),nO=Math.sign||function(t){return t>0?1:t<0?-1:0},rO=Math.sqrt,oO=Math.tan;function aO(t){return t>1?WS:t<-1?-WS:Math.asin(t)}function sO(t){return(t=iO(t/2))*t}function uO(){}function lO(t,e){t&&cO.hasOwnProperty(t.type)&&cO[t.type](t,e)}var hO={Feature:function(t,e){lO(t.geometry,e)},FeatureCollection:function(t,e){for(var i=t.features,n=-1,r=i.length;++n<r;)lO(i[n].geometry,e)}},cO={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)t=i[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){pO(t.coordinates,e,0)},MultiLineString:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)pO(i[n],e,0)},Polygon:function(t,e){dO(t.coordinates,e)},MultiPolygon:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)dO(i[n],e)},GeometryCollection:function(t,e){for(var i=t.geometries,n=-1,r=i.length;++n<r;)lO(i[n],e)}};function pO(t,e,i){var n,r=-1,o=t.length-i;for(e.lineStart();++r<o;)n=t[r],e.point(n[0],n[1],n[2]);e.lineEnd()}function dO(t,e){var i=-1,n=t.length;for(e.polygonStart();++i<n;)pO(t[i],e,1);e.polygonEnd()}var fO,gO,yO,vO,mO,bO=function(t,e){t&&hO.hasOwnProperty(t.type)?hO[t.type](t,e):lO(t,e)},_O=RS(),wO=RS(),xO={point:uO,lineStart:uO,lineEnd:uO,polygonStart:function(){_O.reset(),xO.lineStart=CO,xO.lineEnd=PO},polygonEnd:function(){var t=+_O;wO.add(t<0?KS+t:t),this.lineStart=this.lineEnd=this.point=uO},sphere:function(){wO.add(KS)}};function CO(){xO.point=kO}function PO(){SO(fO,gO)}function kO(t,e){xO.point=SO,fO=t,gO=e,yO=t*=qS,vO=$S(e=(e*=qS)/2+GS),mO=iO(e)}function SO(t,e){var i=(t*=qS)-yO,n=i>=0?1:-1,r=n*i,o=$S(e=(e*=qS)/2+GS),a=iO(e),s=mO*a,u=vO*o+s*$S(r),l=s*n*iO(r);_O.add(QS(l,u)),yO=t,vO=o,mO=a}function OO(t){return[QS(t[1],t[0]),aO(t[2])]}function DO(t){var e=t[0],i=t[1],n=$S(i);return[n*$S(e),n*iO(e),iO(i)]}function TO(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function EO(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function IO(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function AO(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function FO(t){var e=rO(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var MO,jO,LO,VO,RO,NO,BO,HO,zO,UO,WO=RS(),GO={point:KO,lineStart:qO,lineEnd:XO,polygonStart:function(){GO.point=ZO,GO.lineStart=QO,GO.lineEnd=$O,WO.reset(),xO.polygonStart()},polygonEnd:function(){xO.polygonEnd(),GO.point=KO,GO.lineStart=qO,GO.lineEnd=XO,_O<0?(MO=-(LO=180),jO=-(VO=90)):WO>zS?VO=90:WO<-zS&&(jO=-90),UO[0]=MO,UO[1]=LO},sphere:function(){MO=-(LO=180),jO=-(VO=90)}};function KO(t,e){zO.push(UO=[MO=t,LO=t]),e<jO&&(jO=e),e>VO&&(VO=e)}function YO(t,e){var i=DO([t*qS,e*qS]);if(HO){var n=EO(HO,i),r=EO([n[1],-n[0],0],n);FO(r),r=OO(r);var o,a=t-RO,s=a>0?1:-1,u=r[0]*YS*s,l=XS(a)>180;l^(s*RO<u&&u<s*t)?(o=r[1]*YS)>VO&&(VO=o):l^(s*RO<(u=(u+360)%360-180)&&u<s*t)?(o=-r[1]*YS)<jO&&(jO=o):(e<jO&&(jO=e),e>VO&&(VO=e)),l?t<RO?JO(MO,t)>JO(MO,LO)&&(LO=t):JO(t,LO)>JO(MO,LO)&&(MO=t):LO>=MO?(t<MO&&(MO=t),t>LO&&(LO=t)):t>RO?JO(MO,t)>JO(MO,LO)&&(LO=t):JO(t,LO)>JO(MO,LO)&&(MO=t)}else zO.push(UO=[MO=t,LO=t]);e<jO&&(jO=e),e>VO&&(VO=e),HO=i,RO=t}function qO(){GO.point=YO}function XO(){UO[0]=MO,UO[1]=LO,GO.point=KO,HO=null}function ZO(t,e){if(HO){var i=t-RO;WO.add(XS(i)>180?i+(i>0?360:-360):i)}else NO=t,BO=e;xO.point(t,e),YO(t,e)}function QO(){xO.lineStart()}function $O(){ZO(NO,BO),xO.lineEnd(),XS(WO)>zS&&(MO=-(LO=180)),UO[0]=MO,UO[1]=LO,HO=null}function JO(t,e){return(e-=t)<0?e+360:e}function tD(t,e){return t[0]-e[0]}function eD(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var iD=function(t){var e,i,n,r,o,a,s;if(VO=LO=-(MO=jO=1/0),zO=[],bO(t,GO),i=zO.length){for(zO.sort(tD),e=1,o=[n=zO[0]];e<i;++e)eD(n,(r=zO[e])[0])||eD(n,r[1])?(JO(n[0],r[1])>JO(n[0],n[1])&&(n[1]=r[1]),JO(r[0],n[1])>JO(n[0],n[1])&&(n[0]=r[0])):o.push(n=r);for(a=-1/0,e=0,n=o[i=o.length-1];e<=i;n=r,++e)r=o[e],(s=JO(n[1],r[0]))>a&&(a=s,MO=r[0],LO=n[1])}return zO=UO=null,MO===1/0||jO===1/0?[[NaN,NaN],[NaN,NaN]]:[[MO,jO],[LO,VO]]},nD=function(t){function e(){var e=t.call(this)||this;return e.className="MapSeriesDataItem",e.values.value={},e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.properties.zoomLevel},set:function(t){this.setProperty("zoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){return this.properties.zoomGeoPoint},set:function(t){this.setProperty("zoomGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return this._east},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return this._west},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return this._south},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return this._north},enumerable:!0,configurable:!0}),e.prototype.updateExtremes=function(){var t=this.getFeature().geometry;if(t){var e=iD(t),i=e[0][0],n=e[0][1],r=e[1][1],o=e[1][0],a=!1;r!=this.north&&(this._north=M_(r,6),a=!0),n!=this.south&&(this._south=M_(n,6),a=!0),o!=this.east&&(this._east=M_(o,6),a=!0),i!=this.west&&(this._west=M_(i,6),a=!0),this._east<this._west&&(this._east=180,this._west=-180),a&&this.component.invalidateDataItems()}},e.prototype.getFeature=function(){return{}},e}(MS),rD=function(t){function e(){var e=t.call(this)||this;return e.className="MapSeries",e.isMeasured=!1,e.nonScalingStroke=!0,e.dataFields.value="value",e.ignoreBounds=!1,e.tooltip&&(e.tooltip.showInViewport=!0),e.applyTheme(),e}return s_(e,t),e.prototype.createDataItem=function(){return new nD},e.prototype.checkInclude=function(t,e,i){if(t){if(0==t.length)return!1;if(-1==t.indexOf(i))return!1}return!(e&&e.length>0&&-1!=e.indexOf(i))},Object.defineProperty(e.prototype,"useGeodata",{get:function(){return this.getPropertyValue("useGeodata")},set:function(t){this.setPropertyValue("useGeodata",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"include",{get:function(){return this.getPropertyValue("include")},set:function(t){this.setPropertyValue("include",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.processIncExc=function(){this.invalidateData()},Object.defineProperty(e.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(t){this.setPropertyValue("ignoreBounds",t)&&this.chart&&this.chart.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exclude",{get:function(){return this.getPropertyValue("exclude")},set:function(t){this.setPropertyValue("exclude",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.handleObjectAdded=function(t){var e=t.newValue;e.parent=this,e.series=this,e.strokeWidth=e.strokeWidth},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){if(t!=this._geodata){this._geodata=t;for(var e=this.data.length-1;e>=0;e--)1==this.data[e].madeFromGeoData&&this.data.splice(e,1);this.disposeData(),this.invalidateData()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geodataSource",{get:function(){return this._dataSources.geodata||this.getDataSource("geodata"),this._dataSources.geodata},set:function(t){var e=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",(function(){e.loadData("geodata")}),void 0,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.getFeatures=function(){},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,e,i,n;this.dataItems.each((function(r){(r.north>t||!S_(t))&&(t=r.north),(r.south<e||!S_(e))&&(e=r.south),(r.west<n||!S_(n))&&(n=r.west),(r.east>i||!S_(i))&&(i=r.east)})),this._mapObjects&&this._mapObjects.each((function(r){(r.north>t||!S_(t))&&(t=r.north),(r.south<e||!S_(e))&&(e=r.south),(r.west<n||!S_(n))&&(n=r.west),(r.east>i||!S_(i))&&(i=r.east)})),this.north==t&&this.east==i&&this.south==e&&this.west==n||(this._north=t,this._east=i,this._west=n,this._south=e,this.dispatch("geoBoundsChanged"),this.ignoreBounds||this.chart.updateExtremes())},Object.defineProperty(e.prototype,"north",{get:function(){return S_(this._northDefined)?this._northDefined:this._north},set:function(t){this._northDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return S_(this._southDefined)?this._southDefined:this._south},set:function(t){this._southDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return S_(this._westDefined)?this._westDefined:this._west},set:function(t){this._westDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return S_(this._eastDefined)?this._eastDefined:this._east},set:function(t){this._eastDefined=t},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(w_(e.geodata)&&k_(e.geodata)){var i=e.geodata;if(w_(window["am4geodata_"+e.geodata]))e.geodata=window["am4geodata_"+e.geodata];else try{e.geodata=JSON.parse(e.geodata)}catch(n){throw Error("MapChart error: Geodata `"+i+"` is not loaded or is incorrect.")}}t.prototype.processConfig.call(this,e)},e.prototype.asIs=function(e){return"geodata"==e||t.prototype.asIs.call(this,e)},e.prototype.updateTooltipBounds=function(){this.tooltip&&this.topParent&&this.tooltip.setBounds({x:10,y:10,width:this.topParent.maxWidth-20,height:this.topParent.maxHeight-20})},e}(jS);ex.registeredClasses.MapSeries=rD,ex.registeredClasses.MapSeriesDataItem=nD;var oD=function(t){function e(){var e=t.call(this)||this;return e.className="MapObject",e.isMeasured=!1,e.layout="none",e.clickable=!0,e.applyTheme(),e}return s_(e,t),e.prototype.validate=function(){this.series&&(this.readerTitle=this.series.itemReaderText),t.prototype.validate.call(this)},e.prototype.updateExtremes=function(){var t=this.getFeature();if(t){var e=t.geometry;if(e){var i=iD(e),n=i[0][0],r=i[0][1],o=i[1][1],a=i[1][0],s=!1;o!=this.north&&(this._north=M_(o,8),s=!0),r!=this.south&&(this._south=M_(r),s=!0),a!=this.east&&(this._east=M_(a),s=!0),n!=this.west&&(this._west=M_(n),s=!0),s&&(this.dispatch("geoBoundsChanged"),this.series&&this.series.invalidateDataItems())}}},e.prototype.getFeature=function(){return{}},Object.defineProperty(e.prototype,"east",{get:function(){return S_(this._east)?this._east:this.dataItem?this.dataItem.east:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return S_(this._west)?this._west:this.dataItem?this.dataItem.west:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return S_(this._south)?this._south:this.dataItem?this.dataItem.south:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return S_(this._north)?this._north:this.dataItem?this.dataItem.north:void 0},enumerable:!0,configurable:!0}),e.prototype.showTooltip=function(e){var i=t.prototype.showTooltip.call(this,e);return i&&"always"==this.showTooltipOn&&!this.series.chart.events.has("mappositionchanged",this.handleTooltipMove,this)&&this.addDisposer(this.series.chart.events.on("mappositionchanged",this.handleTooltipMove,this)),i},e.prototype.handleTooltipMove=function(t){this.tooltip.isHidden||this.showTooltip()},e}(WP);ex.registeredClasses.MapObject=oD;var aD=function(t){function e(){var e=t.call(this)||this;return e.className="MapImage",e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"latitude",{get:function(){var t=this.getPropertyValue("latitude");return!S_(t)&&this.dataItem&&this.dataItem.geoPoint&&(t=this.dataItem.geoPoint.latitude),t},set:function(t){this.setPropertyValue("latitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){var t=this.getPropertyValue("longitude");return!S_(t)&&this.dataItem&&this.dataItem.geoPoint&&(t=this.dataItem.geoPoint.longitude),t},set:function(t){this.setPropertyValue("longitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),e.prototype.validatePosition=function(){if(S_(this.latitude)&&S_(this.longitude)){var e=this.series.chart.projection.d3Projection([this.longitude,this.latitude]),i=this.series.chart.projection.d3Path({type:"Point",coordinates:[this.longitude,this.latitude]});this.__disabled=!i,this.moveTo({x:e[0],y:e[1]})}t.prototype.validatePosition.call(this)},e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:[this.longitude,this.latitude]}}},e}(oD);ex.registeredClasses.MapImage=aD;var sD=i("lcx6"),uD=i.n(sD),lD=function(t,e){function i(i,n){return i=t(i,n),e(i[0],i[1])}return t.invert&&e.invert&&(i.invert=function(i,n){return(i=e.invert(i,n))&&t.invert(i[0],i[1])}),i};function hD(t,e){return[XS(t)>US?t+Math.round(-t/KS)*KS:t,e]}function cD(t,e,i){return(t%=KS)?e||i?lD(dD(t),fD(e,i)):dD(t):e||i?fD(e,i):hD}function pD(t){return function(e,i){return[(e+=t)>US?e-KS:e<-US?e+KS:e,i]}}function dD(t){var e=pD(t);return e.invert=pD(-t),e}function fD(t,e){var i=$S(t),n=iO(t),r=$S(e),o=iO(e);function a(t,e){var a=$S(e),s=$S(t)*a,u=iO(t)*a,l=iO(e),h=l*i+s*n;return[QS(u*r-h*o,s*i-l*n),aO(h*r+u*o)]}return a.invert=function(t,e){var a=$S(e),s=$S(t)*a,u=iO(t)*a,l=iO(e),h=l*r-u*o;return[QS(u*r+l*o,s*i+h*n),aO(h*i-s*n)]},a}function gD(t,e){(e=DO(e))[0]-=t,FO(e);var i,n=(i=-e[1])>1?0:i<-1?US:Math.acos(i);return((-e[2]<0?-n:n)+KS-zS)%KS}function yD(t){return rw(t,(function(t){return rw(t,(function(t){return mD(t)}))}))}function vD(t){return rw(t,bD)}function mD(t){return{longitude:t[0],latitude:t[1]}}function bD(t){return[t.longitude,t.latitude]}function _D(t){return rw(t,(function(t){return rw(t,bD)}))}function wD(t){return rw(t,(function(t){var e=t[0],i=t[1],n=[];return e&&n.push(vD(e)),i&&n.push(vD(i)),n}))}hD.invert=hD;var xD=function(t){function e(){var e=t.call(this)||this;e.className="MapPolygon",e.polygon=e.createChild(_k),e.polygon.shouldClone=!1,e.polygon.applyOnClones=!0,e.setPropertyValue("precision",.5);var i=new ZC;return e.fill=i.getFor("secondaryButton"),e.stroke=i.getFor("secondaryButtonStroke"),e.strokeOpacity=1,e.tooltipPosition="pointer",e.nonScalingStroke=!0,e.applyTheme(),e}return s_(e,t),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){var t=this.getPropertyValue("multiGeoPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiGeoPolygon),t},set:function(t){this.setPropertyValue("multiGeoPolygon",t,!0),this.multiPolygon=wD(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){var t=this.getPropertyValue("multiPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiPolygon),t},set:function(t){this.setPropertyValue("multiPolygon",t)&&(this.updateExtremes(),this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.validate=function(){if(this.series){var e=this.series.chart.projection,i=e.d3Path;if(this.multiPolygon){if(this.series){var n={type:"MultiPolygon",coordinates:this.multiPolygon};e.d3Projection.precision(this.precision),this.polygon.path=i(n)}if(this.series.calculateVisualCenter){var r=0,o=this.multiPolygon[0];if(this.multiPolygon.length>1)for(var a=0;a<this.multiPolygon.length;a++){var s=this.multiPolygon[a],u=(h={type:"Polygon",coordinates:s},wO.reset(),bO(h,xO),2*wO);u>r&&(o=s,r=u)}var l=uD()(o);this._visualLongitude=l[0],this._visualLatitude=l[1]}else this._visualLongitude=this.longitude,this._visualLatitude=this.latitude}}var h;t.prototype.validate.call(this)},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLatitude",{get:function(){var t=this.getPropertyValue("visualLatitude");return S_(t)?t:this._adapterO?this._adapterO.apply("visualLatitude",this._visualLatitude):this._visualLatitude},set:function(t){this.setPropertyValue("visualLatitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLongitude",{get:function(){var t=this.getPropertyValue("visualLongitude");return S_(t)?t:this._adapterO?this._adapterO.apply("visualLongitude",this._visualLongitude):this._visualLongitude},set:function(t){this.setPropertyValue("visualLongitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelWidth",{get:function(){return this.polygon.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelHeight",{get:function(){return this.polygon.pixelHeight},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.polygon.copyFrom(e.polygon)},e.prototype.updateExtremes=function(){t.prototype.updateExtremes.call(this)},Object.defineProperty(e.prototype,"boxArea",{get:function(){return(this.north-this.south)*(this.east-this.west)},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).x},e.prototype.getTooltipY=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).y},Object.defineProperty(e.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(t){this.setPropertyValue("precision",t,!0)},enumerable:!0,configurable:!0}),e}(oD);ex.registeredClasses.MapPolygon=xD;var CD=function(t){function e(){var e=t.call(this)||this;return e.className="MapPolygonSeriesDataItem",e.applyTheme(),e}return s_(e,t),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"mapPolygon",{get:function(){var t=this;if(!this._mapPolygon){var e=this.component.mapPolygons.create();this._mapPolygon=e,this.addSprite(e),this._disposers.push(new mw((function(){t.component&&t.component.mapPolygons.removeValue(e)}))),this.mapObject=e}return this._mapPolygon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polygon",{get:function(){return this._polygon},set:function(t){this._polygon=t,this.multiPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){return this._multiPolygon},set:function(t){this._multiPolygon=t,this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPolygon",{get:function(){return this._geoPolygon},set:function(t){this._geoPolygon=t,this.multiGeoPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){return this._multiGeoPolygon},set:function(t){this._multiGeoPolygon=t,this.multiPolygon=wD(t)},enumerable:!0,configurable:!0}),e}(nD),PD=function(t){function e(){var e=t.call(this)||this;return e.calculateVisualCenter=!1,e.className="MapPolygonSeries",e.dataFields.multiPolygon="multiPolygon",e.dataFields.polygon="polygon",e.dataFields.geoPolygon="geoPolygon",e.dataFields.multiGeoPolygon="multiGeoPolygon",e.applyTheme(),e}return s_(e,t),e.prototype.createDataItem=function(){return new CD},e.prototype.processIncExc=function(){this.mapPolygons.clear(),t.prototype.processIncExc.call(this)},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var e=this._dataSources.geodata?void 0:this.chart.geodata;if(this.geodata&&(e=this.geodata),e){var i=void 0;if("FeatureCollection"==e.type?i=e.features:"Feature"==e.type?i=[e]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(e.type)?i=[{geometry:e}]:console.log("nothing found in geoJSON"),i)for(var n=function(t,e){var n=i[t],o=n.geometry;if(o){var a=o.type,s=n.id;if(r.chart.geodataNames&&r.chart.geodataNames[s]&&(n.properties.name=r.chart.geodataNames[s]),"Polygon"==a||"MultiPolygon"==a){if(!r.checkInclude(r.include,r.exclude,s))return"continue";var u=o.coordinates;u&&"Polygon"==a&&(u=[u]);var l=yw(r.data,(function(t,e){return t.id==s}));l?l.multiPolygon||(l.multiPolygon=u):(l={multiPolygon:u,id:s,madeFromGeoData:!0},r.data.push(l)),Ex(n.properties,l)}}},r=this,o=0,a=i.length;o<a;o++)n(o)}}t.prototype.validateData.call(this)},e.prototype.validate=function(){t.prototype.validate.call(this),this.dataItems.each((function(t){t.mapPolygon})),this.mapPolygons.each((function(t){t.validate(),t.zIndex||t.propertyFields.zIndex||(t.zIndex=1e6-t.boxArea)}))},Object.defineProperty(e.prototype,"mapPolygons",{get:function(){if(!this._mapPolygons){var t=new xD,e=new sx(t);this._disposers.push(new rx(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapPolygons=e,this._mapObjects=e}return this._mapPolygons},enumerable:!0,configurable:!0}),e.prototype.getPolygonById=function(t){return Yw(this.mapPolygons.iterator(),(function(e){return e.dataItem.dataContext.id==t}))},e.prototype.copyFrom=function(e){this.mapPolygons.template.copyFrom(e.mapPolygons.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each((function(t){var i=t.getFeature();i&&e.push(i)})),this.mapPolygons.each((function(i){if(-1==t.dataItems.indexOf(i._dataItem)){var n=i.getFeature();n&&e.push(n)}})),e},e}(rD);ex.registeredClasses.MapPolygonSeries=PD,ex.registeredClasses.MapPolygonSeriesDataItem=CD;var kD=function(){var t,e=[];return{point:function(e,i){t.push([e,i])},lineStart:function(){e.push(t=[])},lineEnd:uO,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var i=e;return e=[],t=null,i}}},SD=function(t,e){return XS(t[0]-e[0])<zS&&XS(t[1]-e[1])<zS};function OD(t,e,i,n){this.x=t,this.z=e,this.o=i,this.e=n,this.v=!1,this.n=this.p=null}var DD=function(t,e,i,n,r){var o,a,s=[],u=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,i,n=t[0],a=t[e];if(SD(n,a)){for(r.lineStart(),o=0;o<e;++o)r.point((n=t[o])[0],n[1]);r.lineEnd()}else s.push(i=new OD(n,t,null,!0)),u.push(i.o=new OD(n,null,i,!1)),s.push(i=new OD(a,t,null,!1)),u.push(i.o=new OD(a,null,i,!0))}})),s.length){for(u.sort(e),TD(s),TD(u),o=0,a=u.length;o<a;++o)u[o].e=i=!i;for(var l,h,c=s[0];;){for(var p=c,d=!0;p.v;)if((p=p.n)===c)return;l=p.z,r.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(o=0,a=l.length;o<a;++o)r.point((h=l[o])[0],h[1]);else n(p.x,p.n.x,1,r);p=p.n}else{if(d)for(l=p.p.z,o=l.length-1;o>=0;--o)r.point((h=l[o])[0],h[1]);else n(p.x,p.p.x,-1,r);p=p.p}l=(p=p.o).z,d=!d}while(!p.v);r.lineEnd()}}};function TD(t){if(e=t.length){for(var e,i,n=0,r=t[0];++n<e;)r.n=i=t[n],i.p=r,r=i;r.n=i=t[0],i.p=r}}var ED=RS();function ID(t){return XS(t[0])<=US?t[0]:nO(t[0])*((XS(t[0])+US)%KS-US)}var AD,FD,MD=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},jD=(1===(AD=MD).length&&(FD=AD,AD=function(t,e){return MD(FD(t),e)}),Array.prototype),LD=(jD.slice,jD.map,function(t,e,i){t=+t,e=+e,i=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+i;for(var n=-1,r=0|Math.max(0,Math.ceil((e-t)/i)),o=new Array(r);++n<r;)o[n]=t+n*i;return o});Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var VD=function(t){for(var e,i,n,r=t.length,o=-1,a=0;++o<r;)a+=t[o].length;for(i=new Array(a);--r>=0;)for(e=(n=t[r]).length;--e>=0;)i[--a]=n[e];return i},RD=function(t,e,i,n){return function(r){var o,a,s,u=e(r),l=kD(),h=e(l),c=!1,p={point:d,lineStart:g,lineEnd:y,polygonStart:function(){p.point=v,p.lineStart=m,p.lineEnd=b,a=[],o=[]},polygonEnd:function(){p.point=d,p.lineStart=g,p.lineEnd=y,a=VD(a);var t=function(t,e){var i=ID(e),n=e[1],r=iO(n),o=[iO(i),-$S(i),0],a=0,s=0;ED.reset(),1===r?n=WS+zS:-1===r&&(n=-WS-zS);for(var u=0,l=t.length;u<l;++u)if(c=(h=t[u]).length)for(var h,c,p=h[c-1],d=ID(p),f=p[1]/2+GS,g=iO(f),y=$S(f),v=0;v<c;++v,d=b,g=w,y=x,p=m){var m=h[v],b=ID(m),_=m[1]/2+GS,w=iO(_),x=$S(_),C=b-d,P=C>=0?1:-1,k=P*C,S=k>US,O=g*w;if(ED.add(QS(O*P*iO(k),y*x+O*$S(k))),a+=S?C+P*KS:C,S^d>=i^b>=i){var D=EO(DO(p),DO(m));FO(D);var T=EO(o,D);FO(T);var E=(S^C>=0?-1:1)*aO(T[2]);(n>E||n===E&&(D[0]||D[1]))&&(s+=S^C>=0?1:-1)}}return(a<-zS||a<zS&&ED<-zS)^1&s}(o,n);a.length?(c||(r.polygonStart(),c=!0),DD(a,BD,t,i,r)):t&&(c||(r.polygonStart(),c=!0),r.lineStart(),i(null,null,1,r),r.lineEnd()),c&&(r.polygonEnd(),c=!1),a=o=null},sphere:function(){r.polygonStart(),r.lineStart(),i(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function d(e,i){t(e,i)&&r.point(e,i)}function f(t,e){u.point(t,e)}function g(){p.point=f,u.lineStart()}function y(){p.point=d,u.lineEnd()}function v(t,e){s.push([t,e]),h.point(t,e)}function m(){h.lineStart(),s=[]}function b(){v(s[0][0],s[0][1]),h.lineEnd();var t,e,i,n,u=h.clean(),p=l.result(),d=p.length;if(s.pop(),o.push(s),s=null,d)if(1&u){if((e=(i=p[0]).length-1)>0){for(c||(r.polygonStart(),c=!0),r.lineStart(),t=0;t<e;++t)r.point((n=i[t])[0],n[1]);r.lineEnd()}}else d>1&&2&u&&p.push(p.pop().concat(p.shift())),a.push(p.filter(ND))}return p}};function ND(t){return t.length>1}function BD(t,e){return((t=t.x)[0]<0?t[1]-WS-zS:WS-t[1])-((e=e.x)[0]<0?e[1]-WS-zS:WS-e[1])}var HD=RD((function(){return!0}),(function(t){var e,i=NaN,n=NaN,r=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s=o>0?US:-US,u=XS(o-i);XS(u-US)<zS?(t.point(i,n=(n+a)/2>0?WS:-WS),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(o,n),e=0):r!==s&&u>=US&&(XS(i-r)<zS&&(i-=r*zS),XS(o-s)<zS&&(o-=s*zS),n=function(t,e,i,n){var r,o,a=iO(t-i);return XS(a)>zS?ZS((iO(e)*(o=$S(n))*iO(i)-iO(n)*(r=$S(e))*iO(t))/(r*o*a)):(e+n)/2}(i,n,o,a),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(i=o,n=a),r=s},lineEnd:function(){t.lineEnd(),i=n=NaN},clean:function(){return 2-e}}}),(function(t,e,i,n){var r;if(null==t)r=i*WS,n.point(-US,r),n.point(0,r),n.point(US,r),n.point(US,0),n.point(US,-r),n.point(0,-r),n.point(-US,-r),n.point(-US,0),n.point(-US,r);else if(XS(t[0]-e[0])>zS){var o=t[0]<e[0]?US:-US;r=i*o/2,n.point(-o,r),n.point(0,r),n.point(o,r)}else n.point(e[0],e[1])}),[-US,-WS]),zD=function(t){var e=$S(t),i=6*qS,n=e>0,r=XS(e)>zS;function o(t,i){return $S(t)*$S(i)>e}function a(t,i,n){var r=[1,0,0],o=EO(DO(t),DO(i)),a=TO(o,o),s=o[0],u=a-s*s;if(!u)return!n&&t;var l=e*a/u,h=-e*s/u,c=EO(r,o),p=AO(r,l);IO(p,AO(o,h));var d=c,f=TO(p,d),g=TO(d,d),y=f*f-g*(TO(p,p)-1);if(!(y<0)){var v=rO(y),m=AO(d,(-f-v)/g);if(IO(m,p),m=OO(m),!n)return m;var b,_=t[0],w=i[0],x=t[1],C=i[1];w<_&&(b=_,_=w,w=b);var P=w-_,k=XS(P-US)<zS;if(!k&&C<x&&(b=x,x=C,C=b),k||P<zS?k?x+C>0^m[1]<(XS(m[0]-_)<zS?x:C):x<=m[1]&&m[1]<=C:P>US^(_<=m[0]&&m[0]<=w)){var S=AO(d,(-f+v)/g);return IO(S,p),[m,OO(S)]}}}function s(e,i){var r=n?t:US-t,o=0;return e<-r?o|=1:e>r&&(o|=2),i<-r?o|=4:i>r&&(o|=8),o}return RD(o,(function(t){var e,i,u,l,h;return{lineStart:function(){l=u=!1,h=1},point:function(c,p){var d,f=[c,p],g=o(c,p),y=n?g?0:s(c,p):g?s(c+(c<0?US:-US),p):0;if(!e&&(l=u=g)&&t.lineStart(),g!==u&&(!(d=a(e,f))||SD(e,d)||SD(f,d))&&(f[0]+=zS,f[1]+=zS,g=o(f[0],f[1])),g!==u)h=0,g?(t.lineStart(),d=a(f,e),t.point(d[0],d[1])):(d=a(e,f),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(r&&e&&n^g){var v;y&i||!(v=a(f,e,!0))||(h=0,n?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||e&&SD(e,f)||t.point(f[0],f[1]),e=f,u=g,i=y},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return h|(l&&u)<<1}}}),(function(e,n,r,o){!function(t,e,i,n,r,o){if(i){var a=$S(e),s=iO(e),u=n*i;null==r?(r=e+n*KS,o=e-u/2):(r=gD(a,r),o=gD(a,o),(n>0?r<o:r>o)&&(r+=n*KS));for(var l,h=r;n>0?h>o:h<o;h-=u)l=OO([a,-s*$S(h),-s*iO(h)]),t.point(l[0],l[1])}}(o,t,i,r,e,n)}),n?[0,-t]:[-US,t-US])};function UD(t,e,i,n){function r(r,o){return t<=r&&r<=i&&e<=o&&o<=n}function o(r,o,s,l){var h=0,c=0;if(null==r||(h=a(r,s))!==(c=a(o,s))||u(r,o)<0^s>0)do{l.point(0===h||3===h?t:i,h>1?n:e)}while((h=(h+s+4)%4)!==c);else l.point(o[0],o[1])}function a(n,r){return XS(n[0]-t)<zS?r>0?0:3:XS(n[0]-i)<zS?r>0?2:1:XS(n[1]-e)<zS?r>0?1:0:r>0?3:2}function s(t,e){return u(t.x,e.x)}function u(t,e){var i=a(t,1),n=a(e,1);return i!==n?i-n:0===i?e[1]-t[1]:1===i?t[0]-e[0]:2===i?t[1]-e[1]:e[0]-t[0]}return function(a){var u,l,h,c,p,d,f,g,y,v,m,b=a,_=kD(),w={point:x,lineStart:function(){w.point=C,l&&l.push(h=[]),v=!0,y=!1,f=g=NaN},lineEnd:function(){u&&(C(c,p),d&&y&&_.rejoin(),u.push(_.result())),w.point=x,y&&b.lineEnd()},polygonStart:function(){b=_,u=[],l=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,i=0,r=l.length;i<r;++i)for(var o,a,s=l[i],u=1,h=s.length,c=s[0],p=c[0],d=c[1];u<h;++u)o=p,a=d,p=(c=s[u])[0],d=c[1],a<=n?d>n&&(p-o)*(n-a)>(d-a)*(t-o)&&++e:d<=n&&(p-o)*(n-a)<(d-a)*(t-o)&&--e;return e}(),i=m&&e,r=(u=VD(u)).length;(i||r)&&(a.polygonStart(),i&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),r&&DD(u,s,e,o,a),a.polygonEnd()),b=a,u=l=h=null}};function x(t,e){r(t,e)&&b.point(t,e)}function C(o,a){var s=r(o,a);if(l&&h.push([o,a]),v)c=o,p=a,d=s,v=!1,s&&(b.lineStart(),b.point(o,a));else if(s&&y)b.point(o,a);else{var u=[f=Math.max(-1e9,Math.min(1e9,f)),g=Math.max(-1e9,Math.min(1e9,g))],_=[o=Math.max(-1e9,Math.min(1e9,o)),a=Math.max(-1e9,Math.min(1e9,a))];!function(t,e,i,n,r,o){var a,s=t[0],u=t[1],l=0,h=1,c=e[0]-s,p=e[1]-u;if(a=i-s,c||!(a>0)){if(a/=c,c<0){if(a<l)return;a<h&&(h=a)}else if(c>0){if(a>h)return;a>l&&(l=a)}if(a=r-s,c||!(a<0)){if(a/=c,c<0){if(a>h)return;a>l&&(l=a)}else if(c>0){if(a<l)return;a<h&&(h=a)}if(a=n-u,p||!(a>0)){if(a/=p,p<0){if(a<l)return;a<h&&(h=a)}else if(p>0){if(a>h)return;a>l&&(l=a)}if(a=o-u,p||!(a<0)){if(a/=p,p<0){if(a>h)return;a>l&&(l=a)}else if(p>0){if(a<l)return;a<h&&(h=a)}return l>0&&(t[0]=s+l*c,t[1]=u+l*p),h<1&&(e[0]=s+h*c,e[1]=u+h*p),!0}}}}}(u,_,t,e,i,n)?s&&(b.lineStart(),b.point(o,a),m=!1):(y||(b.lineStart(),b.point(u[0],u[1])),b.point(_[0],_[1]),s||b.lineEnd(),m=!1)}f=o,g=a,y=s}return w}}var WD=function(t){return t};function GD(t){return function(e){var i=new KD;for(var n in t)i[n]=t[n];return i.stream=e,i}}function KD(){}KD.prototype={constructor:KD,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var YD=1/0,qD=YD,XD=-YD,ZD=XD,QD={point:function(t,e){t<YD&&(YD=t),t>XD&&(XD=t),e<qD&&(qD=e),e>ZD&&(ZD=e)},lineStart:uO,lineEnd:uO,polygonStart:uO,polygonEnd:uO,result:function(){var t=[[YD,qD],[XD,ZD]];return XD=ZD=-(qD=YD=1/0),t}};function $D(t,e,i){var n=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=n&&t.clipExtent(null),bO(i,t.stream(QD)),e(QD.result()),null!=n&&t.clipExtent(n),t}function JD(t,e,i){return $D(t,(function(i){var n=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=Math.min(n/(i[1][0]-i[0][0]),r/(i[1][1]-i[0][1])),a=+e[0][0]+(n-o*(i[1][0]+i[0][0]))/2,s=+e[0][1]+(r-o*(i[1][1]+i[0][1]))/2;t.scale(150*o).translate([a,s])}),i)}function tT(t,e,i){return JD(t,[[0,0],e],i)}function eT(t,e,i){return $D(t,(function(i){var n=+e,r=n/(i[1][0]-i[0][0]),o=(n-r*(i[1][0]+i[0][0]))/2,a=-r*i[0][1];t.scale(150*r).translate([o,a])}),i)}function iT(t,e,i){return $D(t,(function(i){var n=+e,r=n/(i[1][1]-i[0][1]),o=-r*i[0][0],a=(n-r*(i[1][1]+i[0][1]))/2;t.scale(150*r).translate([o,a])}),i)}var nT=$S(30*qS),rT=function(t,e){return+e?function(t,e){function i(n,r,o,a,s,u,l,h,c,p,d,f,g,y){var v=l-n,m=h-r,b=v*v+m*m;if(b>4*e&&g--){var _=a+p,w=s+d,x=u+f,C=rO(_*_+w*w+x*x),P=aO(x/=C),k=XS(XS(x)-1)<zS||XS(o-c)<zS?(o+c)/2:QS(w,_),S=t(k,P),O=S[0],D=S[1],T=O-n,E=D-r,I=m*T-v*E;(I*I/b>e||XS((v*T+m*E)/b-.5)>.3||a*p+s*d+u*f<nT)&&(i(n,r,o,a,s,u,O,D,k,_/=C,w/=C,x,g,y),y.point(O,D),i(O,D,k,_,w,x,l,h,c,p,d,f,g,y))}}return function(e){var n,r,o,a,s,u,l,h,c,p,d,f,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=_},polygonEnd:function(){e.polygonEnd(),g.lineStart=v}};function y(i,n){i=t(i,n),e.point(i[0],i[1])}function v(){h=NaN,g.point=m,e.lineStart()}function m(n,r){var o=DO([n,r]),a=t(n,r);i(h,c,l,p,d,f,h=a[0],c=a[1],l=n,p=o[0],d=o[1],f=o[2],16,e),e.point(h,c)}function b(){g.point=y,e.lineEnd()}function _(){v(),g.point=w,g.lineEnd=x}function w(t,e){m(n=t,e),r=h,o=c,a=p,s=d,u=f,g.point=m}function x(){i(h,c,l,p,d,f,r,o,n,a,s,u,16,e),g.lineEnd=b,b()}return g}}(t,e):function(t){return GD({point:function(e,i){e=t(e,i),this.stream.point(e[0],e[1])}})}(t)},oT=GD({point:function(t,e){this.stream.point(t*qS,e*qS)}});function aT(t,e,i,n,r){function o(o,a){return[e+t*(o*=n),i-t*(a*=r)]}return o.invert=function(o,a){return[(o-e)/t*n,(i-a)/t*r]},o}function sT(t,e,i,n,r,o){var a=$S(o),s=iO(o),u=a*t,l=s*t,h=a/t,c=s/t,p=(s*i-a*e)/t,d=(s*e+a*i)/t;function f(t,o){return[u*(t*=n)-l*(o*=r)+e,i-l*t-u*o]}return f.invert=function(t,e){return[n*(h*t-c*e+p),r*(d-c*t-h*e)]},f}function uT(t){return lT((function(){return t}))()}function lT(t){var e,i,n,r,o,a,s,u,l,h,c=150,p=480,d=250,f=0,g=0,y=0,v=0,m=0,b=0,_=1,w=1,x=null,C=HD,P=null,k=WD,S=.5;function O(t){return u(t[0]*qS,t[1]*qS)}function D(t){return(t=u.invert(t[0],t[1]))&&[t[0]*YS,t[1]*YS]}function T(){var t=sT(c,0,0,_,w,b).apply(null,e(f,g)),n=(b?sT:aT)(c,p-t[0],d-t[1],_,w,b);return i=cD(y,v,m),s=lD(e,n),u=lD(i,s),a=rT(s,S),E()}function E(){return l=h=null,O}return O.stream=function(t){return l&&h===t?l:l=oT(function(t){return GD({point:function(e,i){var n=t(e,i);return this.stream.point(n[0],n[1])}})}(i)(C(a(k(h=t)))))},O.preclip=function(t){return arguments.length?(C=t,x=void 0,E()):C},O.postclip=function(t){return arguments.length?(k=t,P=n=r=o=null,E()):k},O.clipAngle=function(t){return arguments.length?(C=+t?zD(x=t*qS):(x=null,HD),E()):x*YS},O.clipExtent=function(t){return arguments.length?(k=null==t?(P=n=r=o=null,WD):UD(P=+t[0][0],n=+t[0][1],r=+t[1][0],o=+t[1][1]),E()):null==P?null:[[P,n],[r,o]]},O.scale=function(t){return arguments.length?(c=+t,T()):c},O.translate=function(t){return arguments.length?(p=+t[0],d=+t[1],T()):[p,d]},O.center=function(t){return arguments.length?(f=t[0]%360*qS,g=t[1]%360*qS,T()):[f*YS,g*YS]},O.rotate=function(t){return arguments.length?(y=t[0]%360*qS,v=t[1]%360*qS,m=t.length>2?t[2]%360*qS:0,T()):[y*YS,v*YS,m*YS]},O.angle=function(t){return arguments.length?(b=t%360*qS,T()):b*YS},O.reflectX=function(t){return arguments.length?(_=t?-1:1,T()):_<0},O.reflectY=function(t){return arguments.length?(w=t?-1:1,T()):w<0},O.precision=function(t){return arguments.length?(a=rT(s,S=t*t),E()):rO(S)},O.fitExtent=function(t,e){return JD(O,t,e)},O.fitSize=function(t,e){return tT(O,t,e)},O.fitWidth=function(t,e){return eT(O,t,e)},O.fitHeight=function(t,e){return iT(O,t,e)},function(){return e=t.apply(this,arguments),O.invert=e.invert&&D,T()}}function hT(t,e){return[t,e]}hT.invert=hT;var cT,pT,dT,fT,gT=RS(),yT=RS(),vT={point:uO,lineStart:uO,lineEnd:uO,polygonStart:function(){vT.lineStart=mT,vT.lineEnd=wT},polygonEnd:function(){vT.lineStart=vT.lineEnd=vT.point=uO,gT.add(XS(yT)),yT.reset()},result:function(){var t=gT/2;return gT.reset(),t}};function mT(){vT.point=bT}function bT(t,e){vT.point=_T,cT=dT=t,pT=fT=e}function _T(t,e){yT.add(fT*t-dT*e),dT=t,fT=e}function wT(){_T(cT,pT)}var xT,CT,PT,kT,ST=vT,OT=0,DT=0,TT=0,ET=0,IT=0,AT=0,FT=0,MT=0,jT=0,LT={point:VT,lineStart:RT,lineEnd:HT,polygonStart:function(){LT.lineStart=zT,LT.lineEnd=UT},polygonEnd:function(){LT.point=VT,LT.lineStart=RT,LT.lineEnd=HT},result:function(){var t=jT?[FT/jT,MT/jT]:AT?[ET/AT,IT/AT]:TT?[OT/TT,DT/TT]:[NaN,NaN];return OT=DT=TT=ET=IT=AT=FT=MT=jT=0,t}};function VT(t,e){OT+=t,DT+=e,++TT}function RT(){LT.point=NT}function NT(t,e){LT.point=BT,VT(PT=t,kT=e)}function BT(t,e){var i=t-PT,n=e-kT,r=rO(i*i+n*n);ET+=r*(PT+t)/2,IT+=r*(kT+e)/2,AT+=r,VT(PT=t,kT=e)}function HT(){LT.point=VT}function zT(){LT.point=WT}function UT(){GT(xT,CT)}function WT(t,e){LT.point=GT,VT(xT=PT=t,CT=kT=e)}function GT(t,e){var i=t-PT,n=e-kT,r=rO(i*i+n*n);ET+=r*(PT+t)/2,IT+=r*(kT+e)/2,AT+=r,FT+=(r=kT*t-PT*e)*(PT+t),MT+=r*(kT+e),jT+=3*r,VT(PT=t,kT=e)}var KT=LT;function YT(t){this._context=t}YT.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,KS)}},result:uO};var qT,XT,ZT,QT,$T,JT=RS(),tE={point:uO,lineStart:function(){tE.point=eE},lineEnd:function(){qT&&iE(XT,ZT),tE.point=uO},polygonStart:function(){qT=!0},polygonEnd:function(){qT=null},result:function(){var t=+JT;return JT.reset(),t}};function eE(t,e){tE.point=iE,XT=QT=t,ZT=$T=e}function iE(t,e){QT-=t,$T-=e,JT.add(rO(QT*QT+$T*$T)),QT=t,$T=e}var nE=tE;function rE(){this._string=[]}function oE(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}rE.prototype={_radius:4.5,_circle:oE(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=oE(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var aE,sE,uE,lE=RS(),hE={sphere:uO,point:uO,lineStart:function(){hE.point=pE,hE.lineEnd=cE},lineEnd:uO,polygonStart:uO,polygonEnd:uO};function cE(){hE.point=hE.lineEnd=uO}function pE(t,e){aE=t*=qS,sE=iO(e*=qS),uE=$S(e),hE.point=dE}function dE(t,e){t*=qS;var i=iO(e*=qS),n=$S(e),r=XS(t-aE),o=$S(r),a=n*iO(r),s=uE*i-sE*n*o,u=sE*i+uE*n*o;lE.add(QS(rO(a*a+s*s),u)),aE=t,sE=i,uE=n}var fE=[null,null],gE={type:"LineString",coordinates:fE},yE=function(){function t(){this.d3Projection=uT(hT).scale(152.63)}return Object.defineProperty(t.prototype,"d3Projection",{get:function(){return this._d3Projection},set:function(t){this._d3Projection=t,t.precision(.1),this._d3Path=function(t,e){var i,n,r=4.5;function o(t){return t&&("function"==typeof r&&n.pointRadius(+r.apply(this,arguments)),bO(t,i(n))),n.result()}return o.area=function(t){return bO(t,i(ST)),ST.result()},o.measure=function(t){return bO(t,i(nE)),nE.result()},o.bounds=function(t){return bO(t,i(QD)),QD.result()},o.centroid=function(t){return bO(t,i(KT)),KT.result()},o.projection=function(e){return arguments.length?(i=null==e?(t=null,WD):(t=e).stream,o):t},o.context=function(t){return arguments.length?(n=null==t?(e=null,new rE):new YT(e=t),"function"!=typeof r&&n.pointRadius(r),o):e},o.pointRadius=function(t){return arguments.length?(r="function"==typeof t?t:(n.pointRadius(+t),+t),o):r},o.projection(t).context(e)}().projection(t),this.chart&&this.chart.invalidateProjection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"d3Path",{get:function(){return this._d3Path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this.d3Projection.scale()/100},enumerable:!0,configurable:!0}),t.prototype.convert=function(t){var e=this.d3Projection([t.longitude,t.latitude]);if(e)return{x:e[0],y:e[1]}},t.prototype.invert=function(t){var e=this.d3Projection.invert([t.x,t.y]);if(e)return{longitude:e[0],latitude:e[1]}},t.prototype.project=function(t,e){return this.convert({longitude:t*A_,latitude:e*A_})},t.prototype.unproject=function(t,e){return this.invert({x:t,y:e})},t.prototype.rotate=function(t,e,i,n){var r=e*I_,o=i*I_;n*=I_;var a=t.longitude*I_+r,s=t.latitude*I_,u=Math.cos(o),l=Math.sin(o),h=Math.cos(n),c=Math.sin(n),p=Math.cos(s),d=Math.cos(a)*p,f=Math.sin(a)*p,g=Math.sin(s),y=g*u+d*l;return{longitude:A_*Math.atan2(f*h-y*c,d*u-g*l),latitude:A_*Math.asin(y*h+f*c)}},t.prototype.unrotate=function(t,e,i,n){var r=e*I_,o=i*I_;n*=I_;var a=t.longitude*I_-r,s=t.latitude*I_,u=Math.cos(o),l=Math.sin(o),h=Math.cos(n),c=Math.sin(n),p=Math.cos(s),d=Math.cos(a)*p,f=Math.sin(a)*p,g=Math.sin(s),y=g*h-f*c;return{longitude:A_*Math.atan2(f*h+g*c,d*u+y*l),latitude:A_*Math.asin(y*u-d*l)}},t.prototype.intermediatePoint=function(t,e,i){var n,r,o,a,s,u,l,h,c,p,d,f,g,y,v,m,b,_=(n=[t.longitude,t.latitude],r=[e.longitude,e.latitude],o=n[0]*qS,s=r[0]*qS,u=r[1]*qS,l=$S(a=n[1]*qS),h=iO(a),c=$S(u),p=iO(u),d=l*$S(o),f=l*iO(o),g=c*$S(s),y=c*iO(s),v=2*aO(rO(sO(u-a)+l*c*sO(s-o))),m=iO(v),(b=v?function(t){var e=iO(t*=v)/m,i=iO(v-t)/m,n=i*d+e*g,r=i*f+e*y,o=i*h+e*p;return[QS(r,n)*YS,QS(o,rO(n*n+r*r))*YS]}:function(){return[o*YS,a*YS]}).distance=v,b)(i);return{longitude:_[0],latitude:_[1]}},t.prototype.multiDistance=function(t){for(var e=0,i=0;i<t.length;i++){var n=t[i];if(n.length>1)for(var r=1;r<n.length;r++){var o=n[r-1],a=n[r];e+=this.distance(o,a)}}return e},t.prototype.distance=function(t,e){return i=[t.longitude,t.latitude],n=[e.longitude,e.latitude],fE[0]=i,fE[1]=n,r=gE,lE.reset(),bO(r,hE),+lE;var i,n,r},t.prototype.positionToPoint=function(t,e){if(t){var i=this.positionToGeoPoint(t,e),n=this.positionToGeoPoint(t,e-.01),r=this.positionToGeoPoint(t,e+.01);if(n&&r){var o=this.convert(i),a=this.convert(n),s=this.convert(r);return{x:o.x,y:o.y,angle:K_(a,s)}}}return{x:0,y:0,angle:0}},t.prototype.positionToGeoPoint=function(t,e){if(t){for(var i=this.multiDistance(t),n=0,r=0,o=0,a=void 0,s=void 0,u=0;u<t.length;u++){var l=t[u];if(l.length>1){for(var h=1;h<l.length;h++)if(a=l[h-1],s=l[h],r=n/i,o=(n+=this.distance(a,s))/i,r<=e&&o>e){u=t.length;break}}else 1==l.length&&(a=l[0],s=l[0],r=0,o=1)}if(a&&s){var c=(e-r)/(o-r);return this.intermediatePoint(a,s,c)}}return{longitude:0,latitude:0}},t}();ex.registeredClasses.Projection=yE;var vE=function(t){function e(){var e=t.call(this)||this;e._chart=new _w,e.className="SmallMap",e.align="left",e.valign="bottom",e.percentHeight=20,e.percentWidth=20,e.margin(5,5,5,5);var i=new ZC;e.background.fillOpacity=.9,e.background.fill=i.getFor("background"),e.events.on("hit",e.moveToPosition,e,!1),e.events.on("maxsizechanged",e.updateMapSize,e,!1),e.seriesContainer=e.createChild(WP),e.seriesContainer.shouldClone=!1;var n=e.createChild(UP);return n.shouldClone=!1,n.stroke=i.getFor("alternativeBackground"),n.strokeWidth=1,n.strokeOpacity=.5,n.fill=Cx(),n.verticalCenter="middle",n.horizontalCenter="middle",n.isMeasured=!1,n.visible=!1,e.rectangle=n,e._disposers.push(e._chart),e.applyTheme(),e}return s_(e,t),Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new ax,this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1)),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(t){var e=t.newValue;if(this.chart.series.contains(e)){var i=e.clone();this._series.removeValue(e),this._series.push(i),e=i,this.chart.dataUsers.push(i)}e.chart=this.chart,e.parent=this.seriesContainer,e.interactionsEnabled=!1,e.events.on("inited",this.updateMapSize,this,!1),e.hidden=!1},e.prototype.handleSeriesRemoved=function(t){this.invalidate()},e.prototype.moveToPosition=function(t){var e=tC(t.spritePoint,this,this.seriesContainer),i=this.chart.seriesPointToGeo(e);this.chart.zoomToGeoPoint(i,this.chart.zoomLevel,!0)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this.chart!=t&&this._chart.set(t,new bw([t.events.on("mappositionchanged",this.updateRectangle,this,!1),t.events.on("scaleratiochanged",this.updateMapSize,this,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateRectangle=function(){var t=this.chart,e=t.zoomLevel,i=this.rectangle;i.width=this.pixelWidth/e,i.height=this.pixelHeight/e;var n=Math.min(this.percentWidth,this.percentHeight)/100,r=t.seriesContainer;i.x=Math.ceil(-r.pixelX*n/e)+this.seriesContainer.pixelX,i.y=Math.ceil(-r.pixelY*n/e)+this.seriesContainer.pixelY,i.validate()},e.prototype.updateMapSize=function(){if(this.chart){var t=this.chart.scaleRatio*Math.min(this.percentWidth,this.percentHeight)/100;this.seriesContainer.scale=t;var e={width:0,height:0,x:0,y:0};try{e=this.seriesContainer.group.node.getBBox()}catch(i){}e.width>0&&(this.rectangle.visible=!0),this.seriesContainer.x=this.pixelWidth/2-e.x*t-e.width/2*t,this.seriesContainer.y=this.pixelHeight/2-e.y*t-e.height/2*t,this.updateRectangle(),this.afterDraw()}},e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.rectangle.maskRectangle={x:-1,y:-1,width:Math.ceil(this.pixelWidth+2),height:Math.ceil(this.pixelHeight+2)}},e.prototype.processConfig=function(e){if(e&&w_(e.series)&&D_(e.series))for(var i=0,n=e.series.length;i<n;i++){var r=e.series[i];w_(r)&&k_(r)&&this.map.hasKey(r)&&(e.series[i]=this.map.getKey(r))}t.prototype.processConfig.call(this,e)},e}(WP);function mE(t){return(t%=360)>180&&(t-=360),t<-180&&(t+=360),t}ex.registeredClasses.SmallMap=vE;var bE=function(t){function e(){var e=t.call(this)||this;return e.adjustRotation=!0,e.className="MapLineObject",e.isMeasured=!1,e.layout="none",e.applyTheme(),e}return s_(e,t),e.prototype.validatePosition=function(){var e=this.mapLine;if(e){var i=e.positionToPoint(this.position);if(this.x=i.x,this.y=i.y,this.adjustRotation&&(this.rotation=i.angle),this.mapLine.dataItem){var n=this.mapLine.dataItem.component;this.scale=1/n.scale}if(e.shortestDistance){var r=this.mapLine.series.chart.projection,o=r.positionToGeoPoint(e.multiGeoLine,this.position),a=r.d3Path({type:"Point",coordinates:[o.longitude,o.latitude]});this.__disabled=!a}}t.prototype.validatePosition.call(this)},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adjustRotation",{get:function(){return this.getPropertyValue("adjustRotation")},set:function(t){this.setPropertyValue("adjustRotation",t,!1,!0)},enumerable:!0,configurable:!0}),e}(WP);ex.registeredClasses.MapLineObject=bE;var _E=function(t){function e(){var e=t.call(this)||this;return e.className="MapImageSeriesDataItem",e.applyTheme(),e}return s_(e,t),e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:this.point}}},Object.defineProperty(e.prototype,"mapImage",{get:function(){var t=this;if(!this._mapImage){var e=this.component.mapImages.create();this.addSprite(e),this._mapImage=e,this._disposers.push(e),this._disposers.push(new mw((function(){t.component&&t.component.mapImages.removeValue(e)}))),this.mapObject=e}return this._mapImage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"point",{get:function(){return this._point},set:function(t){this._point=t,this._geoPoint=mD(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPoint",{get:function(){return[this._point]},set:function(t){this._point=t[0],this._geoPoint=mD(this._point),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPoint",{get:function(){return this._geoPoint},set:function(t){this._geoPoint=t,this.point=[t.longitude,t.latitude]},enumerable:!0,configurable:!0}),e}(nD),wE=function(t){function e(){var e=t.call(this)||this;return e.className="MapImageSeries",e.dataFields.multiPoint="multiPoint",e.dataFields.point="point",e.dataFields.geoPoint="geoPoint",e.dataFields.multiGeoPoint="multiGeoPoint",e.ignoreBounds=!0,e.applyTheme(),e}return s_(e,t),e.prototype.createDataItem=function(){return new _E},e.prototype.validateData=function(){var e=this;if(this.data.length>0&&0==this._parseDataFrom&&this.mapImages.clear(),this.useGeodata&&(this.useGeodata||this.geodata)){var i=this.chart.geodata,n=void 0;if("FeatureCollection"==i.type?n=i.features:"Feature"==i.type?n=[i]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(i.type)?n=[{geometry:i}]:console.log("nothing found in geoJSON"),n)for(var r=function(t,e){var i=n[t],r=i.geometry;if(r){var a=r.type,s=i.id;if("Point"==a||"MultiPoint"==a){if(!o.checkInclude(o.include,o.exclude,s))return"continue";var u=r.coordinates;"Point"==a&&(u=[u]);var l=yw(o.data,(function(t,e){return t.id==s}));l?l.multiPoint||(l.multiPoint=u):(l={multiPoint:u,id:s,madeFromGeoData:!0},o.data.push(l)),Ex(i.properties,l)}}},o=this,a=0,s=n.length;a<s;a++)r(a)}t.prototype.validateData.call(this),Ww(this.dataItems.iterator(),(function(t){var i=t.mapImage;i.isDisposed()||(e.mapImages.moveValue(i),S_(i.latitude)&&S_(i.latitude)&&(t.geoPoint={latitude:i.latitude,longitude:i.longitude}))}))},Object.defineProperty(e.prototype,"mapImages",{get:function(){if(!this._mapImages){var t=new aD,e=new sx(t);this._disposers.push(new rx(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapImages=e,this._mapObjects=e}return this._mapImages},enumerable:!0,configurable:!0}),e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e),e.mapImage.invalidate()},e.prototype.validate=function(){t.prototype.validate.call(this),Ww(this.mapImages.iterator(),(function(t){t.validatePosition()}))},e.prototype.copyFrom=function(e){this.mapImages.template.copyFrom(e.mapImages.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each((function(t){var i=t.getFeature();i&&e.push(i)})),this.mapImages.each((function(i){if(-1==t.dataItems.indexOf(i._dataItem)){var n=i.getFeature();n&&e.push(n)}})),e},e.prototype.getImageById=function(t){return Yw(this.mapImages.iterator(),(function(e){var i=e.dataItem.dataContext;if(e.id==t||i&&i.id==t)return!0}))},e}(rD);ex.registeredClasses.MapImageSeries=wE,ex.registeredClasses.MapImageSeriesDataItem=_E;var xE=function(t){function e(){var e=t.call(this)||this;e._imageListeners={},e.className="MapLine",e.createLine(),e.line.stroke=Cx(),e.line.parent=e,e.strokeOpacity=1,e.setPropertyValue("precision",.1);var i=new ZC;return e.stroke=i.getFor("grid"),e.shortestDistance=!0,e.applyTheme(),e}return s_(e,t),e.prototype.createLine=function(){this.line=new vk},e.prototype.positionToPoint=function(t){return this.shortestDistance?this.series.chart.projection.positionToPoint(this.multiGeoLine,t):this.line?this.line.positionToPoint(t):{x:0,y:0,angle:0}},Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){var t=this.getPropertyValue("multiGeoLine");return!t&&this.dataItem&&this.dataItem.multiGeoLine&&(t=this.dataItem.multiGeoLine),t},set:function(t){if(t&&t.length>0){this.setPropertyValue("multiGeoLine",(ow(i=t,(function(t){ow(t,(function(t){var e,i,n,r;i=mE((e=t).longitude),n=Math.asin(Math.sin(e.latitude*I_))*A_,r=mE(e.latitude),Math.abs(r)>90&&(i=mE(i+180)),e.longitude=i,e.latitude=n}))})),i),!0);var e=_D(t);this.setPropertyValue("multiLine",e),this.updateExtremes()}var i},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){var t=this.getPropertyValue("multiLine");return!t&&this.dataItem&&this.dataItem.multiLine&&(t=this.dataItem.multiLine),t},set:function(t){this.setPropertyValue("multiLine",t),this.multiGeoLine=yD(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imagesToConnect",{get:function(){return this.getPropertyValue("imagesToConnect")},set:function(t){var e=this;if(this.setPropertyValue("imagesToConnect",t,!0),this.handleImagesToConnect(),this.series){var i=this.series.chart;i&&i.series.each((function(t){t instanceof wE&&(t.isReady()||e._disposers.push(t.events.on("ready",e.handleImagesToConnect,e,!1)))}))}},enumerable:!0,configurable:!0}),e.prototype.handleImagesToConnect=function(){var t,e,i=this;if(this.imagesToConnect){var n=[],r=[n],o=function(t){if(k_(t)){var e=a.series.chart;e&&e.series.each((function(e){if(e instanceof wE){var i=e.getImageById(t);i&&(t=i)}}))}if(t instanceof aD&&(n.push({longitude:t.longitude,latitude:t.latitude}),!a._imageListeners[t.uid])){var r=t.events.on("propertychanged",(function(t){"longitude"!=t.property&&"latitude"!=t.property||(i.handleImagesToConnect(),i.invalidate())}),a,!1);a._imageListeners[t.uid]=r,a._disposers.push(r)}},a=this;try{for(var s=h_(this.imagesToConnect),u=s.next();!u.done;u=s.next())o(u.value)}catch(l){t={error:l}}finally{try{u&&!u.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}this.multiGeoLine=r}},e.prototype.validate=function(){var e=this.series.chart;if(this.multiLine){if(this.shortestDistance)e.projection.d3Projection.precision(this.precision),this.line.path=e.projection.d3Path(this.getFeature());else{for(var i=[],n=0,r=this.multiLine.length;n<r;n++){for(var o=this.multiLine[n],a=[],s=0,u=o.length;s<u;s++){var l=o[s],h=this.series.chart.projection.convert({longitude:l[0],latitude:l[1]});a.push(h)}i.push(a)}this.line.segments=i}this._arrow&&this._arrow.validatePosition(),Ww(this.lineObjects.iterator(),(function(t){t.validatePosition()})),this.handleGlobalScale()}else this.imagesToConnect&&this.handleImagesToConnect();t.prototype.validate.call(this)},e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0&&this.multiLine[0]&&this.multiLine[0].length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return this.getPropertyValue("shortestDistance")},set:function(t){this.setPropertyValue("shortestDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineObjects",{get:function(){return this._lineObjects||(this._lineObjects=new sx(new bE),this._lineObjects.events.on("inserted",this.handleLineObjectAdded,this,!1),this._disposers.push(new rx(this._lineObjects)),this._disposers.push(this._lineObjects.template)),this._lineObjects},enumerable:!0,configurable:!0}),e.prototype.handleLineObjectAdded=function(t){var e=t.newValue;e.mapLine=this,e.shouldClone=!1,e.parent=this},Object.defineProperty(e.prototype,"arrow",{get:function(){if(!this._arrow){var t=this.createChild(bE);t.shouldClone=!1,t.width=8,t.height=10,t.mapLine=this,t.position=.5;var e=t.createChild(Mk);e.fillOpacity=1,e.width=f_(100),e.height=f_(100),e.rotation=90,e.horizontalCenter="middle",e.verticalCenter="middle",this._arrow=t}return this._arrow},set:function(t){this._arrow=t,t.mapLine=this,t.parent=this},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.line.copyFrom(e.line),this.lineObjects.copyFrom(e.lineObjects),e._arrow&&(this.arrow=e.arrow.clone())},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return t instanceof d_||(t=f_(50)),t instanceof d_?this.positionToPoint(t.value).x:0},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");return t instanceof d_||(t=f_(50)),t instanceof d_?this.positionToPoint(t.value).y:0},Object.defineProperty(e.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(t){this.setPropertyValue("precision",t,!0)},enumerable:!0,configurable:!0}),e}(oD);ex.registeredClasses.MapLine=xE;var CE=function(t){function e(){var e=t.call(this)||this;return e.className="MapLineSeriesDataItem",e.applyTheme(),e}return s_(e,t),e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},Object.defineProperty(e.prototype,"mapLine",{get:function(){var t=this;if(!this._mapLine){var e=this.component.mapLines.create();this._mapLine=e,this.addSprite(e),this._disposers.push(e),this._disposers.push(new mw((function(){t.component&&t.component.mapLines.removeValue(e)}))),this.mapObject=e}return this._mapLine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){this._line=t,this.multiLine=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){return this._multiLine},set:function(t){this._multiLine=t,this._multiGeoLine=yD(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoLine",{get:function(){return this._geoLine},set:function(t){this._geoLine=t,this.multiLine=_D([t])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){return this._multiGeoLine},set:function(t){this._multiGeoLine=t,this.multiLine=_D(t)},enumerable:!0,configurable:!0}),e}(nD),PE=function(t){function e(){var e=t.call(this)||this;return e.className="MapLineSeries",e.dataFields.multiLine="multiLine",e.dataFields.line="line",e.dataFields.geoLine="geoLine",e.dataFields.multiGeoLine="multiGeoLine",e.ignoreBounds=!0,e.applyTheme(),e}return s_(e,t),e.prototype.createDataItem=function(){return new CE},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var e=this.chart.geodata;if(e){var i=void 0;if("FeatureCollection"==e.type?i=e.features:"Feature"==e.type?i=[e]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(e.type)?i=[{geometry:e}]:console.log("nothing found in geoJSON"),i)for(var n=function(t,e){var n=i[t],o=n.geometry;if(o){var a=o.type,s=n.id;if("LineString"==a||"MultiLineString"==a){if(!r.checkInclude(r.include,r.exclude,s))return"continue";var u=o.coordinates,l=yw(r.data,(function(t,e){return t.id==s}));"LineString"==a&&(u=[u]),l?l.multiLine||(l.multiLine=u):(l={multiLine:u,id:s,madeFromGeoData:!0},r.data.push(l)),Ex(n.properties,l)}}},r=this,o=0,a=i.length;o<a;o++)n(o)}}t.prototype.validateData.call(this)},Object.defineProperty(e.prototype,"mapLines",{get:function(){if(!this._mapLines){var t=this.createLine(),e=new sx(t);this._disposers.push(new rx(e)),this._disposers.push(e.template),e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapLines=e,this._mapObjects=e}return this._mapLines},enumerable:!0,configurable:!0}),e.prototype.createLine=function(){return new xE},e.prototype.validate=function(){this.dataItems.each((function(t){t.mapLine})),t.prototype.validate.call(this),this.mapLines.each((function(t){t.validate()}))},e.prototype.copyFrom=function(e){this.mapLines.template.copyFrom(e.mapLines.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each((function(t){var i=t.getFeature();i&&e.push(i)})),this.mapLines.each((function(i){if(-1==t.dataItems.indexOf(i._dataItem)){var n=i.getFeature();n&&e.push(n)}})),e},e.prototype.getLineById=function(t){return Yw(this.mapLines.iterator(),(function(e){return e.dataItem.dataContext.id==t}))},e}(rD);ex.registeredClasses.MapLineSeries=PE,ex.registeredClasses.MapLineSeriesDataItem=CE;var kE=function(t){function e(){var e=t.call(this)||this;return e.className="Graticule",e.applyTheme(),e.shortestDistance=!0,e}return s_(e,t),e}(xE);function SE(t,e,i){var n=LD(t,e-zS,i).concat(e);return function(t){return n.map((function(e){return[t,e]}))}}function OE(t,e,i){var n=LD(t,e-zS,i).concat(e);return function(t){return n.map((function(e){return[e,t]}))}}ex.registeredClasses.Graticule=kE;var DE,TE=function(t){function e(){var e=t.call(this)||this;return e.className="GraticuleSeriesDataItem",e.applyTheme(),e}return s_(e,t),e}(CE),EE=function(t){function e(){var e=t.call(this)||this;return e.className="GraticuleSeries",e.longitudeStep=10,e.latitudeStep=10,e.north=90,e.south=-90,e.east=-180,e.west=180,e.fitExtent=!0,e.singleSprite=!0,e.events.disableType("geoBoundsChanged"),e.mapLines.template.line.strokeOpacity=.08,e.ignoreBounds=!1,e.hiddenInLegend=!0,e.applyTheme(),e}return s_(e,t),e.prototype.createDataItem=function(){return new TE},e.prototype.validateData=function(){var e=this;t.prototype.validateData.call(this),this.mapLines.clear();var i=function(){var t,e,i,n,r,o,a,s,u,l,h,c,p=10,d=p,f=90,g=360,y=2.5;function v(){return{type:"MultiLineString",coordinates:m()}}function m(){return LD(JS(n/f)*f,i,f).map(h).concat(LD(JS(s/g)*g,a,g).map(c)).concat(LD(JS(e/p)*p,t,p).filter((function(t){return XS(t%f)>zS})).map(u)).concat(LD(JS(o/d)*d,r,d).filter((function(t){return XS(t%g)>zS})).map(l))}return v.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},v.outline=function(){return{type:"Polygon",coordinates:[h(n).concat(c(a).slice(1),h(i).reverse().slice(1),c(s).reverse().slice(1))]}},v.extent=function(t){return arguments.length?v.extentMajor(t).extentMinor(t):v.extentMinor()},v.extentMajor=function(t){return arguments.length?(n=+t[0][0],i=+t[1][0],s=+t[0][1],a=+t[1][1],n>i&&(t=n,n=i,i=t),s>a&&(t=s,s=a,a=t),v.precision(y)):[[n,s],[i,a]]},v.extentMinor=function(i){return arguments.length?(e=+i[0][0],t=+i[1][0],o=+i[0][1],r=+i[1][1],e>t&&(i=e,e=t,t=i),o>r&&(i=o,o=r,r=i),v.precision(y)):[[e,o],[t,r]]},v.step=function(t){return arguments.length?v.stepMajor(t).stepMinor(t):v.stepMinor()},v.stepMajor=function(t){return arguments.length?(f=+t[0],g=+t[1],v):[f,g]},v.stepMinor=function(t){return arguments.length?(p=+t[0],d=+t[1],v):[p,d]},v.precision=function(p){return arguments.length?(y=+p,u=SE(o,r,90),l=OE(e,t,y),h=SE(s,a,90),c=OE(n,i,y),v):y},v.extentMajor([[-180,-90+zS],[180,90-zS]]).extentMinor([[-180,-80-zS],[180,80+zS]])}();if(i){i.stepMinor([this.longitudeStep,this.latitudeStep]),i.stepMajor([360,360]);var n=this.chart;this.fitExtent?i.extent([[n.east,n.north],[n.west,n.south]]):i.extent([[this.east,this.north],[this.west,this.south]]),this.singleSprite?this.mapLines.create().multiLine=i().coordinates:ow(i.lines(),(function(t){e.mapLines.create().multiLine=[t.coordinates]}))}},e.prototype.createLine=function(){return new kE},Object.defineProperty(e.prototype,"latitudeStep",{get:function(){return this.getPropertyValue("latitudeStep")},set:function(t){this.setPropertyValue("latitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitudeStep",{get:function(){return this.getPropertyValue("longitudeStep")},set:function(t){this.setPropertyValue("longitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitExtent",{get:function(){return this.getPropertyValue("fitExtent")},set:function(t){this.setPropertyValue("fitExtent",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"singleSprite",{get:function(){return this.getPropertyValue("singleSprite")},set:function(t){this.setPropertyValue("singleSprite",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e}(PE);ex.registeredClasses.GraticuleSeries=EE,ex.registeredClasses.GraticuleSeriesDataItem=TE,s_((function(){var t=DE.call(this)||this;return t.className="MapChartDataItem",t.applyTheme(),t}),DE=LS);var IE=function(t){function e(){var e=t.call(this)||this;e.scaleRatio=1,e.zoomDuration=1e3,e.zoomEasing=yC,e.minZoomLevel=1,e.maxZoomLevel=32,e._prevZoomGeoPoint={latitude:0,longitude:0},e.className="MapChart",e.projection=new yE,e.setPropertyValue("deltaLatitude",0),e.setPropertyValue("deltaLongitude",0),e.setPropertyValue("deltaGamma",0),e.maxPanOut=.7,e.homeZoomLevel=1,e.zoomStep=2,e.layout="absolute",e.centerMapOnZoomOut=!0,e.padding(0,0,0,0),e.backgroundSeries,e.minWidth=10,e.minHeight=10,e.events.once("inited",e.handleAllInited,e,!1);var i=e.seriesContainer;i.visible=!1,i.inert=!0,i.resizable=!0,i.events.on("transformed",e.handleMapTransform,e,!1),i.events.on("doublehit",e.handleDoubleHit,e,!1),i.events.on("dragged",e.handleDrag,e,!1),i.zIndex=0,i.dragWhileResize=!0,e.events.on("maxsizechanged",(function(t){0!=t.previousWidth&&0!=t.previousHeight||(e.updateExtremes(),e.updateCenterGeoPoint())}),void 0,!1);var n=e.chartContainer;n.parent=e,n.zIndex=-1,e._disposers.push(e.events.on("maxsizechanged",(function(){if(e.inited){e._mapAnimation&&e._mapAnimation.stop();var t=!0;e.series.each((function(e){e.updateTooltipBounds(),e.inited&&!e.dataInvalid||(t=!1)})),t&&e.updateScaleRatio(),e.zoomToGeoPoint(e._zoomGeoPointReal,e.zoomLevel,!0,0)}}),void 0,!1));var r=n.background;r.fillOpacity=0,r.events.on("down",(function(t){e.seriesContainer.dragStart(t.target.interactions.downPointers.getIndex(0))}),e),r.events.on("up",(function(t){e.seriesContainer.dragStop()}),e),r.events.on("doublehit",e.handleDoubleHit,e),r.focusable=!0,n.events.on("down",e.handleMapDown,e,!1),e.background.fillOpacity=0,e._disposers.push(aP().body.events.on("keyup",(function(t){if(e.topParent.hasFocused&&(!e._zoomControl||!e._zoomControl.thumb.isFocused))switch(iP.getEventKey(t.event)){case"up":e.pan({x:0,y:.1});break;case"down":e.pan({x:0,y:-.1});break;case"left":e.pan({x:.1,y:0});break;case"right":e.pan({x:-.1,y:0})}}),e)),e.mouseWheelBehavior="zoom";var o=aP();e._disposers.push(o.body.events.on("down",e.handlePanDown,e)),e._disposers.push(o.body.events.on("up",e.handlePanUp,e));var a=e.seriesContainer.createChild(ak);return a.radius=10,a.inert=!0,a.isMeasured=!1,a.events.on("transformed",e.handlePanMove,e,!1),a.interactionsEnabled=!1,a.opacity=0,a.x=0,a.y=0,e.panSprite=a,e.panBehavior="move",e.applyTheme(),e}return s_(e,t),e.prototype.handlePanDown=function(t){var e=iC(t.pointer.point,this.htmlContainer);e.x>0&&e.y>0&&e.x<this.svgContainer.width&&e.y<this.svgContainer.height&&(this._downPointOrig=nC(t.pointer.point,this.seriesContainer),this.panSprite.moveTo(this._downPointOrig),this.panSprite.dragStart(t.pointer),this._downDeltaLongitude=this.deltaLongitude,this._downDeltaLatitude=this.deltaLatitude)},e.prototype.handlePanUp=function(t){this._downPointOrig&&this.panSprite.dragStop(t.pointer,!0),this._downPointOrig=void 0},e.prototype.handlePanMove=function(){if(!this.seriesContainer.isResized){if(aP().areTransformed([this.panSprite.interactions,this.seriesContainer.interactions]))return;var t=this.projection.d3Projection,e=this.panBehavior;if("move"!=e&&"none"!=e&&this._downPointOrig&&t.rotate){var i=t.rotate(),n=i[0],r=i[1],o=i[2];t.rotate([0,0,0]);var a=this.projection.invert(this._downPointOrig),s={x:this.panSprite.pixelX,y:this.panSprite.pixelY},u=void 0;s&&(u=this.projection.invert(s)),t.rotate([n,r,o]),u&&("rotateLat"!=e&&"rotateLongLat"!=e||(this.deltaLatitude=this._downDeltaLatitude+u.latitude-a.latitude),"rotateLong"!=e&&"rotateLongLat"!=e||(this.deltaLongitude=this._downDeltaLongitude+u.longitude-a.longitude))}}},e.prototype.handleAllInited=function(){var t=this,e=!0;if(this.seriesContainer.visible=!0,this.series.each((function(t){t.inited&&!t.dataInvalid||(e=!1)})),e)this.updateCenterGeoPoint(),this.updateScaleRatio(),this.goHome(0);else{var i=ex.events.once("exitframe",(function(){t.removeDispose(i),t.handleAllInited()}),this,!1);this.addDisposer(i)}},e.prototype.updateZoomGeoPoint=function(){var t=$x({x:this.innerWidth/2+this.pixelPaddingLeft,y:this.innerHeight/2+this.pixelPaddingTop},this.series.getIndex(0)),e=this.projection.invert(t);this._zoomGeoPointReal=e},e.prototype.updateCenterGeoPoint=function(){var t,e,i,n;if(this.backgroundSeries){var r=this.backgroundSeries.getFeatures();if(r.length>0){var o=this.projection.d3Path.bounds(r[0].geometry);t=o[0][0],i=o[0][1],e=o[1][0],n=o[1][1]}}else this.series.each((function(r){var o=r.group.node.getBBox();(t>o.x||!S_(t))&&(t=o.x),(e<o.x+o.width||!S_(e))&&(e=o.x+o.width),(i>o.y||!S_(i))&&(i=o.y),(n<o.y+o.height||!S_(n))&&(n=o.y+o.height)}));this.seriesMaxLeft=t,this.seriesMaxRight=e,this.seriesMaxTop=i,this.seriesMaxBottom=n,this.seriesWidth=e-t,this.seriesHeight=n-i,this.seriesWidth>0&&this.seriesHeight>0?(this.chartContainer.visible=!0,this._centerGeoPoint=this.projection.invert({x:t+(e-t)/2,y:i+(n-i)/2}),this._zoomGeoPointReal&&S_(this._zoomGeoPointReal.latitude)||(this._zoomGeoPointReal=this._centerGeoPoint)):this.chartContainer.visible=!1},e.prototype.handleDrag=function(){var t=this.zoomLevel*this.scaleRatio,e=this.seriesWidth*t,i=this.seriesHeight*t,n=this.seriesContainer,r=this.seriesMaxLeft*t,o=this.seriesMaxRight*t,a=this.seriesMaxTop*t,s=this.seriesMaxBottom*t,u=n.pixelX,l=n.pixelY,h=this.maxPanOut,c=Math.min(this.maxWidth*(1-h)-e-r,-r);u<c&&(u=c);var p=Math.max(this.maxWidth*h-r,this.maxWidth-o);u>p&&(u=p);var d=Math.min(this.maxHeight*(1-h)-i-a,-a);l<d&&(l=d);var f=Math.max(this.maxHeight*h-a,this.maxHeight-s);l>f&&(l=f),n.moveTo({x:u,y:l},void 0,void 0,!0),this._zoomGeoPointReal=this.zoomGeoPoint},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w_(this.readerTitle)||(this.readerTitle=this.language.translate("Map")),w_(this.background.readerTitle)||(this.background.readerTitle=this.language.translate("Use plus and minus keys on your keyboard to zoom in and out"))},e.prototype.handleMapDown=function(){this._mapAnimation&&this._mapAnimation.stop()},e.prototype.handleDoubleHit=function(t){var e=iC(t.point,this.htmlContainer,this.svgContainer.cssScale),i=this.svgPointToGeo(e);this.zoomIn(i)},e.prototype.handleWheel=function(t){var e=this.seriesContainer.interactions.inertias.getKey("move");e&&e.done();var i=iC(t.point,this.htmlContainer,this.svgContainer.cssScale),n=this.svgPointToGeo(i);t.shift.y<0?this.zoomIn(n,void 0,this.interactions.mouseOptions.sensitivity):this.zoomOut(n,void 0,this.interactions.mouseOptions.sensitivity)},Object.defineProperty(e.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer=this.chartContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):(this._mouseWheelDisposer&&this._mouseWheelDisposer.dispose(),this.chartContainer.wheelable=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"panBehavior",{get:function(){return this.getPropertyValue("panBehavior")},set:function(t){if(this.setPropertyValue("panBehavior",t)){var e=this.seriesContainer;switch(this.panSprite.draggable=!1,e.draggable=!1,t){case"move":e.draggable=!0;break;default:this.panSprite.draggable=!0}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerMapOnZoomOut",{get:function(){return this.getPropertyValue("centerMapOnZoomOut")},set:function(t){this.setPropertyValue("centerMapOnZoomOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"projection",{get:function(){return this.getPropertyValue("projection")},set:function(t){var e=this;this.setPropertyValue("projection",t)&&(this.invalidateProjection(),t.chart=this,this._backgroundSeries&&this._backgroundSeries.invalidate(),this.inited&&this.updateExtremes(),this.series.each((function(t){t.events.once("validated",(function(){e.updateCenterGeoPoint(),e.updateScaleRatio(),e.goHome(0)}))})))},enumerable:!0,configurable:!0}),e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,e,i,n;this.series.each((function(r){r.ignoreBounds||r instanceof EE&&r.fitExtent||((r.north>e||!S_(e))&&(e=r.north),(r.south<n||!S_(n))&&(n=r.south),(r.west<i||!S_(i))&&(i=r.west),(r.east>t||!S_(t))&&(t=r.east))}));var r=[],o=!1;this.series.each((function(t){t instanceof EE&&!t.fitExtent&&(r=t.getFeatures(),o=!0)})),o||this.series.each((function(t){t.ignoreBounds||t instanceof EE&&t.fitExtent||(r=r.concat(t.getFeatures()))}));var a=N_(50,this.innerWidth),s=N_(50,this.innerHeight),u=this.projection.d3Projection;if(r.length>0&&u&&(this.east!=t||this.west!=i||this.north!=e||this.south!=n)){if(this.east=t,this.west=i,this.north=e,this.south=n,u.rotate){var l=u.rotate(),h=l[0],c=l[1],p=l[2];this.deltaLongitude=h,this.deltaLatitude=c,this.deltaGamma=p}var d={type:"FeatureCollection",features:r},f=u.scale();if(u.fitSize([a,s],d),u.scale()!=f&&this.invalidateDataUsers(),this.series.each((function(t){t instanceof EE&&t.invalidateData()})),this._backgroundSeries){var g=this._backgroundSeries.mapPolygons.getIndex(0);g&&(g.multiPolygon=function(t,e,i,n){var r=[];-180==n&&(n=-179.9999),-90==i&&(i=-89.9999),90==t&&(t=89.9999),180==e&&(e=179.9999);for(var o=Math.min(90,(e-n)/Math.ceil((e-n)/90)),a=(t-i)/Math.ceil((t-i)/90),s=n;s<e;s+=o){var u=[];r.push([u]),s+o>e&&(o=e-s);for(var l=s;l<=s+o;l+=5)u.push([l,t]);for(var h=t;h>=i;h-=a)u.push([s+o,h]);for(l=s+o;l>=s;l-=5)u.push([l,i]);for(h=i;h<=t;h+=a)u.push([s,h])}return r}(this.north,this.east,this.south,this.west))}this._fitWidth=a,this._fitHeight=s}this._zoomGeoPointReal&&S_(this._zoomGeoPointReal.latitude)||this.goHome(0)},e.prototype.updateScaleRatio=function(){var t;this.updateCenterGeoPoint();var e=this.innerWidth/this.seriesWidth,i=this.innerHeight/this.seriesHeight;(g_(t=B_(e,i))||t==1/0)&&(t=1),t!=this.scaleRatio&&(this.scaleRatio=t,Ww(this.series.iterator(),(function(e){e.scale=t,e.updateTooltipBounds()})),this.backgroundSeries.scale=t,this.dispatch("scaleratiochanged"))},e.prototype.svgPointToGeo=function(t){var e=this.series.getIndex(0);if(e){var i=$x(t,e);return this.seriesPointToGeo(i)}},e.prototype.geoPointToSVG=function(t){var e=this.series.getIndex(0);if(e)return Jx(this.geoPointToSeries(t),e)},e.prototype.seriesPointToGeo=function(t){return this.projection.invert(t)},e.prototype.geoPointToSeries=function(t){return this.projection.convert(t)},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){t!=this._geodata&&(this._geodata=t,this.invalidateData(),this.dataUsers.each((function(t){for(var e=t.data.length-1;e>=0;e--)1==t.data[e].madeFromGeoData&&t.data.splice(e,1);t.disposeData(),t.invalidateData()})))},enumerable:!0,configurable:!0}),e.prototype.zoomToGeoPoint=function(t,e,i,n,r){var o=this;if(t||(t=this.zoomGeoPoint),t&&S_(t.longitude)&&S_(t.latitude)){this._zoomGeoPointReal=t,e=L_(e,this.minZoomLevel,this.maxZoomLevel);var a=this.projection.convert(t);if(a){var s=$x(this.geoPointToSVG(t),this);i&&(s={x:this.innerWidth/2,y:this.innerHeight/2}),S_(n)||(n=this.zoomDuration);var u=s.x-a.x*e*this.scaleRatio,l=s.y-a.y*e*this.scaleRatio;return!r&&e<this.zoomLevel&&this.centerMapOnZoomOut&&e<1.5&&(u=this.innerWidth/2-(this.seriesMaxLeft+(this.seriesMaxRight-this.seriesMaxLeft)/2)*e*this.scaleRatio,l=this.innerHeight/2-(this.seriesMaxTop+(this.seriesMaxBottom-this.seriesMaxTop)/2)*e*this.scaleRatio),this._mapAnimation=this.seriesContainer.animate([{property:"scale",to:e},{property:"x",from:this.seriesContainer.pixelX,to:u},{property:"y",from:this.seriesContainer.pixelY,to:l}],n,this.zoomEasing),this._disposers.push(this._mapAnimation.events.on("animationended",(function(){o._zoomGeoPointReal=o.zoomGeoPoint}))),this.seriesContainer.validatePosition(),this._mapAnimation}}},e.prototype.zoomToMapObject=function(t,e,i,n){null==i&&(i=!0);var r=this.seriesContainer.interactions.inertias.getKey("move");if(r&&r.done(),t instanceof aD)return g_(e)&&(e=5),this.zoomToGeoPoint({latitude:t.latitude,longitude:t.longitude},e,i,n,!0);var o=t.dataItem;if(o&&S_(o.zoomLevel)&&(e=o.zoomLevel),t instanceof xD){var a=t.dataItem,s=t.polygon.bbox;0!=s.width&&0!=s.height||(s=t.polygon.group.getBBox()),S_(e)||(e=Math.min(this.seriesWidth/s.width,this.seriesHeight/s.height));var u=void 0;if(a&&w_(a.zoomGeoPoint))u=a.zoomGeoPoint;else{var l=tC({x:s.x+s.width/2,y:s.y+s.height/2},t.polygon,t.series);u=this.seriesPointToGeo(l)}return this.zoomToGeoPoint(u,e,!0,n,!0)}},e.prototype.zoomToRectangle=function(t,e,i,n,r,o,a){g_(r)&&(r=1);var s=r*Math.min((this.south-this.north)/(i-t),(this.west-this.east)/(n-e));return this.zoomToGeoPoint({latitude:t+(i-t)/2,longitude:n+(e-n)/2},s,o,a,!0)},e.prototype.zoomIn=function(t,e,i){void 0===i&&(i=1);var n=1+(this.zoomStep-1)*i;return n<1&&(n=1),this.zoomToGeoPoint(t,this.zoomLevel*n,!1,e)},e.prototype.zoomOut=function(t,e,i){void 0===i&&(i=1);var n=1+(this.zoomStep-1)*i;return n<1&&(n=1),this.zoomToGeoPoint(t,this.zoomLevel/n,!1,e)},e.prototype.pan=function(t,e){var i=this.geoPointToSVG(this.zoomGeoPoint);i.x+=this.pixelWidth*t.x,i.y+=this.pixelHeight*t.y,this.zoomToGeoPoint(this.svgPointToGeo(i),this.zoomLevel,!0,e,!0)},Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){var t=Jx({x:this.pixelWidth/2,y:this.pixelHeight/2},this);return this.svgPointToGeo(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.seriesContainer.scale},set:function(t){this.seriesContainer.scale=t},enumerable:!0,configurable:!0}),e.prototype.handleMapTransform=function(){this.zoomLevel!=this._prevZoomLevel&&(this.dispatch("zoomlevelchanged"),this._prevZoomLevel=this.zoomLevel,this.svgContainer.readerAlert(this.language.translate("Zoom level changed to %1",this.language.locale,v_(this.zoomLevel)))),!this.zoomGeoPoint||this._prevZoomGeoPoint.latitude==this.zoomGeoPoint.latitude&&this._prevZoomGeoPoint.longitude==this.zoomGeoPoint.longitude||this.dispatch("mappositionchanged")},Object.defineProperty(e.prototype,"smallMap",{get:function(){if(!this._smallMap){var t=new vE;this.smallMap=t}return this._smallMap},set:function(t){this._smallMap&&this.removeDispose(this._smallMap),this._smallMap=t,this._smallMap.chart=this,t.parent=this.chartContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomControl",{get:function(){return this._zoomControl},set:function(t){this._zoomControl&&this.removeDispose(this._zoomControl),this._zoomControl=t,t.chart=this,t.parent=this.chartContainer,t.plusButton.exportable=!1,t.minusButton.exportable=!1},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new rD},Object.defineProperty(e.prototype,"deltaLongitude",{get:function(){return this.getPropertyValue("deltaLongitude")},set:function(t){t=M_(t,3),this.setPropertyValue("deltaLongitude",mE(t))&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaLatitude",{get:function(){return this.getPropertyValue("deltaLatitude")},set:function(t){t=M_(t,3),this.setPropertyValue("deltaLatitude",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaGamma",{get:function(){return this.getPropertyValue("deltaGamma")},set:function(t){t=M_(t,3),this.setPropertyValue("deltaGamma",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),e.prototype.rotateMap=function(){this.projection.d3Projection&&this.projection.d3Projection.rotate&&(this.projection.d3Projection.rotate([this.deltaLongitude,this.deltaLatitude,this.deltaGamma]),this.invalidateProjection())},Object.defineProperty(e.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeGeoPoint",{get:function(){return this.getPropertyValue("homeGeoPoint")},set:function(t){this.setPropertyValue("homeGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeZoomLevel",{get:function(){return this.getPropertyValue("homeZoomLevel")},set:function(t){this.setPropertyValue("homeZoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomStep",{get:function(){return this.getPropertyValue("zoomStep")},set:function(t){this.setPropertyValue("zoomStep",t)},enumerable:!0,configurable:!0}),e.prototype.invalidateProjection=function(){this.east=void 0,this.invalidateDataUsers(),this.updateCenterGeoPoint()},Object.defineProperty(e.prototype,"geodataSource",{get:function(){return this._dataSources.geodata||this.getDataSource("geodata"),this._dataSources.geodata},set:function(t){var e=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",(function(){e.loadData("geodata")}),this,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(w_(e.geodata)&&k_(e.geodata)){var i=e.geodata;if(w_(window["am4geodata_"+e.geodata]))e.geodata=window["am4geodata_"+e.geodata];else try{e.geodata=JSON.parse(e.geodata)}catch(n){this.raiseCriticalError(Error("MapChart error: Geodata `"+i+"` is not loaded or is incorrect."),!0)}}w_(e.projection)&&k_(e.projection)&&(e.projection=this.createClassInstance(e.projection)),w_(e.smallMap)&&!w_(e.smallMap.type)&&(e.smallMap.type="SmallMap"),w_(e.zoomControl)&&!w_(e.zoomControl.type)&&(e.zoomControl.type="ZoomControl"),t.prototype.processConfig.call(this,e)},e.prototype.handleSeriesAdded=function(e){t.prototype.handleSeriesAdded.call(this,e);var i=e.newValue;i.scale=this.scaleRatio,i.events.on("validated",this.updateCenterGeoPoint,this,!1)},e.prototype.configOrder=function(e,i){return e==i?0:"smallMap"==e?1:"smallMap"==i?-1:"series"==e?1:"series"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.asIs=function(e){return"projection"==e||"geodata"==e||t.prototype.asIs.call(this,e)},Object.defineProperty(e.prototype,"centerGeoPoint",{get:function(){return this._centerGeoPoint},enumerable:!0,configurable:!0}),e.prototype.goHome=function(t){var e=this.homeGeoPoint;e||(e=this.centerGeoPoint),e&&this.zoomToGeoPoint(e,this.homeZoomLevel,!0,t,!0)},e.prototype.setPaper=function(e){return this.svgContainer&&(this.svgContainer.hideOverflow=!0),t.prototype.setPaper.call(this,e)},Object.defineProperty(e.prototype,"backgroundSeries",{get:function(){var t=this;if(!this._backgroundSeries){var e=new PD;e.parent=this.seriesContainer,e.chart=this,e.hiddenInLegend=!0,e.addDisposer(new mw((function(){t._backgroundSeries=void 0}))),this._disposers.push(e);var i=(new ZC).getFor("background"),n=e.mapPolygons.template.polygon;n.stroke=i,n.fill=i,n.fillOpacity=0,n.strokeOpacity=0,e.mapPolygons.create(),this._backgroundSeries=e}return this._backgroundSeries},enumerable:!0,configurable:!0}),e.prototype.setLegend=function(e){t.prototype.setLegend.call(this,e),e.parent=this},e.prototype.setTapToActivate=function(e){t.prototype.setTapToActivate.call(this,e),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e.prototype.handleTapToActivate=function(){t.prototype.handleTapToActivate.call(this),this.seriesContainer.interactions.isTouchProtected=!1,this.panSprite.interactions.isTouchProtected=!1},e.prototype.handleTapToActivateDeactivation=function(){t.prototype.handleTapToActivateDeactivation.call(this),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e.prototype.asFunction=function(e){return"zoomEasing"==e||t.prototype.asIs.call(this,e)},e}(VS);ex.registeredClasses.MapChart=IE;var AE=function(t){function e(){var e=t.call(this)||this;return e.className="MapSpline",e.applyTheme(),e}return s_(e,t),e.prototype.createLine=function(){this.line=new wk,this.line.tensionX=.8,this.line.tensionY=.8},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(xE);ex.registeredClasses.MapSpline=AE;var FE=function(t){function e(){var e=t.call(this)||this;return e.className="MapArc",e.applyTheme(),e}return s_(e,t),e.prototype.createLine=function(){this.line=new mk},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(xE);ex.registeredClasses.MapArc=FE;var ME=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeriesDataItem",e.applyTheme(),e}return s_(e,t),e}(CE),jE=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeries",e.applyTheme(),e}return s_(e,t),e.prototype.createDataItem=function(){return new ME},e.prototype.createLine=function(){return new AE},e}(PE);ex.registeredClasses.MapSplineSeries=jE,ex.registeredClasses.MapSplineSeriesDataItem=ME;var LE=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeriesDataItem",e.applyTheme(),e}return s_(e,t),e}(CE),VE=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeries",e.applyTheme(),e}return s_(e,t),e.prototype.createDataItem=function(){return new LE},e.prototype.createLine=function(){return new FE},e}(PE);ex.registeredClasses.MapArcSeries=VE,ex.registeredClasses.MapArcSeriesDataItem=LE;var RE=function(t){function e(){var e=t.call(this)||this;e._chart=new _w,e.className="ZoomControl",e.align="right",e.valign="bottom",e.layout="vertical",e.padding(5,5,5,5);var i=new ZC,n=e.createChild(ok);n.shouldClone=!1,n.label.text="+",e.plusButton=n;var r=e.createChild(WP);r.shouldClone=!1,r.background.fill=i.getFor("alternativeBackground"),r.background.fillOpacity=.05,r.background.events.on("hit",e.handleBackgroundClick,e,!1),r.events.on("sizechanged",e.updateThumbSize,e,!1),e.slider=r;var o=r.createChild(ok);o.shouldClone=!1,o.padding(0,0,0,0),o.draggable=!0,o.events.on("drag",e.handleThumbDrag,e,!1),e.thumb=o;var a=e.createChild(ok);return a.shouldClone=!1,a.label.text="-",e.minusButton=a,e.thumb.role="slider",e.thumb.readerLive="polite",e.thumb.readerTitle=e.language.translate("Use arrow keys to zoom in and out"),e.minusButton.readerTitle=e.language.translate("Press ENTER to zoom in"),e.plusButton.readerTitle=e.language.translate("Press ENTER to zoom out"),e.applyTheme(),e.events.on("propertychanged",(function(t){"layout"==t.property&&e.fixLayout()}),void 0,!1),e._disposers.push(e._chart),e.fixLayout(),e}return s_(e,t),e.prototype.fixLayout=function(){var t=this.plusButton,e=this.minusButton,i=this.thumb,n=this.slider;t.x=void 0,t.y=void 0,e.x=void 0,e.y=void 0,i.x=void 0,i.y=void 0,n.x=void 0,n.y=void 0,t.padding(6,10,6,10),e.padding(6,10,6,10),e.label.align="center",e.label.valign="middle",t.label.align="center",t.label.valign="middle","vertical"==this.layout?(this.width=40,this.height=void 0,e.width=f_(100),e.height=void 0,i.width=f_(100),i.height=void 0,t.width=f_(100),t.height=void 0,n.width=f_(100),e.marginTop=1,t.marginBottom=2,n.height=0,e.toFront(),t.toBack(),i.minX=0,i.maxX=0,i.minY=0):"horizontal"==this.layout&&(this.height=40,this.width=void 0,e.height=f_(100),e.width=void 0,t.height=f_(100),t.width=void 0,i.height=f_(100),i.width=void 0,i.minX=0,i.minY=0,i.maxY=0,n.height=f_(100),n.width=0,e.toBack(),t.toFront())},e.prototype.handleBackgroundClick=function(t){var e=t.target,i=t.spritePoint.y,n=this.chart,r=Math.log(n.maxZoomLevel)/Math.LN2,o=Math.log(n.minZoomLevel)/Math.LN2,a=(e.pixelHeight-i)/e.pixelHeight*(o+(r-o)),s=Math.pow(2,a);n.zoomToGeoPoint(n.zoomGeoPoint,s)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){var e=this;this._chart.set(t,new bw([t.events.on("maxsizechanged",this.updateThumbSize,this,!1),t.events.on("zoomlevelchanged",this.updateThumb,this,!1),this.minusButton.events.on("hit",(function(){t.zoomOut(t.zoomGeoPoint)}),t,!1),aP().body.events.on("keyup",(function(i){e.topParent.hasFocused&&(iP.isKey(i.event,"enter")?e.minusButton.isFocused?t.zoomOut():e.plusButton.isFocused&&t.zoomIn():iP.isKey(i.event,"plus")?t.zoomIn():iP.isKey(i.event,"minus")&&t.zoomOut())}),t),this.plusButton.events.on("hit",(function(){t.zoomIn(t.zoomGeoPoint)}),t,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateThumbSize=function(){if(this.chart){var t=this.slider,e=this.thumb;"vertical"==this.layout?(e.minHeight=Math.min(this.slider.pixelHeight,20),e.height=t.pixelHeight/this.stepCount,e.maxY=t.pixelHeight-e.pixelHeight,e.pixelHeight<=1?e.visible=!1:e.visible=!0):(e.minWidth=Math.min(this.slider.pixelWidth,20),e.width=t.pixelWidth/this.stepCount,e.maxX=t.pixelWidth-e.pixelWidth,e.pixelWidth<=1?e.visible=!1:e.visible=!0)}},e.prototype.updateThumb=function(){var t=this.slider,e=this.chart,i=this.thumb;if(!i.isDown){var n=(Math.log(e.zoomLevel)-Math.log(this.chart.minZoomLevel))/Math.LN2;"vertical"==this.layout?i.y=t.pixelHeight-(t.pixelHeight-i.pixelHeight)*n/this.stepCount-i.pixelHeight:i.x=t.pixelWidth*n/this.stepCount}},e.prototype.handleThumbDrag=function(){var t,e=this.slider,i=this.chart,n=this.thumb;t=Math.log(this.chart.minZoomLevel)/Math.LN2+(t="vertical"==this.layout?this.stepCount*(e.pixelHeight-n.pixelY-n.pixelHeight)/(e.pixelHeight-n.pixelHeight):this.stepCount*n.pixelX/e.pixelWidth);var r=Math.pow(2,t);i.zoomToGeoPoint(void 0,r,!1,0)},Object.defineProperty(e.prototype,"stepCount",{get:function(){return Math.log(this.chart.maxZoomLevel)/Math.LN2-Math.log(this.chart.minZoomLevel)/Math.LN2},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new rk},e}(WP);function NE(t,e){return[t,eO(oO((WS+e)/2))]}ex.registeredClasses.ZoomControl=RE,NE.invert=function(t,e){return[t,2*ZS(tO(e))-WS]};var BE=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=function(t){var e,i,n,r=uT(t),o=r.center,a=r.scale,s=r.translate,u=r.clipExtent,l=null;function h(){var o=US*a(),s=r(function(t){function e(e){return(e=t(e[0]*qS,e[1]*qS))[0]*=YS,e[1]*=YS,e}return t=cD(t[0]*qS,t[1]*qS,t.length>2?t[2]*qS:0),e.invert=function(e){return(e=t.invert(e[0]*qS,e[1]*qS))[0]*=YS,e[1]*=YS,e},e}(r.rotate()).invert([0,0]));return u(null==l?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:t===NE?[[Math.max(s[0]-o,l),e],[Math.min(s[0]+o,i),n]]:[[l,Math.max(s[1]-o,e)],[i,Math.min(s[1]+o,n)]])}return r.scale=function(t){return arguments.length?(a(t),h()):a()},r.translate=function(t){return arguments.length?(s(t),h()):s()},r.center=function(t){return arguments.length?(o(t),h()):o()},r.clipExtent=function(t){return arguments.length?(null==t?l=e=i=n=null:(l=+t[0][0],e=+t[0][1],i=+t[1][0],n=+t[1][1]),h()):null==l?null:[[l,e],[i,n]]},h()}(NE).scale(961/KS),e}return s_(e,t),e}(yE);ex.registeredClasses.Mercator=BE;var HE=Math.abs,zE=Math.atan,UE=(Math.atan2,Math.ceil,Math.cos),WE=Math.exp,GE=(Math.floor,Math.log),KE=(Math.max,Math.min,Math.pow,Math.round,Math.sign,Math.sin),YE=Math.tan,qE=Math.PI,XE=qE/2,ZE=qE/4;function QE(t){return t>1?XE:t<-1?-XE:Math.asin(t)}function $E(t){return t>0?Math.sqrt(t):0}function JE(t,e){return[t,1.25*GE(YE(ZE+.4*e))]}Math.SQRT1_2,$E(2),$E(qE),JE.invert=function(t,e){return[t,2.5*zE(WE(.8*e))-.625*qE]};var tI=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=uT(JE).scale(108.318),e}return s_(e,t),e}(yE);function eI(t,e){for(var i=(1+XE)*KE(e),n=0,r=1/0;n<10&&HE(r)>1e-6;n++)e-=r=(e+KE(e)-i)/(1+UE(e));return i=$E(2+qE),[t*(1+UE(e))/i,2*e/i]}ex.registeredClasses.Miller=tI,eI.invert=function(t,e){var i=1+XE,n=$E(i/2);return[2*t*n/(1+UE(e*=n)),QE((e+KE(e))/i)]};var iI=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=uT(eI).scale(173.044),e}return s_(e,t),e}(yE);function nI(t){return function(e,i){var n=rO(e*e+i*i),r=t(n),o=iO(r),a=$S(r);return[QS(e*o,n*a),aO(n&&i*o/n)]}}function rI(t,e){return[$S(e)*iO(t),iO(e)]}ex.registeredClasses.Eckert6=iI,rI.invert=nI(aO);var oI=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=uT(rI).scale(249.5).clipAngle(90+zS),e}return s_(e,t),e}(yE);function aI(t,e){var i=$S(e),n=1+$S(t)*i;return[i*iO(t)/n,iO(e)/n]}ex.registeredClasses.Orthographic=oI,aI.invert=nI((function(t){return 2*ZS(t)}));var sI=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=uT(aI).scale(250).clipAngle(142),e}return s_(e,t),e}(yE);function uI(t,e){var i=iO(t),n=(i+iO(e))/2;if(XS(n)<zS)return function(t){var e=$S(t);function i(t,i){return[t*e,iO(i)/e]}return i.invert=function(t,i){return[t/e,aO(i*e)]},i}(t);var r=1+i*(2*n-i),o=rO(r)/n;function a(t,e){var i=rO(r-2*n*iO(e))/n;return[i*iO(t*=n),o-i*$S(t)]}return a.invert=function(t,e){var i=o-e,a=QS(t,XS(i))*nO(i);return i*n<0&&(a-=US*nO(t)*nO(i)),[a/n,aO((r-(t*t+i*i)*n*n)/(2*n))]},a}ex.registeredClasses.Stereographic=sI;var lI=function(){return(t=uI,e=0,i=US/3,n=lT(t),r=n(e,i),r.parallels=function(t){return arguments.length?n(e=t[0]*qS,i=t[1]*qS):[e*YS,i*YS]},r).scale(155.424).center([0,33.6442]);var t,e,i,n,r},hI=function(){return lI().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},cI=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=hI(),e}return s_(e,t),e}(yE);ex.registeredClasses.Albers=cI;var pI=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=function(){var t,e,i,n,r,o,a=hI(),s=lI().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=lI().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,e){o=[t,e]}};function h(t){var e=t[0],a=t[1];return o=null,i.point(e,a),o||(n.point(e,a),o)||(r.point(e,a),o)}function c(){return t=e=null,h}return h.invert=function(t){var e=a.scale(),i=a.translate(),n=(t[0]-i[0])/e,r=(t[1]-i[1])/e;return(r>=.12&&r<.234&&n>=-.425&&n<-.214?s:r>=.166&&r<.234&&n>=-.214&&n<-.115?u:a).invert(t)},h.stream=function(i){return t&&e===i?t:(n=[a.stream(e=i),s.stream(i),u.stream(i)],r=n.length,t={point:function(t,e){for(var i=-1;++i<r;)n[i].point(t,e)},sphere:function(){for(var t=-1;++t<r;)n[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)n[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)n[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)n[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)n[t].polygonEnd()}});var n,r},h.precision=function(t){return arguments.length?(a.precision(t),s.precision(t),u.precision(t),c()):a.precision()},h.scale=function(t){return arguments.length?(a.scale(t),s.scale(.35*t),u.scale(t),h.translate(a.translate())):a.scale()},h.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],h=+t[1];return i=a.translate(t).clipExtent([[o-.455*e,h-.238*e],[o+.455*e,h+.238*e]]).stream(l),n=s.translate([o-.307*e,h+.201*e]).clipExtent([[o-.425*e+zS,h+.12*e+zS],[o-.214*e-zS,h+.234*e-zS]]).stream(l),r=u.translate([o-.205*e,h+.212*e]).clipExtent([[o-.214*e+zS,h+.166*e+zS],[o-.115*e-zS,h+.234*e-zS]]).stream(l),c()},h.fitExtent=function(t,e){return JD(h,t,e)},h.fitSize=function(t,e){return tT(h,t,e)},h.fitWidth=function(t,e){return eT(h,t,e)},h.fitHeight=function(t,e){return iT(h,t,e)},h.scale(1070)}(),e}return s_(e,t),e}(yE);function dI(t,e){var i=e*e,n=i*i;return[t*(.8707-.131979*i+n*(n*(.003971*i-.001529*n)-.013791)),e*(1.007226+i*(.015085+n*(.028874*i-.044475-.005916*n)))]}ex.registeredClasses.AlbersUsa=pI,dI.invert=function(t,e){var i,n=e,r=25;do{var o=n*n,a=o*o;n-=i=(n*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(XS(i)>zS&&--r>0);return[t/(.8707+(o=n*n)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),n]};var fI=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=uT(dI).scale(175.295),e}return s_(e,t),e}(yE);ex.registeredClasses.NaturalEarth1=fI;var gI,yI=(gI=function(t){return rO(2/(1+t))},function(t,e){var i=$S(t),n=$S(e),r=gI(i*n);return[r*n*iO(t),r*iO(e)]});yI.invert=nI((function(t){return 2*aO(t/2)}));var vI=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=uT(yI).scale(124.75).clipAngle(179.999),e}return s_(e,t),e}(yE);ex.registeredClasses.AzimuthalEqualArea=vI;var mI=1.340264,bI=-.081106,_I=893e-6,wI=.003796,xI=rO(3)/2;function CI(t,e){var i=aO(xI*iO(e)),n=i*i,r=n*n*n;return[t*$S(i)/(xI*(mI+3*bI*n+r*(7*_I+9*wI*n))),i*(mI+bI*n+r*(_I+wI*n))]}CI.invert=function(t,e){for(var i,n=e,r=n*n,o=r*r*r,a=0;a<12&&(o=(r=(n-=i=(n*(mI+bI*r+o*(_I+wI*r))-e)/(mI+3*bI*r+o*(7*_I+9*wI*r)))*n)*r*r,!(XS(i)<1e-12));++a);return[xI*t*(mI+3*bI*r+o*(7*_I+9*wI*r))/$S(n),aO(iO(n)/xI)]};var PI=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=uT(CI).scale(177.158),e}return s_(e,t),e}(yE);ex.registeredClasses.EqualEarth=PI;var kI={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[136.2013,-13.86],[136.1725,-13.7692],[136.1051,-13.8153],[136.114,-13.732],[136.2018,-13.6646],[136.2446,-13.6721],[136.2889,-13.7303],[136.2419,-13.8466],[136.2013,-13.86]]],[[[130.4936,-11.8386],[130.3277,-11.7759],[130.0963,-11.8336],[130.0405,-11.8229],[130.0175,-11.7725],[130.0726,-11.6737],[130.1566,-11.7029],[130.1936,-11.6672],[130.1908,-11.5281],[130.1739,-11.485],[130.2557,-11.3441],[130.344,-11.3255],[130.491,-11.6886],[130.5617,-11.7067],[130.6366,-11.7729],[130.6138,-11.8225],[130.4936,-11.8386]]],[[[136.5034,-11.4564],[136.5072,-11.4099],[136.6431,-11.2164],[136.7287,-11.0452],[136.7739,-11.0212],[136.7249,-11.207],[136.5622,-11.4325],[136.5034,-11.4564]]],[[[136.5247,-15.6461],[136.4988,-15.6333],[136.5195,-15.5497],[136.6055,-15.5249],[136.5877,-15.6347],[136.5247,-15.6461]]],[[[130.9589,-11.9389],[130.8613,-11.8588],[130.678,-11.7847],[130.4934,-11.642],[130.4186,-11.4486],[130.3647,-11.253],[130.3927,-11.1634],[130.5319,-11.2833],[130.5733,-11.3495],[130.705,-11.3903],[130.8451,-11.3578],[130.8996,-11.3078],[131.0042,-11.3522],[131.1215,-11.2635],[131.2051,-11.2421],[131.2715,-11.1903],[131.4184,-11.2483],[131.5286,-11.3919],[131.5371,-11.4669],[131.2819,-11.7308],[131.2495,-11.7354],[131.1264,-11.8133],[130.9589,-11.9389]]],[[[132.5961,-11.3447],[132.5667,-11.3136],[132.5316,-11.2181],[132.5022,-11.0514],[132.5789,-11.0225],[132.6264,-11.1778],[132.6246,-11.2763],[132.5961,-11.3447]]],[[[136.9088,-14.1793],[136.9673,-14.1517],[136.9416,-14.2778],[136.8892,-14.2978],[136.7507,-14.2617],[136.6322,-14.2786],[136.378,-14.2164],[136.4131,-14.0445],[136.4054,-13.9705],[136.4572,-13.8389],[136.5921,-13.8136],[136.624,-13.7896],[136.5949,-13.7269],[136.6789,-13.6581],[136.7144,-13.7067],[136.6756,-13.7331],[136.7129,-13.8379],[136.808,-13.8542],[136.8305,-13.7861],[136.8813,-13.7528],[136.9184,-13.8096],[136.82,-13.9083],[136.7673,-13.9417],[136.7061,-14.0756],[136.708,-14.1678],[136.7366,-14.1917],[136.8704,-14.2117],[136.9088,-14.1793]]],[[[137.0545,-15.83],[136.9972,-15.7892],[136.9344,-15.6989],[136.953,-15.6475],[137.0102,-15.5931],[137.0556,-15.6475],[137.093,-15.7664],[137.0545,-15.83]]],[[[136.1828,-11.6908],[136.1826,-11.6444],[136.2737,-11.5722],[136.3488,-11.5686],[136.4812,-11.4672],[136.4721,-11.5172],[136.3733,-11.5925],[136.1828,-11.6908]]],[[[138.0003,-16.5547],[138.0005,-25.9995],[131.2333,-26],[129.9006,-25.9994],[129.0059,-26.0049],[129,-17.2664],[129,-15.3992],[129,-14.8711],[129.0894,-14.8994],[129.1855,-14.98],[129.1744,-15.1625],[129.2564,-15.1041],[129.2184,-14.8614],[129.2296,-14.8392],[129.3327,-14.8672],[129.462,-14.9306],[129.6686,-15.1547],[129.6634,-15.0955],[129.6265,-15.0217],[129.6139,-14.9469],[129.6473,-14.8378],[129.8015,-14.864],[129.8647,-14.843],[129.9444,-14.7678],[129.7658,-14.8227],[129.6754,-14.7661],[129.6036,-14.6744],[129.5866,-14.6281],[129.6599,-14.5722],[129.5401,-14.5503],[129.4549,-14.503],[129.3585,-14.4137],[129.3702,-14.3333],[129.4306,-14.2222],[129.4925,-14.1422],[129.7328,-13.9947],[129.7875,-13.7442],[129.7823,-13.6985],[129.8288,-13.5169],[129.8999,-13.445],[129.9095,-13.5079],[129.9441,-13.5273],[130.0412,-13.5099],[130.1641,-13.4292],[130.2644,-13.3253],[130.192,-13.204],[130.1158,-13.1476],[130.1246,-12.9703],[130.1822,-12.9079],[130.2257,-12.9467],[130.3276,-12.894],[130.353,-12.8388],[130.344,-12.7061],[130.3544,-12.6726],[130.509,-12.6044],[130.6041,-12.6767],[130.5755,-12.5709],[130.6023,-12.5068],[130.6285,-12.3851],[130.7704,-12.4296],[130.8966,-12.6075],[130.9541,-12.5364],[130.8158,-12.4447],[130.8472,-12.3731],[130.8858,-12.3542],[131.0269,-12.3583],[131.0264,-12.2407],[130.9985,-12.1868],[131.0243,-12.1496],[131.1141,-12.1537],[131.2133,-12.2175],[131.3441,-12.2236],[131.4364,-12.2892],[131.4926,-12.2972],[131.9315,-12.2681],[132.0627,-12.3091],[132.2236,-12.2],[132.3609,-12.2024],[132.4173,-12.3072],[132.4447,-12.3021],[132.4245,-12.1856],[132.4443,-12.1503],[132.6385,-12.0786],[132.6276,-12.0328],[132.635,-11.745],[132.6915,-11.6582],[132.5403,-11.5475],[132.4899,-11.477],[132.3727,-11.4378],[132.2295,-11.4613],[132.0868,-11.5247],[131.9902,-11.4297],[131.9706,-11.3644],[131.8652,-11.3092],[131.7643,-11.3067],[131.8741,-11.1772],[131.9843,-11.1274],[132.0902,-11.23],[132.1659,-11.4064],[132.205,-11.4098],[132.2355,-11.3553],[132.1924,-11.2222],[132.1467,-11.14],[132.1812,-11.1318],[132.2761,-11.1636],[132.3405,-11.1301],[132.5034,-11.2645],[132.5136,-11.3085],[132.672,-11.5082],[132.7264,-11.5195],[132.7725,-11.4839],[132.8747,-11.3334],[132.918,-11.337],[132.9965,-11.4197],[133.1462,-11.6878],[133.2514,-11.737],[133.3075,-11.6994],[133.3567,-11.7014],[133.4072,-11.7742],[133.5489,-11.8328],[133.6168,-11.8346],[133.7622,-11.7676],[133.7994,-11.7183],[133.9083,-11.7361],[133.9194,-11.7672],[133.8501,-11.8061],[133.8394,-11.8542],[133.9427,-11.9123],[134.0504,-11.8445],[134.1855,-11.9464],[134.1877,-12.0461],[134.2066,-12.0617],[134.37,-12.0378],[134.4211,-12.0588],[134.5161,-12.0667],[134.5986,-12.0564],[134.6727,-12.0012],[134.7714,-11.9958],[134.8707,-12.1317],[134.9972,-12.1964],[135.0839,-12.2666],[135.2261,-12.2755],[135.2669,-12.1719],[135.3283,-12.1117],[135.3797,-12.0903],[135.4378,-12.1153],[135.5861,-12.0983],[135.6627,-12.0372],[135.5724,-12.033],[135.5932,-11.9577],[135.6858,-11.9333],[135.7536,-11.935],[135.8805,-11.835],[135.8764,-11.7648],[135.9466,-11.8042],[135.9164,-11.8525],[135.746,-11.9945],[135.7883,-12.0436],[135.6735,-12.1595],[135.6887,-12.2375],[135.7355,-12.2809],[135.7863,-12.2587],[135.8012,-12.2183],[135.8836,-12.1518],[136.023,-12.112],[135.9381,-12.2172],[135.9718,-12.2677],[136.0459,-12.2341],[136.0635,-12.2641],[135.9832,-12.3779],[136.0397,-12.4716],[136.081,-12.4455],[136.1568,-12.4376],[136.2401,-12.455],[136.2937,-12.4143],[136.3639,-12.2397],[136.3374,-12.2057],[136.2429,-12.2172],[136.1778,-12.1669],[136.2817,-12.0655],[136.4511,-11.9542],[136.5622,-11.9344],[136.5392,-12.0097],[136.6019,-12.1831],[136.6732,-12.2845],[136.7185,-12.2834],[136.754,-12.2343],[136.694,-12.1915],[136.7754,-12.1717],[136.8764,-12.2227],[136.9784,-12.3582],[136.8039,-12.4775],[136.7452,-12.5442],[136.6436,-12.7041],[136.6208,-12.8253],[136.4944,-12.7792],[136.4843,-12.846],[136.5461,-12.958],[136.5453,-13.055],[136.5283,-13.15],[136.4488,-13.2205],[136.3677,-13.2472],[136.3718,-13.0692],[136.3255,-13.0613],[136.2861,-13.1664],[136.2002,-13.2391],[136.0972,-13.1847],[135.9933,-13.2247],[135.9272,-13.2778],[135.8915,-13.3385],[135.935,-13.3969],[135.9086,-13.4558],[135.8642,-13.4917],[135.8458,-13.6039],[135.889,-13.7287],[135.9826,-13.7358],[136.0203,-13.7625],[135.9886,-13.8666],[135.9247,-13.9619],[135.8969,-14.1428],[135.8692,-14.1946],[135.7528,-14.2711],[135.6214,-14.4375],[135.5405,-14.5736],[135.5383,-14.6467],[135.4133,-14.7294],[135.3727,-14.7289],[135.434,-14.9024],[135.4764,-14.9646],[135.5429,-15.0193],[135.6705,-15.0644],[135.8519,-15.1775],[135.9445,-15.2595],[136.2122,-15.3945],[136.2411,-15.4184],[136.2651,-15.5404],[136.32,-15.6031],[136.5686,-15.7183],[136.6711,-15.8003],[136.7658,-15.9044],[137.0306,-15.9147],[137.1366,-15.9686],[137.3691,-16.1276],[137.4883,-16.1764],[137.5437,-16.1749],[137.7377,-16.2517],[137.8588,-16.4381],[138.0003,-16.5547]]]]},properties:{name:"Northern Territory",id:"AU-NT",CNTRY_NAME:"Australia",TYPE:"Territory"},id:"AU-NT"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[129,-14.8711],[129,-15.3992],[129,-17.2664],[129.0059,-26.0049],[129.0003,-31.6926],[128.793,-31.7694],[128.5544,-31.8883],[128.1827,-32.0317],[128.0124,-32.0896],[127.7375,-32.1347],[127.3347,-32.2669],[127.125,-32.2985],[126.6872,-32.3159],[126.3994,-32.2922],[126.1797,-32.2385],[126.0693,-32.285],[125.9723,-32.2668],[125.8065,-32.3436],[125.515,-32.5468],[125.4443,-32.5733],[125.3023,-32.5988],[124.9955,-32.7422],[124.8795,-32.8299],[124.7466,-32.8978],[124.4028,-32.9456],[124.2819,-32.9856],[124.1901,-33.0492],[124.1064,-33.1394],[124.0025,-33.3936],[123.9559,-33.5596],[123.86,-33.6158],[123.7697,-33.6953],[123.735,-33.7797],[123.6908,-33.8206],[123.5408,-33.9058],[123.369,-33.8952],[123.2827,-33.9712],[123.1681,-34.0186],[123.1007,-33.8869],[123.0178,-33.8575],[122.845,-33.9069],[122.7303,-33.8933],[122.5938,-33.898],[122.5757,-33.9133],[122.4333,-33.9258],[122.3545,-33.913],[122.2623,-33.9659],[122.2514,-34.0167],[122.1183,-34.0286],[122.0715,-33.8932],[122.0137,-33.8311],[121.9168,-33.8364],[121.8617,-33.8805],[121.781,-33.8995],[121.5226,-33.8215],[121.3361,-33.8156],[121.0516,-33.857],[120.8625,-33.8567],[120.7914,-33.888],[120.5403,-33.9172],[120.417,-33.9739],[120.253,-33.9397],[120.005,-33.9289],[119.8129,-33.9781],[119.7389,-34.0458],[119.6161,-34.1],[119.5636,-34.1497],[119.4809,-34.2704],[119.4675,-34.3318],[119.3255,-34.447],[119.2086,-34.5044],[119.0789,-34.4661],[118.9116,-34.4531],[118.7397,-34.55],[118.7542,-34.607],[118.6379,-34.6804],[118.477,-34.7237],[118.418,-34.7741],[118.3877,-34.8403],[118.2816,-34.9055],[118.0817,-34.9939],[117.8379,-35.0302],[117.8585,-35.114],[117.7266,-35.048],[117.6328,-35.0694],[117.6097,-35.1383],[117.5334,-35.0883],[117.3325,-35.0189],[116.9483,-35.0158],[116.873,-35.0567],[116.7244,-35.0169],[116.6019,-35.033],[116.4605,-34.9996],[116.2169,-34.8662],[115.9736,-34.8195],[115.9133,-34.7032],[115.8142,-34.6078],[115.648,-34.4678],[115.4957,-34.3836],[115.314,-34.3049],[115.1683,-34.3128],[115.1222,-34.3628],[115.0089,-34.2625],[115.0103,-34.1759],[114.9577,-33.8661],[114.9537,-33.6923],[114.9971,-33.5241],[115.0397,-33.5338],[115.1013,-33.6112],[115.2206,-33.6533],[115.3155,-33.646],[115.4297,-33.6051],[115.7126,-33.264],[115.6694,-32.982],[115.5944,-32.6707],[115.6176,-32.6028],[115.6727,-32.7458],[115.716,-32.7156],[115.7619,-32.5725],[115.7325,-32.3209],[115.7553,-32.1918],[115.7378,-32.0953],[115.7433,-31.8933],[115.7058,-31.7164],[115.6817,-31.6606],[115.4378,-31.2796],[115.3686,-31.1022],[115.3103,-30.9866],[115.1675,-30.772],[115.0472,-30.5047],[115.0545,-30.4772],[115.0236,-30.2742],[114.9572,-30.0756],[114.9372,-30.0603],[114.9419,-29.6706],[114.978,-29.4878],[114.9282,-29.3356],[114.9028,-29.2992],[114.8873,-29.2058],[114.8349,-29.0965],[114.6193,-28.8711],[114.5917,-28.7975],[114.5841,-28.6331],[114.5028,-28.488],[114.3075,-28.2299],[114.2317,-28.1889],[114.1543,-28.091],[114.0947,-27.8516],[114.141,-27.7072],[114.1214,-27.6033],[114.0728,-27.4511],[113.9369,-27.1989],[113.7992,-26.9674],[113.5858,-26.6908],[113.2811,-26.3994],[113.2244,-26.2392],[113.2705,-26.1564],[113.3341,-26.2786],[113.3655,-26.1189],[113.5143,-26.2842],[113.5346,-26.338],[113.5464,-26.5081],[113.5697,-26.5697],[113.6435,-26.6543],[113.7419,-26.5942],[113.784,-26.6035],[113.8558,-26.5075],[113.8614,-26.3365],[113.7892,-26.2506],[113.6522,-26.1695],[113.5512,-26.075],[113.4927,-25.8588],[113.3911,-25.7105],[113.4086,-25.6282],[113.4695,-25.5409],[113.4977,-25.5603],[113.5911,-25.7122],[113.6974,-25.7952],[113.7341,-25.889],[113.7099,-26.0076],[113.6819,-26.0349],[113.6843,-26.1196],[113.714,-26.1969],[113.7986,-26.1683],[113.8789,-26.0289],[113.9312,-26.2636],[113.9589,-26.3278],[114.0693,-26.4616],[114.1949,-26.3729],[114.2214,-26.2925],[114.1719,-26.1826],[114.2064,-25.9891],[114.2569,-25.9705],[114.2581,-25.8478],[114.0343,-25.6337],[113.9151,-25.4317],[113.8066,-25.1813],[113.7011,-25.1224],[113.6111,-24.8892],[113.6141,-24.7537],[113.5516,-24.66],[113.4257,-24.5253],[113.3897,-24.4294],[113.3841,-24.2308],[113.4244,-24.1345],[113.4464,-24.0114],[113.5322,-23.7573],[113.6012,-23.6303],[113.743,-23.5272],[113.7683,-23.4417],[113.782,-23.3267],[113.7603,-23.1939],[113.8183,-23.0306],[113.8075,-22.9333],[113.753,-22.7939],[113.6711,-22.6861],[113.6564,-22.6047],[113.7997,-22.3342],[113.9333,-21.9761],[114.0303,-21.8416],[114.0893,-21.8108],[114.176,-21.8228],[114.1266,-21.9102],[114.0778,-22.1742],[114.1419,-22.3014],[114.1103,-22.4865],[114.1539,-22.5278],[114.3725,-22.4425],[114.4,-22.3356],[114.4608,-22.1903],[114.6254,-21.9229],[114.6511,-21.84],[114.9427,-21.6887],[115.0527,-21.6811],[115.2455,-21.5919],[115.4519,-21.5178],[115.6194,-21.3319],[115.68,-21.2875],[115.8065,-21.2365],[115.9252,-21.069],[116.1598,-20.9658],[116.1855,-20.9019],[116.4755,-20.8061],[116.6063,-20.7301],[116.7075,-20.6491],[116.7885,-20.6656],[116.8757,-20.7175],[117.0667,-20.6217],[117.1652,-20.6538],[117.2679,-20.7176],[117.4062,-20.7299],[117.6854,-20.6764],[117.8503,-20.6084],[118.0691,-20.41],[118.1785,-20.3487],[118.235,-20.3742],[118.5452,-20.3253],[118.6578,-20.3311],[118.8011,-20.2859],[118.95,-20.1169],[118.9799,-20.0413],[119.0803,-19.9688],[119.1889,-19.9594],[119.4341,-20.0169],[119.5818,-20.0708],[119.7855,-19.9716],[120.2395,-19.9087],[120.3372,-19.8785],[120.8786,-19.6652],[121.0275,-19.5922],[121.2767,-19.395],[121.4886,-19.1231],[121.6394,-18.8139],[121.7774,-18.6368],[121.765,-18.5561],[121.8241,-18.4584],[121.8899,-18.4737],[122.0136,-18.3922],[122.0667,-18.3175],[122.1286,-18.2886],[122.3375,-18.1314],[122.3676,-18.0605],[122.3322,-17.9795],[122.2528,-17.9584],[122.2111,-17.8936],[122.1998,-17.7046],[122.1408,-17.558],[122.1439,-17.363],[122.175,-17.2433],[122.2566,-17.1078],[122.3791,-16.9961],[122.4474,-16.9542],[122.5743,-16.9534],[122.5239,-16.8447],[122.5665,-16.7899],[122.6397,-16.7997],[122.7522,-16.7622],[122.7366,-16.6974],[122.7605,-16.6006],[122.8414,-16.5587],[122.8943,-16.5023],[122.9203,-16.4146],[122.9917,-16.3897],[123.0603,-16.4556],[122.9895,-16.476],[122.9562,-16.5868],[123.0197,-16.6703],[123.0961,-16.7161],[123.1164,-16.7928],[123.3078,-17.1375],[123.5534,-17.515],[123.5636,-17.3672],[123.619,-17.2061],[123.574,-17.0729],[123.5926,-16.9967],[123.6558,-16.9948],[123.7825,-17.1425],[123.8558,-17.2064],[123.7964,-16.998],[123.8917,-16.8934],[123.8583,-16.8764],[123.7664,-16.8882],[123.7177,-16.7881],[123.6078,-16.6733],[123.6136,-16.5642],[123.5014,-16.566],[123.4933,-16.4972],[123.6411,-16.5295],[123.7089,-16.4303],[123.7075,-16.3402],[123.5958,-16.3191],[123.5602,-16.2883],[123.5709,-16.1716],[123.7262,-16.1386],[123.8064,-16.199],[123.7839,-16.2461],[123.7327,-16.2595],[123.8391,-16.368],[123.8928,-16.3399],[123.9644,-16.2455],[124.0862,-16.2625],[124.1664,-16.3025],[124.2298,-16.4042],[124.333,-16.4099],[124.3844,-16.3528],[124.4758,-16.3958],[124.5786,-16.4056],[124.7291,-16.3849],[124.6973,-16.3469],[124.5624,-16.3242],[124.48,-16.3475],[124.4005,-16.3294],[124.3761,-16.2219],[124.4305,-16.1025],[124.4708,-16.0933],[124.5187,-16.1636],[124.593,-16.1142],[124.5853,-16.0228],[124.6147,-15.9186],[124.7267,-15.809],[124.6701,-15.7869],[124.6162,-15.8023],[124.5347,-15.9364],[124.4878,-15.9372],[124.4002,-15.8643],[124.3719,-15.6683],[124.4572,-15.4783],[124.4889,-15.4652],[124.5818,-15.5168],[124.6741,-15.455],[124.6633,-15.263],[124.7053,-15.2533],[124.9125,-15.3561],[124.9938,-15.4318],[125.0764,-15.4304],[125.1186,-15.3232],[125.0973,-15.3018],[125.0114,-15.3005],[124.9121,-15.336],[124.9007,-15.2789],[124.9375,-15.2284],[125.0043,-15.2282],[125.0128,-15.1536],[124.8817,-15.2374],[124.8544,-15.2361],[124.8249,-15.1603],[124.9005,-15.1004],[124.9592,-15.1172],[125.0329,-15.0747],[125.0183,-15.0408],[125.0783,-14.9997],[125.1472,-15.1514],[125.1746,-15.1195],[125.1616,-15.0339],[125.2793,-15.1012],[125.3216,-15.156],[125.4148,-15.1515],[125.3602,-15.0987],[125.39,-15.0708],[125.2811,-14.9955],[125.1829,-14.9483],[125.2431,-14.902],[125.136,-14.7474],[125.2433,-14.5981],[125.3361,-14.523],[125.3883,-14.545],[125.5889,-14.5494],[125.5994,-14.427],[125.58,-14.3089],[125.6183,-14.2224],[125.7287,-14.2732],[125.7228,-14.4043],[125.843,-14.4649],[125.825,-14.5725],[125.9028,-14.6436],[125.991,-14.5472],[126.0376,-14.5152],[126.0664,-14.3442],[126.1433,-14.1925],[126.1467,-14.13],[126.0675,-13.9155],[126.148,-13.9275],[126.2175,-13.9619],[126.2089,-14.0373],[126.1572,-14.0591],[126.1917,-14.1684],[126.2341,-14.1797],[126.2878,-14.2331],[126.3133,-14.1936],[126.2946,-14.1406],[126.3342,-14.0504],[126.4313,-13.975],[126.5025,-13.9647],[126.4553,-14.0775],[126.5683,-14.2206],[126.6005,-14.2297],[126.7039,-14.1238],[126.7891,-13.9714],[126.7459,-13.7954],[126.8579,-13.751],[126.9559,-13.7282],[127.0177,-13.7764],[127.0747,-13.8486],[127.0576,-13.8863],[127.1284,-13.9715],[127.1542,-13.9],[127.2419,-13.8964],[127.4252,-13.954],[127.5211,-14.0861],[127.658,-14.176],[127.9572,-14.5817],[128.0001,-14.5607],[128.1694,-14.7028],[128.1883,-14.8003],[128.1399,-14.8677],[128.0694,-15.1008],[128.0797,-15.2061],[128.069,-15.4718],[128.0971,-15.4343],[128.1321,-15.214],[128.1817,-15.2334],[128.2576,-15.306],[128.2919,-15.3038],[128.2244,-15.1905],[128.1921,-15.0652],[128.3063,-14.9128],[128.3263,-14.9165],[128.353,-15.0443],[128.4483,-15.0471],[128.4582,-15.0017],[128.4186,-14.932],[128.3877,-14.8],[128.536,-14.7585],[129,-14.8711]]],[[[113.2056,-26.1448],[113.1761,-26.1231],[113.0275,-25.9203],[112.9525,-25.7845],[112.9072,-25.6275],[112.9139,-25.5397],[112.9538,-25.4878],[113.0032,-25.499],[112.9872,-25.5708],[113.1053,-25.8764],[113.207,-26.0428],[113.2271,-26.1088],[113.2056,-26.1448]]],[[[125.1383,-14.6486],[125.086,-14.621],[125.1153,-14.4866],[125.1622,-14.439],[125.208,-14.4891],[125.1853,-14.5989],[125.1383,-14.6486]]],[[[115.3689,-20.8808],[115.3028,-20.816],[115.4052,-20.6861],[115.45,-20.6737],[115.4597,-20.7728],[115.3689,-20.8808]]],[[[124.5225,-15.4453],[124.4605,-15.3691],[124.4943,-15.2862],[124.5597,-15.26],[124.6465,-15.4007],[124.5225,-15.4453]]]]},properties:{name:"Western Australia",id:"AU-WA",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-WA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[149.051,-35.9172],[148.9267,-35.8728],[148.7935,-35.7115],[148.7672,-35.6522],[148.7689,-35.5133],[148.8172,-35.3203],[149.0797,-35.1617],[149.1966,-35.216],[149.2488,-35.2672],[149.4024,-35.3275],[149.358,-35.3603],[149.2648,-35.3499],[149.1895,-35.3792],[149.1417,-35.4341],[149.0851,-35.6209],[149.1069,-35.8275],[149.051,-35.9172]]]},properties:{name:"Australian Capital Territory",id:"AU-ACT",CNTRY_NAME:"Australia",TYPE:"Territory"},id:"AU-ACT"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[149.9777,-37.5126],[148.2049,-36.7974],[148.115,-36.7914],[148.1963,-36.679],[148.2061,-36.6071],[148.114,-36.4551],[148.051,-36.3895],[147.999,-36.0596],[147.8906,-36.0036],[147.7233,-35.945],[147.6372,-35.9719],[147.4965,-35.9499],[147.4031,-35.9624],[147.3102,-36.0564],[147.2197,-36.0633],[147.0523,-36.1111],[146.9175,-36.1037],[146.6941,-36.0469],[146.6045,-35.99],[146.5011,-35.9771],[146.2985,-36.0508],[146.0916,-36.0361],[145.8058,-35.9923],[145.7359,-35.9683],[145.5457,-35.8302],[145.445,-35.8414],[145.3572,-35.8805],[145.2362,-35.8515],[145.1133,-35.8514],[144.9876,-35.878],[144.9341,-35.9995],[144.9494,-36.1011],[144.7727,-36.1414],[144.6103,-36.0749],[144.4,-35.875],[144.3489,-35.7791],[144.2688,-35.745],[144.1674,-35.671],[144.0902,-35.5842],[143.9191,-35.5095],[143.7655,-35.4136],[143.653,-35.4003],[143.5748,-35.3412],[143.5974,-35.2835],[143.5587,-35.2347],[143.478,-35.2182],[143.403,-35.18],[143.3572,-35.0968],[143.3309,-34.9715],[143.3545,-34.872],[143.3429,-34.7929],[143.1302,-34.6972],[142.9814,-34.6892],[142.8636,-34.6497],[142.7878,-34.588],[142.7133,-34.6248],[142.6808,-34.7425],[142.6355,-34.7899],[142.5508,-34.7763],[142.4652,-34.6054],[142.3783,-34.5392],[142.3738,-34.3955],[142.2344,-34.2012],[142.1541,-34.1557],[142.0388,-34.1123],[141.8825,-34.1391],[141.7344,-34.107],[141.6464,-34.1351],[141.5906,-34.1994],[141.5233,-34.2006],[141.4115,-34.1436],[141.2474,-34.0803],[141.0748,-34.0698],[140.9978,-34.0241],[141.0027,-29.0002],[141.1219,-28.9991],[143.1302,-29],[144.6869,-29],[145.9567,-29],[148.9528,-29],[149.0294,-28.9664],[149.1461,-28.8378],[149.466,-28.598],[149.5764,-28.5714],[149.6176,-28.6049],[149.7055,-28.6278],[150.0137,-28.6043],[150.157,-28.5551],[150.3205,-28.5459],[150.397,-28.6161],[150.4661,-28.6573],[150.6333,-28.6614],[150.7843,-28.6338],[151.0371,-28.7355],[151.2925,-28.9293],[151.3047,-29.0817],[151.3454,-29.1612],[151.4166,-29.1591],[151.4649,-29.1147],[151.5555,-28.9531],[151.7279,-28.8861],[151.7647,-28.9488],[151.8268,-28.9751],[152.0181,-28.8937],[152.0506,-28.7305],[151.9606,-28.5501],[152.0575,-28.4822],[152.1695,-28.4332],[152.3685,-28.3754],[152.4866,-28.263],[152.5306,-28.2685],[152.5963,-28.3281],[152.7601,-28.3601],[152.9469,-28.3427],[153.1122,-28.3529],[153.1889,-28.2632],[153.3221,-28.2413],[153.4317,-28.2036],[153.506,-28.1501],[153.5776,-28.2079],[153.5915,-28.2739],[153.5597,-28.4916],[153.5785,-28.6055],[153.6242,-28.661],[153.606,-28.8622],[153.4481,-29.0437],[153.3377,-29.3283],[153.3655,-29.3984],[153.2539,-29.9525],[153.205,-30.1147],[153.0186,-30.5686],[153.0055,-30.8353],[153.0571,-30.8877],[153.075,-30.9487],[152.973,-31.2433],[152.9542,-31.3594],[152.8488,-31.6566],[152.7602,-31.8106],[152.5575,-32.0291],[152.5118,-32.1311],[152.5414,-32.2636],[152.5297,-32.4036],[152.3557,-32.5283],[152.2809,-32.6014],[152.1274,-32.6822],[152.1448,-32.7705],[151.9527,-32.827],[151.8122,-32.8888],[151.6689,-33.07],[151.5741,-33.2672],[151.4546,-33.3168],[151.4447,-33.3622],[151.4868,-33.3936],[151.4547,-33.5007],[151.3402,-33.6286],[151.297,-33.8975],[151.2728,-33.9695],[151.1783,-33.9875],[151.1952,-34.0568],[151.1141,-34.1664],[151.0238,-34.222],[150.9342,-34.3317],[150.8405,-34.5583],[150.8814,-34.5992],[150.8313,-34.786],[150.767,-34.8196],[150.7469,-34.8775],[150.7819,-34.9617],[150.7754,-35.012],[150.6852,-35.0422],[150.7033,-35.127],[150.6475,-35.1786],[150.5403,-35.2267],[150.4067,-35.5278],[150.3558,-35.595],[150.1624,-35.9405],[150.1375,-36.1117],[150.1356,-36.3282],[150.0772,-36.3889],[150.0234,-36.6281],[149.9664,-36.7947],[149.9025,-36.9233],[149.9067,-37.0692],[150.0065,-37.1618],[150.0198,-37.2314],[149.9479,-37.2819],[149.9494,-37.3984],[149.9777,-37.5126]],[[148.9267,-35.8728],[149.051,-35.9172],[149.1069,-35.8275],[149.0851,-35.6209],[149.1417,-35.4341],[149.1895,-35.3792],[149.2648,-35.3499],[149.358,-35.3603],[149.4024,-35.3275],[149.2488,-35.2672],[149.1966,-35.216],[149.0797,-35.1617],[148.8172,-35.3203],[148.7689,-35.5133],[148.7672,-35.6522],[148.7935,-35.7115],[148.9267,-35.8728]]]},properties:{name:"New South Wales",id:"AU-NSW",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-NSW"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[137.9109,-35.7294],[138.0628,-35.7632],[138.1119,-35.8175],[138.1127,-35.8697],[138.0403,-35.9227],[137.9211,-35.8756],[137.761,-35.866],[137.6197,-35.9199],[137.6144,-36.0095],[137.4555,-36.0853],[137.3575,-36.0045],[137.226,-35.984],[137.1501,-36.0442],[137.0317,-36.0355],[136.8997,-36.0522],[136.7122,-36.0567],[136.6803,-36.0132],[136.5385,-35.9174],[136.5339,-35.8822],[136.5811,-35.7694],[136.9475,-35.6808],[137.1205,-35.6622],[137.3172,-35.5907],[137.5261,-35.6047],[137.585,-35.6508],[137.5979,-35.747],[137.6933,-35.7575],[137.7915,-35.8032],[137.8507,-35.8067],[137.9109,-35.7294]]],[[[129.0003,-31.6926],[129.0059,-26.0049],[129.9006,-25.9994],[131.2333,-26],[138.0005,-25.9995],[141.0005,-25.9997],[141.0027,-29.0002],[140.9978,-34.0241],[140.9719,-33.9954],[140.9681,-38.0642],[140.8506,-38.0547],[140.6986,-38.0719],[140.53,-38.0004],[140.3559,-37.8617],[140.2383,-37.6719],[140.1213,-37.5307],[140.0498,-37.4904],[139.9938,-37.4925],[139.8144,-37.2997],[139.7514,-37.1997],[139.7803,-37.1078],[139.7337,-37.0143],[139.7519,-36.9216],[139.8229,-36.8746],[139.8618,-36.7947],[139.8608,-36.6608],[139.8235,-36.5546],[139.648,-36.2097],[139.3719,-35.9106],[139.4039,-35.8872],[139.584,-36.0885],[139.6041,-36.0414],[139.448,-35.8842],[139.0996,-35.6125],[139.0976,-35.524],[139.1597,-35.5039],[139.2351,-35.5572],[139.2261,-35.6826],[139.3358,-35.6914],[139.3613,-35.6039],[139.3731,-35.4704],[139.3566,-35.3745],[139.2125,-35.3167],[139.1347,-35.379],[138.97,-35.4085],[138.9594,-35.4756],[139.0358,-35.5099],[138.9911,-35.5574],[138.7215,-35.5388],[138.6505,-35.563],[138.5363,-35.6535],[138.175,-35.6696],[138.0932,-35.6192],[138.153,-35.5329],[138.2856,-35.479],[138.4388,-35.3438],[138.4675,-35.2117],[138.465,-35.1131],[138.5142,-35.025],[138.4811,-34.8629],[138.4961,-34.7289],[138.4352,-34.6422],[138.275,-34.4801],[138.2197,-34.3149],[138.0922,-34.135],[138.0681,-34.1397],[138.0069,-34.2572],[138.019,-34.3442],[137.9245,-34.4255],[137.8891,-34.5252],[137.8755,-34.7111],[137.7491,-35.0497],[137.7482,-35.1328],[137.6744,-35.1816],[137.5322,-35.1289],[137.4211,-35.12],[137.2336,-35.1782],[137.1668,-35.2482],[137.0276,-35.2307],[136.9499,-35.2866],[136.8923,-35.3041],[136.8315,-35.2518],[136.9367,-35.1472],[136.9604,-35.0998],[136.977,-34.9589],[137.024,-34.902],[137.1077,-34.9296],[137.2815,-34.9064],[137.3847,-34.9608],[137.4541,-34.8969],[137.4985,-34.6586],[137.4811,-34.4717],[137.4933,-34.2864],[137.4517,-34.1604],[137.5148,-34.1433],[137.5949,-33.9558],[137.6029,-33.884],[137.7778,-33.6973],[137.9486,-33.5593],[137.9161,-33.4414],[137.8143,-33.278],[137.8449,-33.202],[137.955,-33.1494],[138.0469,-33.1294],[138.0089,-33.0288],[137.9541,-33.0091],[137.8964,-32.7872],[137.8438,-32.688],[137.8163,-32.5669],[137.763,-32.5325],[137.7551,-32.6958],[137.8012,-32.741],[137.8076,-32.8479],[137.7748,-32.9928],[137.5955,-33.0297],[137.4883,-33.1278],[137.3852,-33.3003],[137.3611,-33.4293],[137.2099,-33.6661],[137.142,-33.7137],[137.0203,-33.7173],[136.9497,-33.681],[136.8638,-33.807],[136.5799,-33.9319],[136.4134,-34.041],[136.3565,-34.0902],[136.3061,-34.1989],[136.2066,-34.3321],[136.1259,-34.362],[136.0403,-34.4836],[135.9369,-34.5369],[135.875,-34.6383],[135.8038,-34.8152],[135.8729,-34.8199],[136.0066,-34.7425],[136.02,-34.7952],[136.0046,-34.9918],[135.9564,-35.0083],[135.8466,-34.8903],[135.7867,-34.8603],[135.724,-34.8678],[135.6797,-34.9538],[135.6061,-34.893],[135.4747,-34.7511],[135.3263,-34.6248],[135.2159,-34.5651],[135.1123,-34.5948],[135.1517,-34.5039],[135.2132,-34.4981],[135.3444,-34.6142],[135.3965,-34.644],[135.3931,-34.4953],[135.3491,-34.2892],[135.2726,-34.1203],[135.2611,-34.0065],[135.1938,-33.9194],[135.0336,-33.7686],[134.8407,-33.6378],[134.8684,-33.5415],[134.858,-33.472],[134.8086,-33.3528],[134.7075,-33.1772],[134.5935,-33.14],[134.4086,-33.1645],[134.3295,-33.2028],[134.2693,-33.12],[134.1957,-32.9545],[134.0745,-32.7209],[134.1547,-32.7259],[134.2082,-32.8076],[134.2765,-32.7287],[134.2971,-32.6775],[134.2764,-32.5886],[134.2055,-32.5036],[134.1141,-32.4534],[133.9555,-32.4958],[133.8907,-32.5482],[133.8529,-32.5418],[133.8544,-32.4604],[133.8833,-32.4047],[133.9508,-32.3983],[133.8263,-32.2508],[133.7255,-32.2006],[133.6059,-32.0981],[133.5667,-32.1657],[133.4851,-32.2098],[133.1666,-32.1908],[133.0655,-32.1199],[132.9736,-32.0917],[132.8329,-31.9779],[132.7852,-31.9562],[132.5844,-31.9359],[132.4889,-31.9525],[132.4141,-32.0117],[132.3278,-32.0378],[132.1959,-32.0269],[132.0269,-31.8819],[131.7691,-31.7222],[131.365,-31.5434],[131.1486,-31.474],[131.1152,-31.4775],[131.0125,-31.5489],[130.844,-31.6047],[130.7936,-31.6103],[130.2633,-31.5762],[129.9358,-31.5934],[129.8383,-31.6144],[129.2319,-31.6583],[129.0003,-31.6926]]]]},properties:{name:"South Australia",id:"AU-SA",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-SA"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[145.3541,-38.57],[145.2714,-38.5209],[145.117,-38.5311],[145.1903,-38.467],[145.3097,-38.466],[145.3541,-38.57]]],[[[140.9681,-38.0642],[140.9719,-33.9954],[140.9978,-34.0241],[141.0748,-34.0698],[141.2474,-34.0803],[141.4115,-34.1436],[141.5233,-34.2006],[141.5906,-34.1994],[141.6464,-34.1351],[141.7344,-34.107],[141.8825,-34.1391],[142.0388,-34.1123],[142.1541,-34.1557],[142.2344,-34.2012],[142.3738,-34.3955],[142.3783,-34.5392],[142.4652,-34.6054],[142.5508,-34.7763],[142.6355,-34.7899],[142.6808,-34.7425],[142.7133,-34.6248],[142.7878,-34.588],[142.8636,-34.6497],[142.9814,-34.6892],[143.1302,-34.6972],[143.3429,-34.7929],[143.3545,-34.872],[143.3309,-34.9715],[143.3572,-35.0968],[143.403,-35.18],[143.478,-35.2182],[143.5587,-35.2347],[143.5974,-35.2835],[143.5748,-35.3412],[143.653,-35.4003],[143.7655,-35.4136],[143.9191,-35.5095],[144.0902,-35.5842],[144.1674,-35.671],[144.2688,-35.745],[144.3489,-35.7791],[144.4,-35.875],[144.6103,-36.0749],[144.7727,-36.1414],[144.9494,-36.1011],[144.9341,-35.9995],[144.9876,-35.878],[145.1133,-35.8514],[145.2362,-35.8515],[145.3572,-35.8805],[145.445,-35.8414],[145.5457,-35.8302],[145.7359,-35.9683],[145.8058,-35.9923],[146.0916,-36.0361],[146.2985,-36.0508],[146.5011,-35.9771],[146.6045,-35.99],[146.6941,-36.0469],[146.9175,-36.1037],[147.0523,-36.1111],[147.2197,-36.0633],[147.3102,-36.0564],[147.4031,-35.9624],[147.4965,-35.9499],[147.6372,-35.9719],[147.7233,-35.945],[147.8906,-36.0036],[147.999,-36.0596],[148.051,-36.3895],[148.114,-36.4551],[148.2061,-36.6071],[148.1963,-36.679],[148.115,-36.7914],[148.2049,-36.7974],[149.9777,-37.5126],[149.8994,-37.5521],[149.7855,-37.5605],[149.6728,-37.6963],[149.4571,-37.7833],[149.3094,-37.7953],[148.8262,-37.7978],[148.6586,-37.8166],[148.4939,-37.8116],[148.3091,-37.8216],[147.964,-37.9024],[147.7592,-37.9825],[147.5411,-38.1134],[147.213,-38.3631],[146.9694,-38.5853],[146.8736,-38.6517],[146.6499,-38.6738],[146.4311,-38.7172],[146.3527,-38.6979],[146.2193,-38.716],[146.1847,-38.7574],[146.2965,-38.9166],[146.4693,-38.8057],[146.4837,-39.0763],[146.4251,-39.1347],[146.3469,-39.1301],[146.247,-38.9489],[146.1423,-38.846],[146.0652,-38.82],[146.0027,-38.8635],[145.9044,-38.857],[145.8236,-38.7286],[145.8161,-38.6523],[145.7279,-38.6414],[145.6586,-38.6772],[145.5662,-38.6652],[145.416,-38.5458],[145.4322,-38.4522],[145.5203,-38.4231],[145.5552,-38.3743],[145.4855,-38.2481],[145.4443,-38.227],[145.2555,-38.2376],[145.213,-38.3492],[145.0304,-38.4974],[144.9013,-38.5059],[144.7611,-38.3778],[144.8804,-38.3778],[144.985,-38.3405],[145.1313,-38.137],[145.0992,-38.043],[144.9755,-37.892],[144.9177,-37.8686],[144.8247,-37.9025],[144.6912,-38.0039],[144.5269,-38.1011],[144.386,-38.1131],[144.3745,-38.1628],[144.513,-38.1816],[144.6371,-38.134],[144.7063,-38.1492],[144.7105,-38.2225],[144.6339,-38.2997],[144.5486,-38.2838],[144.3951,-38.3096],[144.0617,-38.4846],[143.8423,-38.6966],[143.7319,-38.7203],[143.6732,-38.7839],[143.5429,-38.8593],[143.3874,-38.7684],[143.18,-38.7161],[143.0482,-38.6371],[142.9717,-38.6293],[142.8033,-38.576],[142.5352,-38.4128],[142.3793,-38.3639],[142.1604,-38.4001],[141.9647,-38.2921],[141.8214,-38.2675],[141.6794,-38.2829],[141.6202,-38.3219],[141.6502,-38.3998],[141.5714,-38.4172],[141.4541,-38.3725],[141.3675,-38.2894],[141.1931,-38.1606],[141.1036,-38.1139],[140.9681,-38.0642]]],[[[145.3559,-38.4311],[145.2838,-38.409],[145.2957,-38.2987],[145.4556,-38.3248],[145.3559,-38.4311]]]]},properties:{name:"Victoria",id:"AU-VIC",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-VIC"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[153.0816,-25.7959],[153.038,-25.7873],[152.9977,-25.7378],[152.943,-25.5583],[152.9966,-25.4394],[153.0643,-25.3386],[153.0495,-25.2308],[153.0908,-25.1523],[153.1945,-25.0755],[153.2402,-24.993],[153.2377,-24.9142],[153.1781,-24.8247],[153.1961,-24.7508],[153.2816,-24.6992],[153.29,-24.9042],[153.371,-25.0141],[153.1271,-25.5364],[153.0828,-25.6678],[153.0974,-25.7486],[153.0816,-25.7959]]],[[[153.506,-28.1501],[153.4317,-28.2036],[153.3221,-28.2413],[153.1889,-28.2632],[153.1122,-28.3529],[152.9469,-28.3427],[152.7601,-28.3601],[152.5963,-28.3281],[152.5306,-28.2685],[152.4866,-28.263],[152.3685,-28.3754],[152.1695,-28.4332],[152.0575,-28.4822],[151.9606,-28.5501],[152.0506,-28.7305],[152.0181,-28.8937],[151.8268,-28.9751],[151.7647,-28.9488],[151.7279,-28.8861],[151.5555,-28.9531],[151.4649,-29.1147],[151.4166,-29.1591],[151.3454,-29.1612],[151.3047,-29.0817],[151.2925,-28.9293],[151.0371,-28.7355],[150.7843,-28.6338],[150.6333,-28.6614],[150.4661,-28.6573],[150.397,-28.6161],[150.3205,-28.5459],[150.157,-28.5551],[150.0137,-28.6043],[149.7055,-28.6278],[149.6176,-28.6049],[149.5764,-28.5714],[149.466,-28.598],[149.1461,-28.8378],[149.0294,-28.9664],[148.9528,-29],[145.9567,-29],[144.6869,-29],[143.1302,-29],[141.1219,-28.9991],[141.0027,-29.0002],[141.0005,-25.9997],[138.0005,-25.9995],[138.0003,-16.5547],[138.1948,-16.7074],[138.2908,-16.7425],[138.4869,-16.7878],[138.6396,-16.7793],[138.6873,-16.8126],[138.8433,-16.8758],[139.0105,-16.8991],[139.1413,-17.0742],[139.1628,-17.2031],[139.213,-17.2971],[139.2605,-17.3425],[139.3367,-17.3678],[139.4372,-17.3792],[139.5354,-17.4418],[139.6165,-17.5208],[139.8142,-17.5753],[139.8827,-17.6142],[139.9794,-17.6972],[140.1322,-17.7192],[140.3966,-17.6733],[140.5342,-17.6244],[140.6199,-17.58],[140.758,-17.4778],[140.8333,-17.4519],[140.8858,-17.3597],[140.9422,-17.1511],[140.9569,-17.0011],[141.1945,-16.7039],[141.2861,-16.5033],[141.3155,-16.3575],[141.4266,-16.0744],[141.4005,-15.9058],[141.4605,-15.5361],[141.6346,-15.1493],[141.6655,-15.0265],[141.5665,-14.7636],[141.521,-14.4813],[141.5361,-14.3986],[141.5932,-14.2556],[141.6001,-14.1438],[141.5781,-14.0654],[141.4775,-13.9485],[141.4689,-13.8281],[141.5419,-13.5328],[141.6887,-13.254],[141.6309,-13.1595],[141.5856,-12.9864],[141.6068,-12.9346],[141.7086,-12.871],[141.7477,-12.8244],[141.7969,-12.6913],[141.8567,-12.7093],[141.8894,-12.7635],[141.89,-12.8436],[141.9404,-12.865],[141.8838,-12.7041],[141.8394,-12.6725],[141.7178,-12.4934],[141.6622,-12.4511],[141.6269,-12.5696],[141.5942,-12.5317],[141.6883,-12.3319],[141.7758,-12.2136],[141.7599,-12.1789],[141.8054,-12.0517],[141.8491,-11.9885],[141.8924,-11.969],[141.9169,-12.0889],[142.0237,-12.0678],[142.0316,-12.0435],[141.9506,-11.9654],[141.9689,-11.8085],[142.1228,-11.3726],[142.1589,-11.1494],[142.1382,-10.9736],[142.1846,-10.9229],[142.343,-10.8954],[142.3996,-10.822],[142.4445,-10.7097],[142.5188,-10.7067],[142.6132,-10.7508],[142.5163,-10.8582],[142.609,-10.8725],[142.7448,-10.9865],[142.7883,-11.0805],[142.8659,-11.3913],[142.84,-11.5112],[142.8675,-11.7158],[142.8598,-11.8332],[142.9687,-11.9274],[143.0375,-11.9328],[143.1033,-11.9036],[143.1992,-11.9875],[143.1022,-12.1403],[143.082,-12.225],[143.0775,-12.3343],[143.1602,-12.3408],[143.2758,-12.4131],[143.2794,-12.5176],[143.43,-12.6168],[143.3751,-12.7428],[143.3623,-12.8489],[143.4058,-12.8704],[143.5044,-12.8592],[143.5141,-12.8792],[143.4983,-13.0986],[143.5286,-13.3405],[143.5947,-13.432],[143.5867,-13.5261],[143.5308,-13.7564],[143.6014,-13.9361],[143.6857,-14.0233],[143.6985,-14.1854],[143.737,-14.3192],[143.7822,-14.4133],[143.8876,-14.4872],[144.0119,-14.4877],[144.1536,-14.38],[144.4351,-14.2541],[144.4762,-14.163],[144.5159,-14.1717],[144.5786,-14.2632],[144.567,-14.3585],[144.6145,-14.4847],[144.6768,-14.5574],[144.8282,-14.6139],[144.8966,-14.6182],[144.9593,-14.7538],[145.2064,-14.8625],[145.3158,-14.9456],[145.3097,-15.0045],[145.2343,-15.1345],[145.2377,-15.1931],[145.2769,-15.257],[145.2894,-15.3311],[145.2486,-15.4464],[145.3049,-15.5547],[145.3595,-15.7343],[145.3592,-15.9154],[145.4099,-15.9647],[145.4623,-16.0831],[145.4462,-16.2875],[145.4088,-16.3382],[145.4021,-16.441],[145.4644,-16.5022],[145.8061,-16.9131],[145.8389,-16.8862],[145.9318,-16.8711],[145.9554,-16.8991],[145.8781,-17.0404],[145.8828,-17.0717],[145.9539,-17.1886],[146.0319,-17.3644],[146.0855,-17.5528],[146.1042,-17.6917],[146.0861,-17.7872],[146.1008,-17.8897],[146.094,-17.9559],[146.0017,-18.1422],[146.0094,-18.2381],[146.2119,-18.4917],[146.3336,-18.5356],[146.3262,-18.6474],[146.2811,-18.7472],[146.2682,-18.8536],[146.3357,-18.9604],[146.4235,-19.0255],[146.448,-19.0711],[146.5652,-19.1436],[146.6544,-19.1839],[146.7636,-19.1868],[146.8858,-19.303],[146.9535,-19.3058],[147.0722,-19.3428],[147.1394,-19.4028],[147.2534,-19.4258],[147.4319,-19.4124],[147.4588,-19.37],[147.5552,-19.5354],[147.5949,-19.7272],[147.6695,-19.8247],[147.7701,-19.8263],[147.7614,-19.71],[147.8512,-19.7402],[147.8636,-19.8508],[147.9718,-19.9186],[148.0969,-19.913],[148.22,-19.9472],[148.2988,-20.0379],[148.2747,-20.0766],[148.3339,-20.1453],[148.4134,-20.2064],[148.4664,-20.1845],[148.453,-20.0636],[148.5222,-20.088],[148.673,-20.2161],[148.7689,-20.2324],[148.8033,-20.2767],[148.8667,-20.4448],[148.8786,-20.5214],[148.7903,-20.4569],[148.7411,-20.4758],[148.6672,-20.5617],[148.7291,-20.7175],[148.8497,-20.8361],[148.9214,-20.8831],[149.0284,-20.9186],[149.1606,-21.0153],[149.2147,-21.08],[149.2049,-21.1544],[149.24,-21.2786],[149.2894,-21.3186],[149.3285,-21.4378],[149.3855,-21.5314],[149.443,-21.5825],[149.43,-21.7732],[149.5208,-22.0772],[149.5899,-22.2333],[149.6533,-22.3181],[149.6966,-22.3506],[149.6994,-22.4525],[149.7363,-22.4633],[149.8147,-22.3839],[150.0383,-22.641],[149.9864,-22.4756],[149.9208,-22.3506],[149.9214,-22.3033],[149.9599,-22.2083],[149.9995,-22.1603],[150.0789,-22.1628],[150.1553,-22.2722],[150.2004,-22.3917],[150.3219,-22.4375],[150.48,-22.5386],[150.593,-22.5861],[150.5353,-22.4587],[150.5344,-22.3835],[150.5619,-22.3311],[150.6345,-22.343],[150.7055,-22.4414],[150.6758,-22.5049],[150.6836,-22.5536],[150.8191,-22.7319],[150.7558,-23.1303],[150.8122,-23.238],[150.8004,-23.3807],[150.8671,-23.505],[150.9485,-23.5462],[151.0231,-23.5565],[151.0521,-23.6172],[151.1202,-23.6651],[151.1681,-23.7925],[151.3183,-23.8583],[151.4242,-23.9786],[151.5466,-24.036],[151.6142,-24.0528],[151.616,-23.9983],[151.6839,-23.9889],[151.7881,-24.0989],[151.9334,-24.2179],[152.01,-24.4264],[152.1318,-24.6082],[152.2771,-24.71],[152.4183,-24.7603],[152.468,-24.8122],[152.4977,-24.8773],[152.5077,-24.9978],[152.6715,-25.2451],[152.8089,-25.2826],[152.9079,-25.2889],[152.9466,-25.4364],[152.9343,-25.5248],[152.8934,-25.5624],[152.8986,-25.6792],[152.9205,-25.7354],[152.9841,-25.7718],[153.0379,-25.8906],[153.182,-25.9494],[153.1375,-26.0678],[153.072,-26.3085],[153.0902,-26.3733],[153.1152,-26.6695],[153.1431,-26.73],[153.1572,-27.0827],[153.0957,-27.1004],[153.0346,-27.1767],[153.0648,-27.3133],[153.1747,-27.3889],[153.256,-27.4797],[153.3188,-27.6712],[153.4033,-27.7773],[153.4328,-27.8483],[153.4103,-27.9819],[153.4603,-28.0927],[153.506,-28.1501]]],[[[153.4253,-27.3628],[153.3587,-27.1967],[153.3583,-27.0615],[153.4445,-27.0193],[153.4664,-27.0342],[153.4144,-27.2089],[153.4253,-27.3628]]],[[[146.29,-18.4939],[146.2205,-18.4683],[146.2016,-18.3766],[146.1575,-18.3194],[146.1111,-18.2981],[146.1275,-18.245],[146.2697,-18.3083],[146.3522,-18.4229],[146.29,-18.4939]]],[[[139.4283,-17.1461],[139.4001,-17.0888],[139.5027,-16.9967],[139.5541,-17.0318],[139.5703,-17.105],[139.4528,-17.1028],[139.4283,-17.1461]]],[[[139.1483,-16.7608],[139.1386,-16.7025],[139.165,-16.6006],[139.2225,-16.5239],[139.3067,-16.4625],[139.4797,-16.4422],[139.5344,-16.4139],[139.7273,-16.4443],[139.7329,-16.5028],[139.6238,-16.5358],[139.5808,-16.5025],[139.4891,-16.5381],[139.5036,-16.5692],[139.442,-16.6678],[139.3303,-16.7089],[139.1853,-16.735],[139.1483,-16.7608]]],[[[151.2271,-23.7867],[151.1725,-23.7403],[151.1336,-23.6613],[151.0661,-23.6053],[151.0277,-23.5258],[151.0184,-23.4564],[151.0628,-23.4471],[151.203,-23.5289],[151.2871,-23.6725],[151.299,-23.7505],[151.2271,-23.7867]]],[[[142.1833,-10.7703],[142.1206,-10.7206],[142.1158,-10.6575],[142.2169,-10.6103],[142.2658,-10.6836],[142.1833,-10.7703]]],[[[153.4069,-27.7311],[153.3952,-27.6114],[153.4336,-27.4161],[153.5409,-27.4181],[153.4749,-27.6139],[153.454,-27.7263],[153.4069,-27.7311]]],[[[142.2799,-10.2656],[142.2105,-10.2368],[142.1894,-10.2042],[142.2286,-10.1455],[142.2841,-10.1357],[142.34,-10.1914],[142.2799,-10.2656]]]]},properties:{name:"Queensland",id:"AU-QLD",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-QLD"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[146.9166,-43.6178],[146.6864,-43.6033],[146.5995,-43.5561],[146.5144,-43.5428],[146.296,-43.5347],[146.2315,-43.4888],[146.1103,-43.5154],[146.0383,-43.498],[145.9327,-43.3763],[145.9919,-43.3458],[146.1026,-43.358],[146.2325,-43.391],[146.2345,-43.3252],[146.1633,-43.2823],[146.1247,-43.3333],[145.8589,-43.3087],[145.8369,-43.2973],[145.7269,-43.1333],[145.5953,-42.9792],[145.5116,-42.9656],[145.4232,-42.8467],[145.3539,-42.6585],[145.26,-42.6124],[145.1976,-42.3134],[145.2501,-42.2748],[145.4263,-42.3746],[145.4694,-42.5231],[145.552,-42.3511],[145.4583,-42.3264],[145.2802,-42.1812],[145.2479,-42.0349],[145.1846,-41.9383],[145.0549,-41.8467],[144.955,-41.7133],[144.6858,-41.2166],[144.6677,-41.0752],[144.6372,-41.032],[144.6187,-40.9311],[144.6997,-40.8755],[144.7013,-40.7592],[144.7622,-40.7281],[144.986,-40.7487],[145.1164,-40.8224],[145.275,-40.8028],[145.3357,-40.8422],[145.5391,-40.8928],[145.8722,-41.0428],[146.1932,-41.1569],[146.4054,-41.1717],[146.5819,-41.1515],[146.6604,-41.0888],[146.7844,-41.0823],[146.8638,-41.0284],[147.0171,-40.9761],[147.1474,-41.0089],[147.3561,-40.9764],[147.4165,-41.0178],[147.4884,-40.985],[147.5891,-40.853],[147.6749,-40.8308],[147.8032,-40.8928],[147.9018,-40.8632],[147.9511,-40.7613],[148.0142,-40.746],[148.0794,-40.7689],[148.221,-40.849],[148.2734,-40.9011],[148.3283,-40.9954],[148.2643,-41.1673],[148.3135,-41.2593],[148.3169,-41.3347],[148.2738,-41.4541],[148.2804,-41.5392],[148.3143,-41.613],[148.2647,-41.8146],[148.298,-42.035],[148.3587,-42.1087],[148.3638,-42.2224],[148.2753,-42.2555],[148.3097,-42.1406],[148.2388,-41.9982],[148.1952,-41.9454],[148.0791,-42.1172],[148.004,-42.5225],[147.9438,-42.6139],[147.9549,-42.7175],[147.8832,-42.7723],[147.9109,-42.8408],[147.9742,-42.8695],[148.0048,-42.9769],[147.967,-42.9955],[147.9515,-43.0823],[148.0047,-43.1709],[147.9708,-43.2291],[147.8995,-43.1834],[147.7897,-43.247],[147.6972,-43.1636],[147.619,-43.0177],[147.6739,-42.9451],[147.7818,-43.0511],[147.8995,-43.0268],[147.8258,-42.932],[147.5916,-42.8267],[147.5021,-42.8608],[147.5527,-42.9789],[147.5256,-43.0184],[147.4272,-43.0418],[147.408,-42.8897],[147.3486,-42.9047],[147.3261,-43.0086],[147.2682,-43.0604],[147.2419,-43.1336],[147.2625,-43.2039],[147.2475,-43.2692],[147.1782,-43.2822],[147.0983,-43.2445],[146.9701,-43.1371],[146.9693,-43.2043],[147.0954,-43.2887],[147.0023,-43.4226],[146.9166,-43.6178]]],[[[148.1289,-40.2745],[148.0386,-40.2363],[148.0183,-40.1402],[147.9039,-39.9756],[147.7608,-39.878],[147.8819,-39.7542],[147.9677,-39.7255],[148.1655,-39.9294],[148.2794,-39.9658],[148.3352,-40.1922],[148.3033,-40.239],[148.1289,-40.2745]]],[[[143.9216,-40.1364],[143.8864,-40.1168],[143.8919,-39.9847],[143.8348,-39.9275],[143.8553,-39.7119],[143.9336,-39.667],[143.9354,-39.583],[143.9775,-39.5738],[144.0668,-39.6161],[144.1086,-39.6625],[144.1222,-39.825],[144.1464,-39.9294],[144.1061,-40.0364],[143.9216,-40.1364]]],[[[148.3391,-40.5034],[148.3183,-40.4353],[148.0866,-40.4581],[147.997,-40.4282],[147.9986,-40.3898],[148.0652,-40.3482],[148.2027,-40.3613],[148.343,-40.3067],[148.4791,-40.4307],[148.3391,-40.5034]]],[[[147.3027,-43.5134],[147.1755,-43.5016],[147.1231,-43.422],[147.3002,-43.2628],[147.365,-43.3858],[147.3027,-43.5134]]],[[[158.8797,-54.7539],[158.8339,-54.6689],[158.8911,-54.52],[158.9455,-54.5764],[158.8883,-54.6875],[158.8797,-54.7539]]],[[[147.3617,-43.2631],[147.293,-43.1571],[147.3572,-43.075],[147.3965,-43.1197],[147.4327,-43.242],[147.3617,-43.2631]]],[[[148.0142,-42.7531],[148.0187,-42.6197],[148.128,-42.5902],[148.1729,-42.6553],[148.0977,-42.6661],[148.0142,-42.7531]]],[[[144.8889,-40.7294],[144.8659,-40.6711],[144.9263,-40.6173],[145.0161,-40.6955],[144.8889,-40.7294]]]]},properties:{name:"Tasmania",id:"AU-TAS",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-TAS"}]},SI=function(t){ix(t,"SpriteState")&&(t.transitionDuration=400),ix(t,"Component")&&(t.rangeChangeDuration=500,t.interpolationDuration=500,t.sequencedInterpolation=!1,ix(t,"SankeyDiagram")&&(t.sequencedInterpolation=!0),ix(t,"FunnelSeries")&&(t.sequencedInterpolation=!0)),ix(t,"Chart")&&(t.defaultState.transitionDuration=2e3,t.hiddenState.transitionDuration=1e3),ix(t,"Tooltip")&&(t.animationDuration=400,t.defaultState.transitionDuration=400,t.hiddenState.transitionDuration=400),ix(t,"Scrollbar")&&(t.animationDuration=500),ix(t,"Series")&&(t.defaultState.transitionDuration=1e3,t.hiddenState.transitionDuration=700,t.hiddenState.properties.opacity=1,t.showOnInit=!0),ix(t,"MapSeries")&&(t.hiddenState.properties.opacity=0),ix(t,"PercentSeries")&&(t.hiddenState.properties.opacity=0),ix(t,"FunnelSlice")&&(t.defaultState.transitionDuration=800,t.hiddenState.transitionDuration=1e3,t.hiddenState.properties.opacity=1),ix(t,"Slice")&&(t.defaultState.transitionDuration=700,t.hiddenState.transitionDuration=1e3,t.hiddenState.properties.opacity=1),ix(t,"Preloader")&&(t.hiddenState.transitionDuration=2e3),ix(t,"Column")&&(t.defaultState.transitionDuration=700,t.hiddenState.transitionDuration=1e3,t.hiddenState.properties.opacity=1),ix(t,"Column3D")&&(t.hiddenState.properties.opacity=0)};uS(SI);var OI=function(){function t(e,i){_classCallCheck(this,t),this.zone=e,this.http=i,this.loading=0,this._jsonURL="assets/results.json"}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.http.get(this._jsonURL).subscribe((function(e){return t.paintMap(e)}),(function(t){return console.error(t)}),(function(){return console.log("done")})),this.colorSet=new tS}},{key:"mapColors",value:function(t){if("Labor"==t)return Cx("#F05C5C");Cx("#5C5CFF")}},{key:"paintMap",value:function(t){var e=this;this.VICLab=t.VIC.Labor,this.VICLib=t.VIC.Liberal,this.NSWLab=t.NSW.Labor,this.NSWLib=t.NSW.Liberal,this.ACTLab=t.ACT.Labor,this.ACTLib=t.ACT.Liberal,this.WALab=t.WA.Labor,this.WALib=t.WA.Liberal,this.NTLab=t.NT.Labor,this.NTLib=t.NT.Liberal,this.QLDLab=t.QLD.Labor,this.QLDLib=t.QLD.Liberal,this.TASLab=t.TAS.Labor,this.TASLib=t.TAS.Liberal,this.SALab=t.SA.Labor,this.SALib=t.SA.Liberal,this.zone.runOutsideAngular((function(){var i=sS("chartdivmap",IE);i.homeZoomLevel=1,i.homeGeoPoint={latitude:-32,longitude:135},i.geodata=kI,i.projection=new n.Miller;var r=i.series.push(new PD);r.useGeodata=!0,r.exclude=["antarctica"];var o=r.mapPolygons.template;o.tooltipText="{name}",o.propertyFields.fill="color",o.polygon.fillOpacity=.6,o.states.create("hover").properties.fill=Cx("#367B25"),console.log("Changing");var a=e.mapColors(t.NSW.Labor>t.NSW.Liberal?"Labor":"Liberal");console.log(JSON.stringify(a)),r.data=[{id:"AU-VIC",color:"Liberal"==t.VIC.winner?Cx("#004C99"):Cx("red")},{id:"AU-NSW",color:"Liberal"==t.NSW.winner?Cx("#004C99"):Cx("red")},{id:"AU-QLD",color:"Liberal"==t.QLD.winner?Cx("#004C99"):Cx("red")},{id:"AU-NT",color:"Liberal"==t.NT.winner?Cx("#004C99"):Cx("red")},{id:"AU-WA",color:"Liberal"==t.WA.winner?Cx("#004C99"):Cx("red")},{id:"AU-SA",color:"Liberal"==t.SA.winner?Cx("#004C99"):Cx("red")},{id:"AU-TAS",color:"Liberal"==t.TAS.winner?Cx("#004C99"):Cx("red")}]}))}},{key:"ngAfterViewInit",value:function(){console.log("executed")}}]),t}();OI.\u0275fac=function(t){return new(t||OI)(nu(Tp),nu(ay))},OI.\u0275cmp=Ie({type:OI,selectors:[["app-nectar-map-tweets"]],decls:89,vars:16,consts:[[1,"row"],[1,"col-4"],["id","chartdivmap",2,"width","100%","height","500px"],[1,"row","legend"],[1,"col","labor"],[1,"col","liberal"],[1,"col-8"],[1,"table","table-hover","table-dark"],["scope","col"],["scope","row"]],template:function(t,e){1&t&&(su(0,"h2"),qu(1," Political Popularity "),uu(),su(2,"h3"),qu(3," 2019 Australian Federal Elections "),uu(),lu(4,"br"),su(5,"div",0),su(6,"div",1),lu(7,"div",2),su(8,"div",3),su(9,"div",4),qu(10,"\u2022Labor"),uu(),su(11,"div",5),qu(12,"\u2022Liberal"),uu(),uu(),uu(),su(13,"div",6),su(14,"p"),qu(15," This was how Australia voted for the 2019 Federal Elections "),lu(16,"br"),lu(17,"br"),qu(18," This data has been sourced from Aurin. Booth level election data has been concatenated to State Level. "),lu(19,"br"),qu(20," Here we attempt to measure the popularity of the two main australian political parties across the states, "),lu(21,"br"),qu(22," just before Coronavirus engulfed the world. "),uu(),su(23,"table",7),su(24,"thead"),su(25,"tr"),su(26,"th",8),qu(27,"State"),uu(),su(28,"th",8),qu(29,"Votes for Labour"),uu(),su(30,"th",8),qu(31,"Votes for Liberal"),uu(),uu(),uu(),su(32,"tbody"),su(33,"tr"),su(34,"th",9),qu(35,"Victoria"),uu(),su(36,"td"),qu(37),uu(),su(38,"td"),qu(39),uu(),uu(),su(40,"tr"),su(41,"th",9),qu(42,"Northern Territory"),uu(),su(43,"td"),qu(44),uu(),su(45,"td"),qu(46),uu(),uu(),su(47,"tr"),su(48,"th",9),qu(49,"Australian Capital Territory"),uu(),su(50,"td"),qu(51),uu(),su(52,"td"),qu(53),uu(),uu(),su(54,"tr"),su(55,"th",9),qu(56,"New South Wales"),uu(),su(57,"td"),qu(58),uu(),su(59,"td"),qu(60),uu(),uu(),su(61,"tr"),su(62,"th",9),qu(63,"Queensland"),uu(),su(64,"td"),qu(65),uu(),su(66,"td"),qu(67),uu(),uu(),su(68,"tr"),su(69,"th",9),qu(70,"Western Australia"),uu(),su(71,"td"),qu(72),uu(),su(73,"td"),qu(74),uu(),uu(),su(75,"tr"),su(76,"th",9),qu(77,"Southern Australia"),uu(),su(78,"td"),qu(79),uu(),su(80,"td"),qu(81),uu(),uu(),su(82,"tr"),su(83,"th",9),qu(84,"Tasmania"),uu(),su(85,"td"),qu(86),uu(),su(87,"td"),qu(88),uu(),uu(),uu(),uu(),uu(),uu()),2&t&&(Kr(37),Xu(e.VICLab),Kr(2),Xu(e.VICLib),Kr(5),Xu(e.NTLab),Kr(2),Xu(e.NTLib),Kr(5),Xu(e.ACTLab),Kr(2),Xu(e.ACTLib),Kr(5),Xu(e.NSWLab),Kr(2),Xu(e.NSWLib),Kr(5),Xu(e.QLDLab),Kr(2),Xu(e.QLDLib),Kr(5),Xu(e.WALab),Kr(2),Xu(e.WALib),Kr(5),Xu(e.SALab),Kr(2),Xu(e.SALib),Kr(5),Xu(e.TASLab),Kr(2),Xu(e.TASLib))},styles:[""]}),uS(SI);var DI=function(){function t(e,i){_classCallCheck(this,t),this.zone=e,this.http=i,this.loading=0,this._jsonURLVICLab="http://172.26.129.164:5984/tweets/_design/analysis/_view/daniel_positive",this._jsonURLVICLib="http://172.26.129.164:5984/tweets/_design/analysis/_view/daniel_negative",this._jsonURLQLDLab="http://172.26.129.164:5984/tweets/_design/analysis/_view/annastacia_positive",this._jsonURLQLDLib="http://172.26.129.164:5984/tweets/_design/analysis/_view/annastacia_negative",this._jsonURLNSWLib="http://172.26.129.164:5984/tweets/_design/analysis/_view/gladys_positive",this._jsonURLNSWLab="http://172.26.129.164:5984/tweets/_design/analysis/_view/gladys_negative",this._jsonURLWALab="http://172.26.129.164:5984/tweets/_design/analysis/_view/mark_positive",this._jsonURLWALib="http://172.26.129.164:5984/tweets/_design/analysis/_view/mark_negative",this._jsonURLSALib="http://172.26.129.164:5984/tweets/_design/analysis/_view/steven_positive",this._jsonURLSALab="http://172.26.129.164:5984/tweets/_design/analysis/_view/steven_negative",this._jsonURLTASLib="http://172.26.129.164:5984/tweets/_design/analysis/_view/peter_positive",this._jsonURLTASLab="http://172.26.129.164:5984/tweets/_design/analysis/_view/peter_negative"}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this,e=0;this.http.get(this._jsonURLVICLab).subscribe((function(i){t.VICLab=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),this.http.get(this._jsonURLVICLib).subscribe((function(i){t.VICLib=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),this.http.get(this._jsonURLQLDLab).subscribe((function(i){t.QLDLab=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),this.http.get(this._jsonURLQLDLib).subscribe((function(i){t.QLDLib=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),this.http.get(this._jsonURLNSWLib).subscribe((function(i){t.NSWLib=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),this.http.get(this._jsonURLNSWLab).subscribe((function(i){t.NSWLab=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),this.http.get(this._jsonURLWALab).subscribe((function(i){t.WALab=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),this.http.get(this._jsonURLWALib).subscribe((function(i){t.WALib=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),this.http.get(this._jsonURLSALib).subscribe((function(i){t.SALib=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),this.http.get(this._jsonURLSALab).subscribe((function(i){t.SALab=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),this.http.get(this._jsonURLTASLab).subscribe((function(i){t.TASLab=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),this.http.get(this._jsonURLTASLib).subscribe((function(i){t.TASLib=i.rows[0].value,e++}),(function(t){return console.log(t)}),(function(){12==e&&t.paintMap()})),console.log(this.VICLab+":"+this.VICLib+":"+this.QLDLab+";"+this.QLDLib+";"+this.NSWLab+";"+this.NSWLib),this.colorSet=new tS}},{key:"mapColors",value:function(t,e){return console.log("Comparing : "+t+" and "+e),t>e?Cx("red"):e>=t?Cx("#004C99"):void 0}},{key:"paintMap",value:function(){var t=this;this.totalTweets=this.VICLib+this.VICLab+this.WALab+this.WALib+this.SALab+this.SALib+this.TASLab+this.TASLib+this.NSWLib+this.NSWLab+this.QLDLab+this.QLDLib,this.zone.runOutsideAngular((function(){var e=sS("chartdivtwittermap",IE);e.homeZoomLevel=1,e.homeGeoPoint={latitude:-32,longitude:135},e.geodata=kI,e.projection=new n.Miller;var i=e.series.push(new PD);i.useGeodata=!0,i.exclude=["antarctica"];var r=i.mapPolygons.template;r.tooltipText="{name}",r.propertyFields.fill="color",r.polygon.fillOpacity=.6,r.states.create("hover").properties.fill=Cx("#367B25"),console.log("Changing"),i.data=[{id:"AU-VIC",color:t.mapColors(t.VICLab,t.VICLib)},{id:"AU-NSW",color:t.mapColors(t.NSWLab,t.NSWLib)},{id:"AU-QLD",color:t.mapColors(t.QLDLab,t.QLDLib)},{id:"AU-WA",color:t.mapColors(t.WALab,t.WALib)},{id:"AU-SA",color:t.mapColors(t.SALab,t.SALib)},{id:"AU-TAS",color:t.mapColors(t.TASLab,t.TASLib)},{id:"AU-NT",color:Cx("red")}]}))}},{key:"ngAfterViewInit",value:function(){}}]),t}();DI.\u0275fac=function(t){return new(t||DI)(nu(Tp),nu(ay))},DI.\u0275cmp=Ie({type:DI,selectors:[["app-nectar-map-twitter"]],decls:104,vars:13,consts:[[1,"row"],[1,"col-4"],["id","chartdivtwittermap",2,"width","100%","height","500px"],[1,"row","legend"],[1,"col","labor"],[1,"col","liberal"],[1,"col-8"],[1,"table","table-hover","table-dark"],["scope","col"],["scope","row"],[1,"card","bg-light","mb-3","textblack",2,"width","18rem"],[1,"card-body"],[1,"card-title","text-center"],[1,"card-text","text-muted"]],template:function(t,e){1&t&&(su(0,"h3"),qu(1," 2020 - Post Coronavirus Twitter Trends "),uu(),lu(2,"br"),su(3,"div",0),su(4,"div",1),lu(5,"div",2),su(6,"div",3),su(7,"div",4),qu(8,"\u2022Labor"),uu(),su(9,"div",5),qu(10,"\u2022Liberal"),uu(),uu(),uu(),su(11,"div",6),su(12,"p"),qu(13," Political popularity of premiers has been calculated using sentiment analysis on more than 80000 tweets. "),lu(14,"br"),qu(15," The sentiment analyzer characterises tweets from various tweet as follows:"),lu(16,"br"),uu(),su(17,"table",7),su(18,"thead"),su(19,"tr"),su(20,"th",8),qu(21,"State"),uu(),su(22,"th",8),qu(23,"Premier"),uu(),su(24,"th",8),qu(25,"Positive Tweets"),uu(),su(26,"th",8),qu(27,"Negative Tweets"),uu(),su(28,"th",8),qu(29,"Twitter Handle"),uu(),uu(),uu(),su(30,"tbody"),su(31,"tr"),su(32,"th",9),qu(33,"Victoria"),uu(),su(34,"th",9),qu(35,"Daniel Andrews"),uu(),su(36,"td"),qu(37),uu(),su(38,"td"),qu(39),uu(),su(40,"td"),qu(41,"@DanielAndrewsMP"),uu(),uu(),su(42,"tr"),su(43,"th",9),qu(44,"New South Wales"),uu(),su(45,"th",9),qu(46,"Gladys Berejiklian"),uu(),su(47,"td"),qu(48),uu(),su(49,"td"),qu(50),uu(),su(51,"td"),qu(52,"@GladysB"),uu(),uu(),su(53,"tr"),su(54,"th",9),qu(55,"Queensland"),uu(),su(56,"th",9),qu(57,"Annastacia Palaszczuk"),uu(),su(58,"td"),qu(59),uu(),su(60,"td"),qu(61),uu(),su(62,"td"),qu(63,"@AnnastaciaMP"),uu(),uu(),su(64,"tr"),su(65,"th",9),qu(66,"Western Australia"),uu(),su(67,"th",9),qu(68,"Mark McGowan"),uu(),su(69,"td"),qu(70),uu(),su(71,"td"),qu(72),uu(),su(73,"td"),qu(74,"@MarkMcGowanMP"),uu(),uu(),su(75,"tr"),su(76,"th",9),qu(77,"Southern Australia"),uu(),su(78,"th",9),qu(79,"Steven Marshall"),uu(),su(80,"td"),qu(81),uu(),su(82,"td"),qu(83),uu(),su(84,"td"),qu(85,"@marshall_steven"),uu(),uu(),su(86,"tr"),su(87,"th",9),qu(88,"Tasmania"),uu(),su(89,"th",9),qu(90,"Peter Gutwein"),uu(),su(91,"td"),qu(92),uu(),su(93,"td"),qu(94),uu(),su(95,"td"),qu(96,"@PeterGutwein"),uu(),uu(),uu(),uu(),su(97,"div",10),su(98,"div",11),su(99,"h5",12),qu(100),uu(),lu(101,"hr"),su(102,"p",13),qu(103,"These represent only the tweets that were seen to contain any sentiment - positive or negative. Total number of tweets harvested have a large number of neutral tweets."),uu(),uu(),uu(),uu(),uu()),2&t&&(Kr(37),Xu(e.VICLab),Kr(2),Xu(e.VICLib),Kr(9),Xu(e.NSWLib),Kr(2),Xu(e.NSWLab),Kr(9),Xu(e.QLDLab),Kr(2),Xu(e.QLDLib),Kr(9),Xu(e.WALab),Kr(2),Xu(e.WALib),Kr(9),Xu(e.SALib),Kr(2),Xu(e.SALab),Kr(9),Xu(e.TASLib),Kr(2),Xu(e.TASLab),Kr(6),Zu("Total Tweets (Positive/ Negative) : ",e.totalTweets,""))},styles:[""]});var TI=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}();TI.\u0275fac=function(t){return new(t||TI)},TI.\u0275cmp=Ie({type:TI,selectors:[["app-credits"]],decls:12,vars:0,consts:[["id","credits"],[1,"card","text-white","bg-dark","mb-3","text-center"],[1,"card-header"],[1,"card-body"],[1,"card-title"],[1,"card-text"],[1,"card-footer","text-muted"]],template:function(t,e){1&t&&(qu(0,"\xa0\xa0\xa0\xa0\n"),lu(1,"div",0),su(2,"div",1),su(3,"div",2),qu(4," Credits "),uu(),su(5,"div",3),su(6,"h5",4),qu(7,"Cluster and Cloud - Group"),uu(),su(8,"p",5),qu(9,"Shekher Mudgal | Vishal Juneja | Sagar Chaudhari | Rudolph Almeida | Sharath Chandran "),uu(),uu(),su(10,"div",6),qu(11," University of Melbourne "),uu(),uu())},styles:[""]});var EI=function t(){_classCallCheck(this,t),this.title="cloudproject"};EI.\u0275fac=function(t){return new(t||EI)},EI.\u0275cmp=Ie({type:EI,selectors:[["app-root"]],decls:11,vars:0,consts:[[1,"container-fluid"],[1,"container-lg"]],template:function(t,e){1&t&&(lu(0,"app-jumbotron"),lu(1,"router-outlet"),su(2,"div",0),su(3,"div",1),lu(4,"app-nectar-map-tweets"),uu(),uu(),su(5,"div",0),su(6,"div",1),lu(7,"app-nectar-map-twitter"),uu(),uu(),su(8,"div",0),su(9,"div",1),lu(10,"app-credits"),uu(),uu())},directives:[o_,Nb,OI,DI,TI],styles:[""]});var II=function t(){_classCallCheck(this,t)};II.\u0275mod=je({type:II,bootstrap:[EI]}),II.\u0275inj=bt({factory:function(t){return new(t||II)},providers:[],imports:[[Mg,r_,ky]]}),function(){if(Un)throw new Error("Cannot enable prod mode after platform setup.");zn=!1}(),Ag().bootstrapModule(II).catch((function(t){return console.error(t)}))},zn8P:function(t,e){function i(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id="zn8P"}},[[0,0]]]);